/kernel/linux/linux-5.10/drivers/staging/comedi/drivers/ |
D | multiq3.c | 122 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()
|
D | adl_pci9111.c | 396 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 …]
|
D | das6402.c | 119 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()
|
D | adl_pci8164.c | 82 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()
|
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 | 145 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()
|
D | adl_pci7x3x.c | 182 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()
|
D | fl512.c | 69 val &= s->maxdata; in fl512_ai_insn_read() 117 s->maxdata = 0x0fff; in fl512_attach() 126 s->maxdata = 0x0fff; in fl512_attach()
|
D | das800.c | 459 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()
|
D | dyna_pci10xx.c | 191 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()
|
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 | 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 | 132 s->maxdata = 0xffff; in pci6208_auto_attach() 145 s->maxdata = 1; in pci6208_auto_attach() 154 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 | 144 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()
|
D | das08.c | 371 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()
|
D | icp_multi.c | 269 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()
|
D | adq12b.c | 207 s->maxdata = 0xfff; in adq12b_attach() 217 s->maxdata = 1; in adq12b_attach() 226 s->maxdata = 1; in adq12b_attach()
|
D | dac02.c | 89 val = s->maxdata - val; in dac02_ao_insn_write() 120 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 | 72 s->maxdata = 1; in contec_auto_attach() 80 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 | 143 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()
|