/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
A D | dr_buddy.c | 11 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() 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() 86 m = 1 << (buddy->max_order - order_iter); in dr_buddy_find_free_seg() [all …]
|
A D | mlx5dr.h | 149 u32 max_order; member 166 unsigned int max_order);
|
/linux/drivers/gpu/drm/i915/selftests/ |
A D | i915_buddy.c | 219 if (order != mm->max_order) { in igt_check_mm() 324 int max_order = order[i]; in igt_buddy_alloc_smoke() local 338 order = max_order; in igt_buddy_alloc_smoke() 407 const unsigned int max_order = 16; in igt_buddy_alloc_pessimistic() local 425 GEM_BUG_ON(mm.max_order != max_order); in igt_buddy_alloc_pessimistic() 485 max_order); in igt_buddy_alloc_pessimistic() 499 const int max_order = 16; in igt_buddy_alloc_optimistic() local 518 GEM_BUG_ON(mm.max_order != max_order); in igt_buddy_alloc_optimistic() 549 const int max_order = 16; in igt_buddy_alloc_pathological() local 569 GEM_BUG_ON(mm.max_order != max_order); in igt_buddy_alloc_pathological() [all …]
|
A D | scatterlist.c | 277 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()
|
A D | intel_memory_region.c | 405 if (mm->max_order != expected_order) { in igt_mock_splintered_region() 407 __func__, mm->max_order, expected_order); in igt_mock_splintered_region()
|
/linux/drivers/gpu/drm/i915/gem/ |
A D | i915_gem_internal.c | 40 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/drivers/infiniband/hw/mthca/ |
A D | mthca_mr.c | 92 for (o = order; o <= buddy->max_order; ++o) in mthca_buddy_alloc() 94 m = 1 << (buddy->max_order - o); in mthca_buddy_alloc() 144 buddy->max_order = max_order; 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() 164 buddy->num_free[buddy->max_order] = 1; in mthca_buddy_init() 169 for (i = 0; i <= buddy->max_order; ++i) in mthca_buddy_init() 183 for (i = 0; i <= buddy->max_order; ++i) in mthca_buddy_cleanup() [all …]
|
A D | mthca_dev.h | 206 int max_order; member
|
/linux/arch/arm64/kvm/hyp/nvhe/ |
A D | page_alloc.c | 108 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 << PAGE_SHIFT)); in hyp_pool_init() 245 for (i = 0; i < pool->max_order; i++) in hyp_pool_init()
|
/linux/drivers/gpu/drm/i915/ |
A D | i915_buddy.c | 88 mm->max_order = ilog2(size) - ilog2(chunk_size); in i915_buddy_init() 90 GEM_BUG_ON(mm->max_order > I915_BUDDY_MAX_ORDER); in i915_buddy_init() 92 mm->free_list = kmalloc_array(mm->max_order + 1, in i915_buddy_init() 98 for (i = 0; i <= mm->max_order; ++i) in i915_buddy_init() 130 GEM_BUG_ON(i > mm->max_order); in i915_buddy_init() 267 for (i = order; i <= mm->max_order; ++i) { in i915_buddy_alloc() 429 for (order = mm->max_order; order >= 0; order--) { in i915_buddy_print()
|
A D | i915_buddy.h | 69 unsigned int max_order; member
|
A D | i915_ttm_buddy_manager.c | 80 GEM_BUG_ON(order > mm->max_order); in i915_ttm_buddy_man_alloc()
|
/linux/drivers/net/ethernet/mellanox/mlx4/ |
A D | mr.c | 54 for (o = order; o <= buddy->max_order; ++o) in mlx4_buddy_alloc() 56 m = 1 << (buddy->max_order - o); in mlx4_buddy_alloc() 106 buddy->max_order = max_order; in mlx4_buddy_init() 109 buddy->bits = kcalloc(buddy->max_order + 1, sizeof(long *), 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() 129 for (i = 0; i <= buddy->max_order; ++i) in mlx4_buddy_init() 143 for (i = 0; i <= buddy->max_order; ++i) in mlx4_buddy_cleanup() [all …]
|
A D | mlx4.h | 254 u32 max_order; member
|
/linux/mm/ |
A D | workingset.c | 606 unsigned int max_order; in workingset_init() local 618 max_order = fls_long(totalram_pages() - 1); in workingset_init() 619 if (max_order > timestamp_bits) in workingset_init() 620 bucket_order = max_order - timestamp_bits; in workingset_init() 622 timestamp_bits, max_order, bucket_order); in workingset_init()
|
A D | page_alloc.c | 1064 unsigned int max_order; in __free_one_page() local 1068 max_order = min_t(unsigned int, MAX_ORDER - 1, pageblock_order); in __free_one_page() 1081 while (order < max_order) { in __free_one_page() 1126 max_order = order + 1; in __free_one_page()
|
/linux/tools/testing/radix-tree/ |
A D | iteration_check.c | 19 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/drivers/dma-buf/heaps/ |
A D | system_heap.c | 316 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/lib/ |
A D | test_xarray.c | 178 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() 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() 901 for (i = 0; i < max_order; i++) { in check_store_iter() 972 for (i = 0; i < max_order; i++) { in check_multi_find_2() 1471 for (order = 0; order < max_order; order++) { in check_create_range() [all …]
|
/linux/kernel/events/ |
A D | ring_buffer.c | 672 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/arch/arm64/kvm/hyp/include/nvhe/ |
A D | gfp.h | 22 unsigned short max_order; member
|
/linux/drivers/video/fbdev/vermilion/ |
A D | vermilion.c | 73 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/drivers/pci/ |
A D | setup-bus.c | 949 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/tools/testing/kunit/test_data/ |
A D | test_is_test_passed-no_tests_run_no_header.log | 31 workingset: timestamp_bits=62 max_order=13 bucket_order=0
|
A D | test_output_isolated_correctly.log | 56 workingset: timestamp_bits=62 max_order=16 bucket_order=0
|