Home
last modified time | relevance | path

Searched refs:maxdata (Results 1 – 25 of 118) sorted by relevance

12345

/kernel/linux/linux-5.10/drivers/staging/comedi/drivers/
Dmultiq3.c122 val &= s->maxdata; in multiq3_ai_insn_read()
214 data[i] = (val + ((s->maxdata + 1) >> 1)) & s->maxdata; in multiq3_encoder_insn_read()
271 s->maxdata = 0x1fff; in multiq3_attach()
280 s->maxdata = 0x0fff; in multiq3_attach()
293 s->maxdata = 1; in multiq3_attach()
302 s->maxdata = 1; in multiq3_attach()
311 s->maxdata = 0x00ffffff; in multiq3_attach()
Dadl_pci9111.c396 unsigned int maxdata = s->maxdata; in pci9111_ai_munge() local
397 unsigned int invert = (maxdata + 1) >> 1; in pci9111_ai_munge()
398 unsigned int shift = (maxdata == 0xffff) ? 0 : 4; in pci9111_ai_munge()
403 array[i] = ((array[i] >> shift) & maxdata) ^ invert; in pci9111_ai_munge()
535 unsigned int maxdata = s->maxdata; in pci9111_ai_insn_read() local
536 unsigned int invert = (maxdata + 1) >> 1; in pci9111_ai_insn_read()
537 unsigned int shift = (maxdata == 0xffff) ? 0 : 4; in pci9111_ai_insn_read()
563 data[i] = ((data[i] >> shift) & maxdata) ^ invert; in pci9111_ai_insn_read()
664 s->maxdata = 0xffff; in pci9111_auto_attach()
681 s->maxdata = 0x0fff; in pci9111_auto_attach()
[all …]
Ddas6402.c119 unsigned int maxdata; member
125 .maxdata = 0x0fff,
128 .maxdata = 0xffff,
169 if (s->maxdata == 0x0fff) in das6402_ai_read_sample()
453 if (s->maxdata == 0x0fff) { in das6402_ao_insn_write()
609 s->maxdata = board->maxdata; in das6402_attach()
626 s->maxdata = board->maxdata; in das6402_attach()
640 s->maxdata = 1; in das6402_attach()
649 s->maxdata = 1; in das6402_attach()
Dadl_pci8164.c82 s->maxdata = 0xffff; in adl_pci8164_auto_attach()
93 s->maxdata = 0xffff; in adl_pci8164_auto_attach()
104 s->maxdata = 0xffff; in adl_pci8164_auto_attach()
115 s->maxdata = 0xffff; in adl_pci8164_auto_attach()
Dcomedi_test.c107 unsigned int offset = s->maxdata / 2; in fake_sawtooth()
113 binary_amplitude = s->maxdata; in fake_sawtooth()
126 if (value > s->maxdata) in fake_sawtooth()
127 value = s->maxdata; /* positive saturation */ in fake_sawtooth()
139 unsigned int offset = s->maxdata / 2; in fake_squarewave()
144 value = s->maxdata; in fake_squarewave()
156 if (value > s->maxdata) in fake_squarewave()
157 value = s->maxdata; /* positive saturation */ in fake_squarewave()
167 return dev->read_subdev->maxdata / 2; in fake_flatline()
696 s->maxdata = 0xffff; in waveform_common_attach()
[all …]
Dpcmad.c89 if (s->maxdata == 0x0fff) in pcmad_ai_insn_read()
94 val ^= ((s->maxdata + 1) >> 1); in pcmad_ai_insn_read()
129 s->maxdata = board->ai_maxdata; in pcmad_attach()
Dmf6x4.c145 d &= s->maxdata; in mf6x4_ai_insn_read()
230 s->maxdata = 0x3fff; in mf6x4_auto_attach()
239 s->maxdata = 0x3fff; in mf6x4_auto_attach()
252 s->maxdata = 1; in mf6x4_auto_attach()
261 s->maxdata = 1; in mf6x4_auto_attach()
Dadl_pci7x3x.c182 s->maxdata = 1; in adl_pci7x3x_auto_attach()
197 s->maxdata = 1; in adl_pci7x3x_auto_attach()
215 s->maxdata = 1; in adl_pci7x3x_auto_attach()
230 s->maxdata = 1; in adl_pci7x3x_auto_attach()
Dfl512.c69 val &= s->maxdata; in fl512_ai_insn_read()
117 s->maxdata = 0x0fff; in fl512_attach()
126 s->maxdata = 0x0fff; in fl512_attach()
Ddas800.c459 if (s->maxdata == 0x0fff) { in das800_interrupt()
471 if (s->maxdata == 0x0fff) in das800_interrupt()
474 val &= s->maxdata; in das800_interrupt()
542 if (s->maxdata == 0x0fff && range) in das800_ai_insn_read()
558 if (s->maxdata == 0x0fff) in das800_ai_insn_read()
560 data[i] = val & s->maxdata; in das800_ai_insn_read()
692 s->maxdata = (1 << board->resolution) - 1; in das800_attach()
708 s->maxdata = 1; in das800_attach()
717 s->maxdata = 1; in das800_attach()
Ddyna_pci10xx.c191 s->maxdata = 0x0FFF; in dyna_pci10xx_auto_attach()
200 s->maxdata = 0x0FFF; in dyna_pci10xx_auto_attach()
209 s->maxdata = 1; in dyna_pci10xx_auto_attach()
218 s->maxdata = 1; in dyna_pci10xx_auto_attach()
Dpcl730.c288 s->maxdata = 1; in pcl730_attach()
304 s->maxdata = 1; in pcl730_attach()
318 s->maxdata = 1; in pcl730_attach()
328 s->maxdata = 1; in pcl730_attach()
Dcomedi_parport.c250 s->maxdata = 1; in parport_attach()
260 s->maxdata = 1; in parport_attach()
269 s->maxdata = 1; in parport_attach()
280 s->maxdata = 1; in parport_attach()
Dadl_pci6208.c132 s->maxdata = 0xffff; in pci6208_auto_attach()
145 s->maxdata = 1; in pci6208_auto_attach()
154 s->maxdata = 1; in pci6208_auto_attach()
Daddi_apci_1564.c501 if (data[1] > s->maxdata) in apci1564_timer_insn_config()
524 if (data[2] > s->maxdata) in apci1564_timer_insn_config()
708 s->maxdata = 1; in apci1564_auto_attach()
717 s->maxdata = 1; in apci1564_auto_attach()
728 s->maxdata = 1; in apci1564_auto_attach()
745 s->maxdata = 0x0fff; in apci1564_auto_attach()
757 s->maxdata = 0xffffffff; in apci1564_auto_attach()
777 s->maxdata = 1; in apci1564_auto_attach()
Dadv_pci1724.c144 s->maxdata = 0x3fff; in adv_pci1724_auto_attach()
158 s->maxdata = 0x3fff; in adv_pci1724_auto_attach()
171 s->maxdata = 0x3fff; in adv_pci1724_auto_attach()
Ddas08.c371 s->maxdata = (1 << board->ai_nbits) - 1; in das08_common_attach()
385 s->maxdata = (1 << board->ao_nbits) - 1; in das08_common_attach()
395 s->readback[i] = s->maxdata / 2; in das08_common_attach()
408 s->maxdata = 1; in das08_common_attach()
422 s->maxdata = 1; in das08_common_attach()
Dicp_multi.c269 s->maxdata = 0x0fff; in icp_multi_auto_attach()
278 s->maxdata = 0x0fff; in icp_multi_auto_attach()
291 s->maxdata = 1; in icp_multi_auto_attach()
300 s->maxdata = 1; in icp_multi_auto_attach()
Dadq12b.c207 s->maxdata = 0xfff; in adq12b_attach()
217 s->maxdata = 1; in adq12b_attach()
226 s->maxdata = 1; in adq12b_attach()
Ddac02.c89 val = s->maxdata - val; in dac02_ao_insn_write()
120 s->maxdata = 0x0fff; in dac02_attach()
Drti800.c288 s->maxdata = 0x0fff; in rti800_attach()
299 s->maxdata = 0x0fff; in rti800_attach()
324 s->maxdata = 1; in rti800_attach()
333 s->maxdata = 1; in rti800_attach()
Dcontec_pci_dio.c72 s->maxdata = 1; in contec_auto_attach()
80 s->maxdata = 1; in contec_auto_attach()
Daddi_apci_3501.c336 s->maxdata = 0x3fff; in apci3501_auto_attach()
352 s->maxdata = 1; in apci3501_auto_attach()
361 s->maxdata = 1; in apci3501_auto_attach()
374 s->maxdata = 0xffff; in apci3501_auto_attach()
Daddi_watchdog.c43 reload = data[1] & s->maxdata; in addi_watchdog_insn_config()
118 s->maxdata = 0xff; in addi_watchdog_init()
Daio_aio12_8.c143 val = inw(dev->iobase + AIO12_8_ADC_REG) & s->maxdata; in aio_aio12_8_ai_read()
225 s->maxdata = 0x0fff; in aio_aio12_8_attach()
238 s->maxdata = 0x0fff; in aio_aio12_8_attach()

12345