Searched refs:r1_size (Results 1 – 4 of 4) sorted by relevance
/linux/tools/testing/memblock/tests/ |
H A D | alloc_helpers_api.c | 155 phys_addr_t r1_size = SZ_64; 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() 168 allocated_ptr = memblock_alloc_from(r1_size, SMP_CACHE_BYTES, min_addr); in alloc_from_top_down_no_space_above_check() 171 ASSERT_EQ(rgn->base, min_addr - r1_size); in alloc_from_top_down_no_space_above_check() 192 phys_addr_t r1_size = SZ_64; in alloc_from_top_down_min_addr_cap_check() local 202 memblock_reserve(start_addr + r1_size, MEM_SIZE - r1_size); in alloc_from_top_down_min_addr_cap_check() 204 allocated_ptr = memblock_alloc_from(r1_size, SMP_CACHE_BYTES, min_addr); in alloc_from_top_down_min_addr_cap_check() 280 phys_addr_t r1_size = SZ_64; in alloc_from_bottom_up_no_space_above_check() local 293 allocated_ptr = memblock_alloc_from(r1_size, SMP_CACHE_BYTES, min_addr); in alloc_from_bottom_up_no_space_above_check() 297 ASSERT_EQ(rgn->size, r1_size); in alloc_from_bottom_up_no_space_above_check() [all …]
|
H A D | alloc_api.c | 130 phys_addr_t r1_size = SMP_CACHE_BYTES; in alloc_top_down_before_check() local 132 phys_addr_t total_size = r1_size + r2_size; in alloc_top_down_before_check() 137 memblock_reserve(memblock_end_of_DRAM() - total_size, r1_size); in alloc_top_down_before_check() 604 phys_addr_t r1_size = SZ_512; in alloc_bottom_up_before_check() local 606 phys_addr_t total_size = r1_size + r2_size; in alloc_bottom_up_before_check() 611 memblock_reserve(memblock_start_of_DRAM() + r1_size, r2_size); in alloc_bottom_up_before_check() 613 allocated_ptr = run_memblock_alloc(r1_size, SMP_CACHE_BYTES); in alloc_bottom_up_before_check() 616 assert_mem_content(allocated_ptr, r1_size, alloc_test_flags); in alloc_bottom_up_before_check()
|
H A D | basic_api.c | 1491 phys_addr_t r1_size, r2_size, total_size; in memblock_remove_within_check() local 1507 r1_size = r2.base - r1.base; in memblock_remove_within_check() 1509 total_size = r1_size + r2_size; in memblock_remove_within_check() 1516 ASSERT_EQ(rgn1->size, r1_size); in memblock_remove_within_check() 1919 phys_addr_t r1_size, r2_size, total_size; in memblock_free_within_check() local 1935 r1_size = r2.base - r1.base; in memblock_free_within_check() 1937 total_size = r1_size + r2_size; in memblock_free_within_check() 1944 ASSERT_EQ(rgn1->size, r1_size); in memblock_free_within_check()
|
H A D | alloc_nid_api.c | 313 phys_addr_t r1_size = SZ_128; 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() 325 reserved_base = min_addr - r1_size; in alloc_nid_min_reserved_generic_check() 327 memblock_reserve(reserved_base, r1_size); in alloc_nid_min_reserved_generic_check() 365 phys_addr_t r1_size = SZ_64; 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() 374 max_addr = memblock_end_of_DRAM() - r1_size; in alloc_nid_max_reserved_generic_check() 377 memblock_reserve(max_addr, r1_size); in alloc_nid_max_reserved_generic_check()
|