Searched refs:allocated_ptr (Results 1 – 4 of 4) sorted by relevance
/linux/tools/testing/memblock/tests/ |
H A D | alloc_api.c | 27 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 …]
|
H A D | alloc_nid_api.c | 67 void *allocated_ptr = NULL; in alloc_nid_top_down_simple_check() local 79 allocated_ptr = run_memblock_alloc_nid(size, SMP_CACHE_BYTES, in alloc_nid_top_down_simple_check() 84 ASSERT_NE(allocated_ptr, NULL); in alloc_nid_top_down_simple_check() 85 assert_mem_content(allocated_ptr, size, alloc_nid_test_flags); in alloc_nid_top_down_simple_check() 119 void *allocated_ptr = NULL; in alloc_nid_top_down_end_misaligned_check() local 132 allocated_ptr = run_memblock_alloc_nid(size, SMP_CACHE_BYTES, in alloc_nid_top_down_end_misaligned_check() 137 ASSERT_NE(allocated_ptr, NULL); in alloc_nid_top_down_end_misaligned_check() 138 assert_mem_content(allocated_ptr, size, alloc_nid_test_flags); in alloc_nid_top_down_end_misaligned_check() 170 void *allocated_ptr = NULL; in alloc_nid_exact_address_generic_check() local 182 allocated_ptr = run_memblock_alloc_nid(size, SMP_CACHE_BYTES, in alloc_nid_exact_address_generic_check() [all …]
|
H A D | alloc_exact_nid_api.c | 32 void *allocated_ptr = NULL; in alloc_exact_nid_top_down_numa_simple_check() local 45 allocated_ptr = memblock_alloc_exact_nid_raw(size, SMP_CACHE_BYTES, in alloc_exact_nid_top_down_numa_simple_check() 49 ASSERT_NE(allocated_ptr, NULL); in alloc_exact_nid_top_down_numa_simple_check() 50 ASSERT_MEM_NE(allocated_ptr, 0, size); in alloc_exact_nid_top_down_numa_simple_check() 84 void *allocated_ptr = NULL; in alloc_exact_nid_top_down_numa_part_reserved_check() local 101 allocated_ptr = memblock_alloc_exact_nid_raw(size, SMP_CACHE_BYTES, in alloc_exact_nid_top_down_numa_part_reserved_check() 105 ASSERT_NE(allocated_ptr, NULL); in alloc_exact_nid_top_down_numa_part_reserved_check() 106 ASSERT_MEM_NE(allocated_ptr, 0, size); in alloc_exact_nid_top_down_numa_part_reserved_check() 145 void *allocated_ptr = NULL; in alloc_exact_nid_top_down_numa_split_range_low_check() local 158 allocated_ptr = memblock_alloc_exact_nid_raw(size, SMP_CACHE_BYTES, in alloc_exact_nid_top_down_numa_split_range_low_check() [all …]
|
H A D | alloc_helpers_api.c | 21 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 …]
|