Lines Matching refs:rgn

66 	struct memblock_region *rgn = &memblock.reserved.regions[0];  in alloc_nid_top_down_simple_check()  local
82 rgn_end = rgn->base + rgn->size; in alloc_nid_top_down_simple_check()
87 ASSERT_EQ(rgn->size, size); in alloc_nid_top_down_simple_check()
88 ASSERT_EQ(rgn->base, max_addr - size); in alloc_nid_top_down_simple_check()
118 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_nid_top_down_end_misaligned_check() local
135 rgn_end = rgn->base + rgn->size; in alloc_nid_top_down_end_misaligned_check()
140 ASSERT_EQ(rgn->size, size); in alloc_nid_top_down_end_misaligned_check()
141 ASSERT_EQ(rgn->base, max_addr - size - misalign); in alloc_nid_top_down_end_misaligned_check()
169 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_nid_exact_address_generic_check() local
185 rgn_end = rgn->base + rgn->size; in alloc_nid_exact_address_generic_check()
190 ASSERT_EQ(rgn->size, size); in alloc_nid_exact_address_generic_check()
191 ASSERT_EQ(rgn->base, min_addr); in alloc_nid_exact_address_generic_check()
221 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_nid_top_down_narrow_range_check() local
240 ASSERT_EQ(rgn->size, size); in alloc_nid_top_down_narrow_range_check()
241 ASSERT_EQ(rgn->base, max_addr - size); in alloc_nid_top_down_narrow_range_check()
311 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_nid_min_reserved_generic_check() local
336 ASSERT_EQ(rgn->size, total_size); in alloc_nid_min_reserved_generic_check()
337 ASSERT_EQ(rgn->base, reserved_base); in alloc_nid_min_reserved_generic_check()
363 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_nid_max_reserved_generic_check() local
386 ASSERT_EQ(rgn->size, total_size); in alloc_nid_max_reserved_generic_check()
387 ASSERT_EQ(rgn->base, min_addr); in alloc_nid_max_reserved_generic_check()
481 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_nid_reserved_full_merge_generic_check() local
512 ASSERT_EQ(rgn->size, total_size); in alloc_nid_reserved_full_merge_generic_check()
513 ASSERT_EQ(rgn->base, r2.base); in alloc_nid_reserved_full_merge_generic_check()
652 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_nid_top_down_cap_max_check() local
671 ASSERT_EQ(rgn->size, size); in alloc_nid_top_down_cap_max_check()
672 ASSERT_EQ(rgn->base, memblock_end_of_DRAM() - size); in alloc_nid_top_down_cap_max_check()
689 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_nid_top_down_cap_min_check() local
708 ASSERT_EQ(rgn->size, size); in alloc_nid_top_down_cap_min_check()
709 ASSERT_EQ(rgn->base, memblock_end_of_DRAM() - size); in alloc_nid_top_down_cap_min_check()
735 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_nid_bottom_up_simple_check() local
751 rgn_end = rgn->base + rgn->size; in alloc_nid_bottom_up_simple_check()
756 ASSERT_EQ(rgn->size, size); in alloc_nid_bottom_up_simple_check()
757 ASSERT_EQ(rgn->base, min_addr); in alloc_nid_bottom_up_simple_check()
787 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_nid_bottom_up_start_misaligned_check() local
804 rgn_end = rgn->base + rgn->size; in alloc_nid_bottom_up_start_misaligned_check()
809 ASSERT_EQ(rgn->size, size); in alloc_nid_bottom_up_start_misaligned_check()
810 ASSERT_EQ(rgn->base, min_addr + (SMP_CACHE_BYTES - misalign)); in alloc_nid_bottom_up_start_misaligned_check()
840 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_nid_bottom_up_narrow_range_check() local
859 ASSERT_EQ(rgn->size, size); in alloc_nid_bottom_up_narrow_range_check()
860 ASSERT_EQ(rgn->base, memblock_start_of_DRAM()); in alloc_nid_bottom_up_narrow_range_check()
1016 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_nid_bottom_up_cap_max_check() local
1035 ASSERT_EQ(rgn->size, size); in alloc_nid_bottom_up_cap_max_check()
1036 ASSERT_EQ(rgn->base, min_addr); in alloc_nid_bottom_up_cap_max_check()
1053 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_nid_bottom_up_cap_min_check() local
1072 ASSERT_EQ(rgn->size, size); in alloc_nid_bottom_up_cap_min_check()
1073 ASSERT_EQ(rgn->base, memblock_start_of_DRAM()); in alloc_nid_bottom_up_cap_min_check()