/linux-6.3-rc2/arch/arm64/kvm/hyp/nvhe/ |
A D | page_alloc.c | 58 if (!buddy || buddy->order != order || buddy->refcount) in __find_buddy_avail() 97 unsigned short order = p->order; in __hyp_attach_page() local 112 p->order = HYP_NO_ORDER; in __hyp_attach_page() 113 for (; (order + 1) < pool->max_order; order++) { in __hyp_attach_page() 126 p->order = order; in __hyp_attach_page() 137 while (p->order > order) { in __hyp_extract_page() 144 p->order--; in __hyp_extract_page() 146 buddy->order = p->order; in __hyp_extract_page() 186 unsigned short order = p->order; in hyp_split_page() local 189 p->order = 0; in hyp_split_page() [all …]
|
/linux-6.3-rc2/include/trace/events/ |
A D | compaction.h | 157 int order, 170 __entry->order = order; 176 __entry->order, 184 int order, 199 __entry->order = order; 206 __entry->order, 213 int order, 222 int order, 246 __entry->order = order; 255 __entry->order, [all …]
|
A D | vmscan.h | 81 __entry->order = order; 86 __entry->order) 105 __entry->order = order; 111 __entry->order, 127 __entry->order = order; 132 __entry->order, 283 int order, 306 __entry->order = order; 322 __entry->order, 454 __entry->order = order; [all …]
|
A D | kmem.h | 140 TP_ARGS(page, order), 144 __field( unsigned int, order ) 149 __entry->order = order; 155 __entry->order) 186 __field( unsigned int, order ) 193 __entry->order = order; 201 __entry->order, 215 __field( unsigned int, order ) 222 __entry->order = order; 230 __entry->order, [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/ttm/ |
A D | ttm_pool.c | 80 unsigned int order) in ttm_pool_alloc_page() argument 91 if (order) in ttm_pool_alloc_page() 98 p->private = order; in ttm_pool_alloc_page() 106 if (order) in ttm_pool_alloc_page() 152 if (order) in ttm_pool_free_page() 263 pt->order = order; in ttm_pool_type_init() 390 unsigned int i, order; in ttm_pool_alloc() local 410 order = min_t(unsigned int, order, __fls(num_pages))) { in ttm_pool_alloc() 455 if (order) { in ttm_pool_alloc() 456 --order; in ttm_pool_alloc() [all …]
|
/linux-6.3-rc2/mm/ |
A D | page_alloc.c | 966 if (!capc || order != capc->cc->order) in compaction_capture() 2954 for (order = 0; order < MAX_ORDER; order++) { in unreserve_highatomic_pageblock() 4431 .order = order, in __alloc_pages_may_oom() 4675 if (!order || order > PAGE_ALLOC_COSTLY_ORDER) in should_compact_retry() 5683 free_the_page(page + (1 << order), order); in __free_pages() 6308 for (order = 0; order < MAX_ORDER; order++) { in __show_free_areas() 6313 total += nr[order] << order; in __show_free_areas() 6322 for (order = 0; order < MAX_ORDER; order++) { in __show_free_areas() 6324 nr[order], K(1UL) << order); in __show_free_areas() 9632 for (order = 0; order < MAX_ORDER; order++) { in is_free_buddy_page() [all …]
|
A D | compaction.c | 54 #define block_end_pfn(pfn, order) ALIGN((pfn) + 1, 1UL << (order)) argument 98 if (order) in split_map_pages() 1379 order--; in next_search_order() 1381 order = cc->order - 1; in next_search_order() 1404 int order; in fast_isolate_freepages() local 1438 order = next_search_order(cc, order)) { in fast_isolate_freepages() 1757 int order; in fast_find_migrateblock() local 1807 for (order = cc->order - 1; in fast_find_migrateblock() 2127 for (order = cc->order; order < MAX_ORDER; order++) { in __compact_finished() 2528 .order = order, in compact_zone_order() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/lib/ |
A D | drm_random.c | 16 void drm_random_reorder(unsigned int *order, unsigned int count, in drm_random_reorder() argument 24 swap(order[i], order[j]); in drm_random_reorder() 31 unsigned int *order, i; in drm_random_order() local 33 order = kmalloc_array(count, sizeof(*order), GFP_KERNEL); in drm_random_order() 34 if (!order) in drm_random_order() 35 return order; in drm_random_order() 38 order[i] = i; in drm_random_order() 40 drm_random_reorder(order, count, state); in drm_random_order() 41 return order; in drm_random_order()
|
/linux-6.3-rc2/drivers/media/pci/cx18/ |
A D | cx18-mailbox.c | 239 mb = &order->mb; in epu_dma_done() 348 order->mb.cmd); in epu_cmd() 355 order->mb.cmd); in epu_cmd() 373 epu_cmd(cx, order); in cx18_in_work_handler() 398 order->rpu, order->mb.cmd); in mb_ack_irq() 407 rpu_str[order->rpu], rpu_str[order->rpu], req); in mb_ack_irq() 422 mb = &order->mb; in epu_dma_done_irq() 488 order->mb.cmd); in epu_cmd_irq() 517 return order; in alloc_in_work_order_irq() 545 order->flags = 0; in cx18_api_epu_cmd_irq() [all …]
|
/linux-6.3-rc2/mm/kmsan/ |
A D | init.c | 118 if (!held_back[order].shadow) { in kmsan_memblock_free_pages() 119 held_back[order].shadow = page; in kmsan_memblock_free_pages() 122 if (!held_back[order].origin) { in kmsan_memblock_free_pages() 123 held_back[order].origin = page; in kmsan_memblock_free_pages() 130 held_back[order].shadow = NULL; in kmsan_memblock_free_pages() 131 held_back[order].origin = NULL; in kmsan_memblock_free_pages() 139 int order; member 144 .order = MAX_ORDER, 182 .order = collect.order - 1, in collect_split() 187 if (!collect.order) in collect_split() [all …]
|
/linux-6.3-rc2/arch/riscv/kvm/ |
A D | tlb.c | 22 unsigned long order) in kvm_riscv_local_hfence_gvma_vmid_gpa() argument 50 unsigned long order) in kvm_riscv_local_hfence_gvma_gpa() argument 81 unsigned long order) in kvm_riscv_local_hfence_vvma_asid_gva() argument 121 unsigned long order) in kvm_riscv_local_hfence_vvma_gva() argument 264 d.addr, d.size, d.order); in kvm_riscv_hfence_process() 270 d.addr, d.size, d.order); in kvm_riscv_hfence_process() 335 unsigned long order) in kvm_riscv_hfence_gvma_vmid_gpa() argument 343 data.order = order; in kvm_riscv_hfence_gvma_vmid_gpa() 366 data.order = order; in kvm_riscv_hfence_vvma_asid_gva() 387 unsigned long order) in kvm_riscv_hfence_vvma_gva() argument [all …]
|
/linux-6.3-rc2/kernel/bpf/ |
A D | cgroup_iter.c | 54 int order; member 77 if (p->order == BPF_CGROUP_ITER_DESCENDANTS_PRE) in cgroup_iter_seq_start() 110 if (p->order == BPF_CGROUP_ITER_DESCENDANTS_PRE) in cgroup_iter_seq_next() 176 p->order = aux->cgroup.order; in BTF_ID_LIST_GLOBAL_SINGLE() 200 int order = linfo->cgroup.order; in bpf_iter_attach_cgroup() local 203 if (order != BPF_CGROUP_ITER_DESCENDANTS_PRE && in bpf_iter_attach_cgroup() 204 order != BPF_CGROUP_ITER_DESCENDANTS_POST && in bpf_iter_attach_cgroup() 205 order != BPF_CGROUP_ITER_ANCESTORS_UP && in bpf_iter_attach_cgroup() 206 order != BPF_CGROUP_ITER_SELF_ONLY) in bpf_iter_attach_cgroup() 223 aux->cgroup.order = order; in bpf_iter_attach_cgroup() [all …]
|
/linux-6.3-rc2/tools/testing/radix-tree/ |
A D | multiorder.c | 16 unsigned order) in item_insert_order() argument 18 XA_STATE_ORDER(xas, xa, index, order); in item_insert_order() 19 struct item *item = item_create(index, order); in item_insert_order() 58 int height = order[i] / XA_CHUNK_SHIFT; in multiorder_iteration() 60 unsigned long mask = (1UL << order[i]) - 1; in multiorder_iteration() 66 assert(item->order == order[i]); in multiorder_iteration() 112 mask = (1UL << order[k]) - 1; in multiorder_tagged_iteration() 117 assert(item->order == order[k]); in multiorder_tagged_iteration() 139 mask = (1 << order[k]) - 1; in multiorder_tagged_iteration() 144 assert(item->order == order[k]); in multiorder_tagged_iteration() [all …]
|
/linux-6.3-rc2/Documentation/trace/postprocess/ |
A D | trace-vmscan-postprocess.pl | 317 my $order = $1; 341 my $order = $2; 374 my $order = $3; 557 for (my $order = 0; $order < 20; $order++) { 560 print "direct-$order=$count "; 566 for (my $order = 0; $order < 20; $order++) { 569 print "wakeup-$order=$count "; 614 for (my $order = 0; $order < 20; $order++) { 617 print "wake-$order=$count "; 623 for (my $order = 0; $order < 20; $order++) { [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/nouveau/nvkm/subdev/therm/ |
A D | gk104.c | 34 const struct gk104_clkgate_engine_info *order = therm->clkgate_order; in gk104_clkgate_enable() local 38 for (i = 0; order[i].type != NVKM_SUBDEV_NR; i++) { in gk104_clkgate_enable() 39 if (!nvkm_device_subdev(dev, order[i].type, order[i].inst)) in gk104_clkgate_enable() 42 nvkm_mask(dev, 0x20200 + order[i].offset, 0xff00, 0x4500); in gk104_clkgate_enable() 50 for (i = 0; order[i].type != NVKM_SUBDEV_NR; i++) { in gk104_clkgate_enable() 51 if (!nvkm_device_subdev(dev, order[i].type, order[i].inst)) in gk104_clkgate_enable() 54 nvkm_mask(dev, 0x20200 + order[i].offset, 0x00ff, 0x0045); in gk104_clkgate_enable() 63 const struct gk104_clkgate_engine_info *order = therm->clkgate_order; in gk104_clkgate_fini() local 67 for (i = 0; order[i].type != NVKM_SUBDEV_NR; i++) { in gk104_clkgate_fini() 68 if (!nvkm_device_subdev(dev, order[i].type, order[i].inst)) in gk104_clkgate_fini() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/tests/ |
A D | drm_buddy_test.c | 330 int order, top; in drm_test_buddy_alloc_pathological() local 357 for (order = top; order--;) { in drm_test_buddy_alloc_pathological() 392 for (order = 1; order <= max_order; order++) { in drm_test_buddy_alloc_pathological() 410 int *order; in drm_test_buddy_alloc_smoke() local 491 kfree(order); in drm_test_buddy_alloc_smoke() 518 for (order = 0; order < max_order; order++) { in drm_test_buddy_alloc_pessimistic() 543 for (order = max_order; order--;) { in drm_test_buddy_alloc_pessimistic() 555 order = 1; in drm_test_buddy_alloc_pessimistic() 571 order++; in drm_test_buddy_alloc_pessimistic() 599 int order; in drm_test_buddy_alloc_optimistic() local [all …]
|
/linux-6.3-rc2/lib/ |
A D | test_xarray.c | 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() 994 for (order = 5; order < order_limit; order++) { in check_multi_find_3() 1158 for (order = 0; order < 20; order++) { in check_find_entry() 1192 for (order = 0; order < order_limit; order++) { in check_pause() 1490 for (order = 0; order < max_order; order++) { in check_create_range() 1586 for (order = 1; order < 2 * XA_CHUNK_SHIFT; order++) { in check_split() 1715 for (order = 1; order < 12; order++) { in check_account() 1726 xa_store_order(xa, 1 << order, order, xa_mk_index(1UL << order), in check_account() 1748 for (order = 0; order < max_order; order++) { in check_get_order() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
A D | dr_buddy.c | 75 unsigned int *order) in dr_buddy_find_free_seg() argument 99 *order = order_iter; in dr_buddy_find_free_seg() 120 unsigned int order, in mlx5dr_buddy_alloc_mem() argument 137 while (order_iter > order) { in mlx5dr_buddy_alloc_mem() 144 seg <<= order; in mlx5dr_buddy_alloc_mem() 151 unsigned int seg, unsigned int order) in mlx5dr_buddy_free_mem() argument 153 seg >>= order; in mlx5dr_buddy_free_mem() 160 --buddy->num_free[order]; in mlx5dr_buddy_free_mem() 162 ++order; in mlx5dr_buddy_free_mem() 164 bitmap_set(buddy->bitmap[order], seg, 1); in mlx5dr_buddy_free_mem() [all …]
|
/linux-6.3-rc2/include/linux/ |
A D | gfp.h | 237 return __alloc_pages(gfp_mask, order, nid, NULL); in __alloc_pages_node() 246 return __folio_alloc(gfp, order, nid, NULL); in __folio_alloc_node() 255 unsigned int order) in alloc_pages_node() argument 260 return __alloc_pages_node(nid, gfp_mask, order); in alloc_pages_node() 264 struct page *alloc_pages(gfp_t gfp, unsigned int order); 265 struct folio *folio_alloc(gfp_t gfp, unsigned order); 271 return alloc_pages_node(numa_node_id(), gfp_mask, order); in alloc_pages() 275 return __folio_alloc_node(gfp, order, numa_node_id()); in folio_alloc() 278 folio_alloc(gfp, order) 299 #define __get_dma_pages(gfp_mask, order) \ argument [all …]
|
A D | compaction.h | 65 static inline unsigned long compact_gap(unsigned int order) in compact_gap() argument 80 return 2UL << order; in compact_gap() 92 extern unsigned int extfrag_for_order(struct zone *zone, unsigned int order); 93 extern int fragmentation_index(struct zone *zone, unsigned int order); 95 unsigned int order, unsigned int alloc_flags, 99 extern enum compact_result compaction_suitable(struct zone *zone, int order, 102 extern void compaction_defer_reset(struct zone *zone, int order, 177 bool compaction_zonelist_suitable(struct alloc_context *ac, int order, 182 extern void wakeup_kcompactd(pg_data_t *pgdat, int order, int highest_zoneidx); 189 static inline enum compact_result compaction_suitable(struct zone *zone, int order, in compaction_suitable() argument [all …]
|
A D | page_owner.h | 11 extern void __reset_page_owner(struct page *page, unsigned short order); 13 unsigned short order, gfp_t gfp_mask); 21 static inline void reset_page_owner(struct page *page, unsigned short order) in reset_page_owner() argument 24 __reset_page_owner(page, order); in reset_page_owner() 28 unsigned short order, gfp_t gfp_mask) in set_page_owner() argument 31 __set_page_owner(page, order, gfp_mask); in set_page_owner() 55 static inline void reset_page_owner(struct page *page, unsigned short order) in reset_page_owner() argument 59 unsigned int order, gfp_t gfp_mask) in set_page_owner() argument 63 unsigned short order) in split_page_owner() argument
|
/linux-6.3-rc2/drivers/gpu/drm/i915/selftests/ |
A D | i915_random.c | 70 void i915_random_reorder(unsigned int *order, unsigned int count, in i915_random_reorder() argument 73 i915_prandom_shuffle(order, sizeof(*order), count, state); in i915_random_reorder() 78 unsigned int *order, i; in i915_random_order() local 80 order = kmalloc_array(count, sizeof(*order), in i915_random_order() 82 if (!order) in i915_random_order() 83 return order; in i915_random_order() 86 order[i] = i; in i915_random_order() 88 i915_random_reorder(order, count, state); in i915_random_order() 89 return order; in i915_random_order()
|
A D | i915_syncmap.c | 274 unsigned int pass, order; in igt_syncmap_join_above() local 296 for (order = 0; order < 64; order += SHIFT) { in igt_syncmap_join_above() 335 unsigned int step, order, idx; in igt_syncmap_join_below() local 345 for (order = 64 - SHIFT; order > 0; order -= SHIFT) { in igt_syncmap_join_below() 362 for (order = SHIFT; order < 64; order += SHIFT) { in igt_syncmap_join_below() 383 for (order = SHIFT; order < 64; order += SHIFT) { in igt_syncmap_join_below() 449 unsigned int idx, order; in igt_syncmap_compact() local 462 for (order = SHIFT; order < 64; order += SHIFT) { in igt_syncmap_compact() 477 context, order, idx, in igt_syncmap_compact() 491 if (sync->height != order) { in igt_syncmap_compact() [all …]
|
/linux-6.3-rc2/arch/arm/lib/ |
A D | lib1funcs.S | 111 rsb \order, \order, #31 122 addhs \order, \order, #8 126 addhs \order, \order, #4 129 addhi \order, \order, #3 130 addls \order, \order, \divisor, lsr #1 143 sub \order, \order, \spare 148 mov \order, #0 157 addlo \order, \order, #4 165 addlo \order, \order, #1 172 subs \order, \order, #3 @ yes, 3 is intended here [all …]
|
/linux-6.3-rc2/scripts/atomic/ |
A D | gen-atomic-instrumented.sh | 37 local order="$1"; shift 39 if [ "${order}" = "_release" ]; then 41 elif [ -z "${order}" ] && ! meta_in "$meta" "slv"; then 59 local order="$1"; shift 63 local atomicname="${atomic}_${pfx}${name}${sfx}${order}" 67 local checks="$(gen_params_checks "${meta}" "${order}" "$@")" 86 local order="$1"; shift 91 case "$order" in 109 arch_${xchg}${order}(__ai_ptr, __ai_oldp, __VA_ARGS__); \\ 123 arch_${xchg}${order}(__ai_ptr, __VA_ARGS__); \\
|