Lines Matching full:order
19 static inline u64 get_size(int order, u64 chunk_size) in get_size() argument
21 return (1 << order) * chunk_size; in get_size()
28 unsigned int i, count, *order; in drm_test_buddy_alloc_range_bias() local
43 order = drm_random_order(count, &prng); in drm_test_buddy_alloc_range_bias()
44 KUNIT_EXPECT_TRUE(test, order); in drm_test_buddy_alloc_range_bias()
48 * in some random order allocate within each bias, using various in drm_test_buddy_alloc_range_bias()
57 bias_start = order[i] * bias_size; in drm_test_buddy_alloc_range_bias()
162 kfree(order); in drm_test_buddy_alloc_range_bias()
319 int order, top; in drm_test_buddy_alloc_pathological() local
327 * order within. This should leave the mm with exactly one in drm_test_buddy_alloc_pathological()
346 for (order = top; order--;) { in drm_test_buddy_alloc_pathological()
347 size = get_size(order, PAGE_SIZE); in drm_test_buddy_alloc_pathological()
351 "buddy_alloc hit -ENOMEM with order=%d, top=%d\n", in drm_test_buddy_alloc_pathological()
352 order, top); in drm_test_buddy_alloc_pathological()
374 "buddy_alloc unexpectedly succeeded at top-order %d/%d, it should be full!", in drm_test_buddy_alloc_pathological()
381 for (order = 1; order <= max_order; order++) { in drm_test_buddy_alloc_pathological()
382 size = get_size(order, PAGE_SIZE); in drm_test_buddy_alloc_pathological()
385 "buddy_alloc unexpectedly succeeded at order %d, it should be full!", in drm_test_buddy_alloc_pathological()
386 order); in drm_test_buddy_alloc_pathological()
401 unsigned int order; in drm_test_buddy_alloc_pessimistic() local
407 * order within. This should leave the mm with exactly one in drm_test_buddy_alloc_pessimistic()
417 for (order = 0; order < max_order; order++) { in drm_test_buddy_alloc_pessimistic()
418 size = get_size(order, PAGE_SIZE); in drm_test_buddy_alloc_pessimistic()
421 "buddy_alloc hit -ENOMEM with order=%d\n", in drm_test_buddy_alloc_pessimistic()
422 order); in drm_test_buddy_alloc_pessimistic()
442 for (order = max_order; order--;) { in drm_test_buddy_alloc_pessimistic()
443 size = get_size(order, PAGE_SIZE); in drm_test_buddy_alloc_pessimistic()
454 order = 1; in drm_test_buddy_alloc_pessimistic()
459 size = get_size(order, PAGE_SIZE); in drm_test_buddy_alloc_pessimistic()
462 "buddy_alloc hit -ENOMEM with order=%d\n", in drm_test_buddy_alloc_pessimistic()
463 order); in drm_test_buddy_alloc_pessimistic()
470 order++; in drm_test_buddy_alloc_pessimistic()
477 "buddy_alloc (realloc) hit -ENOMEM with order=%d\n", in drm_test_buddy_alloc_pessimistic()
498 int order; in drm_test_buddy_alloc_optimistic() local
501 * Create a mm with one block of each order available, and in drm_test_buddy_alloc_optimistic()
512 for (order = 0; order <= max_order; order++) { in drm_test_buddy_alloc_optimistic()
513 size = get_size(order, PAGE_SIZE); in drm_test_buddy_alloc_optimistic()
516 "buddy_alloc hit -ENOMEM with order=%d\n", in drm_test_buddy_alloc_optimistic()
517 order); in drm_test_buddy_alloc_optimistic()
557 "block order(%d) != %d\n", in drm_test_buddy_alloc_limit()