Lines Matching refs:rgn

26 	struct memblock_region *rgn = &memblock.reserved.regions[0];  in alloc_top_down_simple_check()  local
41 ASSERT_EQ(rgn->size, size); in alloc_top_down_simple_check()
42 ASSERT_EQ(rgn->base, expected_start); in alloc_top_down_simple_check()
125 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_top_down_before_check() local
144 ASSERT_EQ(rgn->size, total_size); in alloc_top_down_before_check()
145 ASSERT_EQ(rgn->base, memblock_end_of_DRAM() - total_size); in alloc_top_down_before_check()
168 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_top_down_after_check() local
192 ASSERT_EQ(rgn->size, total_size); in alloc_top_down_after_check()
193 ASSERT_EQ(rgn->base, r1.base - r2_size); in alloc_top_down_after_check()
217 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_top_down_second_fit_check() local
242 ASSERT_EQ(rgn->size, r2.size + r3_size); in alloc_top_down_second_fit_check()
243 ASSERT_EQ(rgn->base, r2.base - r3_size); in alloc_top_down_second_fit_check()
266 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_in_between_generic_check() local
296 ASSERT_EQ(rgn->size, total_size); in alloc_in_between_generic_check()
297 ASSERT_EQ(rgn->base, r1.base - r2.size - r3_size); in alloc_in_between_generic_check()
416 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_limited_space_generic_check() local
432 ASSERT_EQ(rgn->size, MEM_SIZE); in alloc_limited_space_generic_check()
433 ASSERT_EQ(rgn->base, memblock_start_of_DRAM()); in alloc_limited_space_generic_check()
450 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_no_memory_generic_check() local
460 ASSERT_EQ(rgn->size, 0); in alloc_no_memory_generic_check()
461 ASSERT_EQ(rgn->base, 0); in alloc_no_memory_generic_check()
484 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_too_large_generic_check() local
493 ASSERT_EQ(rgn->size, 0); in alloc_too_large_generic_check()
494 ASSERT_EQ(rgn->base, 0); in alloc_too_large_generic_check()
509 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_bottom_up_simple_check() local
520 ASSERT_EQ(rgn->size, SZ_2); in alloc_bottom_up_simple_check()
521 ASSERT_EQ(rgn->base, memblock_start_of_DRAM()); in alloc_bottom_up_simple_check()
602 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_bottom_up_before_check() local
618 ASSERT_EQ(rgn->size, total_size); in alloc_bottom_up_before_check()
619 ASSERT_EQ(rgn->base, memblock_start_of_DRAM()); in alloc_bottom_up_before_check()
641 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_bottom_up_after_check() local
665 ASSERT_EQ(rgn->size, total_size); in alloc_bottom_up_after_check()
666 ASSERT_EQ(rgn->base, r1.base); in alloc_bottom_up_after_check()
691 struct memblock_region *rgn = &memblock.reserved.regions[1]; in alloc_bottom_up_second_fit_check() local
716 ASSERT_EQ(rgn->size, r2.size + r3_size); in alloc_bottom_up_second_fit_check()
717 ASSERT_EQ(rgn->base, r2.base); in alloc_bottom_up_second_fit_check()