Searched refs:r2_size (Results 1 – 4 of 4) sorted by relevance
/openbmc/linux/tools/testing/memblock/tests/ |
H A D | alloc_api.c | 77 phys_addr_t r2_size = SZ_16; in alloc_top_down_disjoint_check() local 89 total_size = r1.size + r2_size; in alloc_top_down_disjoint_check() 94 allocated_ptr = run_memblock_alloc(r2_size, alignment); in alloc_top_down_disjoint_check() 97 assert_mem_content(allocated_ptr, r2_size, alloc_test_flags); in alloc_top_down_disjoint_check() 102 ASSERT_EQ(rgn2->size, r2_size); in alloc_top_down_disjoint_check() 131 phys_addr_t r2_size = SZ_512; in alloc_top_down_before_check() local 132 phys_addr_t total_size = r1_size + r2_size; in alloc_top_down_before_check() 139 allocated_ptr = run_memblock_alloc(r2_size, SMP_CACHE_BYTES); in alloc_top_down_before_check() 142 assert_mem_content(allocated_ptr, r2_size, alloc_test_flags); in alloc_top_down_before_check() 171 phys_addr_t r2_size = SZ_512; in alloc_top_down_after_check() local [all …]
|
H A D | alloc_helpers_api.c | 156 phys_addr_t r2_size = SZ_2; in alloc_from_top_down_no_space_above_check() local 157 phys_addr_t total_size = r1_size + r2_size; in alloc_from_top_down_no_space_above_check() 166 memblock_reserve(min_addr, r2_size); in alloc_from_top_down_no_space_above_check() 282 phys_addr_t r2_size; in alloc_from_bottom_up_no_space_above_check() local 288 r2_size = memblock_end_of_DRAM() - min_addr; in alloc_from_bottom_up_no_space_above_check() 291 memblock_reserve(min_addr - SMP_CACHE_BYTES, r2_size); in alloc_from_bottom_up_no_space_above_check() 300 ASSERT_EQ(memblock.reserved.total_size, r1_size + r2_size); in alloc_from_bottom_up_no_space_above_check()
|
H A D | basic_api.c | 1233 phys_addr_t r1_size, r2_size, total_size; in memblock_remove_within_check() local 1250 r2_size = (r1.base + r1.size) - (r2.base + r2.size); in memblock_remove_within_check() 1251 total_size = r1_size + r2_size; in memblock_remove_within_check() 1261 ASSERT_EQ(rgn2->size, r2_size); in memblock_remove_within_check() 1661 phys_addr_t r1_size, r2_size, total_size; in memblock_free_within_check() local 1678 r2_size = (r1.base + r1.size) - (r2.base + r2.size); in memblock_free_within_check() 1679 total_size = r1_size + r2_size; in memblock_free_within_check() 1689 ASSERT_EQ(rgn2->size, r2_size); in memblock_free_within_check()
|
H A D | alloc_nid_api.c | 314 phys_addr_t r2_size = SZ_64; in alloc_nid_min_reserved_generic_check() local 315 phys_addr_t total_size = r1_size + r2_size; in alloc_nid_min_reserved_generic_check() 324 min_addr = max_addr - r2_size; in alloc_nid_min_reserved_generic_check() 329 allocated_ptr = run_memblock_alloc_nid(r2_size, SMP_CACHE_BYTES, in alloc_nid_min_reserved_generic_check() 334 assert_mem_content(allocated_ptr, r2_size, alloc_nid_test_flags); in alloc_nid_min_reserved_generic_check() 366 phys_addr_t r2_size = SZ_128; in alloc_nid_max_reserved_generic_check() local 367 phys_addr_t total_size = r1_size + r2_size; in alloc_nid_max_reserved_generic_check() 375 min_addr = max_addr - r2_size; in alloc_nid_max_reserved_generic_check() 379 allocated_ptr = run_memblock_alloc_nid(r2_size, SMP_CACHE_BYTES, in alloc_nid_max_reserved_generic_check() 384 assert_mem_content(allocated_ptr, r2_size, alloc_nid_test_flags); in alloc_nid_max_reserved_generic_check()
|