Home
last modified time | relevance | path

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

12345678910>>...19

/Linux-v5.10/mm/
Dswap_slots.c117 swp_entry_t *slots, *slots_ret; in alloc_swap_slot_cache() local
124 slots = kvcalloc(SWAP_SLOTS_CACHE_SIZE, sizeof(swp_entry_t), in alloc_swap_slot_cache()
126 if (!slots) in alloc_swap_slot_cache()
132 kvfree(slots); in alloc_swap_slot_cache()
138 if (cache->slots || cache->slots_ret) { in alloc_swap_slot_cache()
142 kvfree(slots); in alloc_swap_slot_cache()
163 cache->slots = slots; in alloc_swap_slot_cache()
173 swp_entry_t *slots = NULL; in drain_slots_cache_cpu() local
176 if ((type & SLOTS_CACHE) && cache->slots) { in drain_slots_cache_cpu()
178 swapcache_free_entries(cache->slots + cache->cur, cache->nr); in drain_slots_cache_cpu()
[all …]
Dz3fold.c120 struct z3fold_buddy_slots *slots; member
213 struct z3fold_buddy_slots *slots; in alloc_slots() local
215 slots = kmem_cache_zalloc(pool->c_handle, in alloc_slots()
218 if (slots) { in alloc_slots()
220 kmemleak_not_leak(slots); in alloc_slots()
221 slots->pool = (unsigned long)pool; in alloc_slots()
222 rwlock_init(&slots->lock); in alloc_slots()
225 return slots; in alloc_slots()
260 struct z3fold_buddy_slots *slots; in __get_z3fold_header() local
265 slots = handle_to_slots(handle); in __get_z3fold_header()
[all …]
/Linux-v5.10/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.10/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.10/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.10/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()
320 struct list_head *cmpl_list, s32 *slots) in mei_irq_read_handler() argument
333 (*slots)--; in mei_irq_read_handler()
[all …]
/Linux-v5.10/fs/btrfs/
Dfile-item.c152 item = btrfs_item_ptr(leaf, path->slots[0], in btrfs_insert_file_extent()
196 if (path->slots[0] == 0) in btrfs_lookup_csum()
198 path->slots[0]--; in btrfs_lookup_csum()
199 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_lookup_csum()
205 csums_in_item = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_lookup_csum()
215 item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_csum_item); in btrfs_lookup_csum()
353 path->slots[0]); in btrfs_lookup_bio_sums()
357 path->slots[0]); in btrfs_lookup_bio_sums()
361 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in btrfs_lookup_bio_sums()
431 if (ret > 0 && path->slots[0] > 0) { in btrfs_lookup_csums_range()
[all …]
Dinode-item.c93 return btrfs_find_name_in_ext_backref(path->nodes[0], path->slots[0], in btrfs_lookup_inode_extref()
135 extref = btrfs_find_name_in_ext_backref(path->nodes[0], path->slots[0], in btrfs_del_inode_extref()
144 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_del_inode_extref()
158 item_start = btrfs_item_ptr_offset(leaf, path->slots[0]); in btrfs_del_inode_extref()
207 ref = btrfs_find_name_in_backref(path->nodes[0], path->slots[0], name, in btrfs_del_inode_ref()
215 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_del_inode_ref()
226 item_start = btrfs_item_ptr_offset(leaf, path->slots[0]); in btrfs_del_inode_ref()
278 path->slots[0], in btrfs_insert_inode_extref()
290 item = btrfs_item_nr(path->slots[0]); in btrfs_insert_inode_extref()
291 ptr = (unsigned long)btrfs_item_ptr(leaf, path->slots[0], char); in btrfs_insert_inode_extref()
[all …]
Dctree.c101 p->slots[i] = 0; in btrfs_release_path()
1831 int orig_slot = path->slots[level]; in balance_level()
1846 pslot = path->slots[level + 1]; in balance_level()
2018 path->slots[level + 1] -= 1; in balance_level()
2019 path->slots[level] = orig_slot; in balance_level()
2026 path->slots[level] = orig_slot; in balance_level()
2031 btrfs_node_blockptr(path->nodes[level], path->slots[level])) in balance_level()
2062 int orig_slot = path->slots[level]; in push_nodes_for_insert()
2072 pslot = path->slots[level + 1]; in push_nodes_for_insert()
2115 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()
306 ptr = btrfs_item_ptr_offset(leaf, path->slots[0]); in convert_free_space_to_bitmaps()
[all …]
/Linux-v5.10/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.10/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.10/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.10/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.10/block/
Dkeyslot-manager.c86 ksm->slots = kvcalloc(num_slots, sizeof(ksm->slots[0]), GFP_KERNEL); in blk_ksm_init()
87 if (!ksm->slots) in blk_ksm_init()
98 ksm->slots[slot].ksm = ksm; in blk_ksm_init()
99 list_add_tail(&ksm->slots[slot].idle_slot_node, in blk_ksm_init()
179 return slot - slot->ksm->slots; in blk_ksm_get_slot_idx()
366 const struct blk_crypto_key *key = ksm->slots[slot].key; in blk_ksm_reprogram_all_keys()
384 kvfree_sensitive(ksm->slots, sizeof(ksm->slots[0]) * ksm->num_slots); in blk_ksm_destroy()
/Linux-v5.10/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.10/drivers/net/ethernet/google/gve/
Dgve_rx.c24 u32 slots; in gve_rx_free_ring() local
40 slots = rx->mask + 1; in gve_rx_free_ring()
41 bytes = sizeof(*rx->data.data_ring) * slots; in gve_rx_free_ring()
61 u32 slots; in gve_prefill_rx_pages() local
67 slots = rx->mask + 1; in gve_prefill_rx_pages()
69 rx->data.page_info = kvzalloc(slots * in gve_prefill_rx_pages()
76 for (i = 0; i < slots; i++) { in gve_prefill_rx_pages()
84 return slots; in gve_prefill_rx_pages()
101 u32 slots, npages; in gve_rx_alloc_ring() local
113 slots = priv->rx_pages_per_qpl; in gve_rx_alloc_ring()
[all …]
/Linux-v5.10/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.10/virt/kvm/
Dkvm_main.c627 struct kvm_memslots *slots; in kvm_alloc_memslots() local
629 slots = kvzalloc(sizeof(struct kvm_memslots), GFP_KERNEL_ACCOUNT); in kvm_alloc_memslots()
630 if (!slots) in kvm_alloc_memslots()
634 slots->id_to_index[i] = -1; in kvm_alloc_memslots()
636 return slots; in kvm_alloc_memslots()
658 static void kvm_free_memslots(struct kvm *kvm, struct kvm_memslots *slots) in kvm_free_memslots() argument
662 if (!slots) in kvm_free_memslots()
665 kvm_for_each_memslot(memslot, slots) in kvm_free_memslots()
668 kvfree(slots); in kvm_free_memslots()
764 struct kvm_memslots *slots = kvm_alloc_memslots(); in kvm_create_vm() local
[all …]
/Linux-v5.10/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.10/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.10/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()
/Linux-v5.10/drivers/pci/hotplug/
Dibmphp_ebda.c66 struct ebda_hpc_slot *slots; in alloc_ebda_hpc() local
73 slots = kcalloc(slot_count, sizeof(struct ebda_hpc_slot), GFP_KERNEL); in alloc_ebda_hpc()
74 if (!slots) in alloc_ebda_hpc()
76 controller->slots = slots; in alloc_ebda_hpc()
85 kfree(controller->slots); in alloc_ebda_hpc()
94 kfree(controller->slots); in free_ebda_hpc()
198 debug("%s - physical slot#: %x\n", __func__, hpc_ptr->slots[index].slot_num); in print_ebda_hpc()
199 debug("%s - pci bus# of the slot: %x\n", __func__, hpc_ptr->slots[index].slot_bus_num); in print_ebda_hpc()
200 debug("%s - index into ctlr addr: %x\n", __func__, hpc_ptr->slots[index].ctl_index); in print_ebda_hpc()
201 debug("%s - cap of the slot: %x\n", __func__, hpc_ptr->slots[index].slot_cap); in print_ebda_hpc()
[all …]
/Linux-v5.10/sound/soc/meson/
Daxg-card.c21 unsigned int slots; member
67 be->slots, be->slot_width); in axg_card_tdm_dai_init()
76 be->slots, be->slot_width); in axg_card_tdm_dai_init()
94 be->slots, be->slot_width); in axg_card_tdm_dai_lb_init()
199 of_property_read_u32(node, "dai-tdm-slot-num", &be->slots); in axg_card_parse_cpu_tdm_slots()
200 if (!be->slots) { in axg_card_parse_cpu_tdm_slots()
205 be->slots = fls(max(tx, rx)); in axg_card_parse_cpu_tdm_slots()
206 } else if (be->slots < fls(max(tx, rx)) || be->slots > 32) { in axg_card_parse_cpu_tdm_slots()

12345678910>>...19