Home
last modified time | relevance | path

Searched refs:CR_RANGE (Results 1 – 25 of 51) sorted by relevance

123

/drivers/staging/comedi/drivers/
Dusbduxfast.c739 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 …]
Dpcl816.c188 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()
Ddyna_pci10xx.c77 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()
Ddmm32at.c187 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()
Ddas800.c380 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()
Dcb_pcidas.c394 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()
Dadl_pci9111.c441 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()
Ddas1800.c900 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()
Damplc_pci224.c448 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()
Damplc_pci230.c818 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()
Dadv_pci1710.c379 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()
Ddas08.c220 range = CR_RANGE(insn->chanspec); in das08_ai_rinsn()
236 range = CR_RANGE(insn->chanspec); in das08_ai_rinsn()
Dme4000.c484 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()
Dme_daq.c274 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()
Dicp_multi.c169 range = range_codes_analog[CR_RANGE(chanlist[i])]; in setup_channel_list()
266 range = CR_RANGE(insn->chanspec); in icp_multi_insn_write_ao()
Dadq12b.c142 range = CR_RANGE(insn->chanspec); in adq12b_ai_rinsn()
Dpoc.c93 if ((CR_RANGE(insn->chanspec) & 0x2) == 0) in dac02_ao_winsn()
Ddas16m1.c305 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()
Dni_labpc.c425 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()
Ddas16.c499 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()
Dpcl818.c338 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()
Dadl_pci9118.c436 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()
Dpcmmio.c680 || 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/
Drange.c149 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/
Dhwdrv_apci3xxx.c396 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()

123