Home
last modified time | relevance | path

Searched refs:chanlist_len (Results 1 – 25 of 57) sorted by relevance

123

/linux/drivers/comedi/drivers/
A Ddas16m1.c145 if (cmd->chanlist_len == 1) in das16m1_ai_check_chanlist()
148 if ((cmd->chanlist_len % 2) != 0) { in das16m1_ai_check_chanlist()
154 for (i = 0; i < cmd->chanlist_len; i++) { in das16m1_ai_check_chanlist()
207 cmd->chanlist_len); in das16m1_ai_cmdtest()
230 if (cmd->chanlist && cmd->chanlist_len > 0) in das16m1_ai_cmdtest()
264 das16m1_ai_set_queue(dev, cmd->chanlist, cmd->chanlist_len); in das16m1_ai_cmd()
407 if (num_samples > cmd->stop_arg * cmd->chanlist_len) in das16m1_handler()
408 num_samples = cmd->stop_arg * cmd->chanlist_len; in das16m1_handler()
418 if (devpriv->adc_count >= cmd->stop_arg * cmd->chanlist_len) { in das16m1_handler()
A Dusbduxfast.c326 if (cmd->chanlist_len > 3 && cmd->chanlist_len != 16) { in usbduxfast_ai_check_chanlist()
331 for (i = 0; i < cmd->chanlist_len; ++i) { in usbduxfast_ai_check_chanlist()
340 if (gain != gain0 && cmd->chanlist_len > 3) { in usbduxfast_ai_check_chanlist()
384 if (!cmd->chanlist_len) in usbduxfast_ai_cmdtest()
389 cmd->chanlist_len != 1 && cmd->chanlist_len != 16) in usbduxfast_ai_cmdtest()
393 cmd->chanlist_len); in usbduxfast_ai_cmdtest()
403 if (cmd->chanlist_len != 1) in usbduxfast_ai_cmdtest()
426 if (cmd->chanlist && cmd->chanlist_len > 0) in usbduxfast_ai_cmdtest()
487 switch (cmd->chanlist_len) { in usbduxfast_ai_cmd()
A Dadl_pci9111.c209 for (i = 1; i < cmd->chanlist_len; i++) { in pci9111_ai_check_chanlist()
292 cmd->chanlist_len); in pci9111_ai_do_cmd_test()
315 arg = cmd->chanlist_len * cmd->convert_arg; in pci9111_ai_do_cmd_test()
327 if (cmd->chanlist && cmd->chanlist_len > 0) in pci9111_ai_do_cmd_test()
341 unsigned int last_chan = CR_CHAN(cmd->chanlist[cmd->chanlist_len - 1]); in pci9111_ai_do_cmd()
349 if (cmd->chanlist_len > 1) in pci9111_ai_do_cmd()
371 (cmd->convert_arg * cmd->chanlist_len)) - 1; in pci9111_ai_do_cmd()
384 dev_private->chunk_num_samples = cmd->chanlist_len * in pci9111_ai_do_cmd()
424 if (devpriv->chunk_counter < cmd->chanlist_len) { in pci9111_handle_fifo_half_full()
425 to_read = cmd->chanlist_len - in pci9111_handle_fifo_half_full()
A Dni_at_a2150.c360 if (cmd->chanlist_len == 2 && (chan0 == 1 || chan0 == 3)) { in a2150_ai_check_chanlist()
366 if (cmd->chanlist_len == 3) { in a2150_ai_check_chanlist()
372 for (i = 1; i < cmd->chanlist_len; i++) { in a2150_ai_check_chanlist()
431 err |= comedi_check_trigger_arg_min(&cmd->chanlist_len, 1); in a2150_ai_cmdtest()
433 cmd->chanlist_len); in a2150_ai_cmdtest()
455 if (cmd->chanlist && cmd->chanlist_len > 0) in a2150_ai_cmdtest()
484 cmd->chanlist_len) < 0) in a2150_ai_cmd()
504 devpriv->count = cmd->stop_arg * cmd->chanlist_len; in a2150_ai_cmd()
510 desc->size = comedi_bytes_per_sample(s) * cmd->chanlist_len * in a2150_ai_cmd()
A Drtd520.c724 if (cmd->chanlist_len == 1) { /* no scanning */ in rtd_ai_cmdtest()
759 if (cmd->chanlist_len == 1) { /* no scanning */ in rtd_ai_cmdtest()
793 cmd->chanlist_len); in rtd_ai_cmdtest()
849 if (cmd->chanlist_len > 1) { in rtd_ai_cmd()
873 devpriv->xfer_count = cmd->chanlist_len; in rtd_ai_cmd()
878 (TRANS_TARGET_PERIOD * cmd->chanlist_len) / in rtd_ai_cmd()
880 if (devpriv->xfer_count < cmd->chanlist_len) { in rtd_ai_cmd()
882 devpriv->xfer_count = cmd->chanlist_len; in rtd_ai_cmd()
886 cmd->chanlist_len); in rtd_ai_cmd()
887 devpriv->xfer_count *= cmd->chanlist_len; in rtd_ai_cmd()
[all …]
A Damplc_pci230.c857 for (i = 1; i < cmd->chanlist_len; i++) { in pci230_ao_check_chanlist()
976 cmd->chanlist_len); in pci230_ao_cmdtest()
1138 room /= cmd->chanlist_len; in pci230_handle_ao_fifo()
1329 for (i = 0; i < cmd->chanlist_len; i++) in pci230_ao_cmd()
1384 chanlist_len = cmd->chanlist_len; in pci230_ai_check_scan_period()
1385 if (cmd->chanlist_len == 0) in pci230_ai_check_scan_period()
1386 chanlist_len = 1; in pci230_ai_check_scan_period()
1389 if (min_scan_period < chanlist_len || in pci230_ai_check_scan_period()
1475 subseq_len = cmd->chanlist_len; in pci230_ai_check_chanlist()
1477 if (cmd->chanlist_len % subseq_len) { in pci230_ai_check_chanlist()
[all …]
A Dadl_pci9118.c297 if (cmd->chanlist_len == 1) in pci9118_ai_check_chanlist()
300 for (i = 1; i < cmd->chanlist_len; i++) { in pci9118_ai_check_chanlist()
417 if (span_len == cmd->chanlist_len) in pci9118_ai_samples_ready()
428 n_samples = whole_spans * cmd->chanlist_len; in pci9118_ai_samples_ready()
474 if (span_len == cmd->chanlist_len) { in pci9118_ai_dma_xfer()
1002 cmd->chanlist_len + in pci9118_ai_cmd()
1016 (cmd->scan_end_arg / cmd->chanlist_len); in pci9118_ai_cmd()
1251 cmd->chanlist_len); in pci9118_ai_cmdtest()
1253 if ((cmd->scan_end_arg % cmd->chanlist_len)) { in pci9118_ai_cmdtest()
1255 cmd->chanlist_len * (cmd->scan_end_arg / cmd->chanlist_len); in pci9118_ai_cmdtest()
[all …]
A Damplc_pci224.c547 room /= cmd->chanlist_len; in pci224_ao_handle_fifo()
556 cmd->chanlist_len); in pci224_ao_handle_fifo()
557 for (i = 0; i < cmd->chanlist_len; i++) { in pci224_ao_handle_fifo()
631 for (i = 0; i < cmd->chanlist_len; i++) { in pci224_ao_check_chanlist()
733 arg = cmd->chanlist_len * CONVERT_PERIOD; in pci224_ao_cmdtest()
758 cmd->chanlist_len); in pci224_ao_cmdtest()
798 if (cmd->chanlist && cmd->chanlist_len > 0) in pci224_ao_cmdtest()
843 if (!cmd->chanlist || cmd->chanlist_len == 0) in pci224_ao_cmd()
849 for (i = 0; i < cmd->chanlist_len; i++) { in pci224_ao_cmd()
853 for (j = 0; j < cmd->chanlist_len; j++) { in pci224_ao_cmd()
A Dme4000.c541 for (i = 0; i < cmd->chanlist_len; i++) { in me4000_ai_check_chanlist()
633 for (i = 0; i < cmd->chanlist_len; i++) { in me4000_ai_write_chanlist()
644 if (i == (cmd->chanlist_len - 1)) in me4000_ai_write_chanlist()
681 outl(cmd->chanlist_len * cmd->stop_arg, in me4000_ai_do_cmd()
771 if (cmd->chanlist_len < 1) { in me4000_ai_do_cmd_test()
772 cmd->chanlist_len = 1; in me4000_ai_do_cmd_test()
818 cmd->chanlist_len * devpriv->ai_chan_ticks) { in me4000_ai_do_cmd_test()
822 cmd->scan_end_arg = 2000 * cmd->chanlist_len + 31; in me4000_ai_do_cmd_test()
854 cmd->chanlist_len * devpriv->ai_chan_ticks) { in me4000_ai_do_cmd_test()
858 cmd->scan_end_arg = 2000 * cmd->chanlist_len + 31; in me4000_ai_do_cmd_test()
[all …]
A Dni_labpc_common.c421 if (cmd->chanlist_len == 1) in labpc_ai_scan_mode()
450 for (i = 0; i < cmd->chanlist_len; i++) { in labpc_ai_check_chanlist()
473 if (chan != (cmd->chanlist_len - i - 1)) { in labpc_ai_check_chanlist()
550 if (!cmd->chanlist_len) in labpc_ai_cmdtest()
553 cmd->chanlist_len); in labpc_ai_cmdtest()
565 cmd->convert_arg * cmd->chanlist_len); in labpc_ai_cmdtest()
569 board->ai_speed * cmd->chanlist_len); in labpc_ai_cmdtest()
603 if (cmd->chanlist && cmd->chanlist_len > 0) in labpc_ai_cmdtest()
620 cmd->chanlist[cmd->chanlist_len - 1] : in labpc_ai_cmd()
633 devpriv->count = cmd->stop_arg * cmd->chanlist_len; in labpc_ai_cmd()
[all …]
A Ddmm32at.c241 for (i = 1; i < cmd->chanlist_len; i++) { in dmm32at_ai_check_chanlist()
304 cmd->chanlist_len); in dmm32at_ai_cmdtest()
323 if (cmd->chanlist && cmd->chanlist_len > 0) in dmm32at_ai_cmdtest()
369 dmm32at_ai_set_chanspec(dev, s, cmd->chanlist[0], cmd->chanlist_len); in dmm32at_ai_cmd()
421 for (i = 0; i < cmd->chanlist_len; i++) { in dmm32at_isr()
A Dcb_pcidas.c656 for (i = 1; i < cmd->chanlist_len; i++) { in cb_pcidas_ai_check_chanlist()
740 cmd->chanlist_len); in cb_pcidas_ai_cmdtest()
749 cmd->chanlist_len); in cb_pcidas_ai_cmdtest()
776 if (cmd->chanlist && cmd->chanlist_len > 0) in cb_pcidas_ai_cmdtest()
805 PCIDAS_AI_LAST(CR_CHAN(cmd->chanlist[cmd->chanlist_len - 1])) | in cb_pcidas_ai_cmd()
832 if (cmd->convert_src == TRIG_NOW && cmd->chanlist_len > 1) { in cb_pcidas_ai_cmd()
863 if (cmd->convert_src == TRIG_NOW && cmd->chanlist_len > 1) in cb_pcidas_ai_cmd()
876 if (cmd->chanlist_len > 1) { in cb_pcidas_ao_check_chanlist()
929 cmd->chanlist_len); in cb_pcidas_ao_cmdtest()
953 if (cmd->chanlist && cmd->chanlist_len > 0) in cb_pcidas_ao_cmdtest()
[all …]
A Dcb_pcidas64.c2066 for (i = 1; i < cmd->chanlist_len; i++) { in cb_pcidas64_ai_check_chanlist()
2088 if (cmd->chanlist_len == 3) { in cb_pcidas64_ai_check_chanlist()
2174 cmd->chanlist_len); in ai_cmdtest()
2181 cmd->chanlist_len); in ai_cmdtest()
2478 if (i == cmd->chanlist_len - 1) in setup_channel_queue()
2594 if (cmd->chanlist_len == 4) in ai_cmd()
2596 else if (cmd->chanlist_len == 2) in ai_cmd()
2604 [cmd->chanlist_len - 1])); in ai_cmd()
3156 for (i = 0; i < cmd->chanlist_len; i++) { in set_dac_control1_reg()
3321 for (i = 1; i < cmd->chanlist_len; i++) { in cb_pcidas64_ao_check_chanlist()
[all …]
A Ddas800.c273 for (i = 1; i < cmd->chanlist_len; i++) { in das800_ai_check_chanlist()
332 err |= comedi_check_trigger_arg_min(&cmd->chanlist_len, 1); in das800_ai_do_cmdtest()
334 cmd->chanlist_len); in das800_ai_do_cmdtest()
357 if (cmd->chanlist && cmd->chanlist_len > 0) in das800_ai_do_cmdtest()
374 unsigned int end_chan = (start_chan + cmd->chanlist_len - 1) % 8; in das800_ai_do_cmd()
A Ddas6402.c229 unsigned int chan_hi = CR_CHAN(cmd->chanlist[cmd->chanlist_len - 1]); in das6402_ai_cmd()
257 for (i = 1; i < cmd->chanlist_len; i++) { in das6402_ai_check_chanlist()
321 err |= comedi_check_trigger_arg_min(&cmd->chanlist_len, 1); in das6402_ai_cmdtest()
323 cmd->chanlist_len); in das6402_ai_cmdtest()
343 if (cmd->chanlist && cmd->chanlist_len > 0) in das6402_ai_cmdtest()
A Ddas1800.c602 arg = cmd->convert_arg * cmd->chanlist_len; in das1800_ai_fixup_burst_timing()
621 for (i = 1; i < cmd->chanlist_len; i++) { in das1800_ai_check_chanlist()
687 err |= comedi_check_trigger_arg_min(&cmd->chanlist_len, 1); in das1800_ai_cmdtest()
689 cmd->chanlist_len); in das1800_ai_cmdtest()
718 if (cmd->chanlist && cmd->chanlist_len > 0) in das1800_ai_cmdtest()
763 samples = ns / (cmd->scan_begin_arg * cmd->chanlist_len); in das1800_ai_transfer_size()
896 das1800_ai_set_chanlist(dev, cmd->chanlist, cmd->chanlist_len); in das1800_ai_cmd()
916 outb(cmd->chanlist_len - 1, dev->iobase + DAS1800_BURST_LENGTH); in das1800_ai_cmd()
A Daddi_apci_2032.c108 cmd->chanlist_len); in apci2032_int_cmdtest()
134 for (n = 0; n < cmd->chanlist_len; n++) in apci2032_int_cmd()
195 for (i = 0; i < cmd->chanlist_len; i++) { in apci2032_interrupt()
A Dgsc_hpdi.c336 for (i = 0; i < cmd->chanlist_len; i++) { in gsc_hpdi_check_chanlist()
382 if (!cmd->chanlist_len || !cmd->chanlist) { in gsc_hpdi_cmd_test()
383 cmd->chanlist_len = 32; in gsc_hpdi_cmd_test()
387 cmd->chanlist_len); in gsc_hpdi_cmd_test()
401 if (cmd->chanlist && cmd->chanlist_len > 0) in gsc_hpdi_cmd_test()
A Dadv_pci1710.c193 if (cmd->chanlist_len == 1) { in pci1710_ai_check_chanlist()
194 devpriv->saved_seglen = cmd->chanlist_len; in pci1710_ai_check_chanlist()
201 for (i = 1; i < cmd->chanlist_len; i++) { in pci1710_ai_check_chanlist()
229 for (i = 0; i < cmd->chanlist_len; i++) { in pci1710_ai_check_chanlist()
527 pci1710_ai_setup_chanlist(dev, s, cmd->chanlist, cmd->chanlist_len, in pci1710_ai_cmd()
603 cmd->chanlist_len); in pci1710_ai_cmdtest()
A Ddas16.c565 for (i = 1; i < cmd->chanlist_len; i++) { in das16_ai_check_chanlist()
639 cmd->chanlist_len); in das16_cmd_test()
645 cmd->chanlist_len); in das16_cmd_test()
676 if (cmd->chanlist && cmd->chanlist_len > 0) in das16_cmd_test()
702 unsigned int last_chan = CR_CHAN(cmd->chanlist[cmd->chanlist_len - 1]); in das16_cmd_exec()
729 byte |= DAS16_PACER_BURST_LEN(cmd->chanlist_len - 1); in das16_cmd_exec()
A Dusbduxsigma.c221 for (i = 0; i < cmd->chanlist_len; i++) { in usbduxsigma_ai_handle_urb()
350 *datap++ = cmd->chanlist_len; in usbduxsigma_ao_handle_urb()
351 for (i = 0; i < cmd->chanlist_len; i++) { in usbduxsigma_ao_handle_urb()
474 int interval = usbduxsigma_chans_to_interval(cmd->chanlist_len); in usbduxsigma_ai_cmdtest()
520 cmd->chanlist_len); in usbduxsigma_ai_cmdtest()
625 unsigned int len = cmd->chanlist_len; in usbduxsigma_ai_cmd()
871 cmd->chanlist_len); in usbduxsigma_ao_cmdtest()
A Dcomedi_test.c300 err |= comedi_check_trigger_arg_min(&cmd->chanlist_len, 1); in waveform_ai_cmdtest()
302 cmd->chanlist_len); in waveform_ai_cmdtest()
559 err |= comedi_check_trigger_arg_min(&cmd->chanlist_len, 1); in waveform_ao_cmdtest()
561 cmd->chanlist_len); in waveform_ao_cmdtest()
A Dni_atmio16d.c273 cmd->chanlist_len); in atmio16d_ai_cmdtest()
303 if (cmd->chanlist_len < 2) { in atmio16d_ai_cmd()
314 for (i = 0; i < cmd->chanlist_len; ++i) { in atmio16d_ai_cmd()
393 if (cmd->chanlist_len > 1) { in atmio16d_ai_cmd()
A Dusbdux.c254 for (i = 0; i < cmd->chanlist_len; i++) { in usbduxsub_ai_handle_urb()
390 *datap++ = cmd->chanlist_len; in usbduxsub_ao_handle_urb()
391 for (i = 0; i < cmd->chanlist_len; i++) { in usbduxsub_ao_handle_urb()
556 while (i < cmd->chanlist_len) in usbdux_ai_cmdtest()
570 cmd->chanlist_len); in usbdux_ai_cmdtest()
664 int len = cmd->chanlist_len; in usbdux_ai_cmd()
934 cmd->chanlist_len); in usbdux_ao_cmdtest()
A Dpcmuio.c319 for (i = 0; i < cmd->chanlist_len; i++) { in pcmuio_handle_intr_subdev()
389 for (i = 0; i < cmd->chanlist_len; i++) { in pcmuio_start_intr()
503 cmd->chanlist_len); in pcmuio_cmdtest()

Completed in 69 milliseconds

123