Home
last modified time | relevance | path

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

123

/openbmc/linux/tools/testing/memblock/linux/
H A Dmmzone.h20 #define MAX_ORDER 10 macro
21 #define MAX_ORDER_NR_PAGES (1 << MAX_ORDER)
23 #define pageblock_order MAX_ORDER
/openbmc/linux/include/linux/
H A Dpageblock-flags.h44 #define pageblock_order min_t(unsigned int, HUGETLB_PAGE_ORDER, MAX_ORDER)
51 #define pageblock_order MAX_ORDER
H A Dmmzone.h29 #define MAX_ORDER 10 macro
31 #define MAX_ORDER CONFIG_ARCH_FORCE_MAX_ORDER macro
33 #define MAX_ORDER_NR_PAGES (1 << MAX_ORDER)
37 #define NR_PAGE_ORDERS (MAX_ORDER + 1)
1745 #if (MAX_ORDER + PAGE_SHIFT) > SECTION_SIZE_BITS
1746 #error Allocator MAX_ORDER exceeds SECTION_SIZE
H A Dslab.h311 #define KMALLOC_SHIFT_MAX (MAX_ORDER + PAGE_SHIFT)
319 #define KMALLOC_SHIFT_MAX (MAX_ORDER + PAGE_SHIFT)
/openbmc/linux/mm/kmsan/
H A Dinit.c144 .order = MAX_ORDER,
214 collect.order = MAX_ORDER; in kmsan_memblock_discard()
215 for (int i = MAX_ORDER; i >= 0; i--) { in kmsan_memblock_discard()
/openbmc/linux/drivers/gpu/drm/ttm/tests/
H A Dttm_pool_test.c112 .order = MAX_ORDER + 1,
121 .order = MAX_ORDER + 1,
168 if (params->order <= MAX_ORDER) { in ttm_pool_alloc_basic()
185 min_t(unsigned int, MAX_ORDER, in ttm_pool_alloc_basic()
/openbmc/linux/mm/
H A Dshuffle.h7 #define SHUFFLE_ORDER MAX_ORDER
H A Ddebug_page_alloc.c25 if (kstrtoul(buf, 10, &res) < 0 || res > MAX_ORDER / 2) { in debug_guardpage_minorder_setup()
H A Dpage_reporting.c23 return param_set_uint_minmax(val, kp, 0, MAX_ORDER); in page_order_update_notify()
373 if (prdev->order > 0 && prdev->order <= MAX_ORDER) in page_reporting_register()
H A Dpage_owner.c318 if (freepage_order <= MAX_ORDER) in pagetypeinfo_showmixedcount_print()
552 if (freepage_order <= MAX_ORDER) in read_page_owner()
660 if (order > 0 && order <= MAX_ORDER) in init_pages_in_zone()
H A Dpage_isolation.c229 if (order >= pageblock_order && order < MAX_ORDER) { in unset_migratetype_isolate()
462 if (++order > MAX_ORDER) in isolate_single_pageblock()
H A Dpage_alloc.c732 if (order >= MAX_ORDER - 1) in buddy_merge_likely()
787 while (order < MAX_ORDER) { in __free_one_page()
1329 if (order == MAX_ORDER && __free_unaccepted(page)) in __free_pages_core()
2046 for (current_order = MAX_ORDER; current_order >= min_order; in __rmqueue_fallback()
2084 VM_BUG_ON(current_order > MAX_ORDER); in __rmqueue_fallback()
4426 if (WARN_ON_ONCE_GFP(order > MAX_ORDER, gfp)) in __alloc_pages()
6210 if (++order > MAX_ORDER) { in alloc_contig_range()
6471 return order <= MAX_ORDER; in is_free_buddy_page()
6644 accept_page(page, MAX_ORDER); in try_to_accept_memory_one()
6646 __free_pages_ok(page, MAX_ORDER, FPI_TO_TAIL); in try_to_accept_memory_one()
/openbmc/linux/drivers/base/regmap/
H A Dregmap-debugfs.c229 if (count > (PAGE_SIZE << MAX_ORDER)) in regmap_read_debugfs()
230 count = PAGE_SIZE << MAX_ORDER; in regmap_read_debugfs()
376 if (count > (PAGE_SIZE << MAX_ORDER)) in regmap_reg_ranges_read_file()
377 count = PAGE_SIZE << MAX_ORDER; in regmap_reg_ranges_read_file()
/openbmc/linux/drivers/crypto/hisilicon/
H A Dsgl.c76 block_size = 1 << (PAGE_SHIFT + MAX_ORDER < 32 ? in hisi_acc_create_sgl_pool()
77 PAGE_SHIFT + MAX_ORDER : 31); in hisi_acc_create_sgl_pool()
/openbmc/linux/kernel/events/
H A Dring_buffer.c615 if (order > MAX_ORDER) in rb_alloc_aux_page()
616 order = MAX_ORDER; in rb_alloc_aux_page()
711 if (get_order((unsigned long)nr_pages * sizeof(void *)) > MAX_ORDER) in rb_alloc_aux()
828 if (order_base_2(size) > PAGE_SHIFT+MAX_ORDER) in rb_alloc()
/openbmc/linux/scripts/gdb/linux/
H A Dmm.py60 self.MAX_ORDER = constants.LX_CONFIG_ARCH_FORCE_MAX_ORDER
62 self.MAX_ORDER = 11
64 self.MAX_ORDER_NR_PAGES = 1 << (self.MAX_ORDER - 1)
/openbmc/linux/arch/ia64/mm/
H A Dhugetlbpage.c173 size > (1UL << PAGE_SHIFT << MAX_ORDER)) { in hugetlb_setup_sz()
/openbmc/linux/drivers/gpu/drm/i915/gem/
H A Di915_gem_internal.c39 int max_order = MAX_ORDER; in i915_gem_object_get_pages_internal()
/openbmc/linux/arch/sparc/mm/
H A Dtsb.c405 if (max_tsb_size > PAGE_SIZE << MAX_ORDER) in tsb_grow()
406 max_tsb_size = PAGE_SIZE << MAX_ORDER; in tsb_grow()
/openbmc/linux/fs/ramfs/
H A Dfile-nommu.c73 if (unlikely(order > MAX_ORDER)) in ramfs_nommu_expand_for_mapping()
/openbmc/linux/arch/arm64/kvm/hyp/nvhe/
H A Dpage_alloc.c231 pool->max_order = min(MAX_ORDER, get_order(nr_pages << PAGE_SHIFT)); in hyp_pool_init()
/openbmc/linux/kernel/dma/
H A Dpool.c88 order = min(get_order(pool_size), MAX_ORDER); in atomic_pool_expand()
/openbmc/linux/Documentation/networking/
H A Dpacket_mmap.rst266 region allocated by __get_free_pages is determined by the MAX_ORDER macro. More
269 PAGE_SIZE << MAX_ORDER
272 In a 2.4/i386 kernel MAX_ORDER is 10
273 In a 2.6/i386 kernel MAX_ORDER is 11
279 /usr/include/linux/mmzone.h to get PAGE_SIZE MAX_ORDER declarations.
327 <max-order> is the value defined with MAX_ORDER
/openbmc/linux/arch/powerpc/mm/book3s64/
H A Diommu_api.c100 chunk = (1UL << (PAGE_SHIFT + MAX_ORDER)) / in mm_iommu_do_alloc()
/openbmc/linux/arch/um/kernel/
H A Dum_arch.c379 max_physmem &= ~((1 << (PAGE_SHIFT + MAX_ORDER)) - 1); in linux_main()

123