/Linux-v6.6/drivers/comedi/drivers/ |
D | multiq3.c | 121 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()
|
D | adl_pci9111.c | 395 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 …]
|
D | das6402.c | 117 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()
|
D | adl_pci8164.c | 81 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()
|
D | comedi_test.c | 107 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 …]
|
D | pcmad.c | 89 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()
|
D | mf6x4.c | 144 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()
|
D | das800.c | 457 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()
|
D | fl512.c | 68 val &= s->maxdata; in fl512_ai_insn_read() 116 s->maxdata = 0x0fff; in fl512_attach() 125 s->maxdata = 0x0fff; in fl512_attach()
|
D | pcl730.c | 288 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()
|
D | dyna_pci10xx.c | 190 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()
|
D | comedi_parport.c | 250 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()
|
D | adl_pci6208.c | 131 s->maxdata = 0xffff; in pci6208_auto_attach() 144 s->maxdata = 1; in pci6208_auto_attach() 153 s->maxdata = 1; in pci6208_auto_attach()
|
D | addi_apci_1564.c | 501 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()
|
D | adv_pci1724.c | 143 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()
|
D | das08.c | 370 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()
|
D | icp_multi.c | 268 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()
|
D | adq12b.c | 206 s->maxdata = 0xfff; in adq12b_attach() 216 s->maxdata = 1; in adq12b_attach() 225 s->maxdata = 1; in adq12b_attach()
|
D | dac02.c | 88 val = s->maxdata - val; in dac02_ao_insn_write() 119 s->maxdata = 0x0fff; in dac02_attach()
|
D | rti800.c | 288 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()
|
D | contec_pci_dio.c | 71 s->maxdata = 1; in contec_auto_attach() 79 s->maxdata = 1; in contec_auto_attach()
|
D | addi_apci_3501.c | 336 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()
|
D | addi_watchdog.c | 43 reload = data[1] & s->maxdata; in addi_watchdog_insn_config() 118 s->maxdata = 0xff; in addi_watchdog_init()
|
D | aio_aio12_8.c | 142 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()
|
D | pcl726.c | 364 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()
|