/drivers/staging/comedi/drivers/ |
D | usbduxsigma.c | 189 struct usbduxsigma_private *devpriv = dev->private; in usbduxsigma_ai_stop() local 191 if (do_unlink && devpriv->ai_urbs) in usbduxsigma_ai_stop() 192 usbduxsigma_unlink_urbs(devpriv->ai_urbs, devpriv->n_ai_urbs); in usbduxsigma_ai_stop() 194 devpriv->ai_cmd_running = 0; in usbduxsigma_ai_stop() 200 struct usbduxsigma_private *devpriv = dev->private; in usbduxsigma_ai_cancel() local 202 mutex_lock(&devpriv->mut); in usbduxsigma_ai_cancel() 204 usbduxsigma_ai_stop(dev, devpriv->ai_cmd_running); in usbduxsigma_ai_cancel() 205 mutex_unlock(&devpriv->mut); in usbduxsigma_ai_cancel() 214 struct usbduxsigma_private *devpriv = dev->private; in usbduxsigma_ai_handle_urb() local 222 devpriv->ai_counter--; in usbduxsigma_ai_handle_urb() [all …]
|
D | ni_labpc_common.c | 115 struct labpc_private *devpriv = dev->private; in labpc_cancel() local 119 devpriv->cmd2 &= ~(CMD2_SWTRIG | CMD2_HWTRIG | CMD2_PRETRIG); in labpc_cancel() 120 devpriv->write_byte(dev, devpriv->cmd2, CMD2_REG); in labpc_cancel() 123 devpriv->cmd3 = 0; in labpc_cancel() 124 devpriv->write_byte(dev, devpriv->cmd3, CMD3_REG); in labpc_cancel() 136 struct labpc_private *devpriv = dev->private; in labpc_ai_set_chan_and_gain() local 151 devpriv->cmd1 = CMD1_MA(chan); in labpc_ai_set_chan_and_gain() 152 devpriv->cmd1 |= CMD1_GAIN(range); in labpc_ai_set_chan_and_gain() 154 devpriv->write_byte(dev, devpriv->cmd1, CMD1_REG); in labpc_ai_set_chan_and_gain() 166 struct labpc_private *devpriv = dev->private; in labpc_setup_cmd6_reg() local [all …]
|
D | usbdux.c | 226 struct usbdux_private *devpriv = dev->private; in usbdux_ai_stop() local 228 if (do_unlink && devpriv->ai_urbs) in usbdux_ai_stop() 229 usbdux_unlink_urbs(devpriv->ai_urbs, devpriv->n_ai_urbs); in usbdux_ai_stop() 231 devpriv->ai_cmd_running = 0; in usbdux_ai_stop() 237 struct usbdux_private *devpriv = dev->private; in usbdux_ai_cancel() local 240 mutex_lock(&devpriv->mut); in usbdux_ai_cancel() 242 usbdux_ai_stop(dev, devpriv->ai_cmd_running); in usbdux_ai_cancel() 243 mutex_unlock(&devpriv->mut); in usbdux_ai_cancel() 252 struct usbdux_private *devpriv = dev->private; in usbduxsub_ai_handle_urb() local 258 devpriv->ai_counter--; in usbduxsub_ai_handle_urb() [all …]
|
D | vmk80xx.c | 163 struct vmk80xx_private *devpriv = dev->private; in vmk80xx_do_bulk_msg() local 171 tx_addr = devpriv->ep_tx->bEndpointAddress; in vmk80xx_do_bulk_msg() 172 rx_addr = devpriv->ep_rx->bEndpointAddress; in vmk80xx_do_bulk_msg() 180 size = usb_endpoint_maxp(devpriv->ep_tx); in vmk80xx_do_bulk_msg() 182 usb_bulk_msg(usb, tx_pipe, devpriv->usb_tx_buf, in vmk80xx_do_bulk_msg() 183 size, NULL, devpriv->ep_tx->bInterval); in vmk80xx_do_bulk_msg() 184 usb_bulk_msg(usb, rx_pipe, devpriv->usb_rx_buf, size, NULL, HZ * 10); in vmk80xx_do_bulk_msg() 189 struct vmk80xx_private *devpriv = dev->private; in vmk80xx_read_packet() local 194 if (devpriv->model == VMK8061_MODEL) { in vmk80xx_read_packet() 199 ep = devpriv->ep_rx; in vmk80xx_read_packet() [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 | ni_mio_common.c | 449 struct ni_private *devpriv = dev->private; in ni_stc_writew() local 452 if (devpriv->is_m_series) { in ni_stc_writew() 455 spin_lock_irqsave(&devpriv->window_lock, flags); in ni_stc_writew() 456 if (!devpriv->mite && reg < 8) { in ni_stc_writew() 462 spin_unlock_irqrestore(&devpriv->window_lock, flags); in ni_stc_writew() 469 struct ni_private *devpriv = dev->private; in ni_stc_writel() local 471 if (devpriv->is_m_series) { in ni_stc_writel() 481 struct ni_private *devpriv = dev->private; in ni_stc_readw() local 485 if (devpriv->is_m_series) { in ni_stc_readw() 488 spin_lock_irqsave(&devpriv->window_lock, flags); in ni_stc_readw() [all …]
|
D | cb_pcidas64.c | 1229 struct pcidas64_private *devpriv = dev->private; in abort_dma() local 1235 plx9080_abort_dma(devpriv->plx9080_iobase, channel); in abort_dma() 1242 struct pcidas64_private *devpriv = dev->private; in disable_plx_interrupts() local 1244 devpriv->plx_intcsr_bits = 0; in disable_plx_interrupts() 1245 writel(devpriv->plx_intcsr_bits, in disable_plx_interrupts() 1246 devpriv->plx9080_iobase + PLX_REG_INTCSR); in disable_plx_interrupts() 1251 struct pcidas64_private *devpriv = dev->private; in disable_ai_interrupts() local 1255 devpriv->intr_enable_bits &= in disable_ai_interrupts() 1259 writew(devpriv->intr_enable_bits, in disable_ai_interrupts() 1260 devpriv->main_iobase + INTR_ENABLE_REG); in disable_ai_interrupts() [all …]
|
D | amplc_pci230.c | 543 struct pci230_private *devpriv = dev->private; in pci230_ai_read() local 547 data = inw(devpriv->daqio + PCI230_ADCDATA); in pci230_ai_read() 555 if (devpriv->ai_bipolar) in pci230_ai_read() 565 struct pci230_private *devpriv = dev->private; in pci230_ao_mangle_datum() local 576 if (devpriv->ao_bipolar) in pci230_ao_mangle_datum() 584 struct pci230_private *devpriv = dev->private; in pci230_ao_write_nofifo() local 588 devpriv->daqio + ((chan == 0) ? PCI230_DACOUT1 : PCI230_DACOUT2)); in pci230_ao_write_nofifo() 594 struct pci230_private *devpriv = dev->private; in pci230_ao_write_fifo() local 598 devpriv->daqio + PCI230P2_DACDATA); in pci230_ao_write_fifo() 604 struct pci230_private *devpriv = dev->private; in pci230_claim_shared() local [all …]
|
D | gsc_hpdi.c | 152 struct hpdi_private *devpriv = dev->private; in gsc_hpdi_drain_dma() local 161 next = readl(devpriv->plx9080_mmio + PLX_REG_DMAPADR(channel)); in gsc_hpdi_drain_dma() 163 idx = devpriv->dma_desc_index; in gsc_hpdi_drain_dma() 164 start = le32_to_cpu(devpriv->dma_desc[idx].pci_start_addr); in gsc_hpdi_drain_dma() 166 for (desc = 0; (next < start || next >= start + devpriv->block_size) && in gsc_hpdi_drain_dma() 167 desc < devpriv->num_dma_descriptors; desc++) { in gsc_hpdi_drain_dma() 169 size = devpriv->block_size / sizeof(u32); in gsc_hpdi_drain_dma() 171 if (size > devpriv->dio_count) in gsc_hpdi_drain_dma() 172 size = devpriv->dio_count; in gsc_hpdi_drain_dma() 173 devpriv->dio_count -= size; in gsc_hpdi_drain_dma() [all …]
|
D | comedi_test.c | 86 struct waveform_private *devpriv = dev->private; in fake_sawtooth() local 95 binary_amplitude *= devpriv->wf_amplitude; in fake_sawtooth() 100 do_div(value, devpriv->wf_period); in fake_sawtooth() 118 struct waveform_private *devpriv = dev->private; in fake_squarewave() local 126 value *= devpriv->wf_amplitude; in fake_squarewave() 130 if (current_time < devpriv->wf_period / 2) { in fake_squarewave() 180 struct waveform_private *devpriv = dev->private; in waveform_ai_timer() local 191 while (nsamples && devpriv->ai_convert_time < now) { in waveform_ai_timer() 196 CR_RANGE(chanspec), devpriv->wf_current); in waveform_ai_timer() 199 time_increment = devpriv->ai_convert_period; in waveform_ai_timer() [all …]
|
D | addi_apci_1564.c | 181 struct apci1564_private *devpriv = dev->private; in apci1564_reset() local 197 outl(0x0, devpriv->timer + ADDI_TCW_CTRL_REG); in apci1564_reset() 198 outl(0x0, devpriv->timer + ADDI_TCW_RELOAD_REG); in apci1564_reset() 200 if (devpriv->counters) { in apci1564_reset() 201 unsigned long iobase = devpriv->counters + ADDI_TCW_CTRL_REG; in apci1564_reset() 215 struct apci1564_private *devpriv = dev->private; in apci1564_interrupt() local 236 status = inl(devpriv->timer + ADDI_TCW_IRQ_REG); in apci1564_interrupt() 241 ctrl = inl(devpriv->timer + ADDI_TCW_CTRL_REG); in apci1564_interrupt() 242 outl(0x0, devpriv->timer + ADDI_TCW_CTRL_REG); in apci1564_interrupt() 243 outl(ctrl, devpriv->timer + ADDI_TCW_CTRL_REG); in apci1564_interrupt() [all …]
|
D | dt282x.c | 327 struct dt282x_private *devpriv = dev->private; in dt282x_prep_ai_dma() local 328 struct comedi_isadma *dma = devpriv->dma; in dt282x_prep_ai_dma() 331 if (!devpriv->ntrig) in dt282x_prep_ai_dma() 336 if (n > devpriv->ntrig * 2) in dt282x_prep_ai_dma() 337 n = devpriv->ntrig * 2; in dt282x_prep_ai_dma() 338 devpriv->ntrig -= n / 2; in dt282x_prep_ai_dma() 341 comedi_isadma_set_mode(desc, devpriv->dma_dir); in dt282x_prep_ai_dma() 350 struct dt282x_private *devpriv = dev->private; in dt282x_prep_ao_dma() local 351 struct comedi_isadma *dma = devpriv->dma; in dt282x_prep_ao_dma() 355 comedi_isadma_set_mode(desc, devpriv->dma_dir); in dt282x_prep_ao_dma() [all …]
|
D | amplc_pci224.c | 394 struct pci224_private *devpriv = dev->private; in pci224_ao_set_data() local 400 devpriv->daccon = COMBINE(devpriv->daccon, board->ao_hwrange[range], in pci224_ao_set_data() 403 outw(devpriv->daccon | PCI224_DACCON_FIFORESET, in pci224_ao_set_data() 411 if ((devpriv->daccon & PCI224_DACCON_POLAR_MASK) == in pci224_ao_set_data() 446 struct pci224_private *devpriv = dev->private; in pci224_ao_stop() local 449 if (!test_and_clear_bit(AO_CMD_STARTED, &devpriv->state)) in pci224_ao_stop() 452 spin_lock_irqsave(&devpriv->ao_spinlock, flags); in pci224_ao_stop() 454 devpriv->intsce = 0; in pci224_ao_stop() 455 outb(0, devpriv->iobase1 + PCI224_INT_SCE); in pci224_ao_stop() 467 while (devpriv->intr_running && devpriv->intr_cpuid != THISCPU) { in pci224_ao_stop() [all …]
|
D | ni_usb6501.c | 178 struct ni6501_private *devpriv = dev->private; in ni6501_port_command() local 180 u8 *tx = devpriv->usb_tx_buf; in ni6501_port_command() 186 mutex_lock(&devpriv->mut); in ni6501_port_command() 217 devpriv->ep_tx->bEndpointAddress), in ni6501_port_command() 218 devpriv->usb_tx_buf, in ni6501_port_command() 227 devpriv->ep_rx->bEndpointAddress), in ni6501_port_command() 228 devpriv->usb_rx_buf, in ni6501_port_command() 238 *bitmap = devpriv->usb_rx_buf[14]; in ni6501_port_command() 240 devpriv->usb_rx_buf[14] = 0x00; in ni6501_port_command() 242 if (memcmp(devpriv->usb_rx_buf, READ_PORT_RESPONSE, in ni6501_port_command() [all …]
|
D | cb_pcidas.c | 324 struct cb_pcidas_private *devpriv = dev->private; in cb_pcidas_ai_eoc() local 327 status = inw(devpriv->pcibar1 + PCIDAS_AI_REG); in cb_pcidas_ai_eoc() 338 struct cb_pcidas_private *devpriv = dev->private; in cb_pcidas_ai_insn_read() local 348 outw(PCIDAS_CALIB_EN | PCIDAS_CALIB_SRC(devpriv->calib_src), in cb_pcidas_ai_insn_read() 349 devpriv->pcibar1 + PCIDAS_CALIB_REG); in cb_pcidas_ai_insn_read() 352 outw(0, devpriv->pcibar1 + PCIDAS_CALIB_REG); in cb_pcidas_ai_insn_read() 363 outw(bits, devpriv->pcibar1 + PCIDAS_AI_REG); in cb_pcidas_ai_insn_read() 366 outw(0, devpriv->pcibar2 + PCIDAS_AI_FIFO_CLR_REG); in cb_pcidas_ai_insn_read() 371 outw(0, devpriv->pcibar2 + PCIDAS_AI_DATA_REG); in cb_pcidas_ai_insn_read() 379 data[n] = inw(devpriv->pcibar2 + PCIDAS_AI_DATA_REG); in cb_pcidas_ai_insn_read() [all …]
|
D | usbduxfast.c | 175 struct usbduxfast_private *devpriv = dev->private; in usbduxfast_send_cmd() local 179 devpriv->duxbuf[0] = cmd_type; in usbduxfast_send_cmd() 182 devpriv->duxbuf, SIZEOFDUXBUF, in usbduxfast_send_cmd() 194 struct usbduxfast_private *devpriv = dev->private; in usbduxfast_cmd_data() local 197 devpriv->duxbuf[1 + 0x00 + index] = len; in usbduxfast_cmd_data() 198 devpriv->duxbuf[1 + 0x08 + index] = op; in usbduxfast_cmd_data() 199 devpriv->duxbuf[1 + 0x10 + index] = out; in usbduxfast_cmd_data() 200 devpriv->duxbuf[1 + 0x18 + index] = log; in usbduxfast_cmd_data() 205 struct usbduxfast_private *devpriv = dev->private; in usbduxfast_ai_stop() local 208 devpriv->ai_cmd_running = 0; in usbduxfast_ai_stop() [all …]
|
D | addi_apci_3120.c | 169 struct apci3120_private *devpriv = dev->private; in apci3120_addon_write() local 173 outw(reg, devpriv->addon + APCI3120_ADDON_ADDR_REG); in apci3120_addon_write() 174 outw(val & 0xffff, devpriv->addon + APCI3120_ADDON_DATA_REG); in apci3120_addon_write() 176 outw(reg + 2, devpriv->addon + APCI3120_ADDON_ADDR_REG); in apci3120_addon_write() 177 outw((val >> 16) & 0xffff, devpriv->addon + APCI3120_ADDON_DATA_REG); in apci3120_addon_write() 183 struct apci3120_private *devpriv = dev->private; in apci3120_init_dma() local 187 devpriv->amcc + AMCC_OP_REG_AGCSTS); in apci3120_init_dma() 195 devpriv->amcc + AMCC_OP_REG_MCSR); in apci3120_init_dma() 205 devpriv->amcc + AMCC_OP_REG_INTCSR); in apci3120_init_dma() 209 devpriv->addon + APCI3120_ADDON_CTRL_REG); in apci3120_init_dma() [all …]
|
D | comedi_bond.c | 74 struct comedi_bond_private *devpriv = dev->private; in bonding_dio_insn_bits() local 83 n_left = devpriv->nchans - base_chan; in bonding_dio_insn_bits() 88 devs = devpriv->devs; in bonding_dio_insn_bits() 137 struct comedi_bond_private *devpriv = dev->private; in bonding_dio_insn_config() local 146 devs = devpriv->devs; in bonding_dio_insn_config() 180 struct comedi_bond_private *devpriv = dev->private; in do_dev_config() local 185 devpriv->name[0] = 0; in do_dev_config() 243 devpriv->nchans += nchans; in do_dev_config() 251 devs = krealloc(devpriv->devs, in do_dev_config() 252 (devpriv->ndevs + 1) * sizeof(*devs), in do_dev_config() [all …]
|
D | addi_apci_1032.c | 117 struct apci1032_private *devpriv = dev->private; in apci1032_cos_insn_config() local 128 devpriv->ctrl = 0; in apci1032_cos_insn_config() 129 devpriv->mode1 = 0; in apci1032_cos_insn_config() 130 devpriv->mode2 = 0; in apci1032_cos_insn_config() 134 if (devpriv->ctrl != (APCI1032_CTRL_INT_ENA | in apci1032_cos_insn_config() 137 devpriv->ctrl = APCI1032_CTRL_INT_ENA | in apci1032_cos_insn_config() 140 devpriv->mode1 = 0; in apci1032_cos_insn_config() 141 devpriv->mode2 = 0; in apci1032_cos_insn_config() 144 devpriv->mode1 &= oldmask; in apci1032_cos_insn_config() 145 devpriv->mode2 &= oldmask; in apci1032_cos_insn_config() [all …]
|
D | ni_at_a2150.c | 144 struct a2150_private *devpriv = dev->private; in a2150_interrupt() local 145 struct comedi_isadma *dma = devpriv->dma; in a2150_interrupt() 184 if (devpriv->count < num_points && cmd->stop_src == TRIG_COUNT) in a2150_interrupt() 185 num_points = devpriv->count; in a2150_interrupt() 191 } else if (devpriv->count > max_points) { in a2150_interrupt() 192 leftover = devpriv->count - max_points; in a2150_interrupt() 211 if (--devpriv->count == 0) { /* end of acquisition */ in a2150_interrupt() 233 struct a2150_private *devpriv = dev->private; in a2150_cancel() local 234 struct comedi_isadma *dma = devpriv->dma; in a2150_cancel() 238 devpriv->irq_dma_bits &= ~DMA_INTR_EN_BIT & ~DMA_EN_BIT; in a2150_cancel() [all …]
|
D | ni_labpc_isadma.c | 63 struct labpc_private *devpriv = dev->private; in labpc_setup_dma() local 64 struct comedi_isadma_desc *desc = &devpriv->dma->desc[0]; in labpc_setup_dma() 71 devpriv->count * sample_size < desc->size) in labpc_setup_dma() 72 desc->size = devpriv->count * sample_size; in labpc_setup_dma() 77 devpriv->cmd3 |= (CMD3_DMAEN | CMD3_DMATCINTEN); in labpc_setup_dma() 83 struct labpc_private *devpriv = dev->private; in labpc_drain_dma() local 84 struct comedi_isadma_desc *desc = &devpriv->dma->desc[0]; in labpc_drain_dma() 106 if (devpriv->count <= nsamples) { in labpc_drain_dma() 107 nsamples = devpriv->count; in labpc_drain_dma() 110 leftover = devpriv->count - nsamples; in labpc_drain_dma() [all …]
|
D | me_daq.c | 163 struct me_private_data *devpriv = dev->private; in me_dio_insn_config() local 178 devpriv->ctrl2 |= ME_CTRL2_PORT_A_ENA; in me_dio_insn_config() 180 devpriv->ctrl2 &= ~ME_CTRL2_PORT_A_ENA; in me_dio_insn_config() 182 devpriv->ctrl2 |= ME_CTRL2_PORT_B_ENA; in me_dio_insn_config() 184 devpriv->ctrl2 &= ~ME_CTRL2_PORT_B_ENA; in me_dio_insn_config() 186 writew(devpriv->ctrl2, dev->mmio + ME_CTRL2_REG); in me_dio_insn_config() 242 struct me_private_data *devpriv = dev->private; in me_ai_insn_read() local 260 devpriv->ctrl2 &= ~(ME_CTRL2_ADFIFO_ENA | ME_CTRL2_CHANLIST_ENA); in me_ai_insn_read() 261 writew(devpriv->ctrl2, dev->mmio + ME_CTRL2_REG); in me_ai_insn_read() 266 devpriv->ctrl2 |= (ME_CTRL2_ADFIFO_ENA | ME_CTRL2_CHANLIST_ENA); in me_ai_insn_read() [all …]
|
D | ni_660x.c | 311 struct ni_660x_private *devpriv = dev->private; in ni_660x_set_dma_channel() local 314 devpriv->dma_cfg[chip] &= ~NI660X_DMA_CFG_SEL_MASK(mite_channel); in ni_660x_set_dma_channel() 315 devpriv->dma_cfg[chip] |= NI660X_DMA_CFG_SEL(mite_channel, in ni_660x_set_dma_channel() 317 ni_660x_write(dev, chip, devpriv->dma_cfg[chip] | in ni_660x_set_dma_channel() 327 struct ni_660x_private *devpriv = dev->private; in ni_660x_unset_dma_channel() local 330 devpriv->dma_cfg[chip] &= ~NI660X_DMA_CFG_SEL_MASK(mite_channel); in ni_660x_unset_dma_channel() 331 devpriv->dma_cfg[chip] |= NI660X_DMA_CFG_SEL_NONE(mite_channel); in ni_660x_unset_dma_channel() 332 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 | pcl812.c | 528 struct pcl812_private *devpriv = dev->private; in pcl812_ai_setup_dma() local 529 struct comedi_isadma *dma = devpriv->dma; in pcl812_ai_setup_dma() 538 bytes = devpriv->ai_eos ? comedi_bytes_per_scan(s) : desc->maxsize; in pcl812_ai_setup_dma() 556 struct pcl812_private *devpriv = dev->private; in pcl812_ai_set_chan_range() local 561 if (chanspec == devpriv->last_ai_chanspec) in pcl812_ai_set_chan_range() 564 devpriv->last_ai_chanspec = chanspec; in pcl812_ai_set_chan_range() 566 if (devpriv->use_mpc508) { in pcl812_ai_set_chan_range() 567 if (devpriv->use_diff) { in pcl812_ai_set_chan_range() 578 outb(range + devpriv->range_correction, dev->iobase + PCL812_RANGE_REG); in pcl812_ai_set_chan_range() 585 udelay(devpriv->max_812_ai_mode0_rangewait); in pcl812_ai_set_chan_range() [all …]
|
D | cb_pcimdas.c | 171 struct cb_pcimdas_private *devpriv = dev->private; in cb_pcimdas_ai_eoc() local 174 status = inb(devpriv->BADR3 + PCIMDAS_STATUS_REG); in cb_pcimdas_ai_eoc() 185 struct cb_pcimdas_private *devpriv = dev->private; in cb_pcimdas_ai_insn_read() local 195 d = inb(devpriv->BADR3 + PCIMDAS_PACER_REG); in cb_pcimdas_ai_insn_read() 199 outb(d, devpriv->BADR3 + PCIMDAS_PACER_REG); in cb_pcimdas_ai_insn_read() 203 outb(PCIMDAS_BURST_CONV_EN, devpriv->BADR3 + PCIMDAS_BURST_REG); in cb_pcimdas_ai_insn_read() 206 outb(range, devpriv->BADR3 + PCIMDAS_GAIN_REG); in cb_pcimdas_ai_insn_read() 209 outb(PCIMDAS_MUX(chan, chan), devpriv->BADR3 + PCIMDAS_MUX_REG); in cb_pcimdas_ai_insn_read() 214 outw(0, devpriv->daqio + PCIMDAS_AI_SOFTTRIG_REG); in cb_pcimdas_ai_insn_read() 222 data[n] = inw(devpriv->daqio + PCIMDAS_AI_REG); in cb_pcimdas_ai_insn_read() [all …]
|