Lines Matching refs: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
45 order = drm_random_order(count, &prng); in drm_test_buddy_alloc_range_bias()
46 KUNIT_EXPECT_TRUE(test, order); in drm_test_buddy_alloc_range_bias()
59 bias_start = order[i] * bias_size; in drm_test_buddy_alloc_range_bias()
164 kfree(order); in drm_test_buddy_alloc_range_bias()
269 unsigned int order; in drm_test_buddy_alloc_clear() local
365 order = 1; in drm_test_buddy_alloc_clear()
367 size = SZ_4K << order; in drm_test_buddy_alloc_clear()
382 } while (++order <= max_order); in drm_test_buddy_alloc_clear()
505 int order, top; in drm_test_buddy_alloc_pathological() local
532 for (order = top; order--;) { in drm_test_buddy_alloc_pathological()
533 size = get_size(order, mm.chunk_size); in drm_test_buddy_alloc_pathological()
538 order, top); in drm_test_buddy_alloc_pathological()
567 for (order = 1; order <= max_order; order++) { in drm_test_buddy_alloc_pathological()
568 size = get_size(order, mm.chunk_size); in drm_test_buddy_alloc_pathological()
572 order); in drm_test_buddy_alloc_pathological()
587 unsigned int order; in drm_test_buddy_alloc_pessimistic() local
603 for (order = 0; order < max_order; order++) { in drm_test_buddy_alloc_pessimistic()
604 size = get_size(order, mm.chunk_size); in drm_test_buddy_alloc_pessimistic()
608 order); in drm_test_buddy_alloc_pessimistic()
628 for (order = max_order; order--;) { in drm_test_buddy_alloc_pessimistic()
629 size = get_size(order, mm.chunk_size); in drm_test_buddy_alloc_pessimistic()
640 order = 1; in drm_test_buddy_alloc_pessimistic()
645 size = get_size(order, mm.chunk_size); in drm_test_buddy_alloc_pessimistic()
649 order); in drm_test_buddy_alloc_pessimistic()
656 order++; in drm_test_buddy_alloc_pessimistic()
684 int order; in drm_test_buddy_alloc_optimistic() local
698 for (order = 0; order <= max_order; order++) { in drm_test_buddy_alloc_optimistic()
699 size = get_size(order, mm.chunk_size); in drm_test_buddy_alloc_optimistic()
703 order); in drm_test_buddy_alloc_optimistic()