Home
last modified time | relevance | path

Searched refs:r3_size (Results 1 – 2 of 2) sorted by relevance

/linux/tools/testing/memblock/tests/
H A Dalloc_api.c220 phys_addr_t r3_size = SZ_1K; in alloc_top_down_second_fit_check() local
232 total_size = r1.size + r2.size + r3_size; in alloc_top_down_second_fit_check()
237 allocated_ptr = run_memblock_alloc(r3_size, SMP_CACHE_BYTES); in alloc_top_down_second_fit_check()
240 assert_mem_content(allocated_ptr, r3_size, alloc_test_flags); in alloc_top_down_second_fit_check()
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()
270 phys_addr_t r3_size = SZ_64; in alloc_in_between_generic_check() local
274 phys_addr_t rgn_size = (MEM_SIZE - (2 * gap_size + r3_size)) / 2; in alloc_in_between_generic_check()
286 total_size = r1.size + r2.size + r3_size; in alloc_in_between_generic_check()
291 allocated_ptr = run_memblock_alloc(r3_size, SMP_CACHE_BYTES); in alloc_in_between_generic_check()
[all …]
H A Dalloc_nid_api.c420 phys_addr_t r3_size = SZ_64; in alloc_nid_top_down_reserved_with_space_check() local
433 r2.base = r1.base - (r3_size + gap_size + r2.size); in alloc_nid_top_down_reserved_with_space_check()
435 total_size = r1.size + r2.size + r3_size; in alloc_nid_top_down_reserved_with_space_check()
442 allocated_ptr = run_memblock_alloc_nid(r3_size, SMP_CACHE_BYTES, in alloc_nid_top_down_reserved_with_space_check()
447 assert_mem_content(allocated_ptr, r3_size, alloc_nid_test_flags); in alloc_nid_top_down_reserved_with_space_check()
449 ASSERT_EQ(rgn1->size, r1.size + r3_size); in alloc_nid_top_down_reserved_with_space_check()
450 ASSERT_EQ(rgn1->base, max_addr - r3_size); in alloc_nid_top_down_reserved_with_space_check()
484 phys_addr_t r3_size = SZ_64; in alloc_nid_reserved_full_merge_generic_check() local
496 r2.base = r1.base - (r3_size + r2.size); in alloc_nid_reserved_full_merge_generic_check()
498 total_size = r1.size + r2.size + r3_size; in alloc_nid_reserved_full_merge_generic_check()
[all …]