Lines Matching refs:allocated_ptr

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()
141 ASSERT_NE(allocated_ptr, NULL); in alloc_top_down_before_check()
142 assert_mem_content(allocated_ptr, r2_size, alloc_test_flags); in alloc_top_down_before_check()
170 void *allocated_ptr = NULL; in alloc_top_down_after_check() local
187 allocated_ptr = run_memblock_alloc(r2_size, SMP_CACHE_BYTES); in alloc_top_down_after_check()
189 ASSERT_NE(allocated_ptr, NULL); in alloc_top_down_after_check()
190 assert_mem_content(allocated_ptr, r2_size, alloc_test_flags); in alloc_top_down_after_check()
219 void *allocated_ptr = NULL; in alloc_top_down_second_fit_check() local
237 allocated_ptr = run_memblock_alloc(r3_size, SMP_CACHE_BYTES); in alloc_top_down_second_fit_check()
239 ASSERT_NE(allocated_ptr, NULL); 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()
268 void *allocated_ptr = NULL; in alloc_in_between_generic_check() local
291 allocated_ptr = run_memblock_alloc(r3_size, SMP_CACHE_BYTES); in alloc_in_between_generic_check()
293 ASSERT_NE(allocated_ptr, NULL); in alloc_in_between_generic_check()
294 assert_mem_content(allocated_ptr, r3_size, alloc_test_flags); in alloc_in_between_generic_check()
322 void *allocated_ptr = NULL; in alloc_small_gaps_generic_check() local
337 allocated_ptr = run_memblock_alloc(region_size, SMP_CACHE_BYTES); in alloc_small_gaps_generic_check()
339 ASSERT_EQ(allocated_ptr, NULL); in alloc_small_gaps_generic_check()
352 void *allocated_ptr = NULL; in alloc_all_reserved_generic_check() local
360 allocated_ptr = run_memblock_alloc(SZ_256, SMP_CACHE_BYTES); in alloc_all_reserved_generic_check()
362 ASSERT_EQ(allocated_ptr, NULL); in alloc_all_reserved_generic_check()
384 void *allocated_ptr = NULL; in alloc_no_space_generic_check() local
394 allocated_ptr = run_memblock_alloc(SZ_1K, SMP_CACHE_BYTES); in alloc_no_space_generic_check()
396 ASSERT_EQ(allocated_ptr, NULL); in alloc_no_space_generic_check()
417 void *allocated_ptr = NULL; in alloc_limited_space_generic_check() local
427 allocated_ptr = run_memblock_alloc(available_size, SMP_CACHE_BYTES); in alloc_limited_space_generic_check()
429 ASSERT_NE(allocated_ptr, NULL); in alloc_limited_space_generic_check()
430 assert_mem_content(allocated_ptr, available_size, alloc_test_flags); in alloc_limited_space_generic_check()
451 void *allocated_ptr = NULL; in alloc_no_memory_generic_check() local
457 allocated_ptr = run_memblock_alloc(SZ_1K, SMP_CACHE_BYTES); in alloc_no_memory_generic_check()
459 ASSERT_EQ(allocated_ptr, NULL); in alloc_no_memory_generic_check()
485 void *allocated_ptr = NULL; in alloc_too_large_generic_check() local
490 allocated_ptr = run_memblock_alloc(MEM_SIZE + SZ_2, SMP_CACHE_BYTES); in alloc_too_large_generic_check()
492 ASSERT_EQ(allocated_ptr, NULL); in alloc_too_large_generic_check()
510 void *allocated_ptr = NULL; in alloc_bottom_up_simple_check() local
515 allocated_ptr = run_memblock_alloc(SZ_2, SMP_CACHE_BYTES); in alloc_bottom_up_simple_check()
517 ASSERT_NE(allocated_ptr, NULL); in alloc_bottom_up_simple_check()
518 assert_mem_content(allocated_ptr, SZ_2, alloc_test_flags); in alloc_bottom_up_simple_check()
553 void *allocated_ptr = NULL; in alloc_bottom_up_disjoint_check() local
571 allocated_ptr = run_memblock_alloc(r2_size, alignment); in alloc_bottom_up_disjoint_check()
573 ASSERT_NE(allocated_ptr, NULL); in alloc_bottom_up_disjoint_check()
574 assert_mem_content(allocated_ptr, r2_size, alloc_test_flags); in alloc_bottom_up_disjoint_check()
603 void *allocated_ptr = NULL; in alloc_bottom_up_before_check() local
613 allocated_ptr = run_memblock_alloc(r1_size, SMP_CACHE_BYTES); in alloc_bottom_up_before_check()
615 ASSERT_NE(allocated_ptr, NULL); in alloc_bottom_up_before_check()
616 assert_mem_content(allocated_ptr, r1_size, alloc_test_flags); in alloc_bottom_up_before_check()
643 void *allocated_ptr = NULL; in alloc_bottom_up_after_check() local
660 allocated_ptr = run_memblock_alloc(r2_size, SMP_CACHE_BYTES); in alloc_bottom_up_after_check()
662 ASSERT_NE(allocated_ptr, NULL); in alloc_bottom_up_after_check()
663 assert_mem_content(allocated_ptr, r2_size, alloc_test_flags); in alloc_bottom_up_after_check()
693 void *allocated_ptr = NULL; in alloc_bottom_up_second_fit_check() local
711 allocated_ptr = run_memblock_alloc(r3_size, SMP_CACHE_BYTES); in alloc_bottom_up_second_fit_check()
713 ASSERT_NE(allocated_ptr, NULL); in alloc_bottom_up_second_fit_check()
714 assert_mem_content(allocated_ptr, r3_size, alloc_test_flags); in alloc_bottom_up_second_fit_check()