Lines Matching refs:max_order

267 	const int max_order = 12;  in drm_test_buddy_alloc_clear()  local
275 mm_size = SZ_4K << max_order; in drm_test_buddy_alloc_clear()
278 KUNIT_EXPECT_EQ(test, mm.max_order, max_order); in drm_test_buddy_alloc_clear()
383 } while (++order <= max_order); in drm_test_buddy_alloc_clear()
493 const int max_order = 3; in drm_test_buddy_alloc_pathological() local
508 mm_size = SZ_4K << max_order; in drm_test_buddy_alloc_pathological()
512 KUNIT_EXPECT_EQ(test, mm.max_order, max_order); in drm_test_buddy_alloc_pathological()
514 for (top = max_order; top; top--) { in drm_test_buddy_alloc_pathological()
551 top, max_order); in drm_test_buddy_alloc_pathological()
557 for (order = 1; order <= max_order; order++) { in drm_test_buddy_alloc_pathological()
574 const unsigned int max_order = 16; in drm_test_buddy_alloc_pessimistic() local
587 mm_size = SZ_4K << max_order; in drm_test_buddy_alloc_pessimistic()
591 KUNIT_EXPECT_EQ(test, mm.max_order, max_order); in drm_test_buddy_alloc_pessimistic()
593 for (order = 0; order < max_order; order++) { in drm_test_buddy_alloc_pessimistic()
618 for (order = max_order; order--;) { in drm_test_buddy_alloc_pessimistic()
650 size = get_size(max_order, mm.chunk_size); in drm_test_buddy_alloc_pessimistic()
654 max_order); in drm_test_buddy_alloc_pessimistic()
670 const int max_order = 16; in drm_test_buddy_alloc_optimistic() local
681 mm_size = SZ_4K * ((1 << (max_order + 1)) - 1); in drm_test_buddy_alloc_optimistic()
686 KUNIT_EXPECT_EQ(test, mm.max_order, max_order); in drm_test_buddy_alloc_optimistic()
688 for (order = 0; order <= max_order; order++) { in drm_test_buddy_alloc_optimistic()
721 KUNIT_EXPECT_EQ_MSG(test, mm.max_order, DRM_BUDDY_MAX_ORDER, in drm_test_buddy_alloc_limit()
722 "mm.max_order(%d) != %d\n", mm.max_order, in drm_test_buddy_alloc_limit()
725 size = mm.chunk_size << mm.max_order; in drm_test_buddy_alloc_limit()
732 KUNIT_EXPECT_EQ_MSG(test, drm_buddy_block_order(block), mm.max_order, in drm_test_buddy_alloc_limit()
734 drm_buddy_block_order(block), mm.max_order); in drm_test_buddy_alloc_limit()
737 BIT_ULL(mm.max_order) * mm.chunk_size, in drm_test_buddy_alloc_limit()
740 BIT_ULL(mm.max_order) * mm.chunk_size); in drm_test_buddy_alloc_limit()