/linux-6.6.21/drivers/comedi/drivers/ |
D | usbduxsigma.c | 179 struct usbduxsigma_private *devpriv = dev->private; in usbduxsigma_ai_stop() local 181 if (do_unlink && devpriv->ai_urbs) in usbduxsigma_ai_stop() 182 usbduxsigma_unlink_urbs(devpriv->ai_urbs, devpriv->n_ai_urbs); in usbduxsigma_ai_stop() 184 devpriv->ai_cmd_running = 0; in usbduxsigma_ai_stop() 190 struct usbduxsigma_private *devpriv = dev->private; in usbduxsigma_ai_cancel() local 192 mutex_lock(&devpriv->mut); in usbduxsigma_ai_cancel() 194 usbduxsigma_ai_stop(dev, devpriv->ai_cmd_running); in usbduxsigma_ai_cancel() 195 mutex_unlock(&devpriv->mut); in usbduxsigma_ai_cancel() 204 struct usbduxsigma_private *devpriv = dev->private; in usbduxsigma_ai_handle_urb() local 212 devpriv->ai_counter--; in usbduxsigma_ai_handle_urb() [all …]
|
D | ni_labpc_common.c | 105 struct labpc_private *devpriv = dev->private; in labpc_cancel() local 109 devpriv->cmd2 &= ~(CMD2_SWTRIG | CMD2_HWTRIG | CMD2_PRETRIG); in labpc_cancel() 110 devpriv->write_byte(dev, devpriv->cmd2, CMD2_REG); in labpc_cancel() 113 devpriv->cmd3 = 0; in labpc_cancel() 114 devpriv->write_byte(dev, devpriv->cmd3, CMD3_REG); in labpc_cancel() 126 struct labpc_private *devpriv = dev->private; in labpc_ai_set_chan_and_gain() local 141 devpriv->cmd1 = CMD1_MA(chan); in labpc_ai_set_chan_and_gain() 142 devpriv->cmd1 |= CMD1_GAIN(range); in labpc_ai_set_chan_and_gain() 144 devpriv->write_byte(dev, devpriv->cmd1, CMD1_REG); in labpc_ai_set_chan_and_gain() 156 struct labpc_private *devpriv = dev->private; in labpc_setup_cmd6_reg() local [all …]
|
D | usbdux.c | 216 struct usbdux_private *devpriv = dev->private; in usbdux_ai_stop() local 218 if (do_unlink && devpriv->ai_urbs) in usbdux_ai_stop() 219 usbdux_unlink_urbs(devpriv->ai_urbs, devpriv->n_ai_urbs); in usbdux_ai_stop() 221 devpriv->ai_cmd_running = 0; in usbdux_ai_stop() 227 struct usbdux_private *devpriv = dev->private; in usbdux_ai_cancel() local 230 mutex_lock(&devpriv->mut); in usbdux_ai_cancel() 232 usbdux_ai_stop(dev, devpriv->ai_cmd_running); in usbdux_ai_cancel() 233 mutex_unlock(&devpriv->mut); in usbdux_ai_cancel() 242 struct usbdux_private *devpriv = dev->private; in usbduxsub_ai_handle_urb() local 248 devpriv->ai_counter--; in usbduxsub_ai_handle_urb() [all …]
|
D | vmk80xx.c | 156 struct vmk80xx_private *devpriv = dev->private; in vmk80xx_do_bulk_msg() local 165 tx_addr = devpriv->ep_tx->bEndpointAddress; in vmk80xx_do_bulk_msg() 166 rx_addr = devpriv->ep_rx->bEndpointAddress; in vmk80xx_do_bulk_msg() 169 tx_size = usb_endpoint_maxp(devpriv->ep_tx); in vmk80xx_do_bulk_msg() 170 rx_size = usb_endpoint_maxp(devpriv->ep_rx); in vmk80xx_do_bulk_msg() 172 usb_bulk_msg(usb, tx_pipe, devpriv->usb_tx_buf, tx_size, NULL, in vmk80xx_do_bulk_msg() 175 usb_bulk_msg(usb, rx_pipe, devpriv->usb_rx_buf, rx_size, NULL, in vmk80xx_do_bulk_msg() 181 struct vmk80xx_private *devpriv = dev->private; in vmk80xx_read_packet() local 186 if (devpriv->model == VMK8061_MODEL) { in vmk80xx_read_packet() 191 ep = devpriv->ep_rx; in vmk80xx_read_packet() [all …]
|
D | ni_mio_common.c | 441 struct ni_private *devpriv = dev->private; in ni_stc_writew() local 444 if (devpriv->is_m_series) { in ni_stc_writew() 447 spin_lock_irqsave(&devpriv->window_lock, flags); in ni_stc_writew() 448 if (!devpriv->mite && reg < 8) { in ni_stc_writew() 454 spin_unlock_irqrestore(&devpriv->window_lock, flags); in ni_stc_writew() 461 struct ni_private *devpriv = dev->private; in ni_stc_writel() local 463 if (devpriv->is_m_series) { in ni_stc_writel() 473 struct ni_private *devpriv = dev->private; in ni_stc_readw() local 477 if (devpriv->is_m_series) { in ni_stc_readw() 480 spin_lock_irqsave(&devpriv->window_lock, flags); in ni_stc_readw() [all …]
|
D | adl_pci9118.c | 245 struct pci9118_private *devpriv = dev->private; in pci9118_amcc_setup_dma() local 246 struct pci9118_dmabuf *dmabuf = &devpriv->dmabuf[buf]; in pci9118_amcc_setup_dma() 249 outl(dmabuf->hw, devpriv->iobase_a + AMCC_OP_REG_MWAR); in pci9118_amcc_setup_dma() 250 outl(dmabuf->use_size, devpriv->iobase_a + AMCC_OP_REG_MWTC); in pci9118_amcc_setup_dma() 255 struct pci9118_private *devpriv = dev->private; in pci9118_amcc_dma_ena() local 258 mcsr = inl(devpriv->iobase_a + AMCC_OP_REG_MCSR); in pci9118_amcc_dma_ena() 263 outl(mcsr, devpriv->iobase_a + AMCC_OP_REG_MCSR); in pci9118_amcc_dma_ena() 268 struct pci9118_private *devpriv = dev->private; in pci9118_amcc_int_ena() local 272 intcsr = inl(devpriv->iobase_a + AMCC_OP_REG_INTCSR); in pci9118_amcc_int_ena() 277 outl(intcsr, devpriv->iobase_a + AMCC_OP_REG_INTCSR); in pci9118_amcc_int_ena() [all …]
|
D | cb_pcidas64.c | 1214 struct pcidas64_private *devpriv = dev->private; in abort_dma() local 1220 plx9080_abort_dma(devpriv->plx9080_iobase, channel); in abort_dma() 1227 struct pcidas64_private *devpriv = dev->private; in disable_plx_interrupts() local 1229 devpriv->plx_intcsr_bits = 0; in disable_plx_interrupts() 1230 writel(devpriv->plx_intcsr_bits, in disable_plx_interrupts() 1231 devpriv->plx9080_iobase + PLX_REG_INTCSR); in disable_plx_interrupts() 1236 struct pcidas64_private *devpriv = dev->private; in disable_ai_interrupts() local 1240 devpriv->intr_enable_bits &= in disable_ai_interrupts() 1244 writew(devpriv->intr_enable_bits, in disable_ai_interrupts() 1245 devpriv->main_iobase + INTR_ENABLE_REG); in disable_ai_interrupts() [all …]
|
D | gsc_hpdi.c | 142 struct hpdi_private *devpriv = dev->private; in gsc_hpdi_drain_dma() local 151 next = readl(devpriv->plx9080_mmio + PLX_REG_DMAPADR(channel)); in gsc_hpdi_drain_dma() 153 idx = devpriv->dma_desc_index; in gsc_hpdi_drain_dma() 154 start = le32_to_cpu(devpriv->dma_desc[idx].pci_start_addr); in gsc_hpdi_drain_dma() 156 for (desc = 0; (next < start || next >= start + devpriv->block_size) && in gsc_hpdi_drain_dma() 157 desc < devpriv->num_dma_descriptors; desc++) { in gsc_hpdi_drain_dma() 159 size = devpriv->block_size / sizeof(u32); in gsc_hpdi_drain_dma() 161 if (size > devpriv->dio_count) in gsc_hpdi_drain_dma() 162 size = devpriv->dio_count; in gsc_hpdi_drain_dma() 163 devpriv->dio_count -= size; in gsc_hpdi_drain_dma() [all …]
|
D | amplc_pci230.c | 534 struct pci230_private *devpriv = dev->private; in pci230_ai_read() local 538 data = inw(devpriv->daqio + PCI230_ADCDATA); in pci230_ai_read() 546 if (devpriv->ai_bipolar) in pci230_ai_read() 556 struct pci230_private *devpriv = dev->private; in pci230_ao_mangle_datum() local 567 if (devpriv->ao_bipolar) in pci230_ao_mangle_datum() 575 struct pci230_private *devpriv = dev->private; in pci230_ao_write_nofifo() local 579 devpriv->daqio + ((chan == 0) ? PCI230_DACOUT1 : PCI230_DACOUT2)); in pci230_ao_write_nofifo() 585 struct pci230_private *devpriv = dev->private; in pci230_ao_write_fifo() local 589 devpriv->daqio + PCI230P2_DACDATA); in pci230_ao_write_fifo() 595 struct pci230_private *devpriv = dev->private; in pci230_claim_shared() local [all …]
|
D | comedi_test.c | 105 struct waveform_private *devpriv = dev->private; in fake_sawtooth() local 114 binary_amplitude *= devpriv->wf_amplitude; in fake_sawtooth() 119 do_div(value, devpriv->wf_period); in fake_sawtooth() 137 struct waveform_private *devpriv = dev->private; in fake_squarewave() local 145 value *= devpriv->wf_amplitude; in fake_squarewave() 149 if (current_time < devpriv->wf_period / 2) { in fake_squarewave() 198 struct waveform_private *devpriv = from_timer(devpriv, t, ai_timer); in waveform_ai_timer() local 199 struct comedi_device *dev = devpriv->dev; in waveform_ai_timer() 210 while (nsamples && devpriv->ai_convert_time < now) { in waveform_ai_timer() 215 CR_RANGE(chanspec), devpriv->wf_current); in waveform_ai_timer() [all …]
|
D | addi_apci_1564.c | 172 struct apci1564_private *devpriv = dev->private; in apci1564_reset() local 188 outl(0x0, devpriv->timer + ADDI_TCW_CTRL_REG); in apci1564_reset() 189 outl(0x0, devpriv->timer + ADDI_TCW_RELOAD_REG); in apci1564_reset() 191 if (devpriv->counters) { in apci1564_reset() 192 unsigned long iobase = devpriv->counters + ADDI_TCW_CTRL_REG; in apci1564_reset() 206 struct apci1564_private *devpriv = dev->private; in apci1564_interrupt() local 227 status = inl(devpriv->timer + ADDI_TCW_IRQ_REG); in apci1564_interrupt() 232 ctrl = inl(devpriv->timer + ADDI_TCW_CTRL_REG); in apci1564_interrupt() 233 outl(0x0, devpriv->timer + ADDI_TCW_CTRL_REG); in apci1564_interrupt() 234 outl(ctrl, devpriv->timer + ADDI_TCW_CTRL_REG); in apci1564_interrupt() [all …]
|
D | amplc_pci224.c | 389 struct pci224_private *devpriv = dev->private; in pci224_ao_set_data() local 395 devpriv->daccon = COMBINE(devpriv->daccon, board->ao_hwrange[range], in pci224_ao_set_data() 398 outw(devpriv->daccon | PCI224_DACCON_FIFORESET, in pci224_ao_set_data() 406 if ((devpriv->daccon & PCI224_DACCON_POLAR_MASK) == in pci224_ao_set_data() 441 struct pci224_private *devpriv = dev->private; in pci224_ao_stop() local 444 if (!test_and_clear_bit(AO_CMD_STARTED, &devpriv->state)) in pci224_ao_stop() 447 spin_lock_irqsave(&devpriv->ao_spinlock, flags); in pci224_ao_stop() 449 devpriv->intsce = 0; in pci224_ao_stop() 450 outb(0, devpriv->iobase1 + PCI224_INT_SCE); in pci224_ao_stop() 462 while (devpriv->intr_running && devpriv->intr_cpuid != THISCPU) { in pci224_ao_stop() [all …]
|
D | dt282x.c | 316 struct dt282x_private *devpriv = dev->private; in dt282x_prep_ai_dma() local 317 struct comedi_isadma *dma = devpriv->dma; in dt282x_prep_ai_dma() 320 if (!devpriv->ntrig) in dt282x_prep_ai_dma() 325 if (n > devpriv->ntrig * 2) in dt282x_prep_ai_dma() 326 n = devpriv->ntrig * 2; in dt282x_prep_ai_dma() 327 devpriv->ntrig -= n / 2; in dt282x_prep_ai_dma() 330 comedi_isadma_set_mode(desc, devpriv->dma_dir); in dt282x_prep_ai_dma() 339 struct dt282x_private *devpriv = dev->private; in dt282x_prep_ao_dma() local 340 struct comedi_isadma *dma = devpriv->dma; in dt282x_prep_ao_dma() 344 comedi_isadma_set_mode(desc, devpriv->dma_dir); in dt282x_prep_ao_dma() [all …]
|
D | ni_usb6501.c | 172 struct ni6501_private *devpriv = dev->private; in ni6501_port_command() local 174 u8 *tx = devpriv->usb_tx_buf; in ni6501_port_command() 180 mutex_lock(&devpriv->mut); in ni6501_port_command() 211 devpriv->ep_tx->bEndpointAddress), in ni6501_port_command() 212 devpriv->usb_tx_buf, in ni6501_port_command() 221 devpriv->ep_rx->bEndpointAddress), in ni6501_port_command() 222 devpriv->usb_rx_buf, in ni6501_port_command() 232 *bitmap = devpriv->usb_rx_buf[14]; in ni6501_port_command() 234 devpriv->usb_rx_buf[14] = 0x00; in ni6501_port_command() 236 if (memcmp(devpriv->usb_rx_buf, READ_PORT_RESPONSE, in ni6501_port_command() [all …]
|
D | usbduxfast.c | 167 struct usbduxfast_private *devpriv = dev->private; in usbduxfast_send_cmd() local 171 devpriv->duxbuf[0] = cmd_type; in usbduxfast_send_cmd() 174 devpriv->duxbuf, SIZEOFDUXBUF, in usbduxfast_send_cmd() 186 struct usbduxfast_private *devpriv = dev->private; in usbduxfast_cmd_data() local 189 devpriv->duxbuf[1 + 0x00 + index] = len; in usbduxfast_cmd_data() 190 devpriv->duxbuf[1 + 0x08 + index] = op; in usbduxfast_cmd_data() 191 devpriv->duxbuf[1 + 0x10 + index] = out; in usbduxfast_cmd_data() 192 devpriv->duxbuf[1 + 0x18 + index] = log; in usbduxfast_cmd_data() 197 struct usbduxfast_private *devpriv = dev->private; in usbduxfast_ai_stop() local 200 devpriv->ai_cmd_running = 0; in usbduxfast_ai_stop() [all …]
|
D | cb_pcidas.c | 314 struct cb_pcidas_private *devpriv = dev->private; in cb_pcidas_ai_eoc() local 317 status = inw(devpriv->pcibar1 + PCIDAS_AI_REG); in cb_pcidas_ai_eoc() 328 struct cb_pcidas_private *devpriv = dev->private; in cb_pcidas_ai_insn_read() local 338 outw(PCIDAS_CALIB_EN | PCIDAS_CALIB_SRC(devpriv->calib_src), in cb_pcidas_ai_insn_read() 339 devpriv->pcibar1 + PCIDAS_CALIB_REG); in cb_pcidas_ai_insn_read() 342 outw(0, devpriv->pcibar1 + PCIDAS_CALIB_REG); in cb_pcidas_ai_insn_read() 353 outw(bits, devpriv->pcibar1 + PCIDAS_AI_REG); in cb_pcidas_ai_insn_read() 356 outw(0, devpriv->pcibar2 + PCIDAS_AI_FIFO_CLR_REG); in cb_pcidas_ai_insn_read() 361 outw(0, devpriv->pcibar2 + PCIDAS_AI_DATA_REG); in cb_pcidas_ai_insn_read() 369 data[n] = inw(devpriv->pcibar2 + PCIDAS_AI_DATA_REG); in cb_pcidas_ai_insn_read() [all …]
|
D | addi_apci_3120.c | 160 struct apci3120_private *devpriv = dev->private; in apci3120_addon_write() local 164 outw(reg, devpriv->addon + APCI3120_ADDON_ADDR_REG); in apci3120_addon_write() 165 outw(val & 0xffff, devpriv->addon + APCI3120_ADDON_DATA_REG); in apci3120_addon_write() 167 outw(reg + 2, devpriv->addon + APCI3120_ADDON_ADDR_REG); in apci3120_addon_write() 168 outw((val >> 16) & 0xffff, devpriv->addon + APCI3120_ADDON_DATA_REG); in apci3120_addon_write() 174 struct apci3120_private *devpriv = dev->private; in apci3120_init_dma() local 178 devpriv->amcc + AMCC_OP_REG_AGCSTS); in apci3120_init_dma() 186 devpriv->amcc + AMCC_OP_REG_MCSR); in apci3120_init_dma() 196 devpriv->amcc + AMCC_OP_REG_INTCSR); in apci3120_init_dma() 200 devpriv->addon + APCI3120_ADDON_CTRL_REG); in apci3120_init_dma() [all …]
|
D | comedi_bond.c | 65 struct comedi_bond_private *devpriv = dev->private; in bonding_dio_insn_bits() local 74 n_left = devpriv->nchans - base_chan; in bonding_dio_insn_bits() 79 devs = devpriv->devs; in bonding_dio_insn_bits() 128 struct comedi_bond_private *devpriv = dev->private; in bonding_dio_insn_config() local 137 devs = devpriv->devs; in bonding_dio_insn_config() 171 struct comedi_bond_private *devpriv = dev->private; in do_dev_config() local 176 devpriv->name[0] = 0; in do_dev_config() 234 devpriv->nchans += nchans; in do_dev_config() 242 devs = krealloc(devpriv->devs, in do_dev_config() 243 (devpriv->ndevs + 1) * sizeof(*devs), in do_dev_config() [all …]
|
D | ni_labpc_isadma.c | 53 struct labpc_private *devpriv = dev->private; in labpc_setup_dma() local 54 struct comedi_isadma_desc *desc = &devpriv->dma->desc[0]; in labpc_setup_dma() 61 devpriv->count * sample_size < desc->size) in labpc_setup_dma() 62 desc->size = devpriv->count * sample_size; in labpc_setup_dma() 67 devpriv->cmd3 |= (CMD3_DMAEN | CMD3_DMATCINTEN); in labpc_setup_dma() 73 struct labpc_private *devpriv = dev->private; in labpc_drain_dma() local 74 struct comedi_isadma_desc *desc = &devpriv->dma->desc[0]; in labpc_drain_dma() 96 if (devpriv->count <= nsamples) { in labpc_drain_dma() 97 nsamples = devpriv->count; in labpc_drain_dma() 100 leftover = devpriv->count - nsamples; in labpc_drain_dma() [all …]
|
D | addi_apci_1032.c | 108 struct apci1032_private *devpriv = dev->private; in apci1032_cos_insn_config() local 127 devpriv->ctrl = 0; in apci1032_cos_insn_config() 128 devpriv->mode1 = 0; in apci1032_cos_insn_config() 129 devpriv->mode2 = 0; in apci1032_cos_insn_config() 133 if (devpriv->ctrl != (APCI1032_CTRL_INT_ENA | in apci1032_cos_insn_config() 136 devpriv->ctrl = APCI1032_CTRL_INT_ENA | in apci1032_cos_insn_config() 139 devpriv->mode1 = 0; in apci1032_cos_insn_config() 140 devpriv->mode2 = 0; in apci1032_cos_insn_config() 143 devpriv->mode1 &= oldmask; in apci1032_cos_insn_config() 144 devpriv->mode2 &= oldmask; in apci1032_cos_insn_config() [all …]
|
D | ni_at_a2150.c | 133 struct a2150_private *devpriv = dev->private; in a2150_interrupt() local 134 struct comedi_isadma *dma = devpriv->dma; in a2150_interrupt() 173 if (devpriv->count < num_points && cmd->stop_src == TRIG_COUNT) in a2150_interrupt() 174 num_points = devpriv->count; in a2150_interrupt() 180 } else if (devpriv->count > max_points) { in a2150_interrupt() 181 leftover = devpriv->count - max_points; in a2150_interrupt() 200 if (--devpriv->count == 0) { /* end of acquisition */ in a2150_interrupt() 222 struct a2150_private *devpriv = dev->private; in a2150_cancel() local 223 struct comedi_isadma *dma = devpriv->dma; in a2150_cancel() 227 devpriv->irq_dma_bits &= ~DMA_INTR_EN_BIT & ~DMA_EN_BIT; in a2150_cancel() [all …]
|
D | ni_660x.c | 313 struct ni_660x_private *devpriv = dev->private; in ni_660x_set_dma_channel() local 316 devpriv->dma_cfg[chip] &= ~NI660X_DMA_CFG_SEL_MASK(mite_channel); in ni_660x_set_dma_channel() 317 devpriv->dma_cfg[chip] |= NI660X_DMA_CFG_SEL(mite_channel, in ni_660x_set_dma_channel() 319 ni_660x_write(dev, chip, devpriv->dma_cfg[chip] | in ni_660x_set_dma_channel() 328 struct ni_660x_private *devpriv = dev->private; in ni_660x_unset_dma_channel() local 331 devpriv->dma_cfg[chip] &= ~NI660X_DMA_CFG_SEL_MASK(mite_channel); in ni_660x_unset_dma_channel() 332 devpriv->dma_cfg[chip] |= NI660X_DMA_CFG_SEL_NONE(mite_channel); in ni_660x_unset_dma_channel() 333 ni_660x_write(dev, chip, devpriv->dma_cfg[chip], NI660X_DMA_CFG); in ni_660x_unset_dma_channel() 340 struct ni_660x_private *devpriv = dev->private; in ni_660x_request_mite_channel() local 345 spin_lock_irqsave(&devpriv->mite_channel_lock, flags); in ni_660x_request_mite_channel() [all …]
|
D | me_daq.c | 153 struct me_private_data *devpriv = dev->private; in me_dio_insn_config() local 168 devpriv->ctrl2 |= ME_CTRL2_PORT_A_ENA; in me_dio_insn_config() 170 devpriv->ctrl2 &= ~ME_CTRL2_PORT_A_ENA; in me_dio_insn_config() 172 devpriv->ctrl2 |= ME_CTRL2_PORT_B_ENA; in me_dio_insn_config() 174 devpriv->ctrl2 &= ~ME_CTRL2_PORT_B_ENA; in me_dio_insn_config() 176 writew(devpriv->ctrl2, dev->mmio + ME_CTRL2_REG); in me_dio_insn_config() 232 struct me_private_data *devpriv = dev->private; in me_ai_insn_read() local 250 devpriv->ctrl2 &= ~(ME_CTRL2_ADFIFO_ENA | ME_CTRL2_CHANLIST_ENA); in me_ai_insn_read() 251 writew(devpriv->ctrl2, dev->mmio + ME_CTRL2_REG); in me_ai_insn_read() 256 devpriv->ctrl2 |= (ME_CTRL2_ADFIFO_ENA | ME_CTRL2_CHANLIST_ENA); in me_ai_insn_read() [all …]
|
D | dyna_pci10xx.c | 66 struct dyna_pci10xx_private *devpriv = dev->private; in dyna_pci10xx_insn_read_ai() local 76 mutex_lock(&devpriv->mutex); in dyna_pci10xx_insn_read_ai() 94 mutex_unlock(&devpriv->mutex); in dyna_pci10xx_insn_read_ai() 106 struct dyna_pci10xx_private *devpriv = dev->private; in dyna_pci10xx_insn_write_ao() local 109 mutex_lock(&devpriv->mutex); in dyna_pci10xx_insn_write_ao() 116 mutex_unlock(&devpriv->mutex); in dyna_pci10xx_insn_write_ao() 126 struct dyna_pci10xx_private *devpriv = dev->private; in dyna_pci10xx_di_insn_bits() local 129 mutex_lock(&devpriv->mutex); in dyna_pci10xx_di_insn_bits() 131 d = inw_p(devpriv->BADR3); in dyna_pci10xx_di_insn_bits() 137 mutex_unlock(&devpriv->mutex); in dyna_pci10xx_di_insn_bits() [all …]
|
D | pcl812.c | 527 struct pcl812_private *devpriv = dev->private; in pcl812_ai_setup_dma() local 528 struct comedi_isadma *dma = devpriv->dma; in pcl812_ai_setup_dma() 537 bytes = devpriv->ai_eos ? comedi_bytes_per_scan(s) : desc->maxsize; in pcl812_ai_setup_dma() 555 struct pcl812_private *devpriv = dev->private; in pcl812_ai_set_chan_range() local 560 if (chanspec == devpriv->last_ai_chanspec) in pcl812_ai_set_chan_range() 563 devpriv->last_ai_chanspec = chanspec; in pcl812_ai_set_chan_range() 565 if (devpriv->use_mpc508) { in pcl812_ai_set_chan_range() 566 if (devpriv->use_diff) { in pcl812_ai_set_chan_range() 577 outb(range + devpriv->range_correction, dev->iobase + PCL812_RANGE_REG); in pcl812_ai_set_chan_range() 584 udelay(devpriv->max_812_ai_mode0_rangewait); in pcl812_ai_set_chan_range() [all …]
|