Home
last modified time | relevance | path

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

12345678910>>...18

/Linux-v5.4/mm/
Dswap_slots.c118 swp_entry_t *slots, *slots_ret; in alloc_swap_slot_cache() local
125 slots = kvcalloc(SWAP_SLOTS_CACHE_SIZE, sizeof(swp_entry_t), in alloc_swap_slot_cache()
127 if (!slots) in alloc_swap_slot_cache()
133 kvfree(slots); in alloc_swap_slot_cache()
139 if (cache->slots || cache->slots_ret) in alloc_swap_slot_cache()
157 cache->slots = slots; in alloc_swap_slot_cache()
158 slots = NULL; in alloc_swap_slot_cache()
163 if (slots) in alloc_swap_slot_cache()
164 kvfree(slots); in alloc_swap_slot_cache()
174 swp_entry_t *slots = NULL; in drain_slots_cache_cpu() local
[all …]
Dz3fold.c118 struct z3fold_buddy_slots *slots; member
199 struct z3fold_buddy_slots *slots; in alloc_slots() local
201 slots = kmem_cache_alloc(pool->c_handle, in alloc_slots()
204 if (slots) { in alloc_slots()
205 memset(slots->slot, 0, sizeof(slots->slot)); in alloc_slots()
206 slots->pool = (unsigned long)pool; in alloc_slots()
209 return slots; in alloc_slots()
224 struct z3fold_buddy_slots *slots; in free_handle() local
233 slots = handle_to_slots(handle); in free_handle()
236 if (slots->slot[i]) { in free_handle()
[all …]
/Linux-v5.4/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.4/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()
369 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) { in input_mt_set_matrix()
384 int *slots, int num_pos) in input_mt_set_slots() argument
390 slots[j] = -1; in input_mt_set_slots()
392 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) { in input_mt_set_slots()
398 slots[j] = s - mt->slots; in input_mt_set_slots()
[all …]
/Linux-v5.4/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.4/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.c171 int slots; in mei_cl_irq_disconnect_rsp() local
175 slots = mei_hbuf_empty_slots(dev); in mei_cl_irq_disconnect_rsp()
176 if (slots < 0) in mei_cl_irq_disconnect_rsp()
179 if ((u32)slots < msg_slots) in mei_cl_irq_disconnect_rsp()
203 int slots; in mei_cl_irq_read() local
210 slots = mei_hbuf_empty_slots(dev); in mei_cl_irq_read()
211 if (slots < 0) in mei_cl_irq_read()
214 if ((u32)slots < msg_slots) in mei_cl_irq_read()
265 struct list_head *cmpl_list, s32 *slots) in mei_irq_read_handler() argument
273 (*slots)--; in mei_irq_read_handler()
[all …]
/Linux-v5.4/fs/btrfs/
Dfile-item.c61 item = btrfs_item_ptr(leaf, path->slots[0], in btrfs_insert_file_extent()
105 if (path->slots[0] == 0) in btrfs_lookup_csum()
107 path->slots[0]--; in btrfs_lookup_csum()
108 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_lookup_csum()
114 csums_in_item = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_lookup_csum()
124 item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_csum_item); in btrfs_lookup_csum()
250 path->slots[0]); in __btrfs_lookup_bio_sums()
254 path->slots[0]); in __btrfs_lookup_bio_sums()
258 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in __btrfs_lookup_bio_sums()
338 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.c104 p->slots[i] = 0; in btrfs_release_path()
1858 int orig_slot = path->slots[level]; in balance_level()
1873 pslot = path->slots[level + 1]; in balance_level()
2042 path->slots[level + 1] -= 1; in balance_level()
2043 path->slots[level] = orig_slot; in balance_level()
2050 path->slots[level] = orig_slot; in balance_level()
2055 btrfs_node_blockptr(path->nodes[level], path->slots[level])) in balance_level()
2086 int orig_slot = path->slots[level]; in push_nodes_for_insert()
2096 pslot = path->slots[level + 1]; in push_nodes_for_insert()
2138 path->slots[level + 1] -= 1; in push_nodes_for_insert()
[all …]
Dfree-space-tree.c66 info = btrfs_item_ptr(leaf, path->slots[0], in add_new_free_space_info()
103 return btrfs_item_ptr(path->nodes[0], path->slots[0], in search_free_space_info()
127 if (p->slots[0] == 0) { in btrfs_search_prev_slot()
131 p->slots[0]--; in btrfs_search_prev_slot()
222 path->slots[0]++; in convert_free_space_to_bitmaps()
223 while (path->slots[0] > 0) { in convert_free_space_to_bitmaps()
224 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0] - 1); in convert_free_space_to_bitmaps()
246 path->slots[0]--; in convert_free_space_to_bitmaps()
252 ret = btrfs_del_items(trans, root, path, path->slots[0], nr); in convert_free_space_to_bitmaps()
303 ptr = btrfs_item_ptr_offset(leaf, path->slots[0]); in convert_free_space_to_bitmaps()
[all …]
Dtree-log.c372 path->slots[0]); in overwrite_item()
391 dst_ptr = btrfs_item_ptr_offset(path->nodes[0], path->slots[0]); in overwrite_item()
418 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in overwrite_item()
466 path->slots[0]); in overwrite_item()
475 path->slots[0]); in overwrite_item()
643 existing = btrfs_item_ptr(leaf, path->slots[0], in replay_one_extent()
682 path->slots[0]); in replay_one_extent()
965 ptr = btrfs_item_ptr_offset(path->nodes[0], path->slots[0]); in backref_in_log()
969 path->slots[0], in backref_in_log()
977 item_size = btrfs_item_size_nr(path->nodes[0], path->slots[0]); in backref_in_log()
[all …]
/Linux-v5.4/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.4/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.4/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.4/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.4/drivers/dma/ioat/
Ddca.c224 int slots = 0; in ioat_dca_count_dca_slots() local
233 req = readl(iobase + global_req_table + (slots * sizeof(u32))); in ioat_dca_count_dca_slots()
234 slots++; in ioat_dca_count_dca_slots()
237 return slots; in ioat_dca_count_dca_slots()
261 int slots; in ioat_dca_init() local
284 slots = ioat_dca_count_dca_slots(iobase, dca_offset); in ioat_dca_init()
285 if (slots == 0) in ioat_dca_init()
289 struct_size(ioatdca, req_slots, slots)); in ioat_dca_init()
296 ioatdca->max_requesters = slots; in ioat_dca_init()
/Linux-v5.4/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.4/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()
270 struct bp_busy_slots slots = {0}; in __reserve_bp_slot() local
286 fetch_bp_busy_slots(&slots, bp, type); in __reserve_bp_slot()
291 fetch_this_slot(&slots, weight); in __reserve_bp_slot()
[all …]
/Linux-v5.4/arch/arm/kernel/
Dhw_breakpoint.c325 struct perf_event **slot, **slots; in arch_install_hw_breakpoint() local
336 slots = this_cpu_ptr(bp_on_reg); in arch_install_hw_breakpoint()
342 slots = this_cpu_ptr(wp_on_reg); in arch_install_hw_breakpoint()
347 slot = &slots[i]; in arch_install_hw_breakpoint()
382 struct perf_event **slot, **slots; in arch_uninstall_hw_breakpoint() local
388 slots = this_cpu_ptr(bp_on_reg); in arch_uninstall_hw_breakpoint()
393 slots = this_cpu_ptr(wp_on_reg); in arch_uninstall_hw_breakpoint()
399 slot = &slots[i]; in arch_uninstall_hw_breakpoint()
688 struct perf_event *wp, **slots; in watchpoint_handler() local
692 slots = this_cpu_ptr(wp_on_reg); in watchpoint_handler()
[all …]
/Linux-v5.4/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.4/net/sched/
Dsch_sfq.c127 struct sfq_slot *slots; /* Flows table ('maxflows' entries) */ member
153 return &q->slots[val].dep; in sfq_dep_head()
206 struct sfq_slot *slot = &q->slots[x]; in sfq_link()
221 n = q->slots[x].dep.next; \
222 p = q->slots[x].dep.prev; \
235 d = q->slots[x].qlen--; in sfq_dec()
248 d = ++q->slots[x].qlen; in sfq_inc()
304 slot = &q->slots[x]; in sfq_drop()
319 slot = &q->slots[x]; in sfq_drop()
366 slot = &q->slots[x]; in sfq_enqueue()
[all …]
/Linux-v5.4/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.4/sound/soc/
Dsoc-dai.c113 static int snd_soc_xlate_tdm_slot_mask(unsigned int slots, in snd_soc_xlate_tdm_slot_mask() argument
120 if (!slots) in snd_soc_xlate_tdm_slot_mask()
123 *tx_mask = (1 << slots) - 1; in snd_soc_xlate_tdm_slot_mask()
124 *rx_mask = (1 << slots) - 1; in snd_soc_xlate_tdm_slot_mask()
154 int slots, int slot_width) in snd_soc_dai_set_tdm_slot() argument
157 dai->driver->ops->xlate_tdm_slot_mask(slots, in snd_soc_dai_set_tdm_slot()
160 snd_soc_xlate_tdm_slot_mask(slots, &tx_mask, &rx_mask); in snd_soc_dai_set_tdm_slot()
167 slots, slot_width); in snd_soc_dai_set_tdm_slot()
/Linux-v5.4/arch/arm/mach-omap1/
Ddevices.c92 if (mmc_controller->slots[0].wires == 4 && !cpu_is_omap7xx()) { in omap1_mmc_mux()
95 if (!mmc_controller->slots[0].nomux) in omap1_mmc_mux()
103 if (!mmc_controller->slots[1].nomux) { in omap1_mmc_mux()
108 if (mmc_controller->slots[1].wires == 4) { in omap1_mmc_mux()
159 data->slots[0].features = MMC_OMAP7XX; in omap_mmc_add()
161 data->slots[0].features = MMC_OMAP15XX; in omap_mmc_add()
163 data->slots[0].features = MMC_OMAP16XX; in omap_mmc_add()

12345678910>>...18