Lines Matching refs:base
48 .base = SZ_1G, in memblock_add_simple_check()
55 memblock_add(r.base, r.size); in memblock_add_simple_check()
57 ASSERT_EQ(rgn->base, r.base); in memblock_add_simple_check()
81 .base = SZ_1M, in memblock_add_node_simple_check()
88 memblock_add_node(r.base, r.size, 1, MEMBLOCK_HOTPLUG); in memblock_add_node_simple_check()
90 ASSERT_EQ(rgn->base, r.base); in memblock_add_node_simple_check()
125 .base = SZ_1G, in memblock_add_disjoint_check()
129 .base = SZ_1G + SZ_16K, in memblock_add_disjoint_check()
136 memblock_add(r1.base, r1.size); in memblock_add_disjoint_check()
137 memblock_add(r2.base, r2.size); in memblock_add_disjoint_check()
139 ASSERT_EQ(rgn1->base, r1.base); in memblock_add_disjoint_check()
142 ASSERT_EQ(rgn2->base, r2.base); in memblock_add_disjoint_check()
178 .base = SZ_512M, in memblock_add_overlap_top_check()
182 .base = SZ_256M, in memblock_add_overlap_top_check()
188 total_size = (r1.base - r2.base) + r1.size; in memblock_add_overlap_top_check()
191 memblock_add(r1.base, r1.size); in memblock_add_overlap_top_check()
192 memblock_add(r2.base, r2.size); in memblock_add_overlap_top_check()
194 ASSERT_EQ(rgn->base, r2.base); in memblock_add_overlap_top_check()
230 .base = SZ_128M, in memblock_add_overlap_bottom_check()
234 .base = SZ_256M, in memblock_add_overlap_bottom_check()
240 total_size = (r2.base - r1.base) + r2.size; in memblock_add_overlap_bottom_check()
243 memblock_add(r1.base, r1.size); in memblock_add_overlap_bottom_check()
244 memblock_add(r2.base, r2.size); in memblock_add_overlap_bottom_check()
246 ASSERT_EQ(rgn->base, r1.base); in memblock_add_overlap_bottom_check()
279 .base = SZ_8M, in memblock_add_within_check()
283 .base = SZ_16M, in memblock_add_within_check()
290 memblock_add(r1.base, r1.size); in memblock_add_within_check()
291 memblock_add(r2.base, r2.size); in memblock_add_within_check()
293 ASSERT_EQ(rgn->base, r1.base); in memblock_add_within_check()
311 .base = SZ_16K, in memblock_add_twice_check()
319 memblock_add(r.base, r.size); in memblock_add_twice_check()
320 memblock_add(r.base, r.size); in memblock_add_twice_check()
350 .base = SZ_1G, in memblock_add_between_check()
354 .base = SZ_1G + SZ_16K, in memblock_add_between_check()
358 .base = SZ_1G + SZ_8K, in memblock_add_between_check()
367 memblock_add(r1.base, r1.size); in memblock_add_between_check()
368 memblock_add(r2.base, r2.size); in memblock_add_between_check()
369 memblock_add(r3.base, r3.size); in memblock_add_between_check()
371 ASSERT_EQ(rgn->base, r1.base); in memblock_add_between_check()
404 .base = PHYS_ADDR_MAX - SZ_1M, in memblock_add_near_max_check()
410 total_size = PHYS_ADDR_MAX - r.base; in memblock_add_near_max_check()
413 memblock_add(r.base, r.size); in memblock_add_near_max_check()
415 ASSERT_EQ(rgn->base, r.base); in memblock_add_near_max_check()
437 .base = SZ_16K, in memblock_add_many_check()
441 phys_addr_t base, size = SZ_64; in memblock_add_many_check() local
455 base = PAGE_ALIGN(dummy_physical_memory_base()); in memblock_add_many_check()
458 memblock_add(base, new_memory_regions_size); in memblock_add_many_check()
461 base += new_memory_regions_size + gap_size; in memblock_add_many_check()
470 memblock_add(base, size); in memblock_add_many_check()
471 base += size + gap_size; in memblock_add_many_check()
492 memblock_add(r.base, r.size); in memblock_add_many_check()
493 ASSERT_EQ(memblock.memory.regions[0].base, r.base); in memblock_add_many_check()
553 .base = SZ_2G, in memblock_reserve_simple_check()
560 memblock_reserve(r.base, r.size); in memblock_reserve_simple_check()
562 ASSERT_EQ(rgn->base, r.base); in memblock_reserve_simple_check()
589 .base = SZ_256M, in memblock_reserve_disjoint_check()
593 .base = SZ_512M, in memblock_reserve_disjoint_check()
600 memblock_reserve(r1.base, r1.size); in memblock_reserve_disjoint_check()
601 memblock_reserve(r2.base, r2.size); in memblock_reserve_disjoint_check()
603 ASSERT_EQ(rgn1->base, r1.base); in memblock_reserve_disjoint_check()
606 ASSERT_EQ(rgn2->base, r2.base); in memblock_reserve_disjoint_check()
643 .base = SZ_1G, in memblock_reserve_overlap_top_check()
647 .base = SZ_128M, in memblock_reserve_overlap_top_check()
653 total_size = (r1.base - r2.base) + r1.size; in memblock_reserve_overlap_top_check()
656 memblock_reserve(r1.base, r1.size); in memblock_reserve_overlap_top_check()
657 memblock_reserve(r2.base, r2.size); in memblock_reserve_overlap_top_check()
659 ASSERT_EQ(rgn->base, r2.base); in memblock_reserve_overlap_top_check()
696 .base = SZ_2K, in memblock_reserve_overlap_bottom_check()
700 .base = SZ_128K, in memblock_reserve_overlap_bottom_check()
706 total_size = (r2.base - r1.base) + r2.size; in memblock_reserve_overlap_bottom_check()
709 memblock_reserve(r1.base, r1.size); in memblock_reserve_overlap_bottom_check()
710 memblock_reserve(r2.base, r2.size); in memblock_reserve_overlap_bottom_check()
712 ASSERT_EQ(rgn->base, r1.base); in memblock_reserve_overlap_bottom_check()
747 .base = SZ_1M, in memblock_reserve_within_check()
751 .base = SZ_2M, in memblock_reserve_within_check()
758 memblock_reserve(r1.base, r1.size); in memblock_reserve_within_check()
759 memblock_reserve(r2.base, r2.size); in memblock_reserve_within_check()
761 ASSERT_EQ(rgn->base, r1.base); in memblock_reserve_within_check()
780 .base = SZ_16K, in memblock_reserve_twice_check()
788 memblock_reserve(r.base, r.size); in memblock_reserve_twice_check()
789 memblock_reserve(r.base, r.size); in memblock_reserve_twice_check()
819 .base = SZ_1G, in memblock_reserve_between_check()
823 .base = SZ_1G + SZ_16K, in memblock_reserve_between_check()
827 .base = SZ_1G + SZ_8K, in memblock_reserve_between_check()
836 memblock_reserve(r1.base, r1.size); in memblock_reserve_between_check()
837 memblock_reserve(r2.base, r2.size); in memblock_reserve_between_check()
838 memblock_reserve(r3.base, r3.size); in memblock_reserve_between_check()
840 ASSERT_EQ(rgn->base, r1.base); in memblock_reserve_between_check()
873 .base = PHYS_ADDR_MAX - SZ_1M, in memblock_reserve_near_max_check()
879 total_size = PHYS_ADDR_MAX - r.base; in memblock_reserve_near_max_check()
882 memblock_reserve(r.base, r.size); in memblock_reserve_near_max_check()
884 ASSERT_EQ(rgn->base, r.base); in memblock_reserve_near_max_check()
906 .base = SZ_16K, in memblock_reserve_many_check()
959 memblock_reserve(r.base, r.size); in memblock_reserve_many_check()
960 ASSERT_EQ(memblock.reserved.regions[0].base, r.base); in memblock_reserve_many_check()
1005 .base = SZ_16K, in memblock_reserve_all_locations_check()
1064 memblock_reserve(r.base, r.size); in memblock_reserve_all_locations_check()
1065 ASSERT_EQ(memblock.reserved.regions[0].base, r.base); in memblock_reserve_all_locations_check()
1128 .base = SZ_16K, in memblock_reserve_many_may_conflict_check()
1206 ASSERT_EQ(memblock.reserved.regions[0].base + memblock.reserved.regions[0].size, in memblock_reserve_many_may_conflict_check()
1214 memblock_reserve(r.base, r.size); in memblock_reserve_many_may_conflict_check()
1215 ASSERT_EQ(memblock.reserved.regions[0].base, r.base); in memblock_reserve_many_may_conflict_check()
1287 .base = SZ_2K, in memblock_remove_simple_check()
1291 .base = SZ_128K, in memblock_remove_simple_check()
1298 memblock_add(r1.base, r1.size); in memblock_remove_simple_check()
1299 memblock_add(r2.base, r2.size); in memblock_remove_simple_check()
1300 memblock_remove(r1.base, r1.size); in memblock_remove_simple_check()
1302 ASSERT_EQ(rgn->base, r2.base); in memblock_remove_simple_check()
1336 .base = SZ_512K, in memblock_remove_absent_check()
1340 .base = SZ_64M, in memblock_remove_absent_check()
1347 memblock_add(r1.base, r1.size); in memblock_remove_absent_check()
1348 memblock_remove(r2.base, r2.size); in memblock_remove_absent_check()
1350 ASSERT_EQ(rgn->base, r1.base); in memblock_remove_absent_check()
1388 .base = SZ_32M, in memblock_remove_overlap_top_check()
1392 .base = SZ_16M, in memblock_remove_overlap_top_check()
1398 r1_end = r1.base + r1.size; in memblock_remove_overlap_top_check()
1399 r2_end = r2.base + r2.size; in memblock_remove_overlap_top_check()
1403 memblock_add(r1.base, r1.size); in memblock_remove_overlap_top_check()
1404 memblock_remove(r2.base, r2.size); in memblock_remove_overlap_top_check()
1406 ASSERT_EQ(rgn->base, r1.base + r2.base); in memblock_remove_overlap_top_check()
1442 .base = SZ_2M, in memblock_remove_overlap_bottom_check()
1446 .base = SZ_32M, in memblock_remove_overlap_bottom_check()
1452 total_size = r2.base - r1.base; in memblock_remove_overlap_bottom_check()
1455 memblock_add(r1.base, r1.size); in memblock_remove_overlap_bottom_check()
1456 memblock_remove(r2.base, r2.size); in memblock_remove_overlap_bottom_check()
1458 ASSERT_EQ(rgn->base, r1.base); in memblock_remove_overlap_bottom_check()
1497 .base = SZ_1M, in memblock_remove_within_check()
1501 .base = SZ_16M, in memblock_remove_within_check()
1507 r1_size = r2.base - r1.base; in memblock_remove_within_check()
1508 r2_size = (r1.base + r1.size) - (r2.base + r2.size); in memblock_remove_within_check()
1512 memblock_add(r1.base, r1.size); in memblock_remove_within_check()
1513 memblock_remove(r2.base, r2.size); in memblock_remove_within_check()
1515 ASSERT_EQ(rgn1->base, r1.base); in memblock_remove_within_check()
1518 ASSERT_EQ(rgn2->base, r2.base + r2.size); in memblock_remove_within_check()
1543 .base = SZ_2K, in memblock_remove_only_region_check()
1550 memblock_add(r1.base, r1.size); in memblock_remove_only_region_check()
1551 memblock_remove(r1.base, r1.size); in memblock_remove_only_region_check()
1553 ASSERT_EQ(rgn->base, 0); in memblock_remove_only_region_check()
1587 .base = PHYS_ADDR_MAX - SZ_2M, in memblock_remove_near_max_check()
1592 .base = PHYS_ADDR_MAX - SZ_1M, in memblock_remove_near_max_check()
1598 total_size = r1.size - (PHYS_ADDR_MAX - r2.base); in memblock_remove_near_max_check()
1601 memblock_add(r1.base, r1.size); in memblock_remove_near_max_check()
1602 memblock_remove(r2.base, r2.size); in memblock_remove_near_max_check()
1604 ASSERT_EQ(rgn->base, r1.base); in memblock_remove_near_max_check()
1639 .base = SZ_16M, in memblock_remove_overlap_two_check()
1643 .base = SZ_64M, in memblock_remove_overlap_two_check()
1647 .base = SZ_32M, in memblock_remove_overlap_two_check()
1653 r2_end = r2.base + r2.size; in memblock_remove_overlap_two_check()
1654 r3_end = r3.base + r3.size; in memblock_remove_overlap_two_check()
1655 new_r1_size = r3.base - r1.base; in memblock_remove_overlap_two_check()
1660 memblock_add(r1.base, r1.size); in memblock_remove_overlap_two_check()
1661 memblock_add(r2.base, r2.size); in memblock_remove_overlap_two_check()
1662 memblock_remove(r3.base, r3.size); in memblock_remove_overlap_two_check()
1664 ASSERT_EQ(rgn1->base, r1.base); in memblock_remove_overlap_two_check()
1667 ASSERT_EQ(rgn2->base, r3_end); in memblock_remove_overlap_two_check()
1720 .base = SZ_4M, in memblock_free_simple_check()
1724 .base = SZ_8M, in memblock_free_simple_check()
1731 memblock_reserve(r1.base, r1.size); in memblock_free_simple_check()
1732 memblock_reserve(r2.base, r2.size); in memblock_free_simple_check()
1733 memblock_free((void *)r1.base, r1.size); in memblock_free_simple_check()
1735 ASSERT_EQ(rgn->base, r2.base); in memblock_free_simple_check()
1769 .base = SZ_2M, in memblock_free_absent_check()
1773 .base = SZ_16M, in memblock_free_absent_check()
1780 memblock_reserve(r1.base, r1.size); in memblock_free_absent_check()
1781 memblock_free((void *)r2.base, r2.size); in memblock_free_absent_check()
1783 ASSERT_EQ(rgn->base, r1.base); in memblock_free_absent_check()
1821 .base = SZ_8M, in memblock_free_overlap_top_check()
1825 .base = SZ_1M, in memblock_free_overlap_top_check()
1831 total_size = (r1.size + r1.base) - (r2.base + r2.size); in memblock_free_overlap_top_check()
1834 memblock_reserve(r1.base, r1.size); in memblock_free_overlap_top_check()
1835 memblock_free((void *)r2.base, r2.size); in memblock_free_overlap_top_check()
1837 ASSERT_EQ(rgn->base, r2.base + r2.size); in memblock_free_overlap_top_check()
1870 .base = SZ_8M, in memblock_free_overlap_bottom_check()
1874 .base = SZ_32M, in memblock_free_overlap_bottom_check()
1880 total_size = r2.base - r1.base; in memblock_free_overlap_bottom_check()
1883 memblock_reserve(r1.base, r1.size); in memblock_free_overlap_bottom_check()
1884 memblock_free((void *)r2.base, r2.size); in memblock_free_overlap_bottom_check()
1886 ASSERT_EQ(rgn->base, r1.base); in memblock_free_overlap_bottom_check()
1925 .base = SZ_1M, in memblock_free_within_check()
1929 .base = SZ_4M, in memblock_free_within_check()
1935 r1_size = r2.base - r1.base; in memblock_free_within_check()
1936 r2_size = (r1.base + r1.size) - (r2.base + r2.size); in memblock_free_within_check()
1940 memblock_reserve(r1.base, r1.size); in memblock_free_within_check()
1941 memblock_free((void *)r2.base, r2.size); in memblock_free_within_check()
1943 ASSERT_EQ(rgn1->base, r1.base); in memblock_free_within_check()
1946 ASSERT_EQ(rgn2->base, r2.base + r2.size); in memblock_free_within_check()
1971 .base = SZ_2K, in memblock_free_only_region_check()
1978 memblock_reserve(r1.base, r1.size); in memblock_free_only_region_check()
1979 memblock_free((void *)r1.base, r1.size); in memblock_free_only_region_check()
1981 ASSERT_EQ(rgn->base, 0); in memblock_free_only_region_check()
2014 .base = PHYS_ADDR_MAX - SZ_2M, in memblock_free_near_max_check()
2019 .base = PHYS_ADDR_MAX - SZ_1M, in memblock_free_near_max_check()
2025 total_size = r1.size - (PHYS_ADDR_MAX - r2.base); in memblock_free_near_max_check()
2028 memblock_reserve(r1.base, r1.size); in memblock_free_near_max_check()
2029 memblock_free((void *)r2.base, r2.size); in memblock_free_near_max_check()
2031 ASSERT_EQ(rgn->base, r1.base); in memblock_free_near_max_check()
2066 .base = SZ_16M, in memblock_free_overlap_two_check()
2070 .base = SZ_64M, in memblock_free_overlap_two_check()
2074 .base = SZ_32M, in memblock_free_overlap_two_check()
2080 r2_end = r2.base + r2.size; in memblock_free_overlap_two_check()
2081 r3_end = r3.base + r3.size; in memblock_free_overlap_two_check()
2082 new_r1_size = r3.base - r1.base; in memblock_free_overlap_two_check()
2087 memblock_reserve(r1.base, r1.size); in memblock_free_overlap_two_check()
2088 memblock_reserve(r2.base, r2.size); in memblock_free_overlap_two_check()
2089 memblock_free((void *)r3.base, r3.size); in memblock_free_overlap_two_check()
2091 ASSERT_EQ(rgn1->base, r1.base); in memblock_free_overlap_two_check()
2094 ASSERT_EQ(rgn2->base, r3_end); in memblock_free_overlap_two_check()
2182 .base = alignment, in memblock_trim_memory_aligned_check()
2189 memblock_add(r.base, r.size); in memblock_trim_memory_aligned_check()
2192 ASSERT_EQ(rgn->base, r.base); in memblock_trim_memory_aligned_check()
2228 .base = alignment, in memblock_trim_memory_too_small_check()
2232 .base = alignment * 4, in memblock_trim_memory_too_small_check()
2239 memblock_add(r1.base, r1.size); in memblock_trim_memory_too_small_check()
2240 memblock_add(r2.base, r2.size); in memblock_trim_memory_too_small_check()
2243 ASSERT_EQ(rgn->base, r1.base); in memblock_trim_memory_too_small_check()
2283 .base = alignment, in memblock_trim_memory_unaligned_base_check()
2287 .base = alignment * 4 + offset, in memblock_trim_memory_unaligned_base_check()
2293 new_r2_base = r2.base + (alignment - offset); in memblock_trim_memory_unaligned_base_check()
2297 memblock_add(r1.base, r1.size); in memblock_trim_memory_unaligned_base_check()
2298 memblock_add(r2.base, r2.size); in memblock_trim_memory_unaligned_base_check()
2301 ASSERT_EQ(rgn1->base, r1.base); in memblock_trim_memory_unaligned_base_check()
2304 ASSERT_EQ(rgn2->base, new_r2_base); in memblock_trim_memory_unaligned_base_check()
2344 .base = alignment, in memblock_trim_memory_unaligned_end_check()
2348 .base = alignment * 4, in memblock_trim_memory_unaligned_end_check()
2357 memblock_add(r1.base, r1.size); in memblock_trim_memory_unaligned_end_check()
2358 memblock_add(r2.base, r2.size); in memblock_trim_memory_unaligned_end_check()
2361 ASSERT_EQ(rgn1->base, r1.base); in memblock_trim_memory_unaligned_end_check()
2364 ASSERT_EQ(rgn2->base, r2.base); in memblock_trim_memory_unaligned_end_check()
2393 .base = SZ_1G, in memblock_overlaps_region_check()
2400 memblock_add(r.base, r.size); in memblock_overlaps_region_check()