Home
last modified time | relevance | path

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

/linux-5.19.10/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()
21 buddy->bitmap = kcalloc(buddy->max_order + 1, in mlx5dr_buddy_init()
24 buddy->num_free = kcalloc(buddy->max_order + 1, in mlx5dr_buddy_init()
33 for (i = 0; i <= buddy->max_order; ++i) { in mlx5dr_buddy_init()
34 unsigned int size = 1 << (buddy->max_order - i); in mlx5dr_buddy_init()
45 bitmap_set(buddy->bitmap[buddy->max_order], 0, 1); in mlx5dr_buddy_init()
47 buddy->num_free[buddy->max_order] = 1; in mlx5dr_buddy_init()
52 for (i = 0; i <= buddy->max_order; ++i) in mlx5dr_buddy_init()
67 for (i = 0; i <= buddy->max_order; ++i) in mlx5dr_buddy_cleanup()
[all …]
Dmlx5dr.h153 u32 max_order; member
175 unsigned int max_order);
/linux-5.19.10/drivers/gpu/drm/selftests/
Dtest-drm_buddy.c262 if (order != mm->max_order) { in igt_check_mm()
345 const int max_order = 3; in igt_buddy_alloc_pathological() local
360 mm_size = PAGE_SIZE << max_order; in igt_buddy_alloc_pathological()
366 BUG_ON(mm.max_order != max_order); in igt_buddy_alloc_pathological()
368 for (top = max_order; top; top--) { in igt_buddy_alloc_pathological()
421 top, max_order); in igt_buddy_alloc_pathological()
440 for (order = 1; order <= max_order; order++) { in igt_buddy_alloc_pathological()
490 order = drm_random_order(mm.max_order + 1, &prng); in igt_buddy_alloc_smoke()
496 for (i = 0; i <= mm.max_order; ++i) { in igt_buddy_alloc_smoke()
498 int max_order = order[i]; in igt_buddy_alloc_smoke() local
[all …]
/linux-5.19.10/drivers/gpu/drm/i915/gem/
Di915_gem_internal.c41 int max_order; in i915_gem_object_get_pages_internal() local
44 max_order = MAX_ORDER; in i915_gem_object_get_pages_internal()
53 max_order = min(max_order, ilog2(max_segment)); in i915_gem_object_get_pages_internal()
81 int order = min(fls(npages) - 1, max_order); in i915_gem_object_get_pages_internal()
93 max_order = order; in i915_gem_object_get_pages_internal()
113 max_order = 0; in i915_gem_object_get_pages_internal()
/linux-5.19.10/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-5.19.10/arch/arm64/kvm/hyp/nvhe/
Dpage_alloc.c108 for (; (order + 1) < pool->max_order; order++) { in __hyp_attach_page()
219 while (i < pool->max_order && list_empty(&pool->free_area[i])) in hyp_alloc_pages()
221 if (i >= pool->max_order) { in hyp_alloc_pages()
244 pool->max_order = min(MAX_ORDER, get_order((nr_pages + 1) << PAGE_SHIFT)); in hyp_pool_init()
245 for (i = 0; i < pool->max_order; i++) in hyp_pool_init()
/linux-5.19.10/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.h254 u32 max_order; member
/linux-5.19.10/mm/
Dworkingset.c610 unsigned int max_order; in workingset_init() local
622 max_order = fls_long(totalram_pages() - 1); in workingset_init()
623 if (max_order > timestamp_bits) in workingset_init()
624 bucket_order = max_order - timestamp_bits; in workingset_init()
626 timestamp_bits, max_order, bucket_order); in workingset_init()
Dslub.c3818 unsigned int min_objects, unsigned int max_order, in calc_slab_order() argument
3828 order <= max_order; order++) { in calc_slab_order()
/linux-5.19.10/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-5.19.10/drivers/gpu/drm/
Ddrm_buddy.c98 mm->max_order = ilog2(size) - ilog2(chunk_size); in drm_buddy_init()
100 BUG_ON(mm->max_order > DRM_BUDDY_MAX_ORDER); in drm_buddy_init()
102 mm->free_list = kmalloc_array(mm->max_order + 1, in drm_buddy_init()
108 for (i = 0; i <= mm->max_order; ++i) in drm_buddy_init()
140 BUG_ON(i > mm->max_order); in drm_buddy_init()
418 for (i = order; i <= mm->max_order; ++i) { in alloc_from_freelist()
677 BUG_ON(order > mm->max_order); in drm_buddy_alloc_blocks()
748 for (order = mm->max_order; order >= 0; order--) { in drm_buddy_print()
/linux-5.19.10/drivers/dma-buf/heaps/
Dsystem_heap.c316 unsigned int max_order) in alloc_largest_available() argument
324 if (max_order < orders[i]) in alloc_largest_available()
343 unsigned int max_order = orders[0]; in system_heap_allocate() local
372 page = alloc_largest_available(size_remaining, max_order); in system_heap_allocate()
378 max_order = compound_order(page); in system_heap_allocate()
/linux-5.19.10/arch/arm64/kvm/hyp/include/nvhe/
Dgfp.h22 unsigned short max_order; member
/linux-5.19.10/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-5.19.10/kernel/events/
Dring_buffer.c672 int ret = -ENOMEM, max_order; in rb_alloc_aux() local
689 max_order = get_order(watermark); in rb_alloc_aux()
695 max_order = ilog2(nr_pages); in rb_alloc_aux()
709 order = min(max_order, ilog2(nr_pages - rb->aux_nr_pages)); in rb_alloc_aux()
729 if (page_private(page) != max_order) in rb_alloc_aux()
/linux-5.19.10/drivers/video/fbdev/vermilion/
Dvermilion.c73 static int vmlfb_alloc_vram_area(struct vram_area *va, unsigned max_order, in vmlfb_alloc_vram_area() argument
79 max_order++; in vmlfb_alloc_vram_area()
90 __get_free_pages(flags, --max_order); in vmlfb_alloc_vram_area()
91 } while (va->logical == 0 && max_order > min_order); in vmlfb_alloc_vram_area()
97 va->size = PAGE_SIZE << max_order; in vmlfb_alloc_vram_area()
98 va->order = max_order; in vmlfb_alloc_vram_area()
/linux-5.19.10/drivers/gpu/drm/i915/selftests/
Dscatterlist.c277 const unsigned long max_order = 20; /* approximating a 4GiB object */ in igt_sg_alloc() local
282 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-5.19.10/include/drm/
Ddrm_buddy.h82 unsigned int max_order; member
/linux-5.19.10/drivers/pci/
Dsetup-bus.c949 int max_order) in calculate_mem_align() argument
955 for (order = 0; order <= max_order; order++) { in calculate_mem_align()
998 int order, max_order; in pbus_size_mem() local
1013 max_order = 0; in pbus_size_mem()
1063 if (order > max_order) in pbus_size_mem()
1064 max_order = order; in pbus_size_mem()
1074 min_align = calculate_mem_align(aligns, max_order); in pbus_size_mem()
/linux-5.19.10/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-5.19.10/block/
Dblk-mq.c3202 unsigned int i, j, entries_per_page, max_order = 4; in blk_mq_alloc_rqs() local
3220 int this_order = max_order; in blk_mq_alloc_rqs()