Home
last modified time | relevance | path

Searched refs:allocated_ptr (Results 1 – 3 of 3) sorted by relevance

/linux-6.1.9/tools/testing/memblock/tests/
Dalloc_api.c27 void *allocated_ptr = NULL; in alloc_top_down_simple_check() local
36 allocated_ptr = run_memblock_alloc(size, SMP_CACHE_BYTES); in alloc_top_down_simple_check()
38 ASSERT_NE(allocated_ptr, NULL); in alloc_top_down_simple_check()
39 assert_mem_content(allocated_ptr, size, alloc_test_flags); in alloc_top_down_simple_check()
76 void *allocated_ptr = NULL; in alloc_top_down_disjoint_check() local
94 allocated_ptr = run_memblock_alloc(r2_size, alignment); in alloc_top_down_disjoint_check()
96 ASSERT_NE(allocated_ptr, NULL); in alloc_top_down_disjoint_check()
97 assert_mem_content(allocated_ptr, r2_size, alloc_test_flags); in alloc_top_down_disjoint_check()
126 void *allocated_ptr = NULL; in alloc_top_down_before_check() local
139 allocated_ptr = run_memblock_alloc(r2_size, SMP_CACHE_BYTES); in alloc_top_down_before_check()
[all …]
Dalloc_nid_api.c56 void *allocated_ptr = NULL; in alloc_try_nid_top_down_simple_check() local
68 allocated_ptr = run_memblock_alloc_try_nid(size, SMP_CACHE_BYTES, in alloc_try_nid_top_down_simple_check()
73 ASSERT_NE(allocated_ptr, NULL); in alloc_try_nid_top_down_simple_check()
74 assert_mem_content(allocated_ptr, size, alloc_nid_test_flags); in alloc_try_nid_top_down_simple_check()
108 void *allocated_ptr = NULL; in alloc_try_nid_top_down_end_misaligned_check() local
121 allocated_ptr = run_memblock_alloc_try_nid(size, SMP_CACHE_BYTES, in alloc_try_nid_top_down_end_misaligned_check()
126 ASSERT_NE(allocated_ptr, NULL); in alloc_try_nid_top_down_end_misaligned_check()
127 assert_mem_content(allocated_ptr, size, alloc_nid_test_flags); in alloc_try_nid_top_down_end_misaligned_check()
159 void *allocated_ptr = NULL; in alloc_try_nid_exact_address_generic_check() local
171 allocated_ptr = run_memblock_alloc_try_nid(size, SMP_CACHE_BYTES, in alloc_try_nid_exact_address_generic_check()
[all …]
Dalloc_helpers_api.c21 void *allocated_ptr = NULL; in alloc_from_simple_generic_check() local
30 allocated_ptr = memblock_alloc_from(size, SMP_CACHE_BYTES, min_addr); in alloc_from_simple_generic_check()
32 ASSERT_NE(allocated_ptr, NULL); in alloc_from_simple_generic_check()
33 ASSERT_MEM_EQ(allocated_ptr, 0, size); in alloc_from_simple_generic_check()
64 void *allocated_ptr = NULL; in alloc_from_misaligned_generic_check() local
74 allocated_ptr = memblock_alloc_from(size, SMP_CACHE_BYTES, min_addr); in alloc_from_misaligned_generic_check()
76 ASSERT_NE(allocated_ptr, NULL); in alloc_from_misaligned_generic_check()
77 ASSERT_MEM_EQ(allocated_ptr, 0, size); in alloc_from_misaligned_generic_check()
111 void *allocated_ptr = NULL; in alloc_from_top_down_high_addr_check() local
121 allocated_ptr = memblock_alloc_from(size, SMP_CACHE_BYTES, min_addr); in alloc_from_top_down_high_addr_check()
[all …]