Home
last modified time | relevance | path

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

12345678910>>...51

/Linux-v5.15/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,
42 /* Serialize swap slots cache enable/disable operations */
115 swp_entry_t *slots, *slots_ret; in alloc_swap_slot_cache() local
122 slots = kvcalloc(SWAP_SLOTS_CACHE_SIZE, sizeof(swp_entry_t), in alloc_swap_slot_cache()
124 if (!slots) in alloc_swap_slot_cache()
[all …]
Dz3fold.c90 * be enough slots to hold all possible variants
106 * @slots: pointer to the structure holding buddy slots
120 struct z3fold_buddy_slots *slots; member
215 struct z3fold_buddy_slots *slots; in alloc_slots() local
217 slots = kmem_cache_zalloc(pool->c_handle, in alloc_slots()
220 if (slots) { in alloc_slots()
222 kmemleak_not_leak(slots); in alloc_slots()
223 slots->pool = (unsigned long)pool; in alloc_slots()
224 rwlock_init(&slots->lock); in alloc_slots()
227 return slots; in alloc_slots()
[all …]
/Linux-v5.15/drivers/input/
Dinput-mt.c24 * input_mt_init_slots() - initialize MT input slots
26 * @num_slots: number of slots used by the device
36 * reinitialize with a different number of slots.
49 mt = kzalloc(struct_size(mt, slots, num_slots), GFP_KERNEL); in input_mt_init_slots()
88 /* Mark slots as 'inactive' */ in input_mt_init_slots()
90 input_mt_set_value(&mt->slots[i], ABS_MT_TRACKING_ID, -1); in input_mt_init_slots()
92 /* Mark slots as 'unused' */ in input_mt_init_slots()
104 * input_mt_destroy_slots() - frees the MT slots of the input device
105 * @dev: input device with allocated MT slots
108 * automatically free the MT slots when the device is destroyed.
[all …]
/Linux-v5.15/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-v5.15/tools/perf/pmu-events/arch/x86/sandybridge/
Dsnb-metrics.json3 …"BriefDescription": "This category represents fraction of slots where the processor's Frontend und…
7slots where the processor's Frontend undersupplies its Backend. Frontend denotes the first part of…
10 …"BriefDescription": "This category represents fraction of slots where the processor's Frontend und…
14slots where the processor's Frontend undersupplies its Backend. Frontend denotes the first part of…
17 …"BriefDescription": "This category represents fraction of slots wasted due to incorrect speculatio…
21 … fraction of slots wasted due to incorrect speculations. This include slots used to issue uops tha…
24 …"BriefDescription": "This category represents fraction of slots wasted due to incorrect speculatio…
28 … fraction of slots wasted due to incorrect speculations. This include slots used to issue uops tha…
31 …"BriefDescription": "This category represents fraction of slots where no uops are being delivered …
35 …"PublicDescription": "This category represents fraction of slots where no uops are being delivered…
[all …]
/Linux-v5.15/tools/perf/pmu-events/arch/x86/jaketown/
Djkt-metrics.json3 …"BriefDescription": "This category represents fraction of slots where the processor's Frontend und…
7slots where the processor's Frontend undersupplies its Backend. Frontend denotes the first part of…
10 …"BriefDescription": "This category represents fraction of slots where the processor's Frontend und…
14slots where the processor's Frontend undersupplies its Backend. Frontend denotes the first part of…
17 …"BriefDescription": "This category represents fraction of slots wasted due to incorrect speculatio…
21 … fraction of slots wasted due to incorrect speculations. This include slots used to issue uops tha…
24 …"BriefDescription": "This category represents fraction of slots wasted due to incorrect speculatio…
28 … fraction of slots wasted due to incorrect speculations. This include slots used to issue uops tha…
31 …"BriefDescription": "This category represents fraction of slots where no uops are being delivered …
35 …"PublicDescription": "This category represents fraction of slots where no uops are being delivered…
[all …]
/Linux-v5.15/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-v5.15/tools/testing/selftests/kvm/
Ddirty_log_perf_test.c96 int slots; member
99 static void toggle_dirty_logging(struct kvm_vm *vm, int slots, bool enable) in toggle_dirty_logging() argument
103 for (i = 0; i < slots; i++) { in toggle_dirty_logging()
111 static inline void enable_dirty_logging(struct kvm_vm *vm, int slots) in enable_dirty_logging() argument
113 toggle_dirty_logging(vm, slots, true); in enable_dirty_logging()
116 static inline void disable_dirty_logging(struct kvm_vm *vm, int slots) in disable_dirty_logging() argument
118 toggle_dirty_logging(vm, slots, false); in disable_dirty_logging()
121 static void get_dirty_log(struct kvm_vm *vm, unsigned long *bitmaps[], int slots) in get_dirty_log() argument
125 for (i = 0; i < slots; i++) { in get_dirty_log()
133 int slots, uint64_t pages_per_slot) in clear_dirty_log() argument
[all …]
/Linux-v5.15/kernel/dma/
Dswiotlb.c195 mem->slots[i].list = IO_TLB_SEGSIZE - io_tlb_offset(i); in swiotlb_init_io_tlb_mem()
196 mem->slots[i].orig_addr = INVALID_PHYS_ADDR; in swiotlb_init_io_tlb_mem()
197 mem->slots[i].alloc_size = 0; in swiotlb_init_io_tlb_mem()
214 alloc_size = PAGE_ALIGN(array_size(sizeof(*mem->slots), nslabs)); in swiotlb_init_with_tbl()
215 mem->slots = memblock_alloc(alloc_size, PAGE_SIZE); in swiotlb_init_with_tbl()
216 if (!mem->slots) in swiotlb_init_with_tbl()
316 mem->slots = (void *)__get_free_pages(GFP_KERNEL | __GFP_ZERO, in swiotlb_late_init_with_tbl()
317 get_order(array_size(sizeof(*mem->slots), nslabs))); in swiotlb_late_init_with_tbl()
318 if (!mem->slots) in swiotlb_late_init_with_tbl()
341 slots_size = PAGE_ALIGN(array_size(sizeof(*mem->slots), mem->nslabs)); in swiotlb_exit()
[all …]
/Linux-v5.15/tools/perf/pmu-events/arch/x86/ivytown/
Divt-metrics.json3 …"BriefDescription": "This category represents fraction of slots where the processor's Frontend und…
7slots where the processor's Frontend undersupplies its Backend. Frontend denotes the first part of…
10 …"BriefDescription": "This category represents fraction of slots where the processor's Frontend und…
14slots where the processor's Frontend undersupplies its Backend. Frontend denotes the first part of…
17 …"BriefDescription": "This category represents fraction of slots wasted due to incorrect speculatio…
21 … fraction of slots wasted due to incorrect speculations. This include slots used to issue uops tha…
24 …"BriefDescription": "This category represents fraction of slots wasted due to incorrect speculatio…
28 … fraction of slots wasted due to incorrect speculations. This include slots used to issue uops tha…
31 …"BriefDescription": "This category represents fraction of slots where no uops are being delivered …
35 …"PublicDescription": "This category represents fraction of slots where no uops are being delivered…
[all …]
/Linux-v5.15/tools/perf/pmu-events/arch/x86/elkhartlake/
Dother.json184 …"BriefDescription": "Counts the total number of issue slots that were not consumed by the backend …
191slots that were not consumed by the backend because allocation is stalled due to a mispredicted ju…
196 …"BriefDescription": "Counts the number of issue slots every cycle that were not consumed by the ba…
206 …"BriefDescription": "Counts the total number of issue slots that were not consumed by the backend …
216 …"BriefDescription": "Counts the number of issue slots every cycle that were not consumed by the ba…
238 …"BriefDescription": "Counts the total number of issue slots every cycle that were not consumed by …
248 …"BriefDescription": "Counts the number of issue slots every cycle that were not consumed by the ba…
259 …"BriefDescription": "Counts the number of issue slots every cycle that were not consumed by the ba…
270 …"BriefDescription": "Counts the number of issue slots every cycle that were not consumed by the ba…
281 …"BriefDescription": "Counts the number of issue slots every cycle that were not consumed by the ba…
[all …]
/Linux-v5.15/tools/perf/pmu-events/arch/x86/haswellx/
Dhsx-metrics.json3 …"BriefDescription": "This category represents fraction of slots where the processor's Frontend und…
7slots where the processor's Frontend undersupplies its Backend. Frontend denotes the first part of…
10 …"BriefDescription": "This category represents fraction of slots where the processor's Frontend und…
14slots where the processor's Frontend undersupplies its Backend. Frontend denotes the first part of…
17 …"BriefDescription": "This category represents fraction of slots wasted due to incorrect speculatio…
21 … fraction of slots wasted due to incorrect speculations. This include slots used to issue uops tha…
24 …"BriefDescription": "This category represents fraction of slots wasted due to incorrect speculatio…
28 … fraction of slots wasted due to incorrect speculations. This include slots used to issue uops tha…
31 …"BriefDescription": "This category represents fraction of slots where no uops are being delivered …
35 …"PublicDescription": "This category represents fraction of slots where no uops are being delivered…
[all …]
/Linux-v5.15/tools/perf/pmu-events/arch/x86/haswell/
Dhsw-metrics.json3 …"BriefDescription": "This category represents fraction of slots where the processor's Frontend und…
7slots where the processor's Frontend undersupplies its Backend. Frontend denotes the first part of…
10 …"BriefDescription": "This category represents fraction of slots where the processor's Frontend und…
14slots where the processor's Frontend undersupplies its Backend. Frontend denotes the first part of…
17 …"BriefDescription": "This category represents fraction of slots wasted due to incorrect speculatio…
21 … fraction of slots wasted due to incorrect speculations. This include slots used to issue uops tha…
24 …"BriefDescription": "This category represents fraction of slots wasted due to incorrect speculatio…
28 … fraction of slots wasted due to incorrect speculations. This include slots used to issue uops tha…
31 …"BriefDescription": "This category represents fraction of slots where no uops are being delivered …
35 …"PublicDescription": "This category represents fraction of slots where no uops are being delivered…
[all …]
/Linux-v5.15/tools/perf/pmu-events/arch/x86/ivybridge/
Divb-metrics.json3 …"BriefDescription": "This category represents fraction of slots where the processor's Frontend und…
7slots where the processor's Frontend undersupplies its Backend. Frontend denotes the first part of…
10 …"BriefDescription": "This category represents fraction of slots where the processor's Frontend und…
14slots where the processor's Frontend undersupplies its Backend. Frontend denotes the first part of…
17 …"BriefDescription": "This category represents fraction of slots wasted due to incorrect speculatio…
21 … fraction of slots wasted due to incorrect speculations. This include slots used to issue uops tha…
24 …"BriefDescription": "This category represents fraction of slots wasted due to incorrect speculatio…
28 … fraction of slots wasted due to incorrect speculations. This include slots used to issue uops tha…
31 …"BriefDescription": "This category represents fraction of slots where no uops are being delivered …
35 …"PublicDescription": "This category represents fraction of slots where no uops are being delivered…
[all …]
/Linux-v5.15/tools/perf/pmu-events/arch/x86/broadwell/
Dbdw-metrics.json3 …"BriefDescription": "This category represents fraction of slots where the processor's Frontend und…
7slots where the processor's Frontend undersupplies its Backend. Frontend denotes the first part of…
10 …"BriefDescription": "This category represents fraction of slots where the processor's Frontend und…
14slots where the processor's Frontend undersupplies its Backend. Frontend denotes the first part of…
17 …"BriefDescription": "This category represents fraction of slots wasted due to incorrect speculatio…
21 … fraction of slots wasted due to incorrect speculations. This include slots used to issue uops tha…
24 …"BriefDescription": "This category represents fraction of slots wasted due to incorrect speculatio…
28 … fraction of slots wasted due to incorrect speculations. This include slots used to issue uops tha…
31 …"BriefDescription": "This category represents fraction of slots where no uops are being delivered …
35 …"PublicDescription": "This category represents fraction of slots where no uops are being delivered…
[all …]
/Linux-v5.15/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-v5.15/tools/perf/pmu-events/arch/x86/skylake/
Dskl-metrics.json4slots where the processor's Frontend undersupplies its Backend. Frontend denotes the first part of…
5 …"BriefDescription": "This category represents fraction of slots where the processor's Frontend und…
11slots where the processor's Frontend undersupplies its Backend. Frontend denotes the first part of…
12 …"BriefDescription": "This category represents fraction of slots where the processor's Frontend und…
18 … fraction of slots wasted due to incorrect speculations. This include slots used to issue uops tha…
19 …"BriefDescription": "This category represents fraction of slots wasted due to incorrect speculatio…
25 … fraction of slots wasted due to incorrect speculations. This include slots used to issue uops tha…
26 …"BriefDescription": "This category represents fraction of slots wasted due to incorrect speculatio…
33 …"PublicDescription": "This category represents fraction of slots where no uops are being delivered…
34 …"BriefDescription": "This category represents fraction of slots where no uops are being delivered …
[all …]
/Linux-v5.15/tools/perf/pmu-events/arch/x86/broadwellx/
Dbdx-metrics.json3 …"BriefDescription": "This category represents fraction of slots where the processor's Frontend und…
7slots where the processor's Frontend undersupplies its Backend. Frontend denotes the first part of…
10 …"BriefDescription": "This category represents fraction of slots where the processor's Frontend und…
14slots where the processor's Frontend undersupplies its Backend. Frontend denotes the first part of…
17 …"BriefDescription": "This category represents fraction of slots wasted due to incorrect speculatio…
21 … fraction of slots wasted due to incorrect speculations. This include slots used to issue uops tha…
24 …"BriefDescription": "This category represents fraction of slots wasted due to incorrect speculatio…
28 … fraction of slots wasted due to incorrect speculations. This include slots used to issue uops tha…
31 …"BriefDescription": "This category represents fraction of slots where no uops are being delivered …
35 …"PublicDescription": "This category represents fraction of slots where no uops are being delivered…
[all …]
/Linux-v5.15/fs/btrfs/
Dinode-item.c93 return btrfs_find_name_in_ext_backref(path->nodes[0], path->slots[0], in btrfs_lookup_inode_extref()
133 extref = btrfs_find_name_in_ext_backref(path->nodes[0], path->slots[0], in btrfs_del_inode_extref()
142 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_del_inode_extref()
156 item_start = btrfs_item_ptr_offset(leaf, path->slots[0]); in btrfs_del_inode_extref()
203 ref = btrfs_find_name_in_backref(path->nodes[0], path->slots[0], name, in btrfs_del_inode_ref()
211 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_del_inode_ref()
222 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 item = btrfs_item_nr(path->slots[0]); in btrfs_insert_inode_extref()
286 ptr = (unsigned long)btrfs_item_ptr(leaf, path->slots[0], char); in btrfs_insert_inode_extref()
[all …]
Dfile-item.c158 item = btrfs_item_ptr(leaf, path->slots[0], in btrfs_insert_file_extent()
202 if (path->slots[0] == 0) in btrfs_lookup_csum()
204 path->slots[0]--; in btrfs_lookup_csum()
205 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_lookup_csum()
211 csums_in_item = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_lookup_csum()
221 item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_csum_item); in btrfs_lookup_csum()
274 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in search_csum_tree()
276 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); in search_csum_tree()
277 itemsize = btrfs_item_size_nr(path->nodes[0], path->slots[0]); in search_csum_tree()
293 btrfs_item_key_to_cpu(path->nodes[0], &key, path->slots[0]); in search_csum_tree()
[all …]
/Linux-v5.15/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-v5.15/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-v5.15/drivers/firmware/efi/libstub/
Drandomalloc.c13 * Return the number of slots covered by this entry, i.e., the number of
81 /* count the suitable slots in each memory map entry */ in efi_random_alloc()
84 unsigned long slots; in efi_random_alloc() local
86 slots = get_entry_num_slots(md, size, ilog2(align)); in efi_random_alloc()
87 MD_NUM_SLOTS(md) = slots; in efi_random_alloc()
88 total_slots += slots; in efi_random_alloc()
96 * it corresponds with exactly one of the suitable slots we recorded in efi_random_alloc()
100 * slots of each entry at each iteration, until we have found the entry in efi_random_alloc()
/Linux-v5.15/tools/perf/pmu-events/arch/x86/goldmont/
Dother.json24 …"PublicDescription": "Counts the number of issue slots per core cycle that were not consumed by th…
30 "BriefDescription": "Unfilled issue slots per cycle"
34 …"PublicDescription": "Counts the number of issue slots per core cycle that were not consumed becau…
40 … "BriefDescription": "Unfilled issue slots per cycle because of a full resource in the backend"
44slots per core cycle that were not consumed by the backend because allocation is stalled waiting f…
50 "BriefDescription": "Unfilled issue slots per cycle to recover"

12345678910>>...51