Home
last modified time | relevance | path

Searched refs:chanlist (Results 1 – 25 of 45) sorted by relevance

12

/linux-3.4.99/drivers/staging/comedi/
Drange.c132 unsigned int *chanlist) in comedi_check_chanlist() argument
139 if (CR_CHAN(chanlist[i]) >= s->n_chan || in comedi_check_chanlist()
140 CR_RANGE(chanlist[i]) >= s->range_table->length in comedi_check_chanlist()
141 || aref_invalid(s, chanlist[i])) { in comedi_check_chanlist()
144 chanlist[i], s->n_chan, in comedi_check_chanlist()
150 chan = CR_CHAN(chanlist[i]); in comedi_check_chanlist()
152 CR_RANGE(chanlist[i]) >= in comedi_check_chanlist()
154 || aref_invalid(s, chanlist[i])) { in comedi_check_chanlist()
156 i, chanlist[i]); in comedi_check_chanlist()
Dcomedi_fops.c1049 chanlist_saver = user_cmd.chanlist; in do_cmd_ioctl()
1099 async->cmd.chanlist = in do_cmd_ioctl()
1101 if (!async->cmd.chanlist) { in do_cmd_ioctl()
1106 if (copy_from_user(async->cmd.chanlist, user_cmd.chanlist, in do_cmd_ioctl()
1116 async->cmd.chanlist); in do_cmd_ioctl()
1128 user_cmd.chanlist = chanlist_saver; in do_cmd_ioctl()
1189 unsigned int *chanlist = NULL; in do_cmdtest_ioctl() local
1197 chanlist_saver = user_cmd.chanlist; in do_cmdtest_ioctl()
1225 if (user_cmd.chanlist) { in do_cmdtest_ioctl()
1226 chanlist = in do_cmdtest_ioctl()
[all …]
Dcomedidev.h93 unsigned int *chanlist; /* driver-owned chanlist (not used) */ member
321 unsigned int *chanlist);
Dcomedi_compat32.c71 compat_uptr_t chanlist; /* 32-bit 'unsigned int *' */ member
209 err |= __get_user(temp.uptr, &cmd32->chanlist); in get_compat_cmd()
210 err |= __put_user(compat_ptr(temp.uptr), &cmd->chanlist); in get_compat_cmd()
/linux-3.4.99/drivers/staging/comedi/drivers/
Dpcl816.c232 unsigned int *chanlist, unsigned int chanlen);
235 unsigned int *chanlist, unsigned int seglen);
633 if (cmd->chanlist) { in pcl816_ai_cmdtest()
634 if (!check_channel_list(dev, s, cmd->chanlist, in pcl816_ai_cmdtest()
681 seglen = check_channel_list(dev, s, cmd->chanlist, cmd->chanlist_len); in pcl816_ai_cmd()
684 setup_channel_list(dev, s, cmd->chanlist, seglen); in pcl816_ai_cmd()
945 struct comedi_subdevice *s, unsigned int *chanlist, in check_channel_list() argument
959 chansegment[0] = chanlist[0]; in check_channel_list()
963 CR_CHAN(chanlist[i]), in check_channel_list()
964 CR_RANGE(chanlist[i]));) in check_channel_list()
[all …]
Dadv_pci1710.c320 unsigned int *chanlist, unsigned int n_chan);
323 unsigned int *chanlist, unsigned int n_chan,
1096 if (cmd->chanlist) { in pci171x_ai_cmdtest()
1097 if (!check_channel_list(dev, s, cmd->chanlist, in pci171x_ai_cmdtest()
1115 devpriv->ai_chanlist = cmd->chanlist; in pci171x_ai_cmd()
1151 unsigned int *chanlist, unsigned int n_chan) in check_channel_list() argument
1164 chansegment[0] = chanlist[0]; /* first channel is every time ok */ in check_channel_list()
1167 if (chanlist[0] == chanlist[i]) in check_channel_list()
1169 if (CR_CHAN(chanlist[i]) & 1) /* odd channel cann't by differencial */ in check_channel_list()
1170 if (CR_AREF(chanlist[i]) == AREF_DIFF) { in check_channel_list()
[all …]
Dadl_pci9118.c336 unsigned short chanlist[PCI9118_CHANLEN + 1]; /* member
449 unsigned int *chanlist, int frontadd,
453 unsigned int *chanlist, int rot, int frontadd,
732 if ((sampl & 0x000f) != devpriv->chanlist[s->async->cur_chan]) { in interrupt_pci9118_ai_onesample()
738 devpriv->chanlist[s->async->cur_chan]); in interrupt_pci9118_ai_onesample()
1207 if (cmd->chanlist) in pci9118_ai_cmdtest()
1209 cmd->chanlist, 0, 0)) in pci9118_ai_cmdtest()
1542 devpriv->ai_chanlist = cmd->chanlist; in pci9118_ai_cmd()
1781 unsigned int *chanlist, int frontadd, int backadd) in check_channel_list() argument
1798 if (CR_AREF(chanlist[0]) == AREF_DIFF) in check_channel_list()
[all …]
Dicp_multi.c232 unsigned int *chanlist, unsigned int n_chan);
236 unsigned int *chanlist, unsigned int n_chan);
730 unsigned int *chanlist, unsigned int n_chan)
746 if (CR_AREF(chanlist[i]) == AREF_DIFF) {
747 if (CR_CHAN(chanlist[i]) > this_board->n_aichand) {
753 if (CR_CHAN(chanlist[i]) > this_board->n_aichan) {
786 unsigned int *chanlist, unsigned int n_chan) in setup_channel_list() argument
800 chanprog = CR_CHAN(chanlist[i]); in setup_channel_list()
803 if (CR_AREF(chanlist[i]) == AREF_DIFF) { in setup_channel_list()
825 range = this_board->rangecode[CR_RANGE(chanlist[i])]; in setup_channel_list()
Dni_at_a2150.c600 if (cmd->chanlist) { in a2150_ai_cmdtest()
601 startChan = CR_CHAN(cmd->chanlist[0]); in a2150_ai_cmdtest()
603 if (CR_CHAN(cmd->chanlist[i]) != (startChan + i)) { in a2150_ai_cmdtest()
609 if (cmd->chanlist_len == 2 && CR_CHAN(cmd->chanlist[0]) == 1) { in a2150_ai_cmdtest()
619 if (CR_AREF(cmd->chanlist[0]) != CR_AREF(cmd->chanlist[1]) || in a2150_ai_cmdtest()
620 CR_AREF(cmd->chanlist[2]) != CR_AREF(cmd->chanlist[3])) { in a2150_ai_cmdtest()
655 if (a2150_set_chanlist(dev, CR_CHAN(cmd->chanlist[0]), in a2150_ai_cmd()
660 if (CR_AREF(cmd->chanlist[0]) == AREF_OTHER) in a2150_ai_cmd()
664 if (CR_AREF(cmd->chanlist[2]) == AREF_OTHER) in a2150_ai_cmd()
Dpcl818.c390 unsigned int *chanlist, unsigned int n_chan,
394 unsigned int *chanlist, unsigned int n_chan);
1221 unsigned int *chanlist, unsigned int n_chan) in check_channel_list() argument
1234 chansegment[0] = chanlist[0]; in check_channel_list()
1243 if (chanlist[0] == chanlist[i]) in check_channel_list()
1247 if (nowmustbechan != CR_CHAN(chanlist[i])) { /* channel list isn't continuous :-( */ in check_channel_list()
1250 dev->minor, i, CR_CHAN(chanlist[i]), in check_channel_list()
1251 nowmustbechan, CR_CHAN(chanlist[0])); in check_channel_list()
1255 chansegment[i] = chanlist[i]; in check_channel_list()
1261 if (chanlist[i] != chansegment[i % seglen]) { in check_channel_list()
[all …]
Dni_labpc.c862 if (cmd->chanlist == NULL) in labpc_ai_scan_mode()
865 if (CR_CHAN(cmd->chanlist[0]) == CR_CHAN(cmd->chanlist[1])) in labpc_ai_scan_mode()
868 if (CR_CHAN(cmd->chanlist[0]) < CR_CHAN(cmd->chanlist[1])) in labpc_ai_scan_mode()
871 if (CR_CHAN(cmd->chanlist[0]) > CR_CHAN(cmd->chanlist[1])) in labpc_ai_scan_mode()
884 if (cmd->chanlist == NULL) in labpc_ai_chanlist_invalid()
900 channel = CR_CHAN(cmd->chanlist[0]); in labpc_ai_chanlist_invalid()
901 range = CR_RANGE(cmd->chanlist[0]); in labpc_ai_chanlist_invalid()
902 aref = CR_AREF(cmd->chanlist[0]); in labpc_ai_chanlist_invalid()
908 if (CR_CHAN(cmd->chanlist[i]) != channel) { in labpc_ai_chanlist_invalid()
915 if (CR_CHAN(cmd->chanlist[i]) != i) { in labpc_ai_chanlist_invalid()
[all …]
Ddmm32at.c711 if (cmd->chanlist) { in dmm32at_ai_cmdtest()
712 gain = CR_RANGE(cmd->chanlist[0]); in dmm32at_ai_cmdtest()
713 start_chan = CR_CHAN(cmd->chanlist[0]); in dmm32at_ai_cmdtest()
715 if (CR_CHAN(cmd->chanlist[i]) != in dmm32at_ai_cmdtest()
721 if (CR_RANGE(cmd->chanlist[i]) != gain) { in dmm32at_ai_cmdtest()
741 if (!cmd->chanlist) in dmm32at_ai_cmd()
745 chanlo = CR_CHAN(cmd->chanlist[0]) & (s->n_chan - 1); in dmm32at_ai_cmd()
749 range = CR_RANGE(cmd->chanlist[0]); in dmm32at_ai_cmd()
Damplc_pci230.c1427 if (cmd->chanlist && cmd->chanlist_len > 0) { in pci230_ao_cmdtest()
1437 prev_chan = CR_CHAN(cmd->chanlist[0]); in pci230_ao_cmdtest()
1438 first_range = CR_RANGE(cmd->chanlist[0]); in pci230_ao_cmdtest()
1441 chan = CR_CHAN(cmd->chanlist[n]); 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()
1646 dacen |= 1 << CR_CHAN(cmd->chanlist[i]); in pci230_ao_cmd()
1811 if (cmd->chanlist && (cmd->chanlist_len > 0)) { in pci230_ai_cmdtest()
1813 if (CR_AREF(cmd->chanlist[0]) == AREF_DIFF) in pci230_ai_cmdtest()
1952 if (cmd->chanlist && cmd->chanlist_len > 0) { in pci230_ai_cmdtest()
[all …]
Dadl_pci9111.c777 if (cmd->chanlist) { in pci9111_ai_do_cmd_test()
779 range = CR_RANGE(cmd->chanlist[0]); in pci9111_ai_do_cmd_test()
780 reference = CR_AREF(cmd->chanlist[0]); in pci9111_ai_do_cmd_test()
784 if (CR_CHAN(cmd->chanlist[i]) != i) { in pci9111_ai_do_cmd_test()
790 if (CR_RANGE(cmd->chanlist[i]) != range) { in pci9111_ai_do_cmd_test()
795 if (CR_AREF(cmd->chanlist[i]) != reference) { in pci9111_ai_do_cmd_test()
802 if ((CR_CHAN(cmd->chanlist[0]) > in pci9111_ai_do_cmd_test()
804 || (CR_CHAN(cmd->chanlist[0]) < 0)) { in pci9111_ai_do_cmd_test()
839 pci9111_ai_channel_set(CR_CHAN(async_cmd->chanlist[0])); in pci9111_ai_do_cmd()
846 pci9111_ai_range_set(CR_RANGE(async_cmd->chanlist[0])); in pci9111_ai_do_cmd()
Dcb_pcidas.c1223 if (cmd->chanlist) { in cb_pcidas_ai_cmdtest()
1224 gain = CR_RANGE(cmd->chanlist[0]); in cb_pcidas_ai_cmdtest()
1225 start_chan = CR_CHAN(cmd->chanlist[0]); in cb_pcidas_ai_cmdtest()
1227 if (CR_CHAN(cmd->chanlist[i]) != in cb_pcidas_ai_cmdtest()
1233 if (CR_RANGE(cmd->chanlist[i]) != gain) { in cb_pcidas_ai_cmdtest()
1263 bits = BEGIN_SCAN(CR_CHAN(cmd->chanlist[0])) | in cb_pcidas_ai_cmd()
1264 END_SCAN(CR_CHAN(cmd->chanlist[cmd->chanlist_len - 1])) | in cb_pcidas_ai_cmd()
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()
1270 if (CR_AREF(cmd->chanlist[0]) != AREF_DIFF) in cb_pcidas_ai_cmd()
[all …]
Ddas800.c707 if (cmd->chanlist) { in das800_ai_do_cmdtest()
708 gain = CR_RANGE(cmd->chanlist[0]); in das800_ai_do_cmdtest()
709 startChan = CR_CHAN(cmd->chanlist[0]); in das800_ai_do_cmdtest()
711 if (CR_CHAN(cmd->chanlist[i]) != in das800_ai_do_cmdtest()
717 if (CR_RANGE(cmd->chanlist[i]) != gain) { in das800_ai_do_cmdtest()
748 startChan = CR_CHAN(async->cmd.chanlist[0]); in das800_ai_do_cmd()
758 gain = CR_RANGE(async->cmd.chanlist[0]); in das800_ai_do_cmd()
Dcb_pcidas64.c2342 if (cmd->chanlist) { in ai_cmdtest()
2343 aref = CR_AREF(cmd->chanlist[0]); in ai_cmdtest()
2345 if (aref != CR_AREF(cmd->chanlist[i])) { in ai_cmdtest()
2354 unsigned int first_channel = CR_CHAN(cmd->chanlist[0]); in ai_cmdtest()
2356 if (CR_CHAN(cmd->chanlist[i]) != in ai_cmdtest()
2609 if (CR_CHAN(cmd->chanlist[i + 1]) != in use_internal_queue_6xxx()
2610 CR_CHAN(cmd->chanlist[i]) + 1) in use_internal_queue_6xxx()
2612 if (CR_RANGE(cmd->chanlist[i + 1]) != in use_internal_queue_6xxx()
2613 CR_RANGE(cmd->chanlist[i])) in use_internal_queue_6xxx()
2615 if (CR_AREF(cmd->chanlist[i + 1]) != CR_AREF(cmd->chanlist[i])) in use_internal_queue_6xxx()
[all …]
Dusbduxfast.c788 gain = CR_RANGE(cmd->chanlist[0]); in usbduxfast_ai_cmd()
790 chan = CR_CHAN(cmd->chanlist[i]); 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()
[all …]
Damplc_pci224.c1014 if (cmd->chanlist && (cmd->chanlist_len > 0)) { in pci224_ao_cmdtest()
1027 range = CR_RANGE(cmd->chanlist[0]); in pci224_ao_cmdtest()
1031 ch = CR_CHAN(cmd->chanlist[n]); in pci224_ao_cmdtest()
1036 if (CR_RANGE(cmd->chanlist[n]) != range) in pci224_ao_cmdtest()
1076 if (cmd->chanlist == NULL || cmd->chanlist_len == 0) in pci224_ao_cmd()
1084 ch = CR_CHAN(cmd->chanlist[i]); in pci224_ao_cmd()
1088 if (CR_CHAN(cmd->chanlist[j]) < ch) in pci224_ao_cmd()
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()
Dpcmuio.c795 ch = CR_CHAN(s->async->cmd.chanlist[n]); in interrupt_pcmuio()
897 if (cmd->chanlist) { in pcmuio_start_intr()
899 bits |= (1U << CR_CHAN(cmd->chanlist[n])); in pcmuio_start_intr()
900 pol_bits |= (CR_AREF(cmd->chanlist[n]) in pcmuio_start_intr()
902 chanlist[n]) ? 1U : 0U) in pcmuio_start_intr()
903 << CR_CHAN(cmd->chanlist[n]); in pcmuio_start_intr()
Ddas16m1.c321 if (cmd->chanlist && cmd->chanlist_len > 1) { in das16m1_cmd_test()
324 if ((i % 2) != (CR_CHAN(cmd->chanlist[i]) % 2)) { in das16m1_cmd_test()
373 Q_CHAN(CR_CHAN(cmd->chanlist[i])) | in das16m1_cmd_exec()
374 Q_RANGE(CR_RANGE(cmd->chanlist[i])); in das16m1_cmd_exec()
Dpcmmio.c936 ch = CR_CHAN(s->async->cmd.chanlist[n]); in interrupt_pcmmio()
1036 if (cmd->chanlist) { in pcmmio_start_intr()
1038 bits |= (1U << CR_CHAN(cmd->chanlist[n])); in pcmmio_start_intr()
1039 pol_bits |= (CR_AREF(cmd->chanlist[n]) in pcmmio_start_intr()
1041 chanlist[n]) ? 1U : 0U) in pcmmio_start_intr()
1042 << CR_CHAN(cmd->chanlist[n]); in pcmmio_start_intr()
Ddas16.c903 if (cmd->chanlist) { in das16_cmd_test()
904 gain = CR_RANGE(cmd->chanlist[0]); in das16_cmd_test()
905 start_chan = CR_CHAN(cmd->chanlist[0]); in das16_cmd_test()
907 if (CR_CHAN(cmd->chanlist[i]) != in das16_cmd_test()
915 if (CR_RANGE(cmd->chanlist[i]) != gain) { in das16_cmd_test()
958 byte = CR_CHAN(cmd->chanlist[0]); in das16_cmd_exec()
959 byte |= CR_CHAN(cmd->chanlist[cmd->chanlist_len - 1]) << 4; in das16_cmd_exec()
966 range = CR_RANGE(cmd->chanlist[0]); in das16_cmd_exec()
Dme4000.c1113 if (!cmd->chanlist) { in ai_check_chanlist()
1121 aref = CR_AREF(cmd->chanlist[0]); in ai_check_chanlist()
1123 if (CR_AREF(cmd->chanlist[i]) != aref) { in ai_check_chanlist()
1135 if (CR_CHAN(cmd->chanlist[i]) >= in ai_check_chanlist()
1145 if (CR_CHAN(cmd->chanlist[i]) >= thisboard->ai.count) { in ai_check_chanlist()
1157 if (CR_RANGE(cmd->chanlist[i]) != 1 && in ai_check_chanlist()
1158 CR_RANGE(cmd->chanlist[i]) != 2) { in ai_check_chanlist()
1340 chan = CR_CHAN(cmd->chanlist[i]); in ai_write_chanlist()
1341 rang = CR_RANGE(cmd->chanlist[i]); in ai_write_chanlist()
1342 aref = CR_AREF(cmd->chanlist[i]); in ai_write_chanlist()
[all …]
Ddas1800.c1343 if (cmd->chanlist) { in das1800_ai_do_cmdtest()
1344 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()
1396 aref = CR_AREF(cmd.chanlist[0]); in control_c_bits()
1403 if (CR_RANGE(cmd.chanlist[0]) & UNIPOLAR) in control_c_bits()
1530 chanlist[i]) | ((CR_RANGE(cmd.chanlist[i]) & in program_chanlist()

12