/drivers/staging/comedi/drivers/ |
D | usbduxfast.c | 739 gain = CR_RANGE(cmd->chanlist[0]); in usbduxfast_ai_cmd() 748 if ((gain != CR_RANGE(cmd->chanlist[i])) in usbduxfast_ai_cmd() 802 if (CR_RANGE(cmd->chanlist[0]) > 0) in usbduxfast_ai_cmd() 905 if (CR_RANGE(cmd->chanlist[0]) > 0) in usbduxfast_ai_cmd() 919 if (CR_RANGE(cmd->chanlist[1]) > 0) in usbduxfast_ai_cmd() 949 if (CR_RANGE(cmd->chanlist[0]) > 0) in usbduxfast_ai_cmd() 978 if (CR_RANGE(cmd->chanlist[j]) > 0) in usbduxfast_ai_cmd() 993 if (CR_RANGE(cmd->chanlist[j + 1]) > 0) in usbduxfast_ai_cmd() 1019 if (CR_RANGE(cmd->chanlist[0]) > 0) in usbduxfast_ai_cmd() 1038 if (CR_RANGE(cmd->chanlist[0]) > 0) in usbduxfast_ai_cmd() [all …]
|
D | pcl816.c | 188 outb(CR_RANGE(insn->chanspec), dev->iobase + PCL816_RANGE); in pcl816_ai_insn_read() 828 CR_RANGE(chanlist[i]));) in check_channel_list() 853 CR_RANGE(chansegment[i % seglen]), in check_channel_list() 855 CR_RANGE(chanlist[i]));) in check_channel_list() 862 CR_RANGE(chansegment[i]), in check_channel_list() 865 CR_RANGE(chanlist[i % seglen]), in check_channel_list() 896 outb(CR_RANGE(chanlist[0]), dev->iobase + PCL816_RANGE); in setup_channel_list()
|
D | dyna_pci10xx.c | 77 range = range_codes_pci1050_ai[CR_RANGE((insn->chanspec))]; in dyna_pci10xx_insn_read_ai() 119 range = range_codes_pci1050_ai[CR_RANGE((insn->chanspec))]; in dyna_pci10xx_insn_write_ao()
|
D | dmm32at.c | 187 range = CR_RANGE(insn->chanspec); in dmm32at_ai_rinsn() 361 gain = CR_RANGE(cmd->chanlist[0]); in dmm32at_ai_cmdtest() 370 if (CR_RANGE(cmd->chanlist[i]) != gain) { in dmm32at_ai_cmdtest() 429 range = CR_RANGE(cmd->chanlist[0]); in dmm32at_ai_cmd()
|
D | das800.c | 380 unsigned int range = CR_RANGE(cmd->chanlist[0]); in das800_ai_do_cmdtest() 391 if (CR_RANGE(next) != range) { in das800_ai_do_cmdtest() 411 unsigned int gain = CR_RANGE(async->cmd.chanlist[0]); in das800_ai_do_cmd() 585 unsigned int range = CR_RANGE(insn->chanspec); in das800_ai_insn_read()
|
D | cb_pcidas.c | 394 unsigned int range = CR_RANGE(insn->chanspec); in cb_pcidas_ai_rinsn() 475 unsigned int range = CR_RANGE(insn->chanspec); in cb_pcidas_ao_nofifo_winsn() 502 unsigned int range = CR_RANGE(insn->chanspec); in cb_pcidas_ao_fifo_winsn() 912 gain = CR_RANGE(cmd->chanlist[0]); in cb_pcidas_ai_cmdtest() 921 if (CR_RANGE(cmd->chanlist[i]) != gain) { in cb_pcidas_ai_cmdtest() 971 GAIN_BITS(CR_RANGE(cmd->chanlist[0])); in cb_pcidas_ai_cmd() 973 if (CR_RANGE(cmd->chanlist[0]) & IS_UNIPOLAR) in cb_pcidas_ai_cmd() 1204 CR_RANGE(cmd-> in cb_pcidas_ao_cmd()
|
D | adl_pci9111.c | 441 range = CR_RANGE(cmd->chanlist[0]); in pci9111_ai_do_cmd_test() 452 if (CR_RANGE(cmd->chanlist[i]) != range) { in pci9111_ai_do_cmd_test() 501 outb(CR_RANGE(async_cmd->chanlist[0]) & PCI9111_AI_RANGE_MASK, in pci9111_ai_do_cmd() 727 unsigned int range = CR_RANGE(insn->chanspec); in pci9111_ai_insn_read()
|
D | das1800.c | 900 unipolar = CR_RANGE(cmd->chanlist[0]) & UNIPOLAR; in das1800_ai_do_cmdtest() 902 if (unipolar != (CR_RANGE(cmd->chanlist[i]) & UNIPOLAR)) { in das1800_ai_do_cmdtest() 955 if (CR_RANGE(cmd->chanlist[0]) & UNIPOLAR) in control_c_bits() 1147 ((CR_RANGE(cmd->chanlist[i]) & range_mask) << in program_chanlist() 1241 if (CR_RANGE(insn->chanspec) & UNIPOLAR) in das1800_ai_rinsn() 1251 range = CR_RANGE(insn->chanspec) & 0x3; in das1800_ai_rinsn()
|
D | amplc_pci224.c | 448 range = CR_RANGE(insn->chanspec); in pci224_ao_insn_write() 906 range = CR_RANGE(cmd->chanlist[0]); in pci224_ao_cmdtest() 915 if (CR_RANGE(cmd->chanlist[n]) != range) in pci224_ao_cmdtest() 979 range = CR_RANGE(cmd->chanlist[0]); in pci224_ao_cmd() 1132 if ((devpriv->hwrange[CR_RANGE(async->cmd.chanlist[0])] & in pci224_ao_munge()
|
D | amplc_pci230.c | 818 range = CR_RANGE(insn->chanspec); in pci230_ai_rinsn() 920 range = CR_RANGE(insn->chanspec); in pci230_ao_winsn() 1079 first_range = CR_RANGE(cmd->chanlist[0]); in pci230_ao_cmdtest() 1083 range = CR_RANGE(cmd->chanlist[n]); in pci230_ao_cmdtest() 1472 range = CR_RANGE(cmd->chanlist[0]); in pci230_ao_cmd() 1765 range = CR_RANGE(cmd->chanlist[n]); in pci230_ai_cmdtest() 2357 range = CR_RANGE(cmd->chanlist[0]); in pci230_ai_cmd() 2368 range = CR_RANGE(cmd->chanlist[i]); in pci230_ai_cmd()
|
D | adv_pci1710.c | 379 CR_RANGE(chansegment[i]), in check_channel_list() 382 CR_RANGE(chanlist[i % seglen]), in check_channel_list() 405 range = this_board->rangecode_ai[CR_RANGE(chanlist[i])]; in setup_channel_list() 495 range = CR_RANGE(insn->chanspec); in pci171x_insn_write_ao() 685 rangereg |= (CR_RANGE(insn->chanspec) << (chan << 1)); in pci1720_insn_write_ao()
|
D | das08.c | 220 range = CR_RANGE(insn->chanspec); in das08_ai_rinsn() 236 range = CR_RANGE(insn->chanspec); in das08_ai_rinsn()
|
D | me4000.c | 484 int rang = CR_RANGE(insn->chanspec); in me4000_ai_insn_read() 664 if (CR_RANGE(cmd->chanlist[i]) != 1 && in ai_check_chanlist() 665 CR_RANGE(cmd->chanlist[i]) != 2) { in ai_check_chanlist() 758 rang = CR_RANGE(cmd->chanlist[i]); in ai_write_chanlist() 1257 int rang = CR_RANGE(insn->chanspec); in me4000_ao_insn_write()
|
D | me_daq.c | 274 unsigned int rang = CR_RANGE(insn->chanspec); in me_ai_insn_read() 337 unsigned int rang = CR_RANGE(insn->chanspec); in me_ao_insn_write()
|
D | icp_multi.c | 169 range = range_codes_analog[CR_RANGE(chanlist[i])]; in setup_channel_list() 266 range = CR_RANGE(insn->chanspec); in icp_multi_insn_write_ao()
|
D | adq12b.c | 142 range = CR_RANGE(insn->chanspec); in adq12b_ai_rinsn()
|
D | poc.c | 93 if ((CR_RANGE(insn->chanspec) & 0x2) == 0) in dac02_ao_winsn()
|
D | das16m1.c | 305 Q_RANGE(CR_RANGE(cmd->chanlist[i])); in das16m1_cmd_exec() 364 Q_CHAN(CR_CHAN(insn->chanspec)) | Q_RANGE(CR_RANGE(insn->chanspec)); in das16m1_ai_rinsn()
|
D | ni_labpc.c | 425 unsigned int range = CR_RANGE(insn->chanspec); in labpc_ai_insn_read() 693 range = CR_RANGE(cmd->chanlist[0]); in labpc_ai_chanlist_invalid() 728 if (CR_RANGE(cmd->chanlist[i]) != range) { in labpc_ai_chanlist_invalid() 854 unsigned int range = CR_RANGE(chanspec); in labpc_ai_cmd() 1270 range = CR_RANGE(insn->chanspec); in labpc_ao_insn_write()
|
D | das16.c | 499 gain = CR_RANGE(cmd->chanlist[0]); in das16_cmd_test() 510 if (CR_RANGE(cmd->chanlist[i]) != gain) { in das16_cmd_test() 622 range = CR_RANGE(cmd->chanlist[0]); in das16_cmd_exec() 748 range = CR_RANGE(insn->chanspec); in das16_ai_rinsn()
|
D | pcl818.c | 338 outb(CR_RANGE(insn->chanspec), dev->iobase + PCL818_RANGE); in pcl818_ai_insn_read() 935 CR_RANGE(chansegment[i]), in check_channel_list() 938 CR_RANGE(chanlist[i % seglen]), in check_channel_list() 964 outb(CR_RANGE(chanlist[i]), dev->iobase + PCL818_RANGE); /* select gain */ in setup_channel_list()
|
D | adl_pci9118.c | 436 if (CR_RANGE(chanlist[0]) < PCI9118_BIPOLAR_RANGES) in check_channel_list() 447 if ((CR_RANGE(chanlist[i]) < PCI9118_BIPOLAR_RANGES) != in check_channel_list() 482 if (CR_RANGE(chanlist[0]) < PCI9118_BIPOLAR_RANGES) in setup_channel_list() 523 gain = CR_RANGE(chanlist[0]); in setup_channel_list() 536 gain = CR_RANGE(chanlist[i]); /* get gain number */ in setup_channel_list() 545 gain = CR_RANGE(chanlist[0]); /* get gain number */ in setup_channel_list()
|
D | pcmmio.c | 680 || CR_RANGE(cmd-> in pcmmio_start_intr() 890 CR_RANGE(insn->chanspec), aref = CR_AREF(insn->chanspec); in ai_rinsn() 992 CR_RANGE(insn->chanspec); in ao_winsn()
|
/drivers/staging/comedi/ |
D | range.c | 149 CR_RANGE(chanlist[i]) >= s->range_table->length in comedi_check_chanlist() 161 CR_RANGE(chanlist[i]) >= in comedi_check_chanlist()
|
/drivers/staging/comedi/drivers/addi-data/ |
D | hwdrv_apci3xxx.c | 396 unsigned char b_Configuration = (unsigned char) CR_RANGE(insn->chanspec); in i_APCI3XXX_InsnReadAnalogInput() 690 unsigned char b_Range = (unsigned char) CR_RANGE(insn->chanspec); in i_APCI3XXX_InsnWriteAnalogOutput()
|