Home
last modified time | relevance | path

Searched refs:spriv (Results 1 – 6 of 6) sorted by relevance

/drivers/staging/comedi/drivers/
Djr3_pci.c227 struct jr3_pci_subdev_private *spriv = s->private; in jr3_pci_ai_read_chan() local
230 if (spriv->state != state_jr3_done) in jr3_pci_ai_read_chan()
239 val = get_s16(&spriv->channel->filter[filter].fx); in jr3_pci_ai_read_chan()
242 val = get_s16(&spriv->channel->filter[filter].fy); in jr3_pci_ai_read_chan()
245 val = get_s16(&spriv->channel->filter[filter].fz); in jr3_pci_ai_read_chan()
248 val = get_s16(&spriv->channel->filter[filter].mx); in jr3_pci_ai_read_chan()
251 val = get_s16(&spriv->channel->filter[filter].my); in jr3_pci_ai_read_chan()
254 val = get_s16(&spriv->channel->filter[filter].mz); in jr3_pci_ai_read_chan()
257 val = get_s16(&spriv->channel->filter[filter].v1); in jr3_pci_ai_read_chan()
260 val = get_s16(&spriv->channel->filter[filter].v2); in jr3_pci_ai_read_chan()
[all …]
Daddi_watchdog.c58 struct addi_watchdog_private *spriv = s->private; in addi_watchdog_insn_config() local
63 spriv->wdog_ctrl = ADDI_WDOG_CTRL_ENABLE; in addi_watchdog_insn_config()
65 outl(reload, spriv->iobase + ADDI_WDOG_RELOAD_REG); in addi_watchdog_insn_config()
72 spriv->wdog_ctrl = 0; in addi_watchdog_insn_config()
78 outl(spriv->wdog_ctrl, spriv->iobase + ADDI_WDOG_CTRL_REG); in addi_watchdog_insn_config()
88 struct addi_watchdog_private *spriv = s->private; in addi_watchdog_insn_read() local
92 data[i] = inl(spriv->iobase + ADDI_WDOG_STATUS_REG); in addi_watchdog_insn_read()
102 struct addi_watchdog_private *spriv = s->private; in addi_watchdog_insn_write() local
105 if (spriv->wdog_ctrl == 0) { in addi_watchdog_insn_write()
112 outl(spriv->wdog_ctrl | ADDI_WDOG_CTRL_SW_TRIG, in addi_watchdog_insn_write()
[all …]
D8255.c112 struct subdev_8255_private *spriv = s->private; in subdev_8255_insn() local
113 unsigned long regbase = spriv->regbase; in subdev_8255_insn()
120 spriv->io(dev, 1, I8255_DATA_A_REG, in subdev_8255_insn()
123 spriv->io(dev, 1, I8255_DATA_B_REG, in subdev_8255_insn()
126 spriv->io(dev, 1, I8255_DATA_C_REG, in subdev_8255_insn()
130 v = spriv->io(dev, 0, I8255_DATA_A_REG, 0, regbase); in subdev_8255_insn()
131 v |= (spriv->io(dev, 0, I8255_DATA_B_REG, 0, regbase) << 8); in subdev_8255_insn()
132 v |= (spriv->io(dev, 0, I8255_DATA_C_REG, 0, regbase) << 16); in subdev_8255_insn()
142 struct subdev_8255_private *spriv = s->private; in subdev_8255_do_config() local
143 unsigned long regbase = spriv->regbase; in subdev_8255_do_config()
[all …]
Dunioxx5.c486 struct unioxx5_subd_priv *spriv; in unioxx5_detach() local
491 spriv = s->private; in unioxx5_detach()
492 if (spriv && spriv->usp_iobase) in unioxx5_detach()
493 release_region(spriv->usp_iobase, UNIOXX5_SIZE); in unioxx5_detach()
/drivers/usb/serial/
Dpl2303.c222 struct pl2303_serial_private *spriv; in pl2303_startup() local
226 spriv = kzalloc(sizeof(*spriv), GFP_KERNEL); in pl2303_startup()
227 if (!spriv) in pl2303_startup()
232 kfree(spriv); in pl2303_startup()
246 spriv->type = &pl2303_type_data[type]; in pl2303_startup()
247 spriv->quirks = (unsigned long)usb_get_serial_data(serial); in pl2303_startup()
248 spriv->quirks |= spriv->type->quirks; in pl2303_startup()
250 usb_set_serial_data(serial, spriv); in pl2303_startup()
262 if (spriv->quirks & PL2303_QUIRK_LEGACY) in pl2303_startup()
274 struct pl2303_serial_private *spriv = usb_get_serial_data(serial); in pl2303_release() local
[all …]
/drivers/scsi/
Desp_scsi.c328 struct esp_cmd_priv *spriv = ESP_CMD_PRIV(cmd); in esp_map_dma() local
336 spriv->u.num_sg = esp->ops->map_sg(esp, sg, scsi_sg_count(cmd), dir); in esp_map_dma()
337 spriv->cur_residue = sg_dma_len(sg); in esp_map_dma()
338 spriv->cur_sg = sg; in esp_map_dma()
341 for (i = 0; i < spriv->u.num_sg; i++) in esp_map_dma()
343 spriv->tot_residue = total; in esp_map_dma()
403 struct esp_cmd_priv *spriv = ESP_CMD_PRIV(cmd); in esp_unmap_dma() local
409 esp->ops->unmap_sg(esp, scsi_sglist(cmd), spriv->u.num_sg, dir); in esp_unmap_dma()
415 struct esp_cmd_priv *spriv = ESP_CMD_PRIV(cmd); in esp_save_pointers() local
421 ent->saved_cur_residue = spriv->cur_residue; in esp_save_pointers()
[all …]