Lines Matching refs:r1

75 	struct region r1;  in alloc_top_down_disjoint_check()  local
86 r1.base = memblock_end_of_DRAM() - SZ_2; in alloc_top_down_disjoint_check()
87 r1.size = SZ_2; in alloc_top_down_disjoint_check()
89 total_size = r1.size + r2_size; in alloc_top_down_disjoint_check()
92 memblock_reserve(r1.base, r1.size); in alloc_top_down_disjoint_check()
99 ASSERT_EQ(rgn1->size, r1.size); in alloc_top_down_disjoint_check()
100 ASSERT_EQ(rgn1->base, r1.base); in alloc_top_down_disjoint_check()
169 struct region r1; in alloc_top_down_after_check() local
180 r1.base = memblock_end_of_DRAM() - SMP_CACHE_BYTES; in alloc_top_down_after_check()
181 r1.size = SZ_8; in alloc_top_down_after_check()
183 total_size = r1.size + r2_size; in alloc_top_down_after_check()
185 memblock_reserve_kern(r1.base, r1.size); in alloc_top_down_after_check()
193 ASSERT_EQ(rgn->base, r1.base - r2_size); in alloc_top_down_after_check()
218 struct region r1, r2; in alloc_top_down_second_fit_check() local
226 r1.base = memblock_end_of_DRAM() - SZ_512; in alloc_top_down_second_fit_check()
227 r1.size = SZ_512; in alloc_top_down_second_fit_check()
229 r2.base = r1.base - SZ_512; in alloc_top_down_second_fit_check()
232 total_size = r1.size + r2.size + r3_size; in alloc_top_down_second_fit_check()
234 memblock_reserve_kern(r1.base, r1.size); in alloc_top_down_second_fit_check()
267 struct region r1, r2; in alloc_in_between_generic_check() local
280 r1.size = rgn_size; in alloc_in_between_generic_check()
281 r1.base = memblock_end_of_DRAM() - (gap_size + rgn_size); in alloc_in_between_generic_check()
286 total_size = r1.size + r2.size + r3_size; in alloc_in_between_generic_check()
288 memblock_reserve_kern(r1.base, r1.size); in alloc_in_between_generic_check()
297 ASSERT_EQ(rgn->base, r1.base - r2.size - r3_size); in alloc_in_between_generic_check()
552 struct region r1; in alloc_bottom_up_disjoint_check() local
563 r1.base = memblock_start_of_DRAM() + SZ_2; in alloc_bottom_up_disjoint_check()
564 r1.size = SZ_2; in alloc_bottom_up_disjoint_check()
566 total_size = r1.size + r2_size; in alloc_bottom_up_disjoint_check()
569 memblock_reserve(r1.base, r1.size); in alloc_bottom_up_disjoint_check()
576 ASSERT_EQ(rgn1->size, r1.size); in alloc_bottom_up_disjoint_check()
577 ASSERT_EQ(rgn1->base, r1.base); in alloc_bottom_up_disjoint_check()
642 struct region r1; in alloc_bottom_up_after_check() local
653 r1.base = memblock_start_of_DRAM() + SMP_CACHE_BYTES; in alloc_bottom_up_after_check()
654 r1.size = SZ_64; in alloc_bottom_up_after_check()
656 total_size = r1.size + r2_size; in alloc_bottom_up_after_check()
658 memblock_reserve_kern(r1.base, r1.size); in alloc_bottom_up_after_check()
666 ASSERT_EQ(rgn->base, r1.base); in alloc_bottom_up_after_check()
692 struct region r1, r2; in alloc_bottom_up_second_fit_check() local
700 r1.base = memblock_start_of_DRAM(); in alloc_bottom_up_second_fit_check()
701 r1.size = SZ_512; in alloc_bottom_up_second_fit_check()
703 r2.base = r1.base + r1.size + SZ_512; in alloc_bottom_up_second_fit_check()
706 total_size = r1.size + r2.size + r3_size; in alloc_bottom_up_second_fit_check()
708 memblock_reserve_kern(r1.base, r1.size); in alloc_bottom_up_second_fit_check()