Lines Matching full:reserved
26 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_top_down_simple_check()
44 ASSERT_EQ(memblock.reserved.cnt, 1); in alloc_top_down_simple_check()
45 ASSERT_EQ(memblock.reserved.total_size, size); in alloc_top_down_simple_check()
53 * A test that tries to allocate memory next to a reserved region that starts at
67 * memory.reserved array. The previously reserved region does not get modified.
73 struct memblock_region *rgn1 = &memblock.reserved.regions[1]; in alloc_top_down_disjoint_check()
74 struct memblock_region *rgn2 = &memblock.reserved.regions[0]; in alloc_top_down_disjoint_check()
105 ASSERT_EQ(memblock.reserved.cnt, 2); in alloc_top_down_disjoint_check()
106 ASSERT_EQ(memblock.reserved.total_size, total_size); in alloc_top_down_disjoint_check()
115 * of the previously reserved block (i.e. first fit):
125 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_top_down_before_check()
147 ASSERT_EQ(memblock.reserved.cnt, 1); in alloc_top_down_before_check()
148 ASSERT_EQ(memblock.reserved.total_size, total_size); in alloc_top_down_before_check()
157 * end of the previously reserved block (i.e. second fit):
168 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_top_down_after_check()
195 ASSERT_EQ(memblock.reserved.cnt, 1); in alloc_top_down_after_check()
196 ASSERT_EQ(memblock.reserved.total_size, total_size); in alloc_top_down_after_check()
204 * A test that tries to allocate memory when there are two reserved regions with
217 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_top_down_second_fit_check()
245 ASSERT_EQ(memblock.reserved.cnt, 2); in alloc_top_down_second_fit_check()
246 ASSERT_EQ(memblock.reserved.total_size, total_size); in alloc_top_down_second_fit_check()
254 * A test that tries to allocate memory when there are two reserved regions with
261 * Expect to merge all of them, creating one big entry in memblock.reserved
266 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_in_between_generic_check()
299 ASSERT_EQ(memblock.reserved.cnt, 1); in alloc_in_between_generic_check()
300 ASSERT_EQ(memblock.reserved.total_size, total_size); in alloc_in_between_generic_check()
308 * A test that tries to allocate memory when the memory is filled with reserved
347 * A test that tries to allocate memory when all memory is reserved.
377 * | reserved | |
408 * | reserved | new |
416 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_limited_space_generic_check()
435 ASSERT_EQ(memblock.reserved.cnt, 1); in alloc_limited_space_generic_check()
436 ASSERT_EQ(memblock.reserved.total_size, MEM_SIZE); in alloc_limited_space_generic_check()
450 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_no_memory_generic_check()
462 ASSERT_EQ(memblock.reserved.total_size, 0); in alloc_no_memory_generic_check()
484 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_too_large_generic_check()
495 ASSERT_EQ(memblock.reserved.total_size, 0); in alloc_too_large_generic_check()
509 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_bottom_up_simple_check()
523 ASSERT_EQ(memblock.reserved.cnt, 1); in alloc_bottom_up_simple_check()
524 ASSERT_EQ(memblock.reserved.total_size, SZ_2); in alloc_bottom_up_simple_check()
532 * A test that tries to allocate memory next to a reserved region that starts at
545 * entry in memory.reserved array. The previously reserved region does not get
550 struct memblock_region *rgn1 = &memblock.reserved.regions[0]; in alloc_bottom_up_disjoint_check()
551 struct memblock_region *rgn2 = &memblock.reserved.regions[1]; in alloc_bottom_up_disjoint_check()
582 ASSERT_EQ(memblock.reserved.cnt, 2); in alloc_bottom_up_disjoint_check()
583 ASSERT_EQ(memblock.reserved.total_size, total_size); in alloc_bottom_up_disjoint_check()
592 * the beginning of the previously reserved block (i.e. first fit):
602 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_bottom_up_before_check()
621 ASSERT_EQ(memblock.reserved.cnt, 1); in alloc_bottom_up_before_check()
622 ASSERT_EQ(memblock.reserved.total_size, total_size); in alloc_bottom_up_before_check()
631 * the beginning of the previously reserved block (i.e. second fit):
641 struct memblock_region *rgn = &memblock.reserved.regions[0]; in alloc_bottom_up_after_check()
668 ASSERT_EQ(memblock.reserved.cnt, 1); in alloc_bottom_up_after_check()
669 ASSERT_EQ(memblock.reserved.total_size, total_size); in alloc_bottom_up_after_check()
677 * A test that tries to allocate memory when there are two reserved regions, the
691 struct memblock_region *rgn = &memblock.reserved.regions[1]; in alloc_bottom_up_second_fit_check()
719 ASSERT_EQ(memblock.reserved.cnt, 2); in alloc_bottom_up_second_fit_check()
720 ASSERT_EQ(memblock.reserved.total_size, total_size); in alloc_bottom_up_second_fit_check()