Lines Matching defs:test_alloc
244 static void *test_alloc(struct kunit *test, size_t size, gfp_t gfp, enum allocation_policy policy)
339 buf = test_alloc(test, size, GFP_KERNEL, ALLOCATE_LEFT);
345 buf = test_alloc(test, size, GFP_KERNEL, ALLOCATE_RIGHT);
363 buf = test_alloc(test, size, GFP_KERNEL, ALLOCATE_LEFT);
380 expect.addr = test_alloc(test, size, GFP_KERNEL, ALLOCATE_ANY);
395 expect.addr = test_alloc(test, size, GFP_KERNEL, ALLOCATE_ANY);
411 buf = test_alloc(test, size, GFP_KERNEL, ALLOCATE_ANY);
431 buf = test_alloc(test, size, GFP_KERNEL, ALLOCATE_LEFT);
437 buf = test_alloc(test, size, GFP_KERNEL, ALLOCATE_RIGHT);
465 buf = test_alloc(test, size, GFP_KERNEL, ALLOCATE_RIGHT);
498 buf = test_alloc(test, size, GFP_KERNEL, ALLOCATE_RIGHT);
518 buf = test_alloc(test, size, GFP_KERNEL, ALLOCATE_ANY);
540 test_alloc(test, size, GFP_KERNEL, ALLOCATE_RIGHT),
541 test_alloc(test, size, GFP_KERNEL, ALLOCATE_NONE),
542 test_alloc(test, size, GFP_KERNEL, ALLOCATE_LEFT),
543 test_alloc(test, size, GFP_KERNEL, ALLOCATE_NONE),
544 test_alloc(test, size, GFP_KERNEL, ALLOCATE_NONE),
568 expect.addr = test_alloc(test, size, GFP_KERNEL, ALLOCATE_ANY);
594 buf = test_alloc(test, size, GFP_KERNEL, ALLOCATE_ANY);
615 buf1 = test_alloc(test, size, GFP_KERNEL, ALLOCATE_ANY);
622 buf2 = test_alloc(test, size, GFP_KERNEL | __GFP_ZERO, ALLOCATE_ANY);
668 expect.addr = test_alloc(test, size, GFP_KERNEL, ALLOCATE_ANY);
698 .addr = test_alloc(test, size, GFP_KERNEL, ALLOCATE_ANY),