Home
last modified time | relevance | path

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

12345

/drivers/input/
Dinput-mt.c52 mt = kzalloc(sizeof(*mt) + num_slots * sizeof(*mt->slots), GFP_KERNEL); in input_mt_init_slots()
93 input_mt_set_value(&mt->slots[i], ABS_MT_TRACKING_ID, -1); in input_mt_init_slots()
145 slot = &mt->slots[mt->slot]; in input_mt_report_slot_state()
208 struct input_mt_slot *ps = &mt->slots[i]; in input_mt_report_pointer_emulation()
262 if (!input_mt_is_used(mt, &mt->slots[i])) { in __input_mt_drop_unused()
368 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) { in input_mt_set_matrix()
383 int *slots, int num_pos) in input_mt_set_slots() argument
389 slots[j] = -1; in input_mt_set_slots()
391 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) { in input_mt_set_slots()
397 slots[j] = s - mt->slots; in input_mt_set_slots()
[all …]
/drivers/misc/mei/
Dinterrupt.c173 int slots; in mei_cl_irq_disconnect_rsp() local
176 slots = mei_hbuf_empty_slots(dev); in mei_cl_irq_disconnect_rsp()
179 if (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()
212 if (slots < msg_slots) in mei_cl_irq_read()
260 struct list_head *cmpl_list, s32 *slots) in mei_irq_read_handler() argument
268 (*slots)--; in mei_irq_read_handler()
269 dev_dbg(dev->dev, "slots =%08x.\n", *slots); in mei_irq_read_handler()
282 if (mei_slots2data(*slots) < mei_hdr->length) { in mei_irq_read_handler()
[all …]
Dclient.c847 int slots; in mei_cl_irq_disconnect() local
851 slots = mei_hbuf_empty_slots(dev); in mei_cl_irq_disconnect()
853 if (slots < msg_slots) in mei_cl_irq_disconnect()
1031 int slots; in mei_cl_irq_connect() local
1035 slots = mei_hbuf_empty_slots(dev); in mei_cl_irq_connect()
1040 if (slots < msg_slots) in mei_cl_irq_connect()
1274 int slots; in mei_cl_irq_notify() local
1279 slots = mei_hbuf_empty_slots(dev); in mei_cl_irq_notify()
1281 if (slots < msg_slots) in mei_cl_irq_notify()
1534 int slots; in mei_cl_irq_write() local
[all …]
Dhw-txe.c712 int slots = dev->hbuf_depth; in mei_txe_write() local
725 if (dw_cnt > slots) in mei_txe_write()
756 hw->slots = 0; in mei_txe_write()
787 return hw->slots; in mei_txe_hbuf_empty_slots()
1061 s32 slots; in mei_txe_irq_thread_handler() local
1126 slots = mei_count_full_read_slots(dev); in mei_txe_irq_thread_handler()
1129 rets = mei_irq_read_handler(dev, &cmpl_list, &slots); in mei_txe_irq_thread_handler()
1141 hw->slots = dev->hbuf_depth; in mei_txe_irq_thread_handler()
/drivers/input/touchscreen/
Dpenmount.c62 struct mt_slot slots[PM_MAX_MTSLOT]; member
77 pm->slots[i].active); in pm_mtevent()
78 if (pm->slots[i].active) { in pm_mtevent()
79 input_event(input, EV_ABS, ABS_MT_POSITION_X, pm->slots[i].x); in pm_mtevent()
80 input_event(input, EV_ABS, ABS_MT_POSITION_Y, pm->slots[i].y); in pm_mtevent()
140 pm->slots[slotnum].active = pm->data[0] & 0x30; in pm_parse_3000()
141 pm->slots[slotnum].x = pm->data[2] * 256 + pm->data[1]; in pm_parse_3000()
142 pm->slots[slotnum].y = pm->data[4] * 256 + pm->data[3]; in pm_parse_3000()
156 pm->slots[slotnum].active = pm->data[0] & 0x40; in pm_parse_6250()
157 pm->slots[slotnum].x = pm->data[2] * 256 + pm->data[1]; in pm_parse_6250()
[all …]
/drivers/dma/ioat/
Ddca.c236 int slots = 0; in ioat_dca_count_dca_slots() local
245 req = readl(iobase + global_req_table + (slots * sizeof(u32))); in ioat_dca_count_dca_slots()
246 slots++; in ioat_dca_count_dca_slots()
249 return slots; in ioat_dca_count_dca_slots()
273 int slots; in ioat_dca_init() local
296 slots = ioat_dca_count_dca_slots(iobase, dca_offset); in ioat_dca_init()
297 if (slots == 0) in ioat_dca_init()
302 + (sizeof(struct ioat_dca_slot) * slots)); in ioat_dca_init()
309 ioatdca->max_requesters = slots; in ioat_dca_init()
/drivers/pci/hotplug/
Dibmphp_ebda.c80 struct ebda_hpc_slot *slots; in alloc_ebda_hpc() local
87 slots = kcalloc(slot_count, sizeof(struct ebda_hpc_slot), GFP_KERNEL); in alloc_ebda_hpc()
88 if (!slots) in alloc_ebda_hpc()
90 controller->slots = slots; in alloc_ebda_hpc()
99 kfree(controller->slots); in alloc_ebda_hpc()
108 kfree(controller->slots); in free_ebda_hpc()
212 debug("%s - physical slot#: %x\n", __func__, hpc_ptr->slots[index].slot_num); in print_ebda_hpc()
213 debug("%s - pci bus# of the slot: %x\n", __func__, hpc_ptr->slots[index].slot_bus_num); in print_ebda_hpc()
214 debug("%s - index into ctlr addr: %x\n", __func__, hpc_ptr->slots[index].ctl_index); in print_ebda_hpc()
215 debug("%s - cap of the slot: %x\n", __func__, hpc_ptr->slots[index].slot_cap); in print_ebda_hpc()
[all …]
Dcpci_hotplug_core.c59 static int slots; variable
292 slots++; in cpci_hp_register_bus()
315 if (!slots) { in cpci_hp_unregister_bus()
322 slots--; in cpci_hp_unregister_bus()
372 if (!slots) { in init_slots()
404 if (!slots) { in check_slots()
635 if (!slots) in cleanup_slots()
Dibmphp_core.c155 if ((*cur_slot)->number == rtable->slots[loop].slot && in ibmphp_init_devno()
156 (*cur_slot)->bus == rtable->slots[loop].bus) { in ibmphp_init_devno()
157 (*cur_slot)->device = PCI_SLOT(rtable->slots[loop].devfn); in ibmphp_init_devno()
174 rtable->slots[loop].irq[0].bitmap); in ibmphp_init_devno()
176 rtable->slots[loop].irq[1].bitmap); in ibmphp_init_devno()
178 rtable->slots[loop].irq[2].bitmap); in ibmphp_init_devno()
180 rtable->slots[loop].irq[3].bitmap); in ibmphp_init_devno()
183 rtable->slots[loop].irq[0].link); in ibmphp_init_devno()
185 rtable->slots[loop].irq[1].link); in ibmphp_init_devno()
187 rtable->slots[loop].irq[2].link); in ibmphp_init_devno()
[all …]
Dacpiphp_glue.c166 list_for_each_entry_safe(slot, next, &bridge->slots, node) { in free_bridge()
283 list_for_each_entry(slot, &bridge->slots, node) in acpiphp_add_context()
299 list_add_tail(&slot->node, &bridge->slots); in acpiphp_add_context()
348 list_for_each_entry(slot, &bridge->slots, node) { in cleanup_bridge()
661 list_for_each_entry(slot, &bridge->slots, node) { in acpiphp_check_bridge()
831 INIT_LIST_HEAD(&bridge->slots); in acpiphp_enumerate_slots()
/drivers/net/ethernet/apm/xgene/
Dxgene_enet_main.c40 for (i = 0; i < buf_pool->slots; i++) { in xgene_enet_init_bufpool()
88 u32 slots, tail; in xgene_enet_refill_pagepool() local
98 slots = buf_pool->slots - 1; in xgene_enet_refill_pagepool()
121 tail = (tail + 1) & slots; in xgene_enet_refill_pagepool()
140 u32 slots = buf_pool->slots - 1; in xgene_enet_refill_bufpool() local
170 tail = (tail + 1) & slots; in xgene_enet_refill_bufpool()
194 for (i = 0; i < buf_pool->slots; i++) { in xgene_enet_delete_bufpool()
214 for (i = 0; i < buf_pool->slots; i++) { in xgene_enet_delete_pagepool()
407 ring->exp_buf_tail = (ring->exp_buf_tail + 1) & ((ring->slots / 2) - 1); in xgene_enet_get_exp_bufs()
436 tail = (tail + 1) & (tx_ring->slots - 1); in xgene_enet_setup_tx_desc()
[all …]
/drivers/ipack/carriers/
Dtpci200.c156 slot_irq = rcu_dereference(tpci200->slots[i].irq); in tpci200_interrupt()
182 if (tpci200->slots[dev->slot].irq == NULL) { in tpci200_free_irq()
188 slot_irq = tpci200->slots[dev->slot].irq; in tpci200_free_irq()
190 RCU_INIT_POINTER(tpci200->slots[dev->slot].irq, NULL); in tpci200_free_irq()
211 if (tpci200->slots[dev->slot].irq != NULL) { in tpci200_request_irq()
239 rcu_assign_pointer(tpci200->slots[dev->slot].irq, slot_irq); in tpci200_request_irq()
443 kfree(tpci200->slots); in tpci200_uninstall()
460 tpci200->slots = kzalloc( in tpci200_install()
462 if (tpci200->slots == NULL) in tpci200_install()
467 kfree(tpci200->slots); in tpci200_install()
[all …]
/drivers/mmc/host/
Dsdhci-pci-core.c46 struct sdhci_pci_slot *slot = chip->slots[i]; in __sdhci_pci_suspend_host()
69 sdhci_resume_host(chip->slots[i]->host); in __sdhci_pci_suspend_host()
79 struct sdhci_pci_slot *slot = chip->slots[i]; in sdhci_pci_init_wakeup()
109 slot = chip->slots[i]; in sdhci_pci_resume_host()
130 slot = chip->slots[i]; in sdhci_pci_runtime_suspend_host()
149 sdhci_runtime_resume_host(chip->slots[i]->host); in sdhci_pci_runtime_suspend_host()
159 slot = chip->slots[i]; in sdhci_pci_runtime_resume_host()
1004 jmicron_enable_mmc(chip->slots[i]->host, 0); in jmicron_suspend()
1019 jmicron_enable_mmc(chip->slots[i]->host, 1); in jmicron_resume()
1705 u8 slots, first_bar; in sdhci_pci_probe() local
[all …]
Domap.c160 struct mmc_omap_slot *slots[OMAP_MMC_MAX_SLOTS]; member
280 if (host->slots[i] == NULL || host->slots[i]->mrq == NULL) in mmc_omap_release_slot()
284 new_slot = host->slots[i]; in mmc_omap_release_slot()
732 dev_info(mmc_dev(host->slots[0]->mmc), in mmc_omap_irq()
861 struct mmc_omap_slot *slot = host->slots[num]; in omap_mmc_notify_cover_event()
866 if (host->nr_slots == 0 || !host->slots[num]) in omap_mmc_notify_cover_event()
1244 slot->pdata = &host->pdata->slots[id]; in mmc_omap_new_slot()
1246 host->slots[id] = slot; in mmc_omap_new_slot()
1249 if (host->pdata->slots[id].wires >= 4) in mmc_omap_new_slot()
1373 host->features = host->pdata->slots[0].features; in mmc_omap_probe()
[all …]
/drivers/misc/cb710/
Dcore.c77 for (nr = chip->slots; nr; ++slot, --nr) { in cb710_irq_handler()
102 int nr = chip->slots; in cb710_register_slot()
112 ++chip->slots; in cb710_register_slot()
133 --chip->slots; in cb710_register_slot()
145 int nr = chip->slots - 1; in cb710_unregister_slot()
157 --chip->slots; in cb710_unregister_slot()
/drivers/gpu/drm/radeon/
Dradeon_dp_mst.c66 int slots) in radeon_dp_mst_set_stream_attrib() argument
79 val = NI_DP_MSE_SAT_SLOT_COUNT0(slots) | NI_DP_MSE_SAT_SRC0(fe); in radeon_dp_mst_set_stream_attrib()
140 new_attribs[idx].slots = drm_dp_mst_get_vcpi_slots(&mst_conn->mst_mgr, mst_enc->port); in radeon_dp_mst_update_stream_attribs()
146 new_attribs[i].slots != mst_conn->cur_stream_attribs[i].slots) { in radeon_dp_mst_update_stream_attribs()
147 radeon_dp_mst_set_stream_attrib(primary, i, new_attribs[i].fe, new_attribs[i].slots); in radeon_dp_mst_update_stream_attribs()
149 mst_conn->cur_stream_attribs[i].slots = new_attribs[i].slots; in radeon_dp_mst_update_stream_attribs()
156 mst_conn->cur_stream_attribs[i].slots = 0; in radeon_dp_mst_update_stream_attribs()
397 int ret, slots; in radeon_mst_encoder_dpms() local
450 slots = drm_dp_find_vcpi_slots(&radeon_connector->mst_port->mst_mgr, in radeon_mst_encoder_dpms()
454 mst_enc->pbn, slots); in radeon_mst_encoder_dpms()
[all …]
/drivers/gpu/drm/i915/
Dintel_dp_mst.c44 int lane_count, slots = 0; in intel_dp_mst_compute_config() local
77 slots = drm_dp_atomic_find_vcpi_slots(state, in intel_dp_mst_compute_config()
81 if (slots < 0) { in intel_dp_mst_compute_config()
83 slots); in intel_dp_mst_compute_config()
94 pipe_config->dp_m_n.tu = slots; in intel_dp_mst_compute_config()
106 int slots, ret = 0; in intel_dp_mst_atomic_check() local
114 slots = to_intel_crtc_state(crtc_state)->dp_m_n.tu; in intel_dp_mst_atomic_check()
115 if (drm_atomic_crtc_needs_modeset(crtc_state) && slots > 0) { in intel_dp_mst_atomic_check()
122 ret = drm_dp_atomic_release_vcpi_slots(state, mgr, slots); in intel_dp_mst_atomic_check()
124 DRM_DEBUG_KMS("failed releasing %d vcpi slots:%d\n", slots, ret); in intel_dp_mst_atomic_check()
/drivers/firmware/efi/libstub/
Drandom.c102 unsigned long slots; in efi_random_alloc() local
104 slots = get_entry_num_slots(md, size, ilog2(align)); in efi_random_alloc()
105 MD_NUM_SLOTS(md) = slots; in efi_random_alloc()
106 total_slots += slots; in efi_random_alloc()
/drivers/gpu/drm/omapdrm/
Dtcm.h72 s32 (*reserve_1d)(struct tcm *tcm, u32 slots, struct tcm_area *area);
167 static inline s32 tcm_reserve_1d(struct tcm *tcm, u32 slots, in tcm_reserve_1d() argument
172 (area == NULL || slots == 0) ? -EINVAL : in tcm_reserve_1d()
173 slots > (tcm->width * (u32) tcm->height) ? -ENOMEM : 0; in tcm_reserve_1d()
177 res = tcm->reserve_1d(tcm, slots, area); in tcm_reserve_1d()
/drivers/usb/isp1760/
Disp1760-hcd.c720 struct isp1760_slotinfo *slots, in start_bus_transfer() argument
729 WARN_ON(slots[slot].qtd); in start_bus_transfer()
730 WARN_ON(slots[slot].qh); in start_bus_transfer()
746 slots[slot].timestamp = jiffies; in start_bus_transfer()
747 slots[slot].qtd = qtd; in start_bus_transfer()
748 slots[slot].qh = qh; in start_bus_transfer()
835 struct isp1760_slotinfo *slots; in enqueue_qtds() local
853 slots = priv->int_slots; in enqueue_qtds()
856 slots = priv->atl_slots; in enqueue_qtds()
861 if ((free_slot == -1) && (slots[curr_slot].qtd == NULL)) in enqueue_qtds()
[all …]
/drivers/gpu/drm/nouveau/
Dnouveau_dma.c137 nv50_dma_wait(struct nouveau_channel *chan, int slots, int count) in nv50_dma_wait() argument
142 ret = nv50_dma_push_wait(chan, slots + 1); in nv50_dma_wait()
180 nouveau_dma_wait(struct nouveau_channel *chan, int slots, int size) in nouveau_dma_wait() argument
186 return nv50_dma_wait(chan, slots, size); in nouveau_dma_wait()
/drivers/scsi/
D53c700.c309 hostdata->slots = (struct NCR_700_command_slot *)(memory + SLOTS_OFFSET); in NCR_700_detect()
335 memset(hostdata->slots, 0, sizeof(struct NCR_700_command_slot) in NCR_700_detect()
338 dma_addr_t offset = (dma_addr_t)((unsigned long)&hostdata->slots[j].SG[0] in NCR_700_detect()
339 - (unsigned long)&hostdata->slots[0].SG[0]); in NCR_700_detect()
340 hostdata->slots[j].pSG = (struct NCR_700_SG_List *)((unsigned long)(pSlots + offset)); in NCR_700_detect()
342 hostdata->free_list = &hostdata->slots[j]; in NCR_700_detect()
344 hostdata->slots[j-1].ITL_forw = &hostdata->slots[j]; in NCR_700_detect()
345 hostdata->slots[j].state = NCR_700_SLOT_FREE; in NCR_700_detect()
1198 if(SG >= to32bit(&hostdata->slots[i].pSG[0]) in process_script_interrupt()
1199 && SG <= to32bit(&hostdata->slots[i].pSG[NCR_700_SG_SEGMENTS])) in process_script_interrupt()
[all …]
/drivers/gpu/ipu-v3/
Dipu-dmfc.c95 unsigned slots; member
153 if ((dmfc->slots * 64 * 4) / width > dmfc->data->max_fifo_lines) in ipu_dmfc_config_wait4eot()
209 priv->channels[i].slots = 2; in ipu_dmfc_init()
/drivers/mfd/
Ddln2.c90 struct dln2_rx_context slots[DLN2_MAX_RX_SLOTS]; member
202 rxc = &rxs->slots[rx_slot]; in dln2_transfer_complete()
368 struct dln2_rx_context *rxc = &rxs->slots[*slot]; in find_free_slot()
409 rxc = &rxs->slots[slot]; in free_rx_slot()
464 rxc = &rxs->slots[rx_slot]; in _dln2_transfer()
702 struct dln2_rx_context *rxc = &rxs->slots[j]; in dln2_stop()
765 init_completion(&dln2->mod_rx_slots[i].slots[j].done); in dln2_probe()
/drivers/net/
Dxen-netfront.c528 int slots; in xennet_count_skb_slots() local
530 slots = gnttab_count_grant(offset_in_page(skb->data), in xennet_count_skb_slots()
541 slots += gnttab_count_grant(offset, size); in xennet_count_skb_slots()
544 return slots; in xennet_count_skb_slots()
574 int slots; in xennet_start_xmit() local
601 slots = xennet_count_skb_slots(skb); in xennet_start_xmit()
602 if (unlikely(slots > MAX_XEN_SKB_FRAGS + 1)) { in xennet_start_xmit()
604 slots, skb->len); in xennet_start_xmit()
630 (slots > 1 && !xennet_can_sg(dev)) || in xennet_start_xmit()
794 int slots = 1; in xennet_get_responses() local
[all …]

12345