Home
last modified time | relevance | path

Searched refs:max_order (Results 1 – 25 of 26) sorted by relevance

12

/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/steering/
Ddr_buddy.c11 unsigned int max_order) in mlx5dr_buddy_init() argument
15 buddy->max_order = max_order; in mlx5dr_buddy_init()
19 buddy->bitmap = kcalloc(buddy->max_order + 1, in mlx5dr_buddy_init()
22 buddy->num_free = kcalloc(buddy->max_order + 1, in mlx5dr_buddy_init()
31 for (i = 0; i <= buddy->max_order; ++i) { in mlx5dr_buddy_init()
32 unsigned int size = 1 << (buddy->max_order - i); in mlx5dr_buddy_init()
43 bitmap_set(buddy->bitmap[buddy->max_order], 0, 1); in mlx5dr_buddy_init()
45 buddy->num_free[buddy->max_order] = 1; in mlx5dr_buddy_init()
50 for (i = 0; i <= buddy->max_order; ++i) in mlx5dr_buddy_init()
65 for (i = 0; i <= buddy->max_order; ++i) in mlx5dr_buddy_cleanup()
[all …]
Dmlx5dr.h178 u32 max_order; member
193 unsigned int max_order);
/linux-6.6.21/drivers/gpu/drm/tests/
Ddrm_buddy_test.c247 if (order != mm->max_order) { in check_mm()
329 const int max_order = 3; in drm_test_buddy_alloc_pathological() local
344 mm_size = PAGE_SIZE << max_order; in drm_test_buddy_alloc_pathological()
348 KUNIT_EXPECT_EQ(test, mm.max_order, max_order); in drm_test_buddy_alloc_pathological()
350 for (top = max_order; top; top--) { in drm_test_buddy_alloc_pathological()
387 top, max_order); in drm_test_buddy_alloc_pathological()
393 for (order = 1; order <= max_order; order++) { in drm_test_buddy_alloc_pathological()
422 order = drm_random_order(mm.max_order + 1, &prng); in drm_test_buddy_alloc_smoke()
425 for (i = 0; i <= mm.max_order; ++i) { in drm_test_buddy_alloc_smoke()
427 int max_order = order[i]; in drm_test_buddy_alloc_smoke() local
[all …]
/linux-6.6.21/drivers/gpu/drm/i915/gem/
Di915_gem_internal.c39 int max_order = MAX_ORDER; in i915_gem_object_get_pages_internal() local
48 max_order = min(max_order, get_order(max_segment)); in i915_gem_object_get_pages_internal()
71 int order = min(fls(npages) - 1, max_order); in i915_gem_object_get_pages_internal()
83 max_order = order; in i915_gem_object_get_pages_internal()
102 max_order = 0; in i915_gem_object_get_pages_internal()
/linux-6.6.21/drivers/infiniband/hw/mthca/
Dmthca_mr.c92 for (o = order; o <= buddy->max_order; ++o) in mthca_buddy_alloc()
94 m = 1 << (buddy->max_order - o); in mthca_buddy_alloc()
140 static int mthca_buddy_init(struct mthca_buddy *buddy, int max_order) in mthca_buddy_init() argument
144 buddy->max_order = max_order; in mthca_buddy_init()
147 buddy->bits = kcalloc(buddy->max_order + 1, sizeof(long *), in mthca_buddy_init()
149 buddy->num_free = kcalloc((buddy->max_order + 1), sizeof *buddy->num_free, in mthca_buddy_init()
154 for (i = 0; i <= buddy->max_order; ++i) { in mthca_buddy_init()
155 buddy->bits[i] = bitmap_zalloc(1 << (buddy->max_order - i), in mthca_buddy_init()
161 __set_bit(0, buddy->bits[buddy->max_order]); in mthca_buddy_init()
162 buddy->num_free[buddy->max_order] = 1; in mthca_buddy_init()
[all …]
Dmthca_dev.h206 int max_order; member
/linux-6.6.21/arch/arm64/kvm/hyp/nvhe/
Dpage_alloc.c113 for (; (order + 1) <= pool->max_order; order++) { in __hyp_attach_page()
206 while (i <= pool->max_order && list_empty(&pool->free_area[i])) in hyp_alloc_pages()
208 if (i > pool->max_order) { in hyp_alloc_pages()
231 pool->max_order = min(MAX_ORDER, get_order(nr_pages << PAGE_SHIFT)); in hyp_pool_init()
232 for (i = 0; i <= pool->max_order; i++) in hyp_pool_init()
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx4/
Dmr.c54 for (o = order; o <= buddy->max_order; ++o) in mlx4_buddy_alloc()
56 m = 1 << (buddy->max_order - o); in mlx4_buddy_alloc()
102 static int mlx4_buddy_init(struct mlx4_buddy *buddy, int max_order) in mlx4_buddy_init() argument
106 buddy->max_order = max_order; in mlx4_buddy_init()
109 buddy->bits = kcalloc(buddy->max_order + 1, sizeof(long *), in mlx4_buddy_init()
111 buddy->num_free = kcalloc(buddy->max_order + 1, sizeof(*buddy->num_free), in mlx4_buddy_init()
116 for (i = 0; i <= buddy->max_order; ++i) { in mlx4_buddy_init()
117 s = BITS_TO_LONGS(1UL << (buddy->max_order - i)); in mlx4_buddy_init()
123 set_bit(0, buddy->bits[buddy->max_order]); in mlx4_buddy_init()
124 buddy->num_free[buddy->max_order] = 1; in mlx4_buddy_init()
[all …]
Dmlx4.h256 u32 max_order; member
/linux-6.6.21/drivers/gpu/drm/
Ddrm_buddy.c116 mm->max_order = ilog2(size) - ilog2(chunk_size); in drm_buddy_init()
118 BUG_ON(mm->max_order > DRM_BUDDY_MAX_ORDER); in drm_buddy_init()
120 mm->free_list = kmalloc_array(mm->max_order + 1, in drm_buddy_init()
126 for (i = 0; i <= mm->max_order; ++i) in drm_buddy_init()
158 BUG_ON(i > mm->max_order); in drm_buddy_init()
423 for (i = order; i <= mm->max_order; ++i) { in get_maxblock()
458 for (tmp = order; tmp <= mm->max_order; ++tmp) { in alloc_from_freelist()
714 BUG_ON(order > mm->max_order); in drm_buddy_alloc_blocks()
785 for (order = mm->max_order; order >= 0; order--) { in drm_buddy_print()
/linux-6.6.21/tools/testing/radix-tree/
Diteration_check.c19 static int max_order; variable
29 for (order = max_order; order >= 0; order--) { in my_item_insert()
172 max_order = order; in iteration_test()
/linux-6.6.21/drivers/dma-buf/heaps/
Dsystem_heap.c315 unsigned int max_order) in alloc_largest_available() argument
323 if (max_order < orders[i]) in alloc_largest_available()
342 unsigned int max_order = orders[0]; in system_heap_allocate() local
371 page = alloc_largest_available(size_remaining, max_order); in system_heap_allocate()
377 max_order = compound_order(page); in system_heap_allocate()
/linux-6.6.21/mm/
Dworkingset.c782 unsigned int max_order; in workingset_init() local
794 max_order = fls_long(totalram_pages() - 1); in workingset_init()
795 if (max_order > timestamp_bits) in workingset_init()
796 bucket_order = max_order - timestamp_bits; in workingset_init()
798 timestamp_bits, max_order, bucket_order); in workingset_init()
/linux-6.6.21/arch/arm64/kvm/hyp/include/nvhe/
Dgfp.h22 unsigned short max_order; member
/linux-6.6.21/lib/
Dtest_xarray.c178 unsigned int max_order = IS_ENABLED(CONFIG_XARRAY_MULTI) ? 8 : 1; in check_xa_mark_1() local
207 for (order = 2; order < max_order; order++) { in check_xa_mark_1()
329 unsigned int max_order = IS_ENABLED(CONFIG_XARRAY_MULTI) ? 15 : 1; in check_xa_shrink() local
353 for (order = 0; order < max_order; order++) { in check_xa_shrink()
601 unsigned int max_order = (sizeof(long) == 4) ? 30 : 60; in check_multi_store() local
645 for (i = 0; i < max_order; i++) { in check_multi_store()
646 for (j = 0; j < max_order; j++) { in check_multi_store()
650 for (k = 0; k < max_order; k++) { in check_multi_store()
899 unsigned int max_order = IS_ENABLED(CONFIG_XARRAY_MULTI) ? 20 : 1; in check_store_iter() local
901 for (i = 0; i < max_order; i++) { in check_store_iter()
[all …]
/linux-6.6.21/kernel/events/
Dring_buffer.c676 int ret = -ENOMEM, max_order; in rb_alloc_aux() local
693 max_order = get_order(watermark); in rb_alloc_aux()
699 max_order = ilog2(nr_pages); in rb_alloc_aux()
719 order = min(max_order, ilog2(nr_pages - rb->aux_nr_pages)); in rb_alloc_aux()
739 if (page_private(page) != max_order) in rb_alloc_aux()
/linux-6.6.21/drivers/video/fbdev/vermilion/
Dvermilion.c74 static int vmlfb_alloc_vram_area(struct vram_area *va, unsigned max_order, in vmlfb_alloc_vram_area() argument
80 max_order++; in vmlfb_alloc_vram_area()
91 __get_free_pages(flags, --max_order); in vmlfb_alloc_vram_area()
92 } while (va->logical == 0 && max_order > min_order); in vmlfb_alloc_vram_area()
98 va->size = PAGE_SIZE << max_order; in vmlfb_alloc_vram_area()
99 va->order = max_order; in vmlfb_alloc_vram_area()
/linux-6.6.21/drivers/gpu/drm/i915/selftests/
Dscatterlist.c281 const unsigned long max_order = 20; /* approximating a 4GiB object */ in igt_sg_alloc() local
286 for_each_prime_number(prime, max_order) { in igt_sg_alloc()
Dintel_memory_region.c407 if (mm->max_order != expected_order) { in igt_mock_splintered_region()
409 __func__, mm->max_order, expected_order); in igt_mock_splintered_region()
/linux-6.6.21/include/drm/
Ddrm_buddy.h82 unsigned int max_order; member
/linux-6.6.21/drivers/pci/
Dsetup-bus.c944 int max_order) in calculate_mem_align() argument
950 for (order = 0; order <= max_order; order++) { in calculate_mem_align()
993 int order, max_order; in pbus_size_mem() local
1008 max_order = 0; in pbus_size_mem()
1058 if (order > max_order) in pbus_size_mem()
1059 max_order = order; in pbus_size_mem()
1069 min_align = calculate_mem_align(aligns, max_order); in pbus_size_mem()
/linux-6.6.21/drivers/accel/qaic/
Dqaic_data.c440 int max_order; in create_sgt() local
453 max_order = min(MAX_ORDER - 1, get_order(size)); in create_sgt()
458 max_order = 0; in create_sgt()
475 order = min(get_order(nr_pages * PAGE_SIZE), max_order); in create_sgt()
489 max_order = order; in create_sgt()
/linux-6.6.21/tools/testing/kunit/test_data/
Dtest_is_test_passed-no_tests_run_no_header.log31 workingset: timestamp_bits=62 max_order=13 bucket_order=0
Dtest_output_isolated_correctly.log56 workingset: timestamp_bits=62 max_order=16 bucket_order=0
/linux-6.6.21/block/
Dblk-mq.c3417 unsigned int i, j, entries_per_page, max_order = 4; in blk_mq_alloc_rqs() local
3435 int this_order = max_order; in blk_mq_alloc_rqs()

12