Home
last modified time | relevance | path

Searched full:slots (Results 1 – 25 of 1345) sorted by relevance

12345678910>>...54

/Linux-v6.1/mm/
Dswap_slots.c3 * Manage cache of swap slots to be used for and returned from
10 * We allocate the swap slots from the global pool and put
17 * lock. We do not reuse the returned slots directly but
19 * allows the slots to coalesce and reduce fragmentation.
25 * The swap slots cache is protected by a mutex instead of
26 * a spin lock as when we search for slots with scan_swap_map,
43 /* Serialize swap slots cache enable/disable operations */
116 swp_entry_t *slots, *slots_ret; in alloc_swap_slot_cache() local
123 slots = kvcalloc(SWAP_SLOTS_CACHE_SIZE, sizeof(swp_entry_t), in alloc_swap_slot_cache()
125 if (!slots) in alloc_swap_slot_cache()
[all …]
Dz3fold.c86 * be enough slots to hold all possible variants
102 * @slots: pointer to the structure holding buddy slots
116 struct z3fold_buddy_slots *slots; member
210 struct z3fold_buddy_slots *slots = kmem_cache_zalloc(pool->c_handle, in alloc_slots() local
213 if (slots) { in alloc_slots()
215 kmemleak_not_leak(slots); in alloc_slots()
216 slots->pool = (unsigned long)pool; in alloc_slots()
217 rwlock_init(&slots->lock); in alloc_slots()
220 return slots; in alloc_slots()
254 struct z3fold_buddy_slots *slots; in get_z3fold_header() local
[all …]
/Linux-v6.1/drivers/input/
Dinput-mt.c25 * input_mt_init_slots() - initialize MT input slots
27 * @num_slots: number of slots used by the device
37 * reinitialize with a different number of slots.
50 mt = kzalloc(struct_size(mt, slots, num_slots), GFP_KERNEL); in input_mt_init_slots()
89 /* Mark slots as 'inactive' */ in input_mt_init_slots()
91 input_mt_set_value(&mt->slots[i], ABS_MT_TRACKING_ID, -1); in input_mt_init_slots()
93 /* Mark slots as 'unused' */ in input_mt_init_slots()
105 * input_mt_destroy_slots() - frees the MT slots of the input device
106 * @dev: input device with allocated MT slots
109 * automatically free the MT slots when the device is destroyed.
[all …]
/Linux-v6.1/tools/perf/pmu-events/arch/arm64/arm/cortex-a75/
Dpipeline.json21 "PublicDescription": "Duration for which all slots in the Load-Store Unit (LSU) are busy",
24 "BriefDescription": "Duration for which all slots in the Load-Store Unit (LSU) are busy"
27 …tion": "Duration for which all slots in the load-store issue queue are busy. This event counts the…
30 …tion": "Duration for which all slots in the load-store issue queue are busy. This event counts the…
33 …on": "Duration for which all slots in the data processing issue queue are busy. This event counts …
36 …on": "Duration for which all slots in the data processing issue queue are busy. This event counts …
39 …"PublicDescription": "Duration for which all slots in the data engine issue queue are busy. This e…
42 …"BriefDescription": "Duration for which all slots in the data engine issue queue are busy. This ev…
/Linux-v6.1/tools/perf/pmu-events/arch/x86/alderlake/
Dadl-metrics.json3 …"BriefDescription": "This category represents fraction of slots where the processor's Frontend und…
4 …topdown\\-bad\\-spec + topdown\\-retiring + topdown\\-be\\-bound) - INT_MISC.UOP_DROPPING / SLOTS",
7slots where the processor's Frontend undersupplies its Backend. Frontend denotes the first part of…
12 …"BriefDescription": "This metric represents fraction of slots the CPU was stalled due to Frontend …
13 …opdown\\-bad\\-spec + topdown\\-retiring + topdown\\-be\\-bound) - INT_MISC.UOP_DROPPING / SLOTS)",
16 …"PublicDescription": "This metric represents fraction of slots the CPU was stalled due to Frontend…
102 …"BriefDescription": "This metric represents fraction of slots the CPU was stalled due to Frontend …
106 …"PublicDescription": "This metric represents fraction of slots the CPU was stalled due to Frontend…
146 …"BriefDescription": "This category represents fraction of slots wasted due to incorrect speculatio…
150 … fraction of slots wasted due to incorrect speculations. This include slots used to issue uops tha…
[all …]
/Linux-v6.1/drivers/misc/mei/
Ddma-ring.c125 * @offset: offset in slots.
126 * @n: number of slots to copy.
145 * @offset: offset in slots.
146 * @n: number of slots to copy.
171 u32 rd_idx, rem, slots; in mei_dma_ring_read() local
183 slots = mei_data2slots(len); in mei_dma_ring_read()
189 if (rd_idx + slots > dbuf_depth) { in mei_dma_ring_read()
191 rem = slots - (dbuf_depth - rd_idx); in mei_dma_ring_read()
194 rem = slots; in mei_dma_ring_read()
199 WRITE_ONCE(ctrl->dbuf_rd_idx, ctrl->dbuf_rd_idx + slots); in mei_dma_ring_read()
[all …]
Dinterrupt.c226 int slots; in mei_cl_irq_disconnect_rsp() local
230 slots = mei_hbuf_empty_slots(dev); in mei_cl_irq_disconnect_rsp()
231 if (slots < 0) in mei_cl_irq_disconnect_rsp()
234 if ((u32)slots < msg_slots) in mei_cl_irq_disconnect_rsp()
258 int slots; in mei_cl_irq_read() local
265 slots = mei_hbuf_empty_slots(dev); in mei_cl_irq_read()
266 if (slots < 0) in mei_cl_irq_read()
269 if ((u32)slots < msg_slots) in mei_cl_irq_read()
323 * @slots: slots to read.
328 struct list_head *cmpl_list, s32 *slots) in mei_irq_read_handler() argument
[all …]
/Linux-v6.1/sound/pci/ac97/
Dac97_pcm.c295 * slots 7+8 in snd_ac97_set_rate()
312 unsigned short slots = 0; in get_pslots() local
326 slots |= (1<<AC97_SLOT_PCM_LEFT)|(1<<AC97_SLOT_PCM_RIGHT); in get_pslots()
328 slots |= (1<<AC97_SLOT_PCM_SLEFT)|(1<<AC97_SLOT_PCM_SRIGHT); in get_pslots()
330 slots |= (1<<AC97_SLOT_PCM_CENTER)|(1<<AC97_SLOT_LFE); in get_pslots()
343 slots |= (1<<AC97_SLOT_PCM_SLEFT)|(1<<AC97_SLOT_PCM_SRIGHT); in get_pslots()
345 slots |= (1<<AC97_SLOT_PCM_CENTER)|(1<<AC97_SLOT_LFE); in get_pslots()
355 slots |= (1<<AC97_SLOT_PCM_CENTER)|(1<<AC97_SLOT_LFE); in get_pslots()
361 return slots; in get_pslots()
363 unsigned short slots; in get_pslots() local
[all …]
/Linux-v6.1/tools/testing/selftests/kvm/
Ddirty_log_perf_test.c134 int slots; member
137 static void toggle_dirty_logging(struct kvm_vm *vm, int slots, bool enable) in toggle_dirty_logging() argument
141 for (i = 0; i < slots; i++) { in toggle_dirty_logging()
149 static inline void enable_dirty_logging(struct kvm_vm *vm, int slots) in enable_dirty_logging() argument
151 toggle_dirty_logging(vm, slots, true); in enable_dirty_logging()
154 static inline void disable_dirty_logging(struct kvm_vm *vm, int slots) in disable_dirty_logging() argument
156 toggle_dirty_logging(vm, slots, false); in disable_dirty_logging()
159 static void get_dirty_log(struct kvm_vm *vm, unsigned long *bitmaps[], int slots) in get_dirty_log() argument
163 for (i = 0; i < slots; i++) { in get_dirty_log()
171 int slots, uint64_t pages_per_slot) in clear_dirty_log() argument
[all …]
/Linux-v6.1/tools/perf/pmu-events/arch/arm64/arm/cortex-a73/
Dpipeline.json15 "PublicDescription": "Duration for which all slots in the Load-Store Unit are busy",
18 "BriefDescription": "Duration for which all slots in the Load-Store Unit are busy"
21 "PublicDescription": "Duration for which all slots in the load-store issue queue are busy",
24 "BriefDescription": "Duration for which all slots in the load-store issue queue are busy"
27 … "PublicDescription": "Duration for which all slots in the data processing issue queue are busy",
30 … "BriefDescription": "Duration for which all slots in the data processing issue queue are busy"
33 "PublicDescription": "Duration for which all slots in the Data Engine issue queue are busy",
36 "BriefDescription": "Duration for which all slots in the Data Engine issue queue are busy"
/Linux-v6.1/tools/perf/pmu-events/arch/x86/sandybridge/
Dsnb-metrics.json3 …"BriefDescription": "This category represents fraction of slots where the processor's Frontend und…
4 "MetricExpr": "IDQ_UOPS_NOT_DELIVERED.CORE / SLOTS",
7slots where the processor's Frontend undersupplies its Backend. Frontend denotes the first part of…
11 …"BriefDescription": "This metric represents fraction of slots the CPU was stalled due to Frontend …
12 …Expr": "4 * min(CPU_CLK_UNHALTED.THREAD, IDQ_UOPS_NOT_DELIVERED.CYCLES_0_UOPS_DELIV.CORE) / SLOTS",
15 …"PublicDescription": "This metric represents fraction of slots the CPU was stalled due to Frontend…
59 …"BriefDescription": "This metric represents fraction of slots the CPU was stalled due to Frontend …
63 …"PublicDescription": "This metric represents fraction of slots the CPU was stalled due to Frontend…
67 …"BriefDescription": "This category represents fraction of slots wasted due to incorrect speculatio…
68 …LOTS + 4 * ((INT_MISC.RECOVERY_CYCLES_ANY / 2) if #SMT_on else INT_MISC.RECOVERY_CYCLES)) / SLOTS",
[all …]
/Linux-v6.1/tools/perf/pmu-events/arch/x86/jaketown/
Djkt-metrics.json3 …"BriefDescription": "This category represents fraction of slots where the processor's Frontend und…
4 "MetricExpr": "IDQ_UOPS_NOT_DELIVERED.CORE / SLOTS",
7slots where the processor's Frontend undersupplies its Backend. Frontend denotes the first part of…
11 …"BriefDescription": "This metric represents fraction of slots the CPU was stalled due to Frontend …
12 …Expr": "4 * min(CPU_CLK_UNHALTED.THREAD, IDQ_UOPS_NOT_DELIVERED.CYCLES_0_UOPS_DELIV.CORE) / SLOTS",
15 …"PublicDescription": "This metric represents fraction of slots the CPU was stalled due to Frontend…
59 …"BriefDescription": "This metric represents fraction of slots the CPU was stalled due to Frontend …
63 …"PublicDescription": "This metric represents fraction of slots the CPU was stalled due to Frontend…
67 …"BriefDescription": "This category represents fraction of slots wasted due to incorrect speculatio…
68 …LOTS + 4 * ((INT_MISC.RECOVERY_CYCLES_ANY / 2) if #SMT_on else INT_MISC.RECOVERY_CYCLES)) / SLOTS",
[all …]
/Linux-v6.1/fs/btrfs/
Dinode-item.c94 return btrfs_find_name_in_ext_backref(path->nodes[0], path->slots[0], in btrfs_lookup_inode_extref()
134 extref = btrfs_find_name_in_ext_backref(path->nodes[0], path->slots[0], in btrfs_del_inode_extref()
143 item_size = btrfs_item_size(leaf, path->slots[0]); in btrfs_del_inode_extref()
157 item_start = btrfs_item_ptr_offset(leaf, path->slots[0]); in btrfs_del_inode_extref()
204 ref = btrfs_find_name_in_backref(path->nodes[0], path->slots[0], name, in btrfs_del_inode_ref()
212 item_size = btrfs_item_size(leaf, path->slots[0]); in btrfs_del_inode_ref()
223 item_start = btrfs_item_ptr_offset(leaf, path->slots[0]); in btrfs_del_inode_ref()
273 path->slots[0], in btrfs_insert_inode_extref()
285 ptr = (unsigned long)btrfs_item_ptr(leaf, path->slots[0], char); in btrfs_insert_inode_extref()
286 ptr += btrfs_item_size(leaf, path->slots[0]) - ins_len; in btrfs_insert_inode_extref()
[all …]
Dfile-item.c166 item = btrfs_item_ptr(leaf, path->slots[0], in btrfs_insert_hole_extent()
210 if (path->slots[0] == 0) in btrfs_lookup_csum()
212 path->slots[0]--; in btrfs_lookup_csum()
213 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_lookup_csum()
219 csums_in_item = btrfs_item_size(leaf, path->slots[0]); in btrfs_lookup_csum()
229 item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_csum_item); in btrfs_lookup_csum()
283 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in search_csum_tree()
285 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); in search_csum_tree()
286 itemsize = btrfs_item_size(path->nodes[0], path->slots[0]); in search_csum_tree()
303 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); in search_csum_tree()
[all …]
/Linux-v6.1/drivers/firmware/efi/libstub/
Drandomalloc.c13 * Return the number of slots covered by this entry, i.e., the number of
73 /* count the suitable slots in each memory map entry */ in efi_random_alloc()
76 unsigned long slots; in efi_random_alloc() local
78 slots = get_entry_num_slots(md, size, ilog2(align)); in efi_random_alloc()
79 MD_NUM_SLOTS(md) = slots; in efi_random_alloc()
80 total_slots += slots; in efi_random_alloc()
82 total_mirrored_slots += slots; in efi_random_alloc()
85 /* consider only mirrored slots for randomization if any exist */ in efi_random_alloc()
94 * it corresponds with exactly one of the suitable slots we recorded in efi_random_alloc()
98 * slots of each entry at each iteration, until we have found the entry in efi_random_alloc()
/Linux-v6.1/arch/ia64/scripts/
Dunwcheck.py27 def check_func (func, slots, rlen_sum): argument
28 if slots != rlen_sum:
32 print("ERROR: %s: %lu slots, total region length = %lu" % (func, slots, rlen_sum))
38 slots = 0 variable
43 check_func(func, slots, rlen_sum)
48 slots = 3 * (end - start) / 16 variable
55 check_func(func, slots, rlen_sum)
/Linux-v6.1/kernel/dma/
Dswiotlb.c102 * contiguous slots tracking: free slots are treated contiguous no matter
286 mem->slots[i].list = IO_TLB_SEGSIZE - io_tlb_offset(i); in swiotlb_init_io_tlb_mem()
287 mem->slots[i].orig_addr = INVALID_PHYS_ADDR; in swiotlb_init_io_tlb_mem()
288 mem->slots[i].alloc_size = 0; in swiotlb_init_io_tlb_mem()
356 alloc_size = PAGE_ALIGN(array_size(sizeof(*mem->slots), nslabs)); in swiotlb_init_remap()
357 mem->slots = memblock_alloc(alloc_size, PAGE_SIZE); in swiotlb_init_remap()
358 if (!mem->slots) { in swiotlb_init_remap()
445 mem->slots = (void *)__get_free_pages(GFP_KERNEL | __GFP_ZERO, in swiotlb_init_late()
446 get_order(array_size(sizeof(*mem->slots), nslabs))); in swiotlb_init_late()
447 if (!mem->slots) in swiotlb_init_late()
[all …]
/Linux-v6.1/tools/perf/arch/x86/util/
Devlist.c70 struct evsel *evsel, *first, *slots = NULL; in arch_evlist__leader() local
78 /* If there is a slots event and a topdown event then the slots event comes first. */ in arch_evlist__leader()
81 if (strcasestr(evsel->name, "slots")) { in arch_evlist__leader()
82 slots = evsel; in arch_evlist__leader()
83 if (slots == first) in arch_evlist__leader()
88 if (slots && has_topdown) in arch_evlist__leader()
89 return slots; in arch_evlist__leader()
/Linux-v6.1/sound/soc/meson/
Daxg-card.c21 unsigned int slots; member
67 be->slots, be->slot_width); in axg_card_tdm_dai_init()
70 "setting tdm link slots failed\n"); in axg_card_tdm_dai_init()
76 be->slots, be->slot_width); in axg_card_tdm_dai_init()
78 dev_err(asoc_rtd_to_cpu(rtd, 0)->dev, "setting tdm link slots failed\n"); in axg_card_tdm_dai_init()
94 be->slots, be->slot_width); in axg_card_tdm_dai_lb_init()
96 dev_err(asoc_rtd_to_cpu(rtd, 0)->dev, "setting tdm link slots failed\n"); in axg_card_tdm_dai_lb_init()
179 /* Disable playback is the interface has no tx slots */ in axg_card_parse_cpu_tdm_slots()
189 /* Disable capture is the interface has no rx slots */ in axg_card_parse_cpu_tdm_slots()
195 dev_err(card->dev, "tdm link has no cpu slots\n"); in axg_card_parse_cpu_tdm_slots()
[all …]
/Linux-v6.1/arch/arm64/kernel/
Dhw_breakpoint.c178 * @slots: pointer to array of slots
179 * @max_slots: max number of slots
188 static int hw_breakpoint_slot_setup(struct perf_event **slots, int max_slots, in hw_breakpoint_slot_setup() argument
196 slot = &slots[i]; in hw_breakpoint_slot_setup()
226 struct perf_event **slots; in hw_breakpoint_control() local
236 slots = this_cpu_ptr(bp_on_reg); in hw_breakpoint_control()
243 slots = this_cpu_ptr(wp_on_reg); in hw_breakpoint_control()
248 i = hw_breakpoint_slot_setup(slots, max_slots, bp, ops); in hw_breakpoint_control()
584 struct perf_event **slots; in toggle_bp_registers() local
588 slots = this_cpu_ptr(bp_on_reg); in toggle_bp_registers()
[all …]
/Linux-v6.1/tools/perf/Documentation/
Dtopdown.txt49 On Ice Lake, there is a new fixed counter 3: SLOTS, which reports
50 "pipeline SLOTS" (cycles multiplied by core issue width) and a
51 metric register that reports slots ratios for the different bottleneck
63 The application opens a group with fixed counter 3 (SLOTS) and any
87 /* Open slots counter file descriptor for current task. */
88 struct perf_event_attr slots = {
95 int slots_fd = perf_event_open(&slots, 0, -1, -1, 0);
106 * Set slots event as the leader of the group.
129 to read slots and the topdown metrics at different points of the program:
158 _rdpmc calls should not be mixed with reading the metrics and slots counters
[all …]
/Linux-v6.1/lib/
Dassoc_array.c52 ptr = READ_ONCE(node->slots[slot]); /* Address dependency. */ in assoc_array_subtree_iterate()
81 ptr = READ_ONCE(node->slots[slot]); /* Address dependency. */ in assoc_array_subtree_iterate()
209 ptr = READ_ONCE(node->slots[slot]); /* Address dependency. */ in assoc_array_walk()
324 ptr = READ_ONCE(node->slots[slot]); /* Address dependency. */ in assoc_array_find()
382 struct assoc_array_ptr *ptr = node->slots[slot]; in assoc_array_destroy_subtree()
462 edit->leaf_p = &new_n0->slots[0]; in assoc_array_insert_in_empty_tree()
505 ptr = node->slots[i]; in assoc_array_insert_into_terminal_node()
514 edit->leaf_p = &node->slots[i]; in assoc_array_insert_into_terminal_node()
515 edit->dead_leaf = node->slots[i]; in assoc_array_insert_into_terminal_node()
526 edit->leaf_p = &node->slots[free_slot]; in assoc_array_insert_into_terminal_node()
[all …]
/Linux-v6.1/tools/perf/pmu-events/arch/x86/sapphirerapids/
Dspr-metrics.json3 …"BriefDescription": "This category represents fraction of slots where the processor's Frontend und…
4 …topdown\\-bad\\-spec + topdown\\-retiring + topdown\\-be\\-bound) - INT_MISC.UOP_DROPPING / SLOTS",
7slots where the processor's Frontend undersupplies its Backend. Frontend denotes the first part of…
11 …"BriefDescription": "This metric represents fraction of slots the CPU was stalled due to Frontend …
12 …opdown\\-bad\\-spec + topdown\\-retiring + topdown\\-be\\-bound) - INT_MISC.UOP_DROPPING / SLOTS)",
15 …"PublicDescription": "This metric represents fraction of slots the CPU was stalled due to Frontend…
91 …"BriefDescription": "This metric represents fraction of slots the CPU was stalled due to Frontend …
95 …"PublicDescription": "This metric represents fraction of slots the CPU was stalled due to Frontend…
122 …"BriefDescription": "This category represents fraction of slots wasted due to incorrect speculatio…
126 … fraction of slots wasted due to incorrect speculations. This include slots used to issue uops tha…
[all …]
/Linux-v6.1/tools/perf/pmu-events/arch/x86/elkhartlake/
Dpipeline.json366 …"BriefDescription": "Counts the total number of issue slots that were not consumed by the backend …
373slots that were not consumed by the backend because allocation is stalled due to a mispredicted ju…
378 …"BriefDescription": "Counts the number of issue slots every cycle that were not consumed by the ba…
389 …"BriefDescription": "Counts the total number of issue slots that were not consumed by the backend …
400 …"BriefDescription": "Counts the number of issue slots every cycle that were not consumed by the ba…
422 …"BriefDescription": "Counts the total number of issue slots every cycle that were not consumed by …
432 …"BriefDescription": "Counts the number of issue slots every cycle that were not consumed by the ba…
443 …"BriefDescription": "Counts the number of issue slots every cycle that were not consumed by the ba…
454 …"BriefDescription": "Counts the number of issue slots every cycle that were not consumed by the ba…
465 …"BriefDescription": "Counts the number of issue slots every cycle that were not consumed by the ba…
[all …]
/Linux-v6.1/tools/perf/pmu-events/arch/x86/snowridgex/
Dpipeline.json366 …"BriefDescription": "Counts the total number of issue slots that were not consumed by the backend …
373slots that were not consumed by the backend because allocation is stalled due to a mispredicted ju…
378 …"BriefDescription": "Counts the number of issue slots every cycle that were not consumed by the ba…
389 …"BriefDescription": "Counts the total number of issue slots that were not consumed by the backend …
400 …"BriefDescription": "Counts the number of issue slots every cycle that were not consumed by the ba…
422 …"BriefDescription": "Counts the total number of issue slots every cycle that were not consumed by …
432 …"BriefDescription": "Counts the number of issue slots every cycle that were not consumed by the ba…
443 …"BriefDescription": "Counts the number of issue slots every cycle that were not consumed by the ba…
454 …"BriefDescription": "Counts the number of issue slots every cycle that were not consumed by the ba…
465 …"BriefDescription": "Counts the number of issue slots every cycle that were not consumed by the ba…
[all …]

12345678910>>...54