Home
last modified time | relevance | path

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

/linux-6.1.9/tools/testing/memblock/tests/
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 …]
Dalloc_nid_api.c409 phys_addr_t r3_size = SZ_64; in alloc_try_nid_top_down_reserved_with_space_check() local
422 r2.base = r1.base - (r3_size + gap_size + r2.size); in alloc_try_nid_top_down_reserved_with_space_check()
424 total_size = r1.size + r2.size + r3_size; in alloc_try_nid_top_down_reserved_with_space_check()
431 allocated_ptr = run_memblock_alloc_try_nid(r3_size, SMP_CACHE_BYTES, in alloc_try_nid_top_down_reserved_with_space_check()
436 assert_mem_content(allocated_ptr, r3_size, alloc_nid_test_flags); in alloc_try_nid_top_down_reserved_with_space_check()
438 ASSERT_EQ(rgn1->size, r1.size + r3_size); in alloc_try_nid_top_down_reserved_with_space_check()
439 ASSERT_EQ(rgn1->base, max_addr - r3_size); in alloc_try_nid_top_down_reserved_with_space_check()
473 phys_addr_t r3_size = SZ_64; in alloc_try_nid_reserved_full_merge_generic_check() local
485 r2.base = r1.base - (r3_size + r2.size); in alloc_try_nid_reserved_full_merge_generic_check()
487 total_size = r1.size + r2.size + r3_size; in alloc_try_nid_reserved_full_merge_generic_check()
[all …]