Home
last modified time | relevance | path

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

12345

/Linux-v6.6/drivers/comedi/drivers/
Dmultiq3.c121 val &= s->maxdata; in multiq3_ai_insn_read()
213 data[i] = (val + ((s->maxdata + 1) >> 1)) & s->maxdata; in multiq3_encoder_insn_read()
270 s->maxdata = 0x1fff; in multiq3_attach()
279 s->maxdata = 0x0fff; in multiq3_attach()
292 s->maxdata = 1; in multiq3_attach()
301 s->maxdata = 1; in multiq3_attach()
310 s->maxdata = 0x00ffffff; in multiq3_attach()
Dadl_pci9111.c395 unsigned int maxdata = s->maxdata; in pci9111_ai_munge() local
396 unsigned int invert = (maxdata + 1) >> 1; in pci9111_ai_munge()
397 unsigned int shift = (maxdata == 0xffff) ? 0 : 4; in pci9111_ai_munge()
402 array[i] = ((array[i] >> shift) & maxdata) ^ invert; in pci9111_ai_munge()
534 unsigned int maxdata = s->maxdata; in pci9111_ai_insn_read() local
535 unsigned int invert = (maxdata + 1) >> 1; in pci9111_ai_insn_read()
536 unsigned int shift = (maxdata == 0xffff) ? 0 : 4; in pci9111_ai_insn_read()
562 data[i] = ((data[i] >> shift) & maxdata) ^ invert; in pci9111_ai_insn_read()
663 s->maxdata = 0xffff; in pci9111_auto_attach()
680 s->maxdata = 0x0fff; in pci9111_auto_attach()
[all …]
Ddas6402.c117 unsigned int maxdata; member
123 .maxdata = 0x0fff,
126 .maxdata = 0xffff,
167 if (s->maxdata == 0x0fff) in das6402_ai_read_sample()
451 if (s->maxdata == 0x0fff) { in das6402_ao_insn_write()
607 s->maxdata = board->maxdata; in das6402_attach()
624 s->maxdata = board->maxdata; in das6402_attach()
638 s->maxdata = 1; in das6402_attach()
647 s->maxdata = 1; in das6402_attach()
Dadl_pci8164.c81 s->maxdata = 0xffff; in adl_pci8164_auto_attach()
92 s->maxdata = 0xffff; in adl_pci8164_auto_attach()
103 s->maxdata = 0xffff; in adl_pci8164_auto_attach()
114 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.c144 d &= s->maxdata; in mf6x4_ai_insn_read()
229 s->maxdata = 0x3fff; in mf6x4_auto_attach()
238 s->maxdata = 0x3fff; in mf6x4_auto_attach()
251 s->maxdata = 1; in mf6x4_auto_attach()
260 s->maxdata = 1; in mf6x4_auto_attach()
Ddas800.c457 if (s->maxdata == 0x0fff) { in das800_interrupt()
469 if (s->maxdata == 0x0fff) in das800_interrupt()
472 val &= s->maxdata; in das800_interrupt()
540 if (s->maxdata == 0x0fff && range) in das800_ai_insn_read()
556 if (s->maxdata == 0x0fff) in das800_ai_insn_read()
558 data[i] = val & s->maxdata; in das800_ai_insn_read()
690 s->maxdata = (1 << board->resolution) - 1; in das800_attach()
706 s->maxdata = 1; in das800_attach()
715 s->maxdata = 1; in das800_attach()
Dfl512.c68 val &= s->maxdata; in fl512_ai_insn_read()
116 s->maxdata = 0x0fff; in fl512_attach()
125 s->maxdata = 0x0fff; in fl512_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()
Ddyna_pci10xx.c190 s->maxdata = 0x0FFF; in dyna_pci10xx_auto_attach()
199 s->maxdata = 0x0FFF; in dyna_pci10xx_auto_attach()
208 s->maxdata = 1; in dyna_pci10xx_auto_attach()
217 s->maxdata = 1; in dyna_pci10xx_auto_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.c131 s->maxdata = 0xffff; in pci6208_auto_attach()
144 s->maxdata = 1; in pci6208_auto_attach()
153 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.c143 s->maxdata = 0x3fff; in adv_pci1724_auto_attach()
157 s->maxdata = 0x3fff; in adv_pci1724_auto_attach()
170 s->maxdata = 0x3fff; in adv_pci1724_auto_attach()
Ddas08.c370 s->maxdata = (1 << board->ai_nbits) - 1; in das08_common_attach()
384 s->maxdata = (1 << board->ao_nbits) - 1; in das08_common_attach()
394 s->readback[i] = s->maxdata / 2; in das08_common_attach()
407 s->maxdata = 1; in das08_common_attach()
421 s->maxdata = 1; in das08_common_attach()
Dicp_multi.c268 s->maxdata = 0x0fff; in icp_multi_auto_attach()
277 s->maxdata = 0x0fff; in icp_multi_auto_attach()
290 s->maxdata = 1; in icp_multi_auto_attach()
299 s->maxdata = 1; in icp_multi_auto_attach()
Dadq12b.c206 s->maxdata = 0xfff; in adq12b_attach()
216 s->maxdata = 1; in adq12b_attach()
225 s->maxdata = 1; in adq12b_attach()
Ddac02.c88 val = s->maxdata - val; in dac02_ao_insn_write()
119 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.c71 s->maxdata = 1; in contec_auto_attach()
79 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.c142 val = inw(dev->iobase + AIO12_8_ADC_REG) & s->maxdata; in aio_aio12_8_ai_read()
224 s->maxdata = 0x0fff; in aio_aio12_8_attach()
237 s->maxdata = 0x0fff; in aio_aio12_8_attach()
Dpcl726.c364 s->maxdata = 0x0fff; in pcl726_attach()
378 s->maxdata = 1; in pcl726_attach()
387 s->maxdata = 1; in pcl726_attach()
399 s->maxdata = 1; in pcl726_attach()

12345