Lines Matching refs:allocated_ptr

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()
187 ASSERT_NE(allocated_ptr, NULL); in alloc_nid_exact_address_generic_check()
188 assert_mem_content(allocated_ptr, size, alloc_nid_test_flags); in alloc_nid_exact_address_generic_check()
222 void *allocated_ptr = NULL; in alloc_nid_top_down_narrow_range_check() local
233 allocated_ptr = run_memblock_alloc_nid(size, SMP_CACHE_BYTES, in alloc_nid_top_down_narrow_range_check()
237 ASSERT_NE(allocated_ptr, NULL); in alloc_nid_top_down_narrow_range_check()
238 assert_mem_content(allocated_ptr, size, alloc_nid_test_flags); in alloc_nid_top_down_narrow_range_check()
273 void *allocated_ptr = NULL; in alloc_nid_low_max_generic_check() local
284 allocated_ptr = run_memblock_alloc_nid(size, SMP_CACHE_BYTES, in alloc_nid_low_max_generic_check()
288 ASSERT_EQ(allocated_ptr, NULL); in alloc_nid_low_max_generic_check()
312 void *allocated_ptr = NULL; in alloc_nid_min_reserved_generic_check() local
329 allocated_ptr = run_memblock_alloc_nid(r2_size, SMP_CACHE_BYTES, in alloc_nid_min_reserved_generic_check()
333 ASSERT_NE(allocated_ptr, NULL); in alloc_nid_min_reserved_generic_check()
334 assert_mem_content(allocated_ptr, r2_size, alloc_nid_test_flags); in alloc_nid_min_reserved_generic_check()
364 void *allocated_ptr = NULL; in alloc_nid_max_reserved_generic_check() local
379 allocated_ptr = run_memblock_alloc_nid(r2_size, SMP_CACHE_BYTES, in alloc_nid_max_reserved_generic_check()
383 ASSERT_NE(allocated_ptr, NULL); in alloc_nid_max_reserved_generic_check()
384 assert_mem_content(allocated_ptr, r2_size, alloc_nid_test_flags); in alloc_nid_max_reserved_generic_check()
418 void *allocated_ptr = NULL; in alloc_nid_top_down_reserved_with_space_check() local
442 allocated_ptr = run_memblock_alloc_nid(r3_size, SMP_CACHE_BYTES, in alloc_nid_top_down_reserved_with_space_check()
446 ASSERT_NE(allocated_ptr, NULL); 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()
482 void *allocated_ptr = NULL; in alloc_nid_reserved_full_merge_generic_check() local
505 allocated_ptr = run_memblock_alloc_nid(r3_size, SMP_CACHE_BYTES, in alloc_nid_reserved_full_merge_generic_check()
509 ASSERT_NE(allocated_ptr, NULL); in alloc_nid_reserved_full_merge_generic_check()
510 assert_mem_content(allocated_ptr, r3_size, alloc_nid_test_flags); in alloc_nid_reserved_full_merge_generic_check()
545 void *allocated_ptr = NULL; in alloc_nid_top_down_reserved_no_space_check() local
569 allocated_ptr = run_memblock_alloc_nid(r3_size, SMP_CACHE_BYTES, in alloc_nid_top_down_reserved_no_space_check()
573 ASSERT_NE(allocated_ptr, NULL); in alloc_nid_top_down_reserved_no_space_check()
574 assert_mem_content(allocated_ptr, r3_size, alloc_nid_test_flags); in alloc_nid_top_down_reserved_no_space_check()
612 void *allocated_ptr = NULL; in alloc_nid_reserved_all_generic_check() local
634 allocated_ptr = run_memblock_alloc_nid(r3_size, SMP_CACHE_BYTES, in alloc_nid_reserved_all_generic_check()
638 ASSERT_EQ(allocated_ptr, NULL); in alloc_nid_reserved_all_generic_check()
653 void *allocated_ptr = NULL; in alloc_nid_top_down_cap_max_check() local
664 allocated_ptr = run_memblock_alloc_nid(size, SMP_CACHE_BYTES, in alloc_nid_top_down_cap_max_check()
668 ASSERT_NE(allocated_ptr, NULL); in alloc_nid_top_down_cap_max_check()
669 assert_mem_content(allocated_ptr, size, alloc_nid_test_flags); in alloc_nid_top_down_cap_max_check()
690 void *allocated_ptr = NULL; in alloc_nid_top_down_cap_min_check() local
701 allocated_ptr = run_memblock_alloc_nid(size, SMP_CACHE_BYTES, in alloc_nid_top_down_cap_min_check()
705 ASSERT_NE(allocated_ptr, NULL); in alloc_nid_top_down_cap_min_check()
706 assert_mem_content(allocated_ptr, size, alloc_nid_test_flags); in alloc_nid_top_down_cap_min_check()
736 void *allocated_ptr = NULL; in alloc_nid_bottom_up_simple_check() local
748 allocated_ptr = run_memblock_alloc_nid(size, SMP_CACHE_BYTES, in alloc_nid_bottom_up_simple_check()
753 ASSERT_NE(allocated_ptr, NULL); in alloc_nid_bottom_up_simple_check()
754 assert_mem_content(allocated_ptr, size, alloc_nid_test_flags); in alloc_nid_bottom_up_simple_check()
788 void *allocated_ptr = NULL; in alloc_nid_bottom_up_start_misaligned_check() local
801 allocated_ptr = run_memblock_alloc_nid(size, SMP_CACHE_BYTES, in alloc_nid_bottom_up_start_misaligned_check()
806 ASSERT_NE(allocated_ptr, NULL); in alloc_nid_bottom_up_start_misaligned_check()
807 assert_mem_content(allocated_ptr, size, alloc_nid_test_flags); in alloc_nid_bottom_up_start_misaligned_check()
841 void *allocated_ptr = NULL; in alloc_nid_bottom_up_narrow_range_check() local
852 allocated_ptr = run_memblock_alloc_nid(size, SMP_CACHE_BYTES, in alloc_nid_bottom_up_narrow_range_check()
856 ASSERT_NE(allocated_ptr, NULL); in alloc_nid_bottom_up_narrow_range_check()
857 assert_mem_content(allocated_ptr, size, alloc_nid_test_flags); in alloc_nid_bottom_up_narrow_range_check()
891 void *allocated_ptr = NULL; in alloc_nid_bottom_up_reserved_with_space_check() local
915 allocated_ptr = run_memblock_alloc_nid(r3_size, SMP_CACHE_BYTES, in alloc_nid_bottom_up_reserved_with_space_check()
919 ASSERT_NE(allocated_ptr, NULL); in alloc_nid_bottom_up_reserved_with_space_check()
920 assert_mem_content(allocated_ptr, r3_size, alloc_nid_test_flags); in alloc_nid_bottom_up_reserved_with_space_check()
961 void *allocated_ptr = NULL; in alloc_nid_bottom_up_reserved_no_space_check() local
985 allocated_ptr = run_memblock_alloc_nid(r3_size, SMP_CACHE_BYTES, in alloc_nid_bottom_up_reserved_no_space_check()
989 ASSERT_NE(allocated_ptr, NULL); in alloc_nid_bottom_up_reserved_no_space_check()
990 assert_mem_content(allocated_ptr, r3_size, alloc_nid_test_flags); in alloc_nid_bottom_up_reserved_no_space_check()
1017 void *allocated_ptr = NULL; in alloc_nid_bottom_up_cap_max_check() local
1028 allocated_ptr = run_memblock_alloc_nid(size, SMP_CACHE_BYTES, in alloc_nid_bottom_up_cap_max_check()
1032 ASSERT_NE(allocated_ptr, NULL); in alloc_nid_bottom_up_cap_max_check()
1033 assert_mem_content(allocated_ptr, size, alloc_nid_test_flags); in alloc_nid_bottom_up_cap_max_check()
1054 void *allocated_ptr = NULL; in alloc_nid_bottom_up_cap_min_check() local
1065 allocated_ptr = run_memblock_alloc_nid(size, SMP_CACHE_BYTES, in alloc_nid_bottom_up_cap_min_check()
1069 ASSERT_NE(allocated_ptr, NULL); in alloc_nid_bottom_up_cap_min_check()
1070 assert_mem_content(allocated_ptr, size, alloc_nid_test_flags); in alloc_nid_bottom_up_cap_min_check()
1248 void *allocated_ptr = NULL; in alloc_nid_top_down_numa_simple_check() local
1261 allocated_ptr = run_memblock_alloc_nid(size, SMP_CACHE_BYTES, in alloc_nid_top_down_numa_simple_check()
1264 ASSERT_NE(allocated_ptr, NULL); in alloc_nid_top_down_numa_simple_check()
1265 assert_mem_content(allocated_ptr, size, alloc_nid_test_flags); in alloc_nid_top_down_numa_simple_check()
1301 void *allocated_ptr = NULL; in alloc_nid_top_down_numa_small_node_check() local
1313 allocated_ptr = run_memblock_alloc_nid(size, SMP_CACHE_BYTES, in alloc_nid_top_down_numa_small_node_check()
1316 ASSERT_NE(allocated_ptr, NULL); in alloc_nid_top_down_numa_small_node_check()
1317 assert_mem_content(allocated_ptr, size, alloc_nid_test_flags); in alloc_nid_top_down_numa_small_node_check()
1354 void *allocated_ptr = NULL; in alloc_nid_top_down_numa_node_reserved_check() local
1367 allocated_ptr = run_memblock_alloc_nid(size, SMP_CACHE_BYTES, in alloc_nid_top_down_numa_node_reserved_check()
1370 ASSERT_NE(allocated_ptr, NULL); in alloc_nid_top_down_numa_node_reserved_check()
1371 assert_mem_content(allocated_ptr, size, alloc_nid_test_flags); in alloc_nid_top_down_numa_node_reserved_check()
1405 void *allocated_ptr = NULL; in alloc_nid_top_down_numa_part_reserved_check() local
1422 allocated_ptr = run_memblock_alloc_nid(size, SMP_CACHE_BYTES, in alloc_nid_top_down_numa_part_reserved_check()
1425 ASSERT_NE(allocated_ptr, NULL); in alloc_nid_top_down_numa_part_reserved_check()
1426 assert_mem_content(allocated_ptr, size, alloc_nid_test_flags); in alloc_nid_top_down_numa_part_reserved_check()
1465 void *allocated_ptr = NULL; in alloc_nid_top_down_numa_part_reserved_fallback_check() local
1483 allocated_ptr = run_memblock_alloc_nid(size, SMP_CACHE_BYTES, in alloc_nid_top_down_numa_part_reserved_fallback_check()
1486 ASSERT_NE(allocated_ptr, NULL); in alloc_nid_top_down_numa_part_reserved_fallback_check()
1487 assert_mem_content(allocated_ptr, size, alloc_nid_test_flags); in alloc_nid_top_down_numa_part_reserved_fallback_check()
1526 void *allocated_ptr = NULL; in alloc_nid_top_down_numa_split_range_low_check() local
1539 allocated_ptr = run_memblock_alloc_nid(size, SMP_CACHE_BYTES, in alloc_nid_top_down_numa_split_range_low_check()
1542 ASSERT_NE(allocated_ptr, NULL); in alloc_nid_top_down_numa_split_range_low_check()
1543 assert_mem_content(allocated_ptr, size, alloc_nid_test_flags); in alloc_nid_top_down_numa_split_range_low_check()
1583 void *allocated_ptr = NULL; in alloc_nid_top_down_numa_split_range_high_check() local
1596 allocated_ptr = run_memblock_alloc_nid(size, SMP_CACHE_BYTES, in alloc_nid_top_down_numa_split_range_high_check()
1599 ASSERT_NE(allocated_ptr, NULL); in alloc_nid_top_down_numa_split_range_high_check()
1600 assert_mem_content(allocated_ptr, size, alloc_nid_test_flags); in alloc_nid_top_down_numa_split_range_high_check()
1640 void *allocated_ptr = NULL; in alloc_nid_top_down_numa_no_overlap_split_check() local
1652 allocated_ptr = run_memblock_alloc_nid(size, SMP_CACHE_BYTES, in alloc_nid_top_down_numa_no_overlap_split_check()
1655 ASSERT_NE(allocated_ptr, NULL); in alloc_nid_top_down_numa_no_overlap_split_check()
1656 assert_mem_content(allocated_ptr, size, alloc_nid_test_flags); in alloc_nid_top_down_numa_no_overlap_split_check()
1697 void *allocated_ptr = NULL; in alloc_nid_top_down_numa_no_overlap_low_check() local
1708 allocated_ptr = run_memblock_alloc_nid(size, SMP_CACHE_BYTES, in alloc_nid_top_down_numa_no_overlap_low_check()
1711 ASSERT_NE(allocated_ptr, NULL); in alloc_nid_top_down_numa_no_overlap_low_check()
1712 assert_mem_content(allocated_ptr, size, alloc_nid_test_flags); in alloc_nid_top_down_numa_no_overlap_low_check()
1753 void *allocated_ptr = NULL; in alloc_nid_top_down_numa_no_overlap_high_check() local
1764 allocated_ptr = run_memblock_alloc_nid(size, SMP_CACHE_BYTES, in alloc_nid_top_down_numa_no_overlap_high_check()
1767 ASSERT_NE(allocated_ptr, NULL); in alloc_nid_top_down_numa_no_overlap_high_check()
1768 assert_mem_content(allocated_ptr, size, alloc_nid_test_flags); in alloc_nid_top_down_numa_no_overlap_high_check()
1792 void *allocated_ptr = NULL; in alloc_nid_bottom_up_numa_simple_check() local
1805 allocated_ptr = run_memblock_alloc_nid(size, SMP_CACHE_BYTES, in alloc_nid_bottom_up_numa_simple_check()
1808 ASSERT_NE(allocated_ptr, NULL); in alloc_nid_bottom_up_numa_simple_check()
1809 assert_mem_content(allocated_ptr, size, alloc_nid_test_flags); in alloc_nid_bottom_up_numa_simple_check()
1845 void *allocated_ptr = NULL; in alloc_nid_bottom_up_numa_small_node_check() local
1857 allocated_ptr = run_memblock_alloc_nid(size, SMP_CACHE_BYTES, in alloc_nid_bottom_up_numa_small_node_check()
1860 ASSERT_NE(allocated_ptr, NULL); in alloc_nid_bottom_up_numa_small_node_check()
1861 assert_mem_content(allocated_ptr, size, alloc_nid_test_flags); in alloc_nid_bottom_up_numa_small_node_check()
1899 void *allocated_ptr = NULL; in alloc_nid_bottom_up_numa_node_reserved_check() local
1912 allocated_ptr = run_memblock_alloc_nid(size, SMP_CACHE_BYTES, in alloc_nid_bottom_up_numa_node_reserved_check()
1915 ASSERT_NE(allocated_ptr, NULL); in alloc_nid_bottom_up_numa_node_reserved_check()
1916 assert_mem_content(allocated_ptr, size, alloc_nid_test_flags); in alloc_nid_bottom_up_numa_node_reserved_check()
1950 void *allocated_ptr = NULL; in alloc_nid_bottom_up_numa_part_reserved_check() local
1969 allocated_ptr = run_memblock_alloc_nid(size, SMP_CACHE_BYTES, in alloc_nid_bottom_up_numa_part_reserved_check()
1972 ASSERT_NE(allocated_ptr, NULL); in alloc_nid_bottom_up_numa_part_reserved_check()
1973 assert_mem_content(allocated_ptr, size, alloc_nid_test_flags); in alloc_nid_bottom_up_numa_part_reserved_check()
2012 void *allocated_ptr = NULL; in alloc_nid_bottom_up_numa_part_reserved_fallback_check() local
2030 allocated_ptr = run_memblock_alloc_nid(size, SMP_CACHE_BYTES, in alloc_nid_bottom_up_numa_part_reserved_fallback_check()
2033 ASSERT_NE(allocated_ptr, NULL); in alloc_nid_bottom_up_numa_part_reserved_fallback_check()
2034 assert_mem_content(allocated_ptr, size, alloc_nid_test_flags); in alloc_nid_bottom_up_numa_part_reserved_fallback_check()
2073 void *allocated_ptr = NULL; in alloc_nid_bottom_up_numa_split_range_low_check() local
2086 allocated_ptr = run_memblock_alloc_nid(size, SMP_CACHE_BYTES, in alloc_nid_bottom_up_numa_split_range_low_check()
2089 ASSERT_NE(allocated_ptr, NULL); in alloc_nid_bottom_up_numa_split_range_low_check()
2090 assert_mem_content(allocated_ptr, size, alloc_nid_test_flags); in alloc_nid_bottom_up_numa_split_range_low_check()
2131 void *allocated_ptr = NULL; in alloc_nid_bottom_up_numa_split_range_high_check() local
2144 allocated_ptr = run_memblock_alloc_nid(size, SMP_CACHE_BYTES, in alloc_nid_bottom_up_numa_split_range_high_check()
2147 ASSERT_NE(allocated_ptr, NULL); in alloc_nid_bottom_up_numa_split_range_high_check()
2148 assert_mem_content(allocated_ptr, size, alloc_nid_test_flags); in alloc_nid_bottom_up_numa_split_range_high_check()
2188 void *allocated_ptr = NULL; in alloc_nid_bottom_up_numa_no_overlap_split_check() local
2200 allocated_ptr = run_memblock_alloc_nid(size, SMP_CACHE_BYTES, in alloc_nid_bottom_up_numa_no_overlap_split_check()
2203 ASSERT_NE(allocated_ptr, NULL); in alloc_nid_bottom_up_numa_no_overlap_split_check()
2204 assert_mem_content(allocated_ptr, size, alloc_nid_test_flags); in alloc_nid_bottom_up_numa_no_overlap_split_check()
2245 void *allocated_ptr = NULL; in alloc_nid_bottom_up_numa_no_overlap_low_check() local
2256 allocated_ptr = run_memblock_alloc_nid(size, SMP_CACHE_BYTES, in alloc_nid_bottom_up_numa_no_overlap_low_check()
2259 ASSERT_NE(allocated_ptr, NULL); in alloc_nid_bottom_up_numa_no_overlap_low_check()
2260 assert_mem_content(allocated_ptr, size, alloc_nid_test_flags); in alloc_nid_bottom_up_numa_no_overlap_low_check()
2301 void *allocated_ptr = NULL; in alloc_nid_bottom_up_numa_no_overlap_high_check() local
2312 allocated_ptr = run_memblock_alloc_nid(size, SMP_CACHE_BYTES, in alloc_nid_bottom_up_numa_no_overlap_high_check()
2315 ASSERT_NE(allocated_ptr, NULL); in alloc_nid_bottom_up_numa_no_overlap_high_check()
2316 assert_mem_content(allocated_ptr, size, alloc_nid_test_flags); in alloc_nid_bottom_up_numa_no_overlap_high_check()
2347 void *allocated_ptr = NULL; in alloc_nid_numa_large_region_generic_check() local
2358 allocated_ptr = run_memblock_alloc_nid(size, SMP_CACHE_BYTES, in alloc_nid_numa_large_region_generic_check()
2360 ASSERT_EQ(allocated_ptr, NULL); in alloc_nid_numa_large_region_generic_check()
2395 void *allocated_ptr = NULL; in alloc_nid_numa_reserved_full_merge_generic_check() local
2418 allocated_ptr = run_memblock_alloc_nid(size, SMP_CACHE_BYTES, in alloc_nid_numa_reserved_full_merge_generic_check()
2421 ASSERT_NE(allocated_ptr, NULL); in alloc_nid_numa_reserved_full_merge_generic_check()
2422 assert_mem_content(allocated_ptr, size, alloc_nid_test_flags); in alloc_nid_numa_reserved_full_merge_generic_check()
2464 void *allocated_ptr = NULL; in alloc_nid_numa_split_all_reserved_generic_check() local
2486 allocated_ptr = run_memblock_alloc_nid(size, SMP_CACHE_BYTES, in alloc_nid_numa_split_all_reserved_generic_check()
2490 ASSERT_EQ(allocated_ptr, NULL); in alloc_nid_numa_split_all_reserved_generic_check()
2505 void *allocated_ptr = NULL; in alloc_node_on_correct_nid() local
2514 allocated_ptr = memblock_alloc_node(size, SMP_CACHE_BYTES, nid_req); in alloc_node_on_correct_nid()
2516 ASSERT_NE(allocated_ptr, NULL); in alloc_node_on_correct_nid()