/drivers/staging/comedi/drivers/ |
D | adl_pci9111.c | 416 unsigned int chanlist_len; member 675 if (cmd->chanlist_len < 1) { in pci9111_ai_do_cmd_test() 676 cmd->chanlist_len = 1; in pci9111_ai_do_cmd_test() 680 if (cmd->chanlist_len > board->ai_channel_nbr) { in pci9111_ai_do_cmd_test() 681 cmd->chanlist_len = board->ai_channel_nbr; in pci9111_ai_do_cmd_test() 716 (cmd->scan_end_arg != cmd->chanlist_len)) { in pci9111_ai_do_cmd_test() 717 cmd->scan_end_arg = cmd->chanlist_len; in pci9111_ai_do_cmd_test() 754 scan_begin_min = cmd->chanlist_len * cmd->convert_arg; in pci9111_ai_do_cmd_test() 782 if (cmd->chanlist_len > 1) { in pci9111_ai_do_cmd_test() 783 for (i = 0; i < cmd->chanlist_len; i++) { in pci9111_ai_do_cmd_test() [all …]
|
D | ni_at_a2150.c | 564 if (!cmd->chanlist_len) { in a2150_ai_cmdtest() 565 cmd->chanlist_len = 1; in a2150_ai_cmdtest() 568 if (cmd->scan_end_arg != cmd->chanlist_len) { in a2150_ai_cmdtest() 569 cmd->scan_end_arg = cmd->chanlist_len; in a2150_ai_cmdtest() 602 for (i = 1; i < cmd->chanlist_len; i++) { in a2150_ai_cmdtest() 609 if (cmd->chanlist_len == 2 && CR_CHAN(cmd->chanlist[0]) == 1) { in a2150_ai_cmdtest() 614 if (cmd->chanlist_len == 3) { in a2150_ai_cmdtest() 656 cmd->chanlist_len) < 0) in a2150_ai_cmd() 676 devpriv->count = cmd->stop_arg * cmd->chanlist_len; in a2150_ai_cmd() 688 sizeof(devpriv->dma_buffer[0]) * cmd->chanlist_len * in a2150_ai_cmd()
|
D | das16m1.c | 285 if (cmd->scan_end_arg != cmd->chanlist_len) { in das16m1_cmd_test() 286 cmd->scan_end_arg = cmd->chanlist_len; in das16m1_cmd_test() 321 if (cmd->chanlist && cmd->chanlist_len > 1) { in das16m1_cmd_test() 322 for (i = 0; i < cmd->chanlist_len; i++) { in das16m1_cmd_test() 330 if ((cmd->chanlist_len % 2) != 0) { in das16m1_cmd_test() 370 for (i = 0; i < cmd->chanlist_len; i++) { in das16m1_cmd_exec() 568 if (num_samples > cmd->stop_arg * cmd->chanlist_len) in das16m1_handler() 569 num_samples = cmd->stop_arg * cmd->chanlist_len; in das16m1_handler() 581 if (devpriv->adc_count >= cmd->stop_arg * cmd->chanlist_len) { /* end of acquisition */ in das16m1_handler()
|
D | comedi_test.c | 186 for (j = 0; j < cmd->chanlist_len; j++) { in waveform_ai_interrupt() 366 cmd->convert_arg * cmd->chanlist_len) { in waveform_ai_cmdtest() 368 cmd->convert_arg * cmd->chanlist_len; in waveform_ai_cmdtest() 376 if (!cmd->chanlist_len) { in waveform_ai_cmdtest() 377 cmd->chanlist_len = 1; in waveform_ai_cmdtest() 380 if (cmd->scan_end_arg != cmd->chanlist_len) { in waveform_ai_cmdtest() 381 cmd->scan_end_arg = cmd->chanlist_len; in waveform_ai_cmdtest()
|
D | amplc_pci224.c | 658 if (cmd->chanlist_len) { in pci224_ao_handle_fifo() 659 bytes_per_scan = cmd->chanlist_len * sizeof(short); in pci224_ao_handle_fifo() 707 if (cmd->chanlist_len) in pci224_ao_handle_fifo() 708 room /= cmd->chanlist_len; in pci224_ao_handle_fifo() 718 for (i = 0; i < cmd->chanlist_len; i++) { in pci224_ao_handle_fifo() 892 tmp = cmd->chanlist_len * CONVERT_PERIOD; in pci224_ao_cmdtest() 927 if (cmd->scan_end_arg != cmd->chanlist_len) { in pci224_ao_cmdtest() 928 cmd->scan_end_arg = cmd->chanlist_len; in pci224_ao_cmdtest() 1014 if (cmd->chanlist && (cmd->chanlist_len > 0)) { in pci224_ao_cmdtest() 1030 for (n = 0; n < cmd->chanlist_len; n++) { in pci224_ao_cmdtest() [all …]
|
D | rtd520.c | 1504 if (++s->async->cur_chan >= s->async->cmd.chanlist_len) 1793 if (1 == cmd->chanlist_len) { /* no scanning */ 1830 if (1 == cmd->chanlist_len) { /* no scanning */ 1867 if (cmd->scan_end_arg != cmd->chanlist_len) { 1868 cmd->scan_end_arg = cmd->chanlist_len; 1889 if (cmd->chanlist_len > RTD_MAX_CHANLIST) { 1890 cmd->chanlist_len = RTD_MAX_CHANLIST; 1962 rtd_load_channelgain_list(dev, cmd->chanlist_len, cmd->chanlist); 1965 if (cmd->chanlist_len > 1) { 1983 devpriv->transCount = cmd->chanlist_len; [all …]
|
D | amplc_pci230.c | 1395 if (cmd->scan_end_arg != cmd->chanlist_len) { in pci230_ao_cmdtest() 1396 cmd->scan_end_arg = cmd->chanlist_len; in pci230_ao_cmdtest() 1427 if (cmd->chanlist && cmd->chanlist_len > 0) { in pci230_ao_cmdtest() 1440 for (n = 1; n < cmd->chanlist_len; n++) { in pci230_ao_cmdtest() 1645 for (i = 0; i < cmd->chanlist_len; i++) in pci230_ao_cmd() 1688 unsigned int min_scan_period, chanlist_len; in pci230_ai_check_scan_period() local 1691 chanlist_len = cmd->chanlist_len; in pci230_ai_check_scan_period() 1692 if (cmd->chanlist_len == 0) in pci230_ai_check_scan_period() 1693 chanlist_len = 1; in pci230_ai_check_scan_period() 1695 min_scan_period = chanlist_len * cmd->convert_arg; in pci230_ai_check_scan_period() [all …]
|
D | comedi_fc.h | 66 num_samples = (subd->async->cmd.chanlist_len + in cfc_bytes_per_scan() 70 num_samples = subd->async->cmd.chanlist_len; in cfc_bytes_per_scan()
|
D | das1800.c | 1257 if (!cmd->chanlist_len) { in das1800_ai_do_cmdtest() 1258 cmd->chanlist_len = 1; in das1800_ai_do_cmdtest() 1261 if (cmd->scan_end_arg != cmd->chanlist_len) { in das1800_ai_do_cmdtest() 1262 cmd->scan_end_arg = cmd->chanlist_len; in das1800_ai_do_cmdtest() 1314 if (cmd->convert_arg * cmd->chanlist_len > in das1800_ai_do_cmdtest() 1318 cmd->chanlist_len; in das1800_ai_do_cmdtest() 1345 for (i = 1; i < cmd->chanlist_len; i++) { in das1800_ai_do_cmdtest() 1521 n = cmd.chanlist_len; in program_chanlist() 1571 devpriv->count = cmd.stop_arg * cmd.chanlist_len; in das1800_ai_do_cmd() 1593 outb(cmd.chanlist_len - 1, dev->iobase + DAS1800_BURST_LENGTH); in das1800_ai_do_cmd() [all …]
|
D | das800.c | 667 if (!cmd->chanlist_len) { in das800_ai_do_cmdtest() 668 cmd->chanlist_len = 1; in das800_ai_do_cmdtest() 671 if (cmd->scan_end_arg != cmd->chanlist_len) { in das800_ai_do_cmdtest() 672 cmd->scan_end_arg = cmd->chanlist_len; in das800_ai_do_cmdtest() 710 for (i = 1; i < cmd->chanlist_len; i++) { in das800_ai_do_cmdtest() 749 endChan = (startChan + async->cmd.chanlist_len - 1) % 8; in das800_ai_do_cmd() 766 devpriv->count = async->cmd.stop_arg * async->cmd.chanlist_len; in das800_ai_do_cmd()
|
D | usbduxfast.c | 634 if (!cmd->chanlist_len) in usbduxfast_ai_cmdtest() 637 if (cmd->scan_end_arg != cmd->chanlist_len) { in usbduxfast_ai_cmdtest() 638 cmd->scan_end_arg = cmd->chanlist_len; in usbduxfast_ai_cmdtest() 642 if (cmd->chanlist_len == 1) in usbduxfast_ai_cmdtest() 787 if (cmd->chanlist_len > 0) { in usbduxfast_ai_cmd() 789 for (i = 0; i < cmd->chanlist_len; ++i) { in usbduxfast_ai_cmd() 799 && (cmd->chanlist_len > 3)) { in usbduxfast_ai_cmd() 823 if ((steps < MIN_SAMPLING_PERIOD) && (cmd->chanlist_len != 1)) { in usbduxfast_ai_cmd() 836 if ((cmd->start_src == TRIG_EXT) && (cmd->chanlist_len != 1) in usbduxfast_ai_cmd() 837 && (cmd->chanlist_len != 16)) { in usbduxfast_ai_cmd() [all …]
|
D | pcm_common.c | 83 if (cmd->scan_end_arg != cmd->chanlist_len) { in comedi_pcm_cmdtest() 84 cmd->scan_end_arg = cmd->chanlist_len; in comedi_pcm_cmdtest()
|
D | cb_pcidas64.c | 2284 if (cmd->convert_arg * cmd->chanlist_len > in ai_cmdtest() 2288 cmd->chanlist_len; in ai_cmdtest() 2295 if (!cmd->chanlist_len) { in ai_cmdtest() 2296 cmd->chanlist_len = 1; in ai_cmdtest() 2299 if (cmd->scan_end_arg != cmd->chanlist_len) { in ai_cmdtest() 2300 cmd->scan_end_arg = cmd->chanlist_len; in ai_cmdtest() 2344 for (i = 1; i < cmd->chanlist_len; i++) { in ai_cmdtest() 2355 for (i = 1; i < cmd->chanlist_len; i++) { in ai_cmdtest() 2364 if (cmd->chanlist_len == 3) { in ai_cmdtest() 2394 priv(dev)->ai_count = cmd->stop_arg * cmd->chanlist_len; in setup_sample_counters() [all …]
|
D | cb_pcidas.c | 1168 thisboard->ai_speed * cmd->chanlist_len) { in cb_pcidas_ai_cmdtest() 1170 thisboard->ai_speed * cmd->chanlist_len; in cb_pcidas_ai_cmdtest() 1181 if (cmd->scan_end_arg != cmd->chanlist_len) { in cb_pcidas_ai_cmdtest() 1182 cmd->scan_end_arg = cmd->chanlist_len; in cb_pcidas_ai_cmdtest() 1226 for (i = 1; i < cmd->chanlist_len; i++) { in cb_pcidas_ai_cmdtest() 1264 END_SCAN(CR_CHAN(cmd->chanlist[cmd->chanlist_len - 1])) | in cb_pcidas_ai_cmd() 1293 devpriv->count = cmd->chanlist_len * cmd->stop_arg; in cb_pcidas_ai_cmd() 1299 if (cmd->convert_src == TRIG_NOW && cmd->chanlist_len > 1) in cb_pcidas_ai_cmd() 1330 if (cmd->convert_src == TRIG_NOW && cmd->chanlist_len > 1) in cb_pcidas_ai_cmd() 1409 if (cmd->scan_end_arg != cmd->chanlist_len) { in cb_pcidas_ao_cmdtest() [all …]
|
D | pcl816.c | 494 e, cmd->stop_arg, cmd->scan_end_arg, cmd->chanlist_len); in pcl816_cmdtest_out() 594 if (cmd->scan_end_arg != cmd->chanlist_len) { in pcl816_ai_cmdtest() 595 cmd->scan_end_arg = cmd->chanlist_len; in pcl816_ai_cmdtest() 635 cmd->chanlist_len)) in pcl816_ai_cmdtest() 654 if (cmd->scan_end_arg != cmd->chanlist_len) in pcl816_ai_cmd() 681 seglen = check_channel_list(dev, s, cmd->chanlist, cmd->chanlist_len); in pcl816_ai_cmd() 687 devpriv->ai_n_chan = cmd->chanlist_len; in pcl816_ai_cmd() 715 bytes = s->async->cmd.chanlist_len * in pcl816_ai_cmd() 716 s->async->cmd.chanlist_len * in pcl816_ai_cmd()
|
D | pcl812.c | 638 cmd->chanlist_len); in pcl812_cmdtest_out() 765 if (!cmd->chanlist_len) { in pcl812_ai_cmdtest() 766 cmd->chanlist_len = 1; in pcl812_ai_cmdtest() 769 if (cmd->chanlist_len > MAX_CHANLIST_LEN) { in pcl812_ai_cmdtest() 770 cmd->chanlist_len = this_board->n_aichan; in pcl812_ai_cmdtest() 773 if (cmd->scan_end_arg != cmd->chanlist_len) { in pcl812_ai_cmdtest() 774 cmd->scan_end_arg = cmd->chanlist_len; in pcl812_ai_cmdtest() 849 if (cmd->scan_end_arg != cmd->chanlist_len) in pcl812_ai_cmd() 851 if (cmd->chanlist_len > MAX_CHANLIST_LEN) in pcl812_ai_cmd() 865 devpriv->ai_n_chan = cmd->chanlist_len; in pcl812_ai_cmd()
|
D | ni_labpc.c | 858 if (cmd->chanlist_len == 1) in labpc_ai_scan_mode() 893 if (cmd->chanlist_len > 0xff) { in labpc_ai_chanlist_invalid() 904 for (i = 0; i < cmd->chanlist_len; i++) { in labpc_ai_chanlist_invalid() 923 cmd->chanlist_len - i - 1) { in labpc_ai_chanlist_invalid() 1080 if (!cmd->chanlist_len) in labpc_ai_cmdtest() 1083 if (cmd->scan_end_arg != cmd->chanlist_len) { in labpc_ai_cmdtest() 1084 cmd->scan_end_arg = cmd->chanlist_len; in labpc_ai_cmdtest() 1098 cmd->convert_arg * cmd->chanlist_len) { in labpc_ai_cmdtest() 1100 cmd->convert_arg * cmd->chanlist_len; in labpc_ai_cmdtest() 1104 thisboard->ai_speed * cmd->chanlist_len) { in labpc_ai_cmdtest() [all …]
|
D | me4000.c | 1097 if (!cmd->chanlist_len) { in ai_check_chanlist() 1105 if (cmd->chanlist_len > ME4000_AI_CHANNEL_LIST_COUNT) { in ai_check_chanlist() 1122 for (i = 0; i < cmd->chanlist_len; i++) { in ai_check_chanlist() 1134 for (i = 0; i < cmd->chanlist_len; i++) { in ai_check_chanlist() 1144 for (i = 0; i < cmd->chanlist_len; i++) { in ai_check_chanlist() 1156 for (i = 0; i < cmd->chanlist_len; i++) { in ai_check_chanlist() 1307 me4000_outl(dev, cmd->chanlist_len * cmd->stop_arg, in ai_prepare() 1339 for (i = 0; i < cmd->chanlist_len; i++) { in ai_write_chanlist() 1447 cmd->chanlist_len); in me4000_ai_do_cmd_test() 1589 if (cmd->chanlist_len < 1) { in me4000_ai_do_cmd_test() [all …]
|
D | das16.c | 849 if (cmd->scan_end_arg != cmd->chanlist_len) { in das16_cmd_test() 850 cmd->scan_end_arg = cmd->chanlist_len; in das16_cmd_test() 856 thisboard->ai_speed * cmd->chanlist_len) { in das16_cmd_test() 858 thisboard->ai_speed * cmd->chanlist_len; in das16_cmd_test() 906 for (i = 1; i < cmd->chanlist_len; i++) { in das16_cmd_test() 951 cmd->stop_arg * cmd->chanlist_len * sizeof(uint16_t); in das16_cmd_exec() 959 byte |= CR_CHAN(cmd->chanlist[cmd->chanlist_len - 1]) << 4; in das16_cmd_exec() 984 byte |= BURST_LEN_BITS(cmd->chanlist_len - 1); in das16_cmd_exec() 1749 freq = (1000000000 / cmd.scan_begin_arg) * cmd.chanlist_len; in das16_suggest_transfer_size() 1755 size = sample_size * cmd.chanlist_len; in das16_suggest_transfer_size()
|
D | adl_pci9118.c | 1130 if (!cmd->chanlist_len) { in pci9118_ai_cmdtest() 1131 cmd->chanlist_len = 1; in pci9118_ai_cmdtest() 1135 if (cmd->chanlist_len > this_board->n_aichanlist) { in pci9118_ai_cmdtest() 1136 cmd->chanlist_len = this_board->n_aichanlist; in pci9118_ai_cmdtest() 1140 if (cmd->scan_end_arg < cmd->chanlist_len) { in pci9118_ai_cmdtest() 1141 cmd->scan_end_arg = cmd->chanlist_len; in pci9118_ai_cmdtest() 1145 if ((cmd->scan_end_arg % cmd->chanlist_len)) { in pci9118_ai_cmdtest() 1147 cmd->chanlist_len * (cmd->scan_end_arg / cmd->chanlist_len); in pci9118_ai_cmdtest() 1193 cmd->convert_arg * cmd->chanlist_len) { in pci9118_ai_cmdtest() 1196 cmd->chanlist_len; in pci9118_ai_cmdtest() [all …]
|
D | dmm32at.c | 657 if (cmd->scan_end_arg != cmd->chanlist_len) { in dmm32at_ai_cmdtest() 658 cmd->scan_end_arg = cmd->chanlist_len; in dmm32at_ai_cmdtest() 714 for (i = 1; i < cmd->chanlist_len; i++) { in dmm32at_ai_cmdtest() 746 chanhi = chanlo + cmd->chanlist_len - 1; in dmm32at_ai_cmd() 832 for (i = 0; i < cmd->chanlist_len; i++) { in dmm32at_isr()
|
D | ni_atmio16d.c | 385 if (cmd->scan_end_arg != cmd->chanlist_len) { in atmio16d_ai_cmdtest() 386 cmd->scan_end_arg = cmd->chanlist_len; in atmio16d_ai_cmdtest() 422 if (cmd->chanlist_len < 2) { in atmio16d_ai_cmd() 433 for (i = 0; i < cmd->chanlist_len; ++i) { in atmio16d_ai_cmd() 513 if (cmd->chanlist_len > 1) { in atmio16d_ai_cmd()
|
D | usbdux.c | 516 n = s->async->cmd.chanlist_len; in usbduxsub_ai_IsocIrq() 671 s->async->cmd.chanlist_len; in usbduxsub_ao_IsocIrq() 672 for (i = 0; i < s->async->cmd.chanlist_len; i++) { in usbduxsub_ao_IsocIrq() 1019 while (i < (cmd->chanlist_len)) in usbdux_ai_cmdtest() 1054 if (cmd->scan_end_arg != cmd->chanlist_len) { in usbdux_ai_cmdtest() 1055 cmd->scan_end_arg = cmd->chanlist_len; in usbdux_ai_cmdtest() 1228 this_usbduxsub->dux_commands[1] = cmd->chanlist_len; in usbdux_ai_cmd() 1229 for (i = 0; i < cmd->chanlist_len; ++i) { in usbdux_ai_cmd() 1260 while ((this_usbduxsub->ai_interval) < (cmd->chanlist_len)) { in usbdux_ai_cmd() 1605 if (cmd->scan_end_arg != cmd->chanlist_len) { in usbdux_ao_cmdtest() [all …]
|
/drivers/staging/comedi/ |
D | comedi_compat32.c | 72 unsigned int chanlist_len; member 211 err |= __get_user(temp.uint, &cmd32->chanlist_len); in get_compat_cmd() 212 err |= __put_user(temp.uint, &cmd->chanlist_len); in get_compat_cmd() 261 err |= __get_user(temp, &cmd->chanlist_len); in put_compat_cmd() 262 err |= __put_user(temp, &cmd32->chanlist_len); in put_compat_cmd()
|
D | comedi_fops.c | 1084 if (user_cmd.chanlist_len > s->len_chanlist) { in do_cmd_ioctl() 1086 user_cmd.chanlist_len, s->len_chanlist); in do_cmd_ioctl() 1092 if (user_cmd.chanlist_len < 1) { in do_cmd_ioctl() 1094 user_cmd.chanlist_len); in do_cmd_ioctl() 1103 kmalloc(async->cmd.chanlist_len * sizeof(int), GFP_KERNEL); in do_cmd_ioctl() 1111 async->cmd.chanlist_len * sizeof(int))) { in do_cmd_ioctl() 1119 async->cmd.chanlist_len, in do_cmd_ioctl() 1218 if (user_cmd.chanlist_len > s->len_chanlist) { in do_cmdtest_ioctl() 1220 user_cmd.chanlist_len, s->len_chanlist); in do_cmdtest_ioctl() 1228 kmalloc(user_cmd.chanlist_len * sizeof(int), GFP_KERNEL); in do_cmdtest_ioctl() [all …]
|