Home
last modified time | relevance | path

Searched refs:slots (Results 1 – 25 of 495) sorted by relevance

12345678910>>...20

/Linux-v5.15/mm/
Dswap_slots.c115 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()
130 kvfree(slots); in alloc_swap_slot_cache()
136 if (cache->slots || cache->slots_ret) { in alloc_swap_slot_cache()
140 kvfree(slots); in alloc_swap_slot_cache()
161 cache->slots = slots; in alloc_swap_slot_cache()
171 swp_entry_t *slots = NULL; in drain_slots_cache_cpu() local
174 if ((type & SLOTS_CACHE) && cache->slots) { in drain_slots_cache_cpu()
176 swapcache_free_entries(cache->slots + cache->cur, cache->nr); in drain_slots_cache_cpu()
[all …]
Dz3fold.c120 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()
261 struct z3fold_buddy_slots *slots; in get_z3fold_header() local
266 slots = handle_to_slots(handle); in get_z3fold_header()
[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/sound/pci/ac97/
Dac97_pcm.c312 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
364 slots = (1<<AC97_SLOT_PCM_LEFT)|(1<<AC97_SLOT_PCM_RIGHT); in get_pslots()
[all …]
/Linux-v5.15/drivers/input/
Dinput-mt.c49 mt = kzalloc(struct_size(mt, slots, num_slots), GFP_KERNEL); in input_mt_init_slots()
90 input_mt_set_value(&mt->slots[i], ABS_MT_TRACKING_ID, -1); in input_mt_init_slots()
144 slot = &mt->slots[mt->slot]; in input_mt_report_slot_state()
209 struct input_mt_slot *ps = &mt->slots[i]; in input_mt_report_pointer_emulation()
263 if (!input_mt_is_used(mt, &mt->slots[i])) { in __input_mt_drop_unused()
372 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) { in input_mt_set_matrix()
387 int *slots, int num_pos) in input_mt_set_slots() argument
393 slots[j] = -1; in input_mt_set_slots()
395 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) { in input_mt_set_slots()
401 slots[j] = s - mt->slots; in input_mt_set_slots()
[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/drivers/misc/mei/
Ddma-ring.c171 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()
248 u32 wr_idx, rem, slots; in mei_dma_ring_write() local
256 slots = mei_data2slots(len); in mei_dma_ring_write()
258 if (wr_idx + slots > hbuf_depth) { in mei_dma_ring_write()
260 rem = slots - (hbuf_depth - wr_idx); in mei_dma_ring_write()
[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()
328 struct list_head *cmpl_list, s32 *slots) in mei_irq_read_handler() argument
342 (*slots)--; in mei_irq_read_handler()
[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/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-v5.15/fs/btrfs/
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 …]
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 …]
Dctree.c102 p->slots[i] = 0; in btrfs_release_path()
870 int orig_slot = path->slots[level]; in balance_level()
884 pslot = path->slots[level + 1]; in balance_level()
1053 path->slots[level + 1] -= 1; in balance_level()
1054 path->slots[level] = orig_slot; in balance_level()
1061 path->slots[level] = orig_slot; in balance_level()
1066 btrfs_node_blockptr(path->nodes[level], path->slots[level])) in balance_level()
1097 int orig_slot = path->slots[level]; in push_nodes_for_insert()
1107 pslot = path->slots[level + 1]; in push_nodes_for_insert()
1149 path->slots[level + 1] -= 1; in push_nodes_for_insert()
[all …]
Dfree-space-tree.c69 info = btrfs_item_ptr(leaf, path->slots[0], in add_new_free_space_info()
106 return btrfs_item_ptr(path->nodes[0], path->slots[0], in search_free_space_info()
130 if (p->slots[0] == 0) { in btrfs_search_prev_slot()
134 p->slots[0]--; in btrfs_search_prev_slot()
225 path->slots[0]++; in convert_free_space_to_bitmaps()
226 while (path->slots[0] > 0) { in convert_free_space_to_bitmaps()
227 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0] - 1); in convert_free_space_to_bitmaps()
249 path->slots[0]--; in convert_free_space_to_bitmaps()
255 ret = btrfs_del_items(trans, root, path, path->slots[0], nr); in convert_free_space_to_bitmaps()
305 ptr = btrfs_item_ptr_offset(leaf, path->slots[0]); in convert_free_space_to_bitmaps()
[all …]
/Linux-v5.15/arch/arm64/kernel/
Dhw_breakpoint.c188 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()
592 slots = this_cpu_ptr(wp_on_reg); in toggle_bp_registers()
600 if (!slots[i]) in toggle_bp_registers()
[all …]
/Linux-v5.15/drivers/input/touchscreen/
Dpenmount.c58 struct mt_slot slots[PM_MAX_MTSLOT]; member
73 pm->slots[i].active); in pm_mtevent()
74 if (pm->slots[i].active) { in pm_mtevent()
75 input_event(input, EV_ABS, ABS_MT_POSITION_X, pm->slots[i].x); in pm_mtevent()
76 input_event(input, EV_ABS, ABS_MT_POSITION_Y, pm->slots[i].y); in pm_mtevent()
136 pm->slots[slotnum].active = pm->data[0] & 0x30; in pm_parse_3000()
137 pm->slots[slotnum].x = pm->data[2] * 256 + pm->data[1]; in pm_parse_3000()
138 pm->slots[slotnum].y = pm->data[4] * 256 + pm->data[3]; in pm_parse_3000()
152 pm->slots[slotnum].active = pm->data[0] & 0x40; in pm_parse_6250()
153 pm->slots[slotnum].x = pm->data[2] * 256 + pm->data[1]; in pm_parse_6250()
[all …]
/Linux-v5.15/sound/soc/bcm/
Dbcm2835-i2s.c251 int slots, int width) in bcm2835_i2s_set_dai_tdm_slot() argument
255 if (slots) { in bcm2835_i2s_set_dai_tdm_slot()
256 if (slots < 0 || width < 0) in bcm2835_i2s_set_dai_tdm_slot()
260 rx_mask &= GENMASK(slots - 1, 0); in bcm2835_i2s_set_dai_tdm_slot()
261 tx_mask &= GENMASK(slots - 1, 0); in bcm2835_i2s_set_dai_tdm_slot()
271 if (slots * width > BCM2835_I2S_MAX_FRAME_LENGTH) in bcm2835_i2s_set_dai_tdm_slot()
275 dev->tdm_slots = slots; in bcm2835_i2s_set_dai_tdm_slot()
280 dev->frame_length = slots * width; in bcm2835_i2s_set_dai_tdm_slot()
335 unsigned int slots, slot_width, odd_slot_offset; in bcm2835_i2s_hw_params() local
361 slots = dev->tdm_slots; in bcm2835_i2s_hw_params()
[all …]
/Linux-v5.15/drivers/dma/ioat/
Ddca.c214 int slots = 0; in ioat_dca_count_dca_slots() local
223 req = readl(iobase + global_req_table + (slots * sizeof(u32))); in ioat_dca_count_dca_slots()
224 slots++; in ioat_dca_count_dca_slots()
227 return slots; in ioat_dca_count_dca_slots()
251 int slots; in ioat_dca_init() local
274 slots = ioat_dca_count_dca_slots(iobase, dca_offset); in ioat_dca_init()
275 if (slots == 0) in ioat_dca_init()
279 struct_size(ioatdca, req_slots, slots)); in ioat_dca_init()
286 ioatdca->max_requesters = slots; in ioat_dca_init()
/Linux-v5.15/kernel/events/
Dhw_breakpoint.c133 fetch_bp_busy_slots(struct bp_busy_slots *slots, struct perf_event *bp, in fetch_bp_busy_slots() argument
149 if (nr > slots->pinned) in fetch_bp_busy_slots()
150 slots->pinned = nr; in fetch_bp_busy_slots()
153 if (nr > slots->flexible) in fetch_bp_busy_slots()
154 slots->flexible = nr; in fetch_bp_busy_slots()
164 fetch_this_slot(struct bp_busy_slots *slots, int weight) in fetch_this_slot() argument
166 slots->pinned += weight; in fetch_this_slot()
279 struct bp_busy_slots slots = {0}; in __reserve_bp_slot() local
296 fetch_bp_busy_slots(&slots, bp, type); in __reserve_bp_slot()
301 fetch_this_slot(&slots, weight); in __reserve_bp_slot()
[all …]
/Linux-v5.15/sound/soc/fsl/
Dimx-card.c94 unsigned int slots; member
229 if (link_data->slots > 2) in format_is_tdm()
256 unsigned int width = link_data->slots * link_data->slot_width; in akcodec_get_mclk_rate()
299 unsigned int slots, slot_width; in imx_aif_hw_params() local
302 slots = link_data->slots; in imx_aif_hw_params()
307 slots = 1; in imx_aif_hw_params()
312 slots = 2; in imx_aif_hw_params()
325 BIT(slots) - 1, in imx_aif_hw_params()
326 BIT(slots) - 1, in imx_aif_hw_params()
327 slots, slot_width); in imx_aif_hw_params()
[all …]
/Linux-v5.15/block/
Dkeyslot-manager.c92 ksm->slots = kvcalloc(num_slots, sizeof(ksm->slots[0]), GFP_KERNEL); in blk_ksm_init()
93 if (!ksm->slots) in blk_ksm_init()
104 ksm->slots[slot].ksm = ksm; in blk_ksm_init()
105 list_add_tail(&ksm->slots[slot].idle_slot_node, in blk_ksm_init()
213 return slot - slot->ksm->slots; in blk_ksm_get_slot_idx()
417 const struct blk_crypto_key *key = ksm->slots[slot].key; in blk_ksm_reprogram_all_keys()
435 kvfree_sensitive(ksm->slots, sizeof(ksm->slots[0]) * ksm->num_slots); in blk_ksm_destroy()
/Linux-v5.15/arch/arm/kernel/
Dhw_breakpoint.c328 struct perf_event **slot, **slots; in arch_install_hw_breakpoint() local
339 slots = this_cpu_ptr(bp_on_reg); in arch_install_hw_breakpoint()
345 slots = this_cpu_ptr(wp_on_reg); in arch_install_hw_breakpoint()
350 slot = &slots[i]; in arch_install_hw_breakpoint()
385 struct perf_event **slot, **slots; in arch_uninstall_hw_breakpoint() local
391 slots = this_cpu_ptr(bp_on_reg); in arch_uninstall_hw_breakpoint()
396 slots = this_cpu_ptr(wp_on_reg); in arch_uninstall_hw_breakpoint()
402 slot = &slots[i]; in arch_uninstall_hw_breakpoint()
732 struct perf_event *wp, **slots; in watchpoint_handler() local
736 slots = this_cpu_ptr(wp_on_reg); in watchpoint_handler()
[all …]
/Linux-v5.15/virt/kvm/
Dkvm_main.c499 struct kvm_memslots *slots; in __kvm_handle_hva_range() local
510 slots = __kvm_memslots(kvm, i); in __kvm_handle_hva_range()
511 kvm_for_each_memslot(slot, slots) { in __kvm_handle_hva_range()
849 struct kvm_memslots *slots; in kvm_alloc_memslots() local
851 slots = kvzalloc(sizeof(struct kvm_memslots), GFP_KERNEL_ACCOUNT); in kvm_alloc_memslots()
852 if (!slots) in kvm_alloc_memslots()
856 slots->id_to_index[i] = -1; in kvm_alloc_memslots()
858 return slots; in kvm_alloc_memslots()
880 static void kvm_free_memslots(struct kvm *kvm, struct kvm_memslots *slots) in kvm_free_memslots() argument
884 if (!slots) in kvm_free_memslots()
[all …]
/Linux-v5.15/arch/arm/mach-omap1/
Ddevices.c91 if (mmc_controller->slots[0].wires == 4 && !cpu_is_omap7xx()) { in omap1_mmc_mux()
94 if (!mmc_controller->slots[0].nomux) in omap1_mmc_mux()
102 if (!mmc_controller->slots[1].nomux) { in omap1_mmc_mux()
107 if (mmc_controller->slots[1].wires == 4) { in omap1_mmc_mux()
158 data->slots[0].features = MMC_OMAP7XX; in omap_mmc_add()
160 data->slots[0].features = MMC_OMAP15XX; in omap_mmc_add()
162 data->slots[0].features = MMC_OMAP16XX; in omap_mmc_add()
/Linux-v5.15/arch/ia64/include/uapi/asm/
Drse.h48 unsigned long slots = (bsp - bspstore); in ia64_rse_num_regs() local
50 return slots - (ia64_rse_slot_num(bspstore) + slots)/0x40; in ia64_rse_num_regs()

12345678910>>...20