/openbmc/linux/drivers/comedi/drivers/ |
H A 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()
|
H A 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 …]
|
H A 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()
|
H A 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()
|
H A D | comedi_test.c | 109 unsigned int offset = s->maxdata / 2; in fake_sawtooth() 115 binary_amplitude = s->maxdata; in fake_sawtooth() 128 if (value > s->maxdata) in fake_sawtooth() 129 value = s->maxdata; /* positive saturation */ in fake_sawtooth() 141 unsigned int offset = s->maxdata / 2; in fake_squarewave() 146 value = s->maxdata; in fake_squarewave() 158 if (value > s->maxdata) in fake_squarewave() 159 value = s->maxdata; /* positive saturation */ in fake_squarewave() 169 return dev->read_subdev->maxdata / 2; in fake_flatline() 718 s->maxdata = 0xffff; in waveform_common_attach() [all …]
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A D | adq12b.c | 206 s->maxdata = 0xfff; in adq12b_attach() 216 s->maxdata = 1; in adq12b_attach() 225 s->maxdata = 1; in adq12b_attach()
|
H A 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()
|
H A D | dac02.c | 88 val = s->maxdata - val; in dac02_ao_insn_write() 119 s->maxdata = 0x0fff; in dac02_attach()
|
H A 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()
|
H A D | contec_pci_dio.c | 71 s->maxdata = 1; in contec_auto_attach() 79 s->maxdata = 1; in contec_auto_attach()
|
H A D | pcl711.c | 169 return val & s->maxdata; in pcl711_ai_get_sample() 448 s->maxdata = 0xfff; in pcl711_attach() 465 s->maxdata = 0xfff; in pcl711_attach() 478 s->maxdata = 1; in pcl711_attach() 487 s->maxdata = 1; in pcl711_attach()
|
H A D | dt2811.c | 189 return val & s->maxdata; in dt2811_ai_read_sample() 584 s->maxdata = 0x0fff; in dt2811_attach() 602 s->maxdata = 0x0fff; in dt2811_attach() 615 s->maxdata = 1; in dt2811_attach() 624 s->maxdata = 1; in dt2811_attach()
|
H A D | adl_pci7x3x.c | 403 s->maxdata = 1; in adl_pci7x3x_auto_attach() 418 s->maxdata = 1; in adl_pci7x3x_auto_attach() 436 s->maxdata = 1; in adl_pci7x3x_auto_attach() 451 s->maxdata = 1; in adl_pci7x3x_auto_attach() 471 s->maxdata = 1; in adl_pci7x3x_auto_attach()
|