/openbmc/linux/scripts/atomic/ |
H A D | gen-atomic-fallback.sh | 16 local order="$1"; shift 35 local order="$1"; shift 37 local tmpl_order=${order#_} 49 local order="$1"; shift 62 local order="$1"; shift 192 local order="$1"; shift 196 printf "#define raw_${xchg}${order} arch_${xchg}${order}\n" 211 printf "#define raw_${xchg}${order}(...) raw_${xchg}${order}_not_implemented()\n" 227 local order="$1"; shift; 244 local order="$1"; shift [all …]
|
H 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}" 88 local order="$1"; shift 92 case "$order" in 110 raw_${xchg}${order}(__ai_ptr, __ai_oldp, __VA_ARGS__); \\ 124 raw_${xchg}${order}(__ai_ptr, __VA_ARGS__); \\ 166 for order in "" "_acquire" "_release" "_relaxed"; do [all …]
|
/openbmc/linux/arch/arm64/kvm/hyp/nvhe/ |
H 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 …]
|
/openbmc/linux/include/trace/events/ |
H A D | compaction.h | 168 int order, 181 __entry->order = order; 187 __entry->order, 195 int order, 210 __entry->order = order; 217 __entry->order, 224 int order, 233 int order, 257 __entry->order = order; 266 __entry->order, [all …]
|
H 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 …]
|
H 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 …]
|
/openbmc/linux/mm/ |
H A D | page_alloc.c | 631 if (!capc || order != capc->cc->order) in compaction_capture() 826 order++; in __free_one_page() 1934 int order; in unreserve_highatomic_pageblock() local 1948 for (order = 0; order < NR_PAGE_ORDERS; order++) { in unreserve_highatomic_pageblock() 3287 .order = order, in __alloc_pages_may_oom() 3516 if (!order || order > PAGE_ALLOC_COSTLY_ORDER) in should_compact_retry() 4527 free_the_page(page + (1 << order), order); in __free_pages() 6121 int order; in alloc_contig_range() local 6195 order = 0; in alloc_contig_range() 6451 for (order = 0; order < NR_PAGE_ORDERS; order++) { in is_free_buddy_page() [all …]
|
H A D | compaction.c | 54 #define block_end_pfn(pfn, order) ALIGN((pfn) + 1, 1UL << (order)) argument 98 if (order) in split_map_pages() 1453 order--; in next_search_order() 1455 order = cc->order - 1; in next_search_order() 1477 int order; in fast_isolate_freepages() local 1511 order = next_search_order(cc, order)) { in fast_isolate_freepages() 1852 int order; in fast_find_migrateblock() local 1902 for (order = cc->order - 1; in fast_find_migrateblock() 2228 for (order = cc->order; order < NR_PAGE_ORDERS; order++) { in __compact_finished() 2625 .order = order, in compact_zone_order() [all …]
|
/openbmc/linux/drivers/gpu/drm/ttm/ |
H 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() 394 unsigned int order; in ttm_pool_free_range() local 435 unsigned int order; in ttm_pool_alloc() local 455 order = min_t(unsigned int, order, __fls(num_pages))) { in ttm_pool_alloc() 504 if (order) { in ttm_pool_alloc() [all …]
|
/openbmc/linux/drivers/gpu/drm/lib/ |
H 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()
|
/openbmc/linux/tools/testing/radix-tree/ |
H A D | multiorder.c | 16 unsigned order) in item_insert_order() argument 18 XA_STATE_ORDER(xas, xa, index, order); in item_insert_order() 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() 172 item_insert_order(tree, 0, order); in creator_func() 218 unsigned int order; in load_creator() local 226 for (order = 1; order < RADIX_TREE_MAP_SHIFT; order++) { in load_creator() [all …]
|
/openbmc/linux/lib/ |
H 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() 1748 for (order = 0; order < max_order; order++) { in check_get_order() 1767 for (order = 0; order < max_order; order++) { in check_xas_get_order() [all …]
|
/openbmc/linux/mm/kmsan/ |
H 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 …]
|
/openbmc/linux/drivers/media/pci/cx18/ |
H A D | cx18-mailbox.c | 240 mb = &order->mb; in epu_dma_done() 349 order->mb.cmd); in epu_cmd() 356 order->mb.cmd); in epu_cmd() 374 epu_cmd(cx, order); in cx18_in_work_handler() 399 order->rpu, order->mb.cmd); in mb_ack_irq() 408 rpu_str[order->rpu], rpu_str[order->rpu], req); in mb_ack_irq() 423 mb = &order->mb; in epu_dma_done_irq() 489 order->mb.cmd); in epu_cmd_irq() 518 return order; in alloc_in_work_order_irq() 546 order->flags = 0; in cx18_api_epu_cmd_irq() [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/therm/ |
H 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 …]
|
/openbmc/linux/include/linux/ |
H 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() 85 extern unsigned int extfrag_for_order(struct zone *zone, unsigned int order); 86 extern int fragmentation_index(struct zone *zone, unsigned int order); 88 unsigned int order, unsigned int alloc_flags, 92 extern bool compaction_suitable(struct zone *zone, int order, 95 extern void compaction_defer_reset(struct zone *zone, int order, 98 bool compaction_zonelist_suitable(struct alloc_context *ac, int order, 103 extern void wakeup_kcompactd(pg_data_t *pgdat, int order, int highest_zoneidx); 110 static inline bool compaction_suitable(struct zone *zone, int order, in compaction_suitable() argument [all …]
|
H 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 …]
|
/openbmc/linux/kernel/bpf/ |
H 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 …]
|
/openbmc/linux/arch/riscv/kvm/ |
H 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 …]
|
/openbmc/linux/Documentation/trace/postprocess/ |
H 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 …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
H 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 …]
|
/openbmc/linux/drivers/gpu/drm/tests/ |
H A D | drm_buddy_test.c | 331 int order, top; in drm_test_buddy_alloc_pathological() local 358 for (order = top; order--;) { in drm_test_buddy_alloc_pathological() 393 for (order = 1; order <= max_order; order++) { in drm_test_buddy_alloc_pathological() 411 int *order; in drm_test_buddy_alloc_smoke() local 492 kfree(order); in drm_test_buddy_alloc_smoke() 519 for (order = 0; order < max_order; order++) { in drm_test_buddy_alloc_pessimistic() 544 for (order = max_order; order--;) { in drm_test_buddy_alloc_pessimistic() 556 order = 1; in drm_test_buddy_alloc_pessimistic() 572 order++; in drm_test_buddy_alloc_pessimistic() 600 int order; in drm_test_buddy_alloc_optimistic() local [all …]
|
/openbmc/linux/drivers/gpu/drm/i915/selftests/ |
H 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()
|
H 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 …]
|
/openbmc/linux/arch/riscv/mm/ |
H A D | hugetlbpage.c | 35 unsigned long order; in huge_pte_alloc() local 68 for_each_napot_order(order) { in huge_pte_alloc() 88 unsigned long order; in huge_pte_offset() local 119 for_each_napot_order(order) { in huge_pte_offset() 186 unsigned long order; in arch_make_huge_pte() local 188 for_each_napot_order(order) { in arch_make_huge_pte() 194 if (order == NAPOT_ORDER_MAX) in arch_make_huge_pte() 270 unsigned long order; in huge_ptep_set_access_flags() local 314 unsigned long order; in huge_ptep_set_wrprotect() local 369 unsigned long order; in is_napot_size() local [all …]
|