Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/gpu/drm/i915/selftests/
Di915_buddy.c221 if (order != mm->max_order) { in igt_check_mm()
320 order = i915_random_order(mm.max_order + 1, &prng); in igt_buddy_alloc_smoke()
324 for (i = 0; i <= mm.max_order; ++i) { in igt_buddy_alloc_smoke()
326 int max_order = order[i]; in igt_buddy_alloc_smoke() local
338 pr_info("filling from max_order=%u\n", max_order); in igt_buddy_alloc_smoke()
340 order = max_order; in igt_buddy_alloc_smoke()
409 const unsigned int max_order = 16; in igt_buddy_alloc_pessimistic() local
422 err = i915_buddy_init(&mm, PAGE_SIZE << max_order, PAGE_SIZE); in igt_buddy_alloc_pessimistic()
427 GEM_BUG_ON(mm.max_order != max_order); in igt_buddy_alloc_pessimistic()
429 for (order = 0; order < max_order; order++) { in igt_buddy_alloc_pessimistic()
[all …]
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.c293 if (mem->mm.max_order != expected_order) { in igt_mock_splintered_region()
295 __func__, mem->mm.max_order, expected_order); in igt_mock_splintered_region()
/Linux-v5.10/drivers/gpu/drm/i915/gem/
Di915_gem_internal.c40 int max_order; in i915_gem_object_get_pages_internal() local
43 max_order = MAX_ORDER; in i915_gem_object_get_pages_internal()
52 max_order = min(max_order, ilog2(max_segment)); in i915_gem_object_get_pages_internal()
80 int order = min(fls(npages) - 1, max_order); in i915_gem_object_get_pages_internal()
92 max_order = order; in i915_gem_object_get_pages_internal()
112 max_order = 0; in i915_gem_object_get_pages_internal()
/Linux-v5.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 s = BITS_TO_LONGS(1 << (buddy->max_order - i)); in mthca_buddy_init()
160 1 << (buddy->max_order - i)); in mthca_buddy_init()
163 set_bit(0, buddy->bits[buddy->max_order]); in mthca_buddy_init()
[all …]
Dmthca_dev.h207 int max_order; member
/Linux-v5.10/drivers/gpu/drm/i915/
Di915_buddy.c111 mm->max_order = ilog2(size) - ilog2(chunk_size); in i915_buddy_init()
113 GEM_BUG_ON(mm->max_order > I915_BUDDY_MAX_ORDER); in i915_buddy_init()
115 mm->free_list = kmalloc_array(mm->max_order + 1, in i915_buddy_init()
121 for (i = 0; i <= mm->max_order; ++i) in i915_buddy_init()
153 GEM_BUG_ON(i > mm->max_order); in i915_buddy_init()
287 for (i = order; i <= mm->max_order; ++i) { in i915_buddy_alloc()
Di915_buddy.h63 unsigned int max_order; member
Dintel_memory_region.c102 GEM_BUG_ON(order > mem->mm.max_order); in __intel_memory_region_get_pages_buddy()
/Linux-v5.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-v5.10/mm/
Dworkingset.c597 unsigned int max_order; in workingset_init() local
609 max_order = fls_long(totalram_pages() - 1); in workingset_init()
610 if (max_order > timestamp_bits) in workingset_init()
611 bucket_order = max_order - timestamp_bits; in workingset_init()
613 timestamp_bits, max_order, bucket_order); in workingset_init()
Dpage_alloc.c993 unsigned int max_order; in __free_one_page() local
997 max_order = min_t(unsigned int, MAX_ORDER, pageblock_order + 1); in __free_one_page()
1010 while (order < max_order - 1) { in __free_one_page()
1036 if (max_order < MAX_ORDER) { in __free_one_page()
1057 max_order++; in __free_one_page()
Dslub.c3396 unsigned int min_objects, unsigned int max_order, in slab_order() argument
3406 order <= max_order; order++) { in slab_order()
/Linux-v5.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-v5.10/drivers/staging/android/ion/
Dion_system_heap.c76 unsigned int max_order) in alloc_largest_available() argument
84 if (max_order < orders[i]) in alloc_largest_available()
111 unsigned int max_order = orders[0]; in ion_system_heap_allocate() local
119 max_order); in ion_system_heap_allocate()
124 max_order = compound_order(page); in ion_system_heap_allocate()
/Linux-v5.10/kernel/events/
Dring_buffer.c672 int ret = -ENOMEM, max_order; in rb_alloc_aux() local
681 max_order = ilog2(nr_pages); in rb_alloc_aux()
688 if (!max_order) in rb_alloc_aux()
691 max_order--; in rb_alloc_aux()
704 order = min(max_order, ilog2(nr_pages - rb->aux_nr_pages)); in rb_alloc_aux()
724 if (page_private(page) != max_order) in rb_alloc_aux()
/Linux-v5.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-v5.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-v5.10/drivers/lightnvm/
Dpblk-rb.c78 unsigned int max_order = MAX_ORDER - 1; in pblk_rb_init() local
105 if (alloc_order >= max_order) { in pblk_rb_init()
106 order = max_order; in pblk_rb_init()
107 iter = (1 << (alloc_order - max_order)); in pblk_rb_init()
/Linux-v5.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-v5.10/tools/testing/kunit/test_data/
Dtest_is_test_passed-no_tests_run.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-v5.10/block/
Dblk-mq.c2374 unsigned int i, j, entries_per_page, max_order = 4; in blk_mq_alloc_rqs() local
2393 int this_order = max_order; in blk_mq_alloc_rqs()