Home
last modified time | relevance | path

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

12345

/drivers/staging/comedi/drivers/
Dmultiq3.c131 val &= s->maxdata; in multiq3_ai_insn_read()
223 data[i] = (val + ((s->maxdata + 1) >> 1)) & s->maxdata; in multiq3_encoder_insn_read()
280 s->maxdata = 0x1fff; in multiq3_attach()
289 s->maxdata = 0x0fff; in multiq3_attach()
302 s->maxdata = 1; in multiq3_attach()
311 s->maxdata = 1; in multiq3_attach()
320 s->maxdata = 0x00ffffff; in multiq3_attach()
Dadl_pci9111.c405 unsigned int maxdata = s->maxdata; in pci9111_ai_munge() local
406 unsigned int invert = (maxdata + 1) >> 1; in pci9111_ai_munge()
407 unsigned int shift = (maxdata == 0xffff) ? 0 : 4; in pci9111_ai_munge()
412 array[i] = ((array[i] >> shift) & maxdata) ^ invert; in pci9111_ai_munge()
544 unsigned int maxdata = s->maxdata; in pci9111_ai_insn_read() local
545 unsigned int invert = (maxdata + 1) >> 1; in pci9111_ai_insn_read()
546 unsigned int shift = (maxdata == 0xffff) ? 0 : 4; in pci9111_ai_insn_read()
572 data[i] = ((data[i] >> shift) & maxdata) ^ invert; in pci9111_ai_insn_read()
673 s->maxdata = 0xffff; in pci9111_auto_attach()
690 s->maxdata = 0x0fff; in pci9111_auto_attach()
[all …]
Ddas6402.c126 unsigned int maxdata; member
132 .maxdata = 0x0fff,
135 .maxdata = 0xffff,
176 if (s->maxdata == 0x0fff) in das6402_ai_read_sample()
460 if (s->maxdata == 0x0fff) { in das6402_ao_insn_write()
616 s->maxdata = board->maxdata; in das6402_attach()
633 s->maxdata = board->maxdata; in das6402_attach()
647 s->maxdata = 1; in das6402_attach()
656 s->maxdata = 1; in das6402_attach()
Dcomedi_test.c88 unsigned int offset = s->maxdata / 2; in fake_sawtooth()
94 binary_amplitude = s->maxdata; in fake_sawtooth()
107 if (value > s->maxdata) in fake_sawtooth()
108 value = s->maxdata; /* positive saturation */ in fake_sawtooth()
120 unsigned int offset = s->maxdata / 2; in fake_squarewave()
125 value = s->maxdata; in fake_squarewave()
137 if (value > s->maxdata) in fake_squarewave()
138 value = s->maxdata; /* positive saturation */ in fake_squarewave()
148 return dev->read_subdev->maxdata / 2; in fake_flatline()
643 s->maxdata = 0xffff; in waveform_attach()
[all …]
Dadl_pci8164.c91 s->maxdata = 0xffff; in adl_pci8164_auto_attach()
102 s->maxdata = 0xffff; in adl_pci8164_auto_attach()
113 s->maxdata = 0xffff; in adl_pci8164_auto_attach()
124 s->maxdata = 0xffff; in adl_pci8164_auto_attach()
Ddas800.c468 if (s->maxdata == 0x0fff) { in das800_interrupt()
480 if (s->maxdata == 0x0fff) in das800_interrupt()
483 val &= s->maxdata; in das800_interrupt()
551 if (s->maxdata == 0x0fff && range) in das800_ai_insn_read()
567 if (s->maxdata == 0x0fff) in das800_ai_insn_read()
569 data[i] = val & s->maxdata; in das800_ai_insn_read()
701 s->maxdata = (1 << board->resolution) - 1; in das800_attach()
717 s->maxdata = 1; in das800_attach()
726 s->maxdata = 1; in das800_attach()
Dmf6x4.c154 d &= s->maxdata; in mf6x4_ai_insn_read()
239 s->maxdata = 0x3fff; in mf6x4_auto_attach()
248 s->maxdata = 0x3fff; in mf6x4_auto_attach()
261 s->maxdata = 1; in mf6x4_auto_attach()
270 s->maxdata = 1; in mf6x4_auto_attach()
Dadl_pci7x3x.c191 s->maxdata = 1; in adl_pci7x3x_auto_attach()
206 s->maxdata = 1; in adl_pci7x3x_auto_attach()
224 s->maxdata = 1; in adl_pci7x3x_auto_attach()
239 s->maxdata = 1; in adl_pci7x3x_auto_attach()
Dpcmad.c98 if (s->maxdata == 0x0fff) in pcmad_ai_insn_read()
103 val ^= ((s->maxdata + 1) >> 1); in pcmad_ai_insn_read()
138 s->maxdata = board->ai_maxdata; in pcmad_attach()
Dfl512.c78 val &= s->maxdata; in fl512_ai_insn_read()
126 s->maxdata = 0x0fff; in fl512_attach()
135 s->maxdata = 0x0fff; in fl512_attach()
Dpcl730.c287 s->maxdata = 1; in pcl730_attach()
303 s->maxdata = 1; in pcl730_attach()
317 s->maxdata = 1; in pcl730_attach()
327 s->maxdata = 1; in pcl730_attach()
Ddyna_pci10xx.c204 s->maxdata = 0x0FFF; in dyna_pci10xx_auto_attach()
214 s->maxdata = 0x0FFF; in dyna_pci10xx_auto_attach()
224 s->maxdata = 1; in dyna_pci10xx_auto_attach()
234 s->maxdata = 1; in dyna_pci10xx_auto_attach()
Dcomedi_parport.c259 s->maxdata = 1; in parport_attach()
269 s->maxdata = 1; in parport_attach()
278 s->maxdata = 1; in parport_attach()
289 s->maxdata = 1; in parport_attach()
Ddas08.c380 s->maxdata = (1 << board->ai_nbits) - 1; in das08_common_attach()
394 s->maxdata = (1 << board->ao_nbits) - 1; in das08_common_attach()
404 s->readback[i] = s->maxdata / 2; in das08_common_attach()
417 s->maxdata = 1; in das08_common_attach()
431 s->maxdata = 1; in das08_common_attach()
Daddi_apci_3501.c357 s->maxdata = 0x3fff; in apci3501_auto_attach()
373 s->maxdata = 1; in apci3501_auto_attach()
382 s->maxdata = 1; in apci3501_auto_attach()
391 s->maxdata = 0; in apci3501_auto_attach()
403 s->maxdata = 0xffff; in apci3501_auto_attach()
Daddi_apci_1564.c494 s->maxdata = 1; in apci1564_auto_attach()
503 s->maxdata = 1; in apci1564_auto_attach()
514 s->maxdata = 1; in apci1564_auto_attach()
531 s->maxdata = 0x0fff; in apci1564_auto_attach()
543 s->maxdata = 0xffffffff; in apci1564_auto_attach()
563 s->maxdata = 1; in apci1564_auto_attach()
Dicp_multi.c278 s->maxdata = 0x0fff; in icp_multi_auto_attach()
287 s->maxdata = 0x0fff; in icp_multi_auto_attach()
300 s->maxdata = 1; in icp_multi_auto_attach()
309 s->maxdata = 1; in icp_multi_auto_attach()
Ddt2811.c396 s->maxdata = 0xfff; in dt2811_attach()
415 s->maxdata = 0xfff; in dt2811_attach()
431 s->maxdata = 1; in dt2811_attach()
440 s->maxdata = 1; in dt2811_attach()
Dadl_pci6208.c142 s->maxdata = 0xffff; in pci6208_auto_attach()
155 s->maxdata = 1; in pci6208_auto_attach()
164 s->maxdata = 1; in pci6208_auto_attach()
Dadv_pci1724.c153 s->maxdata = 0x3fff; in adv_pci1724_auto_attach()
167 s->maxdata = 0x3fff; in adv_pci1724_auto_attach()
180 s->maxdata = 0x3fff; in adv_pci1724_auto_attach()
Dadq12b.c216 s->maxdata = 0xfff; in adq12b_attach()
226 s->maxdata = 1; in adq12b_attach()
235 s->maxdata = 1; in adq12b_attach()
Drti800.c297 s->maxdata = 0x0fff; in rti800_attach()
308 s->maxdata = 0x0fff; in rti800_attach()
333 s->maxdata = 1; in rti800_attach()
342 s->maxdata = 1; in rti800_attach()
Dpcl711.c180 return val & s->maxdata; in pcl711_ai_get_sample()
459 s->maxdata = 0xfff; in pcl711_attach()
476 s->maxdata = 0xfff; in pcl711_attach()
489 s->maxdata = 1; in pcl711_attach()
498 s->maxdata = 1; in pcl711_attach()
Ddac02.c98 val = s->maxdata - val; in dac02_ao_insn_write()
129 s->maxdata = 0x0fff; in dac02_attach()
Dpcl726.c372 s->maxdata = 0x0fff; in pcl726_attach()
386 s->maxdata = 1; in pcl726_attach()
395 s->maxdata = 1; in pcl726_attach()
407 s->maxdata = 1; in pcl726_attach()

12345