Home
last modified time | relevance | path

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

123

/drivers/staging/comedi/drivers/
Dusbduxfast.c788 gain = CR_RANGE(cmd->chanlist[0]); in usbduxfast_ai_cmd()
798 if ((gain != CR_RANGE(cmd->chanlist[i])) in usbduxfast_ai_cmd()
854 if (CR_RANGE(cmd->chanlist[0]) > 0) in usbduxfast_ai_cmd()
957 if (CR_RANGE(cmd->chanlist[0]) > 0) in usbduxfast_ai_cmd()
971 if (CR_RANGE(cmd->chanlist[1]) > 0) in usbduxfast_ai_cmd()
1001 if (CR_RANGE(cmd->chanlist[0]) > 0) in usbduxfast_ai_cmd()
1030 if (CR_RANGE(cmd->chanlist[j]) > 0) in usbduxfast_ai_cmd()
1045 if (CR_RANGE(cmd->chanlist[j + 1]) > 0) in usbduxfast_ai_cmd()
1071 if (CR_RANGE(cmd->chanlist[0]) > 0) in usbduxfast_ai_cmd()
1090 if (CR_RANGE(cmd->chanlist[0]) > 0) in usbduxfast_ai_cmd()
[all …]
Dpcl816.c269 outb(CR_RANGE(insn->chanspec), dev->iobase + PCL816_RANGE); in pcl816_ai_insn_read()
964 CR_RANGE(chanlist[i]));) in check_channel_list()
989 CR_RANGE(chansegment[i % seglen]), in check_channel_list()
991 CR_RANGE(chanlist[i]));) in check_channel_list()
998 CR_RANGE(chansegment[i]), in check_channel_list()
1001 CR_RANGE(chanlist[i % seglen]), in check_channel_list()
1031 outb(CR_RANGE(chanlist[0]), dev->iobase + PCL816_RANGE); in setup_channel_list()
Dadl_pci9111.c779 range = CR_RANGE(cmd->chanlist[0]); in pci9111_ai_do_cmd_test()
790 if (CR_RANGE(cmd->chanlist[i]) != range) { in pci9111_ai_do_cmd_test()
846 pci9111_ai_range_set(CR_RANGE(async_cmd->chanlist[0])); in pci9111_ai_do_cmd()
1132 CR_RANGE((&insn->chanspec)[0]), insn->n); in pci9111_ai_insn_read()
1137 if ((pci9111_ai_range_get()) != CR_RANGE((&insn->chanspec)[0])) in pci9111_ai_insn_read()
1138 pci9111_ai_range_set(CR_RANGE((&insn->chanspec)[0])); in pci9111_ai_insn_read()
Dcb_pcidas.c817 END_SCAN(channel) | GAIN_BITS(CR_RANGE(insn->chanspec)); in cb_pcidas_ai_rinsn()
819 if (CR_RANGE(insn->chanspec) & IS_UNIPOLAR) in cb_pcidas_ai_rinsn()
899 DACEN | DAC_RANGE(channel, CR_RANGE(insn->chanspec)); in cb_pcidas_ao_nofifo_winsn()
930 CR_RANGE(insn-> in cb_pcidas_ao_fifo_winsn()
1224 gain = CR_RANGE(cmd->chanlist[0]); in cb_pcidas_ai_cmdtest()
1233 if (CR_RANGE(cmd->chanlist[i]) != gain) { in cb_pcidas_ai_cmdtest()
1265 GAIN_BITS(CR_RANGE(cmd->chanlist[0])); in cb_pcidas_ai_cmd()
1267 if (CR_RANGE(cmd->chanlist[0]) & IS_UNIPOLAR) in cb_pcidas_ai_cmd()
1472 CR_RANGE(cmd-> in cb_pcidas_ao_cmd()
Ddmm32at.c491 range = CR_RANGE(insn->chanspec); in dmm32at_ai_rinsn()
712 gain = CR_RANGE(cmd->chanlist[0]); in dmm32at_ai_cmdtest()
721 if (CR_RANGE(cmd->chanlist[i]) != gain) { in dmm32at_ai_cmdtest()
749 range = CR_RANGE(cmd->chanlist[0]); in dmm32at_ai_cmd()
Ddas800.c708 gain = CR_RANGE(cmd->chanlist[0]); in das800_ai_do_cmdtest()
717 if (CR_RANGE(cmd->chanlist[i]) != gain) { in das800_ai_do_cmdtest()
758 gain = CR_RANGE(async->cmd.chanlist[0]); in das800_ai_do_cmd()
835 range = CR_RANGE(insn->chanspec); in das800_ai_rinsn()
Ddyna_pci10xx.c153 range = thisboard->range_codes_ai[CR_RANGE((insn->chanspec))]; in dyna_pci10xx_insn_read_ai()
194 range = thisboard->range_codes_ai[CR_RANGE((insn->chanspec))]; in dyna_pci10xx_insn_write_ao()
Damplc_pci224.c530 range = CR_RANGE(insn->chanspec); in pci224_ao_insn_write()
1027 range = CR_RANGE(cmd->chanlist[0]); in pci224_ao_cmdtest()
1036 if (CR_RANGE(cmd->chanlist[n]) != range) in pci224_ao_cmdtest()
1099 range = CR_RANGE(cmd->chanlist[0]); in pci224_ao_cmd()
1250 if ((devpriv->hwrange[CR_RANGE(async->cmd.chanlist[0])] & in pci224_ao_munge()
Ddas1800.c1344 unipolar = CR_RANGE(cmd->chanlist[0]) & UNIPOLAR; in das1800_ai_do_cmdtest()
1346 if (unipolar != (CR_RANGE(cmd->chanlist[i]) & UNIPOLAR)) { in das1800_ai_do_cmdtest()
1403 if (CR_RANGE(cmd.chanlist[0]) & UNIPOLAR) in control_c_bits()
1530 chanlist[i]) | ((CR_RANGE(cmd.chanlist[i]) & in program_chanlist()
1622 if (CR_RANGE(insn->chanspec) & UNIPOLAR) in das1800_ai_rinsn()
1632 range = CR_RANGE(insn->chanspec) & 0x3; in das1800_ai_rinsn()
Damplc_pci230.c1126 range = CR_RANGE(insn->chanspec); in pci230_ai_rinsn()
1229 range = CR_RANGE(insn->chanspec); in pci230_ao_winsn()
1438 first_range = CR_RANGE(cmd->chanlist[0]); in pci230_ao_cmdtest()
1442 range = CR_RANGE(cmd->chanlist[n]); in pci230_ao_cmdtest()
1636 range = CR_RANGE(cmd->chanlist[0]); in pci230_ao_cmd()
1974 range = CR_RANGE(cmd->chanlist[n]); in pci230_ai_cmdtest()
2426 range = CR_RANGE(cmd->chanlist[0]); in pci230_ai_cmd()
2437 range = CR_RANGE(cmd->chanlist[i]); in pci230_ai_cmd()
Dadv_pci1710.c420 range = CR_RANGE(insn->chanspec); in pci171x_insn_write_ao()
589 rangereg |= (CR_RANGE(insn->chanspec) << (chan << 1)); in pci1720_insn_write_ao()
1195 CR_RANGE(chansegment[i]), in check_channel_list()
1198 CR_RANGE(chanlist[i % seglen]), in check_channel_list()
1225 range = this_board->rangecode_ai[CR_RANGE(chanlist[i])]; in setup_channel_list()
Daio_aio12_8.c98 (CR_RANGE(insn->chanspec) << 3) | CR_CHAN(insn->chanspec); in aio_aio12_8_ai_read()
Dadl_pci9118.c1800 if (CR_RANGE(chanlist[0]) < PCI9118_BIPOLAR_RANGES) in check_channel_list()
1811 if ((CR_RANGE(chanlist[i]) < PCI9118_BIPOLAR_RANGES) != in check_channel_list()
1853 if (CR_RANGE(chanlist[0]) < PCI9118_BIPOLAR_RANGES) in setup_channel_list()
1895 gain = CR_RANGE(chanlist[0]); in setup_channel_list()
1911 gain = CR_RANGE(chanlist[i]); /* get gain number */ in setup_channel_list()
1923 gain = CR_RANGE(chanlist[0]); /* get gain number */ in setup_channel_list()
Ddas16.c904 gain = CR_RANGE(cmd->chanlist[0]); in das16_cmd_test()
915 if (CR_RANGE(cmd->chanlist[i]) != gain) { in das16_cmd_test()
966 range = CR_RANGE(cmd->chanlist[0]); in das16_cmd_exec()
1088 range = CR_RANGE(insn->chanspec); in das16_ai_rinsn()
Dpcmmio.c1040 || CR_RANGE(cmd-> in pcmmio_start_intr()
1202 CR_RANGE(insn->chanspec), aref = CR_AREF(insn->chanspec); in ai_rinsn()
1304 CR_RANGE(insn->chanspec); in ao_winsn()
Dicp_multi.c407 range = CR_RANGE(insn->chanspec); in icp_multi_insn_write_ao()
825 range = this_board->rangecode[CR_RANGE(chanlist[i])]; in setup_channel_list()
Ddas16m1.c374 Q_RANGE(CR_RANGE(cmd->chanlist[i])); in das16m1_cmd_exec()
430 Q_CHAN(CR_CHAN(insn->chanspec)) | Q_RANGE(CR_RANGE(insn->chanspec)); in das16m1_ai_rinsn()
Dme_daq.c411 int rang = CR_RANGE((&insn->chanspec)[0]); in me_ai_insn_read()
533 rang = CR_RANGE((&insn->chanspec)[i]); in me_ao_insn_write()
Dpoc.c202 if ((CR_RANGE(insn->chanspec) & 0x2) == 0) in dac02_ao_winsn()
Dadq12b.c332 range = CR_RANGE(insn->chanspec); in adq12b_ai_rinsn()
Dni_labpc.c901 range = CR_RANGE(cmd->chanlist[0]); in labpc_ai_chanlist_invalid()
935 if (CR_RANGE(cmd->chanlist[i]) != range) { in labpc_ai_chanlist_invalid()
1169 range = CR_RANGE(cmd->chanlist[0]); in labpc_ai_cmd()
1640 range = CR_RANGE(insn->chanspec); in labpc_ai_rinsn()
1726 range = CR_RANGE(insn->chanspec); in labpc_ao_winsn()
Dcb_pcidas64.c1955 range = CR_RANGE(insn->chanspec); in ai_rinsn()
1997 bits |= ai_range_bits_6xxx(dev, CR_RANGE(insn->chanspec)); in ai_rinsn()
2612 if (CR_RANGE(cmd->chanlist[i + 1]) != in use_internal_queue_6xxx()
2613 CR_RANGE(cmd->chanlist[i])) in use_internal_queue_6xxx()
2637 CR_RANGE(cmd->chanlist[0])); in setup_channel_queue()
2673 CR_RANGE(cmd-> in setup_channel_queue()
2710 unsigned int range = CR_RANGE(cmd->chanlist[i]); in setup_channel_queue()
3279 int range = CR_RANGE(insn->chanspec); in ao_winsn()
3344 range = CR_RANGE(cmd->chanlist[i]); in set_dac_control1_reg()
/drivers/staging/comedi/
Drange.c140 CR_RANGE(chanlist[i]) >= s->range_table->length in comedi_check_chanlist()
152 CR_RANGE(chanlist[i]) >= in comedi_check_chanlist()
/drivers/staging/comedi/drivers/addi-data/
Dhwdrv_apci16xx.c293 unsigned char b_SelectedPort = CR_RANGE(insn->chanspec); in i_APCI16XX_InsnBitsReadTTLIO()
580 unsigned char b_SelectedPort = CR_RANGE(insn->chanspec); in i_APCI16XX_InsnBitsWriteTTLIO()
Dhwdrv_apci3xxx.c362 unsigned char b_Configuration = (unsigned char) CR_RANGE(insn->chanspec); in i_APCI3XXX_InsnReadAnalogInput()
654 unsigned char b_Range = (unsigned char) CR_RANGE(insn->chanspec); in i_APCI3XXX_InsnWriteAnalogOutput()

123