/Linux-v5.10/drivers/staging/comedi/drivers/ |
D | usbduxsigma.c | 180 struct usbduxsigma_private *devpriv = dev->private; in usbduxsigma_ai_stop() local 182 if (do_unlink && devpriv->ai_urbs) in usbduxsigma_ai_stop() 183 usbduxsigma_unlink_urbs(devpriv->ai_urbs, devpriv->n_ai_urbs); in usbduxsigma_ai_stop() 185 devpriv->ai_cmd_running = 0; in usbduxsigma_ai_stop() 191 struct usbduxsigma_private *devpriv = dev->private; in usbduxsigma_ai_cancel() local 193 mutex_lock(&devpriv->mut); in usbduxsigma_ai_cancel() 195 usbduxsigma_ai_stop(dev, devpriv->ai_cmd_running); in usbduxsigma_ai_cancel() 196 mutex_unlock(&devpriv->mut); in usbduxsigma_ai_cancel() 205 struct usbduxsigma_private *devpriv = dev->private; in usbduxsigma_ai_handle_urb() local 213 devpriv->ai_counter--; in usbduxsigma_ai_handle_urb() [all …]
|
D | ni_labpc_common.c | 106 struct labpc_private *devpriv = dev->private; in labpc_cancel() local 110 devpriv->cmd2 &= ~(CMD2_SWTRIG | CMD2_HWTRIG | CMD2_PRETRIG); in labpc_cancel() 111 devpriv->write_byte(dev, devpriv->cmd2, CMD2_REG); in labpc_cancel() 114 devpriv->cmd3 = 0; in labpc_cancel() 115 devpriv->write_byte(dev, devpriv->cmd3, CMD3_REG); in labpc_cancel() 127 struct labpc_private *devpriv = dev->private; in labpc_ai_set_chan_and_gain() local 142 devpriv->cmd1 = CMD1_MA(chan); in labpc_ai_set_chan_and_gain() 143 devpriv->cmd1 |= CMD1_GAIN(range); in labpc_ai_set_chan_and_gain() 145 devpriv->write_byte(dev, devpriv->cmd1, CMD1_REG); in labpc_ai_set_chan_and_gain() 157 struct labpc_private *devpriv = dev->private; in labpc_setup_cmd6_reg() local [all …]
|
D | vmk80xx.c | 154 struct vmk80xx_private *devpriv = dev->private; in vmk80xx_do_bulk_msg() local 162 tx_addr = devpriv->ep_tx->bEndpointAddress; in vmk80xx_do_bulk_msg() 163 rx_addr = devpriv->ep_rx->bEndpointAddress; in vmk80xx_do_bulk_msg() 171 size = usb_endpoint_maxp(devpriv->ep_tx); in vmk80xx_do_bulk_msg() 173 usb_bulk_msg(usb, tx_pipe, devpriv->usb_tx_buf, in vmk80xx_do_bulk_msg() 174 size, NULL, devpriv->ep_tx->bInterval); in vmk80xx_do_bulk_msg() 175 usb_bulk_msg(usb, rx_pipe, devpriv->usb_rx_buf, size, NULL, HZ * 10); in vmk80xx_do_bulk_msg() 180 struct vmk80xx_private *devpriv = dev->private; in vmk80xx_read_packet() local 185 if (devpriv->model == VMK8061_MODEL) { in vmk80xx_read_packet() 190 ep = devpriv->ep_rx; in vmk80xx_read_packet() [all …]
|
D | usbdux.c | 217 struct usbdux_private *devpriv = dev->private; in usbdux_ai_stop() local 219 if (do_unlink && devpriv->ai_urbs) in usbdux_ai_stop() 220 usbdux_unlink_urbs(devpriv->ai_urbs, devpriv->n_ai_urbs); in usbdux_ai_stop() 222 devpriv->ai_cmd_running = 0; in usbdux_ai_stop() 228 struct usbdux_private *devpriv = dev->private; in usbdux_ai_cancel() local 231 mutex_lock(&devpriv->mut); in usbdux_ai_cancel() 233 usbdux_ai_stop(dev, devpriv->ai_cmd_running); in usbdux_ai_cancel() 234 mutex_unlock(&devpriv->mut); in usbdux_ai_cancel() 243 struct usbdux_private *devpriv = dev->private; in usbduxsub_ai_handle_urb() local 249 devpriv->ai_counter--; in usbduxsub_ai_handle_urb() [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 | 246 struct pci9118_private *devpriv = dev->private; in pci9118_amcc_setup_dma() local 247 struct pci9118_dmabuf *dmabuf = &devpriv->dmabuf[buf]; in pci9118_amcc_setup_dma() 250 outl(dmabuf->hw, devpriv->iobase_a + AMCC_OP_REG_MWAR); in pci9118_amcc_setup_dma() 251 outl(dmabuf->use_size, devpriv->iobase_a + AMCC_OP_REG_MWTC); in pci9118_amcc_setup_dma() 256 struct pci9118_private *devpriv = dev->private; in pci9118_amcc_dma_ena() local 259 mcsr = inl(devpriv->iobase_a + AMCC_OP_REG_MCSR); in pci9118_amcc_dma_ena() 264 outl(mcsr, devpriv->iobase_a + AMCC_OP_REG_MCSR); in pci9118_amcc_dma_ena() 269 struct pci9118_private *devpriv = dev->private; in pci9118_amcc_int_ena() local 273 intcsr = inl(devpriv->iobase_a + AMCC_OP_REG_INTCSR); in pci9118_amcc_int_ena() 278 outl(intcsr, devpriv->iobase_a + AMCC_OP_REG_INTCSR); in pci9118_amcc_int_ena() [all …]
|
D | gsc_hpdi.c | 143 struct hpdi_private *devpriv = dev->private; in gsc_hpdi_drain_dma() local 152 next = readl(devpriv->plx9080_mmio + PLX_REG_DMAPADR(channel)); in gsc_hpdi_drain_dma() 154 idx = devpriv->dma_desc_index; in gsc_hpdi_drain_dma() 155 start = le32_to_cpu(devpriv->dma_desc[idx].pci_start_addr); in gsc_hpdi_drain_dma() 157 for (desc = 0; (next < start || next >= start + devpriv->block_size) && in gsc_hpdi_drain_dma() 158 desc < devpriv->num_dma_descriptors; desc++) { in gsc_hpdi_drain_dma() 160 size = devpriv->block_size / sizeof(u32); in gsc_hpdi_drain_dma() 162 if (size > devpriv->dio_count) in gsc_hpdi_drain_dma() 163 size = devpriv->dio_count; in gsc_hpdi_drain_dma() 164 devpriv->dio_count -= size; in gsc_hpdi_drain_dma() [all …]
|
D | cb_pcidas64.c | 1220 struct pcidas64_private *devpriv = dev->private; in abort_dma() local 1226 plx9080_abort_dma(devpriv->plx9080_iobase, channel); in abort_dma() 1233 struct pcidas64_private *devpriv = dev->private; in disable_plx_interrupts() local 1235 devpriv->plx_intcsr_bits = 0; in disable_plx_interrupts() 1236 writel(devpriv->plx_intcsr_bits, in disable_plx_interrupts() 1237 devpriv->plx9080_iobase + PLX_REG_INTCSR); in disable_plx_interrupts() 1242 struct pcidas64_private *devpriv = dev->private; in disable_ai_interrupts() local 1246 devpriv->intr_enable_bits &= in disable_ai_interrupts() 1250 writew(devpriv->intr_enable_bits, in disable_ai_interrupts() 1251 devpriv->main_iobase + INTR_ENABLE_REG); in disable_ai_interrupts() [all …]
|
D | amplc_pci230.c | 536 struct pci230_private *devpriv = dev->private; in pci230_ai_read() local 540 data = inw(devpriv->daqio + PCI230_ADCDATA); in pci230_ai_read() 548 if (devpriv->ai_bipolar) in pci230_ai_read() 558 struct pci230_private *devpriv = dev->private; in pci230_ao_mangle_datum() local 569 if (devpriv->ao_bipolar) in pci230_ao_mangle_datum() 577 struct pci230_private *devpriv = dev->private; in pci230_ao_write_nofifo() local 581 devpriv->daqio + ((chan == 0) ? PCI230_DACOUT1 : PCI230_DACOUT2)); in pci230_ao_write_nofifo() 587 struct pci230_private *devpriv = dev->private; in pci230_ao_write_fifo() local 591 devpriv->daqio + PCI230P2_DACDATA); in pci230_ao_write_fifo() 597 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 | 391 struct pci224_private *devpriv = dev->private; in pci224_ao_set_data() local 397 devpriv->daccon = COMBINE(devpriv->daccon, board->ao_hwrange[range], in pci224_ao_set_data() 400 outw(devpriv->daccon | PCI224_DACCON_FIFORESET, in pci224_ao_set_data() 408 if ((devpriv->daccon & PCI224_DACCON_POLAR_MASK) == in pci224_ao_set_data() 443 struct pci224_private *devpriv = dev->private; in pci224_ao_stop() local 446 if (!test_and_clear_bit(AO_CMD_STARTED, &devpriv->state)) in pci224_ao_stop() 449 spin_lock_irqsave(&devpriv->ao_spinlock, flags); in pci224_ao_stop() 451 devpriv->intsce = 0; in pci224_ao_stop() 452 outb(0, devpriv->iobase1 + PCI224_INT_SCE); in pci224_ao_stop() 464 while (devpriv->intr_running && devpriv->intr_cpuid != THISCPU) { in pci224_ao_stop() [all …]
|
D | ni_usb6501.c | 169 struct ni6501_private *devpriv = dev->private; in ni6501_port_command() local 171 u8 *tx = devpriv->usb_tx_buf; in ni6501_port_command() 177 mutex_lock(&devpriv->mut); in ni6501_port_command() 208 devpriv->ep_tx->bEndpointAddress), in ni6501_port_command() 209 devpriv->usb_tx_buf, in ni6501_port_command() 218 devpriv->ep_rx->bEndpointAddress), in ni6501_port_command() 219 devpriv->usb_rx_buf, in ni6501_port_command() 229 *bitmap = devpriv->usb_rx_buf[14]; in ni6501_port_command() 231 devpriv->usb_rx_buf[14] = 0x00; in ni6501_port_command() 233 if (memcmp(devpriv->usb_rx_buf, READ_PORT_RESPONSE, in ni6501_port_command() [all …]
|
D | dt282x.c | 318 struct dt282x_private *devpriv = dev->private; in dt282x_prep_ai_dma() local 319 struct comedi_isadma *dma = devpriv->dma; in dt282x_prep_ai_dma() 322 if (!devpriv->ntrig) in dt282x_prep_ai_dma() 327 if (n > devpriv->ntrig * 2) in dt282x_prep_ai_dma() 328 n = devpriv->ntrig * 2; in dt282x_prep_ai_dma() 329 devpriv->ntrig -= n / 2; in dt282x_prep_ai_dma() 332 comedi_isadma_set_mode(desc, devpriv->dma_dir); in dt282x_prep_ai_dma() 341 struct dt282x_private *devpriv = dev->private; in dt282x_prep_ao_dma() local 342 struct comedi_isadma *dma = devpriv->dma; in dt282x_prep_ao_dma() 346 comedi_isadma_set_mode(desc, devpriv->dma_dir); in dt282x_prep_ao_dma() [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 | 315 struct cb_pcidas_private *devpriv = dev->private; in cb_pcidas_ai_eoc() local 318 status = inw(devpriv->pcibar1 + PCIDAS_AI_REG); in cb_pcidas_ai_eoc() 329 struct cb_pcidas_private *devpriv = dev->private; in cb_pcidas_ai_insn_read() local 339 outw(PCIDAS_CALIB_EN | PCIDAS_CALIB_SRC(devpriv->calib_src), in cb_pcidas_ai_insn_read() 340 devpriv->pcibar1 + PCIDAS_CALIB_REG); in cb_pcidas_ai_insn_read() 343 outw(0, devpriv->pcibar1 + PCIDAS_CALIB_REG); in cb_pcidas_ai_insn_read() 354 outw(bits, devpriv->pcibar1 + PCIDAS_AI_REG); in cb_pcidas_ai_insn_read() 357 outw(0, devpriv->pcibar2 + PCIDAS_AI_FIFO_CLR_REG); in cb_pcidas_ai_insn_read() 362 outw(0, devpriv->pcibar2 + PCIDAS_AI_DATA_REG); in cb_pcidas_ai_insn_read() 370 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 | 54 struct labpc_private *devpriv = dev->private; in labpc_setup_dma() local 55 struct comedi_isadma_desc *desc = &devpriv->dma->desc[0]; in labpc_setup_dma() 62 devpriv->count * sample_size < desc->size) in labpc_setup_dma() 63 desc->size = devpriv->count * sample_size; in labpc_setup_dma() 68 devpriv->cmd3 |= (CMD3_DMAEN | CMD3_DMATCINTEN); in labpc_setup_dma() 74 struct labpc_private *devpriv = dev->private; in labpc_drain_dma() local 75 struct comedi_isadma_desc *desc = &devpriv->dma->desc[0]; in labpc_drain_dma() 97 if (devpriv->count <= nsamples) { in labpc_drain_dma() 98 nsamples = devpriv->count; in labpc_drain_dma() 101 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 | 135 struct a2150_private *devpriv = dev->private; in a2150_interrupt() local 136 struct comedi_isadma *dma = devpriv->dma; in a2150_interrupt() 175 if (devpriv->count < num_points && cmd->stop_src == TRIG_COUNT) in a2150_interrupt() 176 num_points = devpriv->count; in a2150_interrupt() 182 } else if (devpriv->count > max_points) { in a2150_interrupt() 183 leftover = devpriv->count - max_points; in a2150_interrupt() 202 if (--devpriv->count == 0) { /* end of acquisition */ in a2150_interrupt() 224 struct a2150_private *devpriv = dev->private; in a2150_cancel() local 225 struct comedi_isadma *dma = devpriv->dma; in a2150_cancel() 229 devpriv->irq_dma_bits &= ~DMA_INTR_EN_BIT & ~DMA_EN_BIT; in a2150_cancel() [all …]
|
D | ni_660x.c | 314 struct ni_660x_private *devpriv = dev->private; in ni_660x_set_dma_channel() local 317 devpriv->dma_cfg[chip] &= ~NI660X_DMA_CFG_SEL_MASK(mite_channel); in ni_660x_set_dma_channel() 318 devpriv->dma_cfg[chip] |= NI660X_DMA_CFG_SEL(mite_channel, in ni_660x_set_dma_channel() 320 ni_660x_write(dev, chip, devpriv->dma_cfg[chip] | in ni_660x_set_dma_channel() 329 struct ni_660x_private *devpriv = dev->private; in ni_660x_unset_dma_channel() local 332 devpriv->dma_cfg[chip] &= ~NI660X_DMA_CFG_SEL_MASK(mite_channel); in ni_660x_unset_dma_channel() 333 devpriv->dma_cfg[chip] |= NI660X_DMA_CFG_SEL_NONE(mite_channel); in ni_660x_unset_dma_channel() 334 ni_660x_write(dev, chip, devpriv->dma_cfg[chip], NI660X_DMA_CFG); in ni_660x_unset_dma_channel() 341 struct ni_660x_private *devpriv = dev->private; in ni_660x_request_mite_channel() local 346 spin_lock_irqsave(&devpriv->mite_channel_lock, flags); in ni_660x_request_mite_channel() [all …]
|
D | me_daq.c | 154 struct me_private_data *devpriv = dev->private; in me_dio_insn_config() local 169 devpriv->ctrl2 |= ME_CTRL2_PORT_A_ENA; in me_dio_insn_config() 171 devpriv->ctrl2 &= ~ME_CTRL2_PORT_A_ENA; in me_dio_insn_config() 173 devpriv->ctrl2 |= ME_CTRL2_PORT_B_ENA; in me_dio_insn_config() 175 devpriv->ctrl2 &= ~ME_CTRL2_PORT_B_ENA; in me_dio_insn_config() 177 writew(devpriv->ctrl2, dev->mmio + ME_CTRL2_REG); in me_dio_insn_config() 233 struct me_private_data *devpriv = dev->private; in me_ai_insn_read() local 251 devpriv->ctrl2 &= ~(ME_CTRL2_ADFIFO_ENA | ME_CTRL2_CHANLIST_ENA); in me_ai_insn_read() 252 writew(devpriv->ctrl2, dev->mmio + ME_CTRL2_REG); in me_ai_insn_read() 257 devpriv->ctrl2 |= (ME_CTRL2_ADFIFO_ENA | ME_CTRL2_CHANLIST_ENA); in me_ai_insn_read() [all …]
|
D | dyna_pci10xx.c | 67 struct dyna_pci10xx_private *devpriv = dev->private; in dyna_pci10xx_insn_read_ai() local 77 mutex_lock(&devpriv->mutex); in dyna_pci10xx_insn_read_ai() 95 mutex_unlock(&devpriv->mutex); in dyna_pci10xx_insn_read_ai() 107 struct dyna_pci10xx_private *devpriv = dev->private; in dyna_pci10xx_insn_write_ao() local 110 mutex_lock(&devpriv->mutex); in dyna_pci10xx_insn_write_ao() 117 mutex_unlock(&devpriv->mutex); in dyna_pci10xx_insn_write_ao() 127 struct dyna_pci10xx_private *devpriv = dev->private; in dyna_pci10xx_di_insn_bits() local 130 mutex_lock(&devpriv->mutex); in dyna_pci10xx_di_insn_bits() 132 d = inw_p(devpriv->BADR3); in dyna_pci10xx_di_insn_bits() 138 mutex_unlock(&devpriv->mutex); in dyna_pci10xx_di_insn_bits() [all …]
|
D | pcl812.c | 529 struct pcl812_private *devpriv = dev->private; in pcl812_ai_setup_dma() local 530 struct comedi_isadma *dma = devpriv->dma; in pcl812_ai_setup_dma() 539 bytes = devpriv->ai_eos ? comedi_bytes_per_scan(s) : desc->maxsize; in pcl812_ai_setup_dma() 557 struct pcl812_private *devpriv = dev->private; in pcl812_ai_set_chan_range() local 562 if (chanspec == devpriv->last_ai_chanspec) in pcl812_ai_set_chan_range() 565 devpriv->last_ai_chanspec = chanspec; in pcl812_ai_set_chan_range() 567 if (devpriv->use_mpc508) { in pcl812_ai_set_chan_range() 568 if (devpriv->use_diff) { in pcl812_ai_set_chan_range() 579 outb(range + devpriv->range_correction, dev->iobase + PCL812_RANGE_REG); in pcl812_ai_set_chan_range() 586 udelay(devpriv->max_812_ai_mode0_rangewait); in pcl812_ai_set_chan_range() [all …]
|