/drivers/staging/comedi/drivers/ |
D | multiq3.c | 131 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()
|
D | adl_pci9111.c | 405 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 …]
|
D | das6402.c | 126 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()
|
D | comedi_test.c | 88 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 …]
|
D | adl_pci8164.c | 91 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()
|
D | das800.c | 468 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()
|
D | mf6x4.c | 154 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()
|
D | adl_pci7x3x.c | 191 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()
|
D | pcmad.c | 98 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()
|
D | fl512.c | 78 val &= s->maxdata; in fl512_ai_insn_read() 126 s->maxdata = 0x0fff; in fl512_attach() 135 s->maxdata = 0x0fff; in fl512_attach()
|
D | pcl730.c | 287 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()
|
D | dyna_pci10xx.c | 204 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()
|
D | comedi_parport.c | 259 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()
|
D | das08.c | 380 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()
|
D | addi_apci_3501.c | 357 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()
|
D | addi_apci_1564.c | 494 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()
|
D | icp_multi.c | 278 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()
|
D | dt2811.c | 396 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()
|
D | adl_pci6208.c | 142 s->maxdata = 0xffff; in pci6208_auto_attach() 155 s->maxdata = 1; in pci6208_auto_attach() 164 s->maxdata = 1; in pci6208_auto_attach()
|
D | adv_pci1724.c | 153 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()
|
D | adq12b.c | 216 s->maxdata = 0xfff; in adq12b_attach() 226 s->maxdata = 1; in adq12b_attach() 235 s->maxdata = 1; in adq12b_attach()
|
D | rti800.c | 297 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()
|
D | pcl711.c | 180 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()
|
D | dac02.c | 98 val = s->maxdata - val; in dac02_ao_insn_write() 129 s->maxdata = 0x0fff; in dac02_attach()
|
D | pcl726.c | 372 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()
|