Lines Matching refs:rgn
43 struct memblock_region *rgn; in memblock_add_simple_check() local
45 rgn = &memblock.memory.regions[0]; in memblock_add_simple_check()
57 ASSERT_EQ(rgn->base, r.base); in memblock_add_simple_check()
58 ASSERT_EQ(rgn->size, r.size); in memblock_add_simple_check()
76 struct memblock_region *rgn; in memblock_add_node_simple_check() local
78 rgn = &memblock.memory.regions[0]; in memblock_add_node_simple_check()
90 ASSERT_EQ(rgn->base, r.base); in memblock_add_node_simple_check()
91 ASSERT_EQ(rgn->size, r.size); in memblock_add_node_simple_check()
93 ASSERT_EQ(rgn->nid, 1); in memblock_add_node_simple_check()
95 ASSERT_EQ(rgn->flags, MEMBLOCK_HOTPLUG); in memblock_add_node_simple_check()
172 struct memblock_region *rgn; in memblock_add_overlap_top_check() local
175 rgn = &memblock.memory.regions[0]; in memblock_add_overlap_top_check()
194 ASSERT_EQ(rgn->base, r2.base); in memblock_add_overlap_top_check()
195 ASSERT_EQ(rgn->size, total_size); in memblock_add_overlap_top_check()
224 struct memblock_region *rgn; in memblock_add_overlap_bottom_check() local
227 rgn = &memblock.memory.regions[0]; in memblock_add_overlap_bottom_check()
246 ASSERT_EQ(rgn->base, r1.base); in memblock_add_overlap_bottom_check()
247 ASSERT_EQ(rgn->size, total_size); in memblock_add_overlap_bottom_check()
274 struct memblock_region *rgn; in memblock_add_within_check() local
276 rgn = &memblock.memory.regions[0]; in memblock_add_within_check()
293 ASSERT_EQ(rgn->base, r1.base); in memblock_add_within_check()
294 ASSERT_EQ(rgn->size, r1.size); in memblock_add_within_check()
344 struct memblock_region *rgn; in memblock_add_between_check() local
347 rgn = &memblock.memory.regions[0]; in memblock_add_between_check()
371 ASSERT_EQ(rgn->base, r1.base); in memblock_add_between_check()
372 ASSERT_EQ(rgn->size, total_size); in memblock_add_between_check()
398 struct memblock_region *rgn; in memblock_add_near_max_check() local
401 rgn = &memblock.memory.regions[0]; in memblock_add_near_max_check()
415 ASSERT_EQ(rgn->base, r.base); in memblock_add_near_max_check()
416 ASSERT_EQ(rgn->size, total_size); in memblock_add_near_max_check()
548 struct memblock_region *rgn; in memblock_reserve_simple_check() local
550 rgn = &memblock.reserved.regions[0]; in memblock_reserve_simple_check()
562 ASSERT_EQ(rgn->base, r.base); in memblock_reserve_simple_check()
563 ASSERT_EQ(rgn->size, r.size); in memblock_reserve_simple_check()
637 struct memblock_region *rgn; in memblock_reserve_overlap_top_check() local
640 rgn = &memblock.reserved.regions[0]; in memblock_reserve_overlap_top_check()
659 ASSERT_EQ(rgn->base, r2.base); in memblock_reserve_overlap_top_check()
660 ASSERT_EQ(rgn->size, total_size); in memblock_reserve_overlap_top_check()
690 struct memblock_region *rgn; in memblock_reserve_overlap_bottom_check() local
693 rgn = &memblock.reserved.regions[0]; in memblock_reserve_overlap_bottom_check()
712 ASSERT_EQ(rgn->base, r1.base); in memblock_reserve_overlap_bottom_check()
713 ASSERT_EQ(rgn->size, total_size); in memblock_reserve_overlap_bottom_check()
742 struct memblock_region *rgn; in memblock_reserve_within_check() local
744 rgn = &memblock.reserved.regions[0]; in memblock_reserve_within_check()
761 ASSERT_EQ(rgn->base, r1.base); in memblock_reserve_within_check()
762 ASSERT_EQ(rgn->size, r1.size); in memblock_reserve_within_check()
813 struct memblock_region *rgn; in memblock_reserve_between_check() local
816 rgn = &memblock.reserved.regions[0]; in memblock_reserve_between_check()
840 ASSERT_EQ(rgn->base, r1.base); in memblock_reserve_between_check()
841 ASSERT_EQ(rgn->size, total_size); in memblock_reserve_between_check()
867 struct memblock_region *rgn; in memblock_reserve_near_max_check() local
870 rgn = &memblock.reserved.regions[0]; in memblock_reserve_near_max_check()
884 ASSERT_EQ(rgn->base, r.base); in memblock_reserve_near_max_check()
885 ASSERT_EQ(rgn->size, total_size); in memblock_reserve_near_max_check()
1282 struct memblock_region *rgn; in memblock_remove_simple_check() local
1284 rgn = &memblock.memory.regions[0]; in memblock_remove_simple_check()
1302 ASSERT_EQ(rgn->base, r2.base); in memblock_remove_simple_check()
1303 ASSERT_EQ(rgn->size, r2.size); in memblock_remove_simple_check()
1331 struct memblock_region *rgn; in memblock_remove_absent_check() local
1333 rgn = &memblock.memory.regions[0]; in memblock_remove_absent_check()
1350 ASSERT_EQ(rgn->base, r1.base); in memblock_remove_absent_check()
1351 ASSERT_EQ(rgn->size, r1.size); in memblock_remove_absent_check()
1382 struct memblock_region *rgn; in memblock_remove_overlap_top_check() local
1385 rgn = &memblock.memory.regions[0]; in memblock_remove_overlap_top_check()
1406 ASSERT_EQ(rgn->base, r1.base + r2.base); in memblock_remove_overlap_top_check()
1407 ASSERT_EQ(rgn->size, total_size); in memblock_remove_overlap_top_check()
1436 struct memblock_region *rgn; in memblock_remove_overlap_bottom_check() local
1439 rgn = &memblock.memory.regions[0]; in memblock_remove_overlap_bottom_check()
1458 ASSERT_EQ(rgn->base, r1.base); in memblock_remove_overlap_bottom_check()
1459 ASSERT_EQ(rgn->size, total_size); in memblock_remove_overlap_bottom_check()
1538 struct memblock_region *rgn; in memblock_remove_only_region_check() local
1540 rgn = &memblock.memory.regions[0]; in memblock_remove_only_region_check()
1553 ASSERT_EQ(rgn->base, 0); in memblock_remove_only_region_check()
1554 ASSERT_EQ(rgn->size, 0); in memblock_remove_only_region_check()
1581 struct memblock_region *rgn; in memblock_remove_near_max_check() local
1584 rgn = &memblock.memory.regions[0]; in memblock_remove_near_max_check()
1604 ASSERT_EQ(rgn->base, r1.base); in memblock_remove_near_max_check()
1605 ASSERT_EQ(rgn->size, total_size); in memblock_remove_near_max_check()
1715 struct memblock_region *rgn; in memblock_free_simple_check() local
1717 rgn = &memblock.reserved.regions[0]; in memblock_free_simple_check()
1735 ASSERT_EQ(rgn->base, r2.base); in memblock_free_simple_check()
1736 ASSERT_EQ(rgn->size, r2.size); in memblock_free_simple_check()
1764 struct memblock_region *rgn; in memblock_free_absent_check() local
1766 rgn = &memblock.reserved.regions[0]; in memblock_free_absent_check()
1783 ASSERT_EQ(rgn->base, r1.base); in memblock_free_absent_check()
1784 ASSERT_EQ(rgn->size, r1.size); in memblock_free_absent_check()
1815 struct memblock_region *rgn; in memblock_free_overlap_top_check() local
1818 rgn = &memblock.reserved.regions[0]; in memblock_free_overlap_top_check()
1837 ASSERT_EQ(rgn->base, r2.base + r2.size); in memblock_free_overlap_top_check()
1838 ASSERT_EQ(rgn->size, total_size); in memblock_free_overlap_top_check()
1864 struct memblock_region *rgn; in memblock_free_overlap_bottom_check() local
1867 rgn = &memblock.reserved.regions[0]; in memblock_free_overlap_bottom_check()
1886 ASSERT_EQ(rgn->base, r1.base); in memblock_free_overlap_bottom_check()
1887 ASSERT_EQ(rgn->size, total_size); in memblock_free_overlap_bottom_check()
1966 struct memblock_region *rgn; in memblock_free_only_region_check() local
1968 rgn = &memblock.reserved.regions[0]; in memblock_free_only_region_check()
1981 ASSERT_EQ(rgn->base, 0); in memblock_free_only_region_check()
1982 ASSERT_EQ(rgn->size, 0); in memblock_free_only_region_check()
2008 struct memblock_region *rgn; in memblock_free_near_max_check() local
2011 rgn = &memblock.reserved.regions[0]; in memblock_free_near_max_check()
2031 ASSERT_EQ(rgn->base, r1.base); in memblock_free_near_max_check()
2032 ASSERT_EQ(rgn->size, total_size); in memblock_free_near_max_check()
2176 struct memblock_region *rgn; in memblock_trim_memory_aligned_check() local
2179 rgn = &memblock.memory.regions[0]; in memblock_trim_memory_aligned_check()
2192 ASSERT_EQ(rgn->base, r.base); in memblock_trim_memory_aligned_check()
2193 ASSERT_EQ(rgn->size, r.size); in memblock_trim_memory_aligned_check()
2222 struct memblock_region *rgn; in memblock_trim_memory_too_small_check() local
2225 rgn = &memblock.memory.regions[0]; in memblock_trim_memory_too_small_check()
2243 ASSERT_EQ(rgn->base, r1.base); in memblock_trim_memory_too_small_check()
2244 ASSERT_EQ(rgn->size, r1.size); in memblock_trim_memory_too_small_check()