Home
last modified time | relevance | path

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

123

/linux-6.6.21/drivers/comedi/drivers/
Ddas16m1.c144 if (cmd->chanlist_len == 1) in das16m1_ai_check_chanlist()
147 if ((cmd->chanlist_len % 2) != 0) { in das16m1_ai_check_chanlist()
153 for (i = 0; i < cmd->chanlist_len; i++) { in das16m1_ai_check_chanlist()
206 cmd->chanlist_len); in das16m1_ai_cmdtest()
229 if (cmd->chanlist && cmd->chanlist_len > 0) in das16m1_ai_cmdtest()
263 das16m1_ai_set_queue(dev, cmd->chanlist, cmd->chanlist_len); in das16m1_ai_cmd()
406 if (num_samples > cmd->stop_arg * cmd->chanlist_len) in das16m1_handler()
407 num_samples = cmd->stop_arg * cmd->chanlist_len; in das16m1_handler()
417 if (devpriv->adc_count >= cmd->stop_arg * cmd->chanlist_len) { in das16m1_handler()
Dadl_pci9111.c208 for (i = 1; i < cmd->chanlist_len; i++) { in pci9111_ai_check_chanlist()
291 cmd->chanlist_len); in pci9111_ai_do_cmd_test()
314 arg = cmd->chanlist_len * cmd->convert_arg; in pci9111_ai_do_cmd_test()
326 if (cmd->chanlist && cmd->chanlist_len > 0) in pci9111_ai_do_cmd_test()
340 unsigned int last_chan = CR_CHAN(cmd->chanlist[cmd->chanlist_len - 1]); in pci9111_ai_do_cmd()
348 if (cmd->chanlist_len > 1) in pci9111_ai_do_cmd()
370 (cmd->convert_arg * cmd->chanlist_len)) - 1; in pci9111_ai_do_cmd()
383 dev_private->chunk_num_samples = cmd->chanlist_len * in pci9111_ai_do_cmd()
423 if (devpriv->chunk_counter < cmd->chanlist_len) { in pci9111_handle_fifo_half_full()
424 to_read = cmd->chanlist_len - in pci9111_handle_fifo_half_full()
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()
Dni_at_a2150.c358 if (cmd->chanlist_len == 2 && (chan0 == 1 || chan0 == 3)) { in a2150_ai_check_chanlist()
364 if (cmd->chanlist_len == 3) { in a2150_ai_check_chanlist()
370 for (i = 1; i < cmd->chanlist_len; i++) { in a2150_ai_check_chanlist()
429 err |= comedi_check_trigger_arg_min(&cmd->chanlist_len, 1); in a2150_ai_cmdtest()
431 cmd->chanlist_len); in a2150_ai_cmdtest()
453 if (cmd->chanlist && cmd->chanlist_len > 0) in a2150_ai_cmdtest()
482 cmd->chanlist_len) < 0) in a2150_ai_cmd()
502 devpriv->count = cmd->stop_arg * cmd->chanlist_len; in a2150_ai_cmd()
508 desc->size = comedi_bytes_per_sample(s) * cmd->chanlist_len * in a2150_ai_cmd()
Drtd520.c723 if (cmd->chanlist_len == 1) { /* no scanning */ in rtd_ai_cmdtest()
758 if (cmd->chanlist_len == 1) { /* no scanning */ in rtd_ai_cmdtest()
792 cmd->chanlist_len); in rtd_ai_cmdtest()
845 rtd_load_channelgain_list(dev, cmd->chanlist_len, cmd->chanlist); in rtd_ai_cmd()
848 if (cmd->chanlist_len > 1) { in rtd_ai_cmd()
872 devpriv->xfer_count = cmd->chanlist_len; in rtd_ai_cmd()
877 (TRANS_TARGET_PERIOD * cmd->chanlist_len) / in rtd_ai_cmd()
879 if (devpriv->xfer_count < cmd->chanlist_len) { in rtd_ai_cmd()
881 devpriv->xfer_count = cmd->chanlist_len; in rtd_ai_cmd()
885 cmd->chanlist_len); in rtd_ai_cmd()
[all …]
Damplc_pci230.c855 for (i = 1; i < cmd->chanlist_len; i++) { in pci230_ao_check_chanlist()
974 cmd->chanlist_len); in pci230_ao_cmdtest()
997 if (cmd->chanlist && cmd->chanlist_len > 0) in pci230_ao_cmdtest()
1071 for (i = 0; i < cmd->chanlist_len; i++) { in pci230_handle_ao_nofifo()
1136 room /= cmd->chanlist_len; in pci230_handle_ao_fifo()
1142 for (i = 0; i < cmd->chanlist_len; i++) { in pci230_handle_ao_fifo()
1327 for (i = 0; i < cmd->chanlist_len; i++) in pci230_ao_cmd()
1379 unsigned int min_scan_period, chanlist_len; in pci230_ai_check_scan_period() local
1382 chanlist_len = cmd->chanlist_len; in pci230_ai_check_scan_period()
1383 if (cmd->chanlist_len == 0) in pci230_ai_check_scan_period()
[all …]
Dadl_pci9118.c296 if (cmd->chanlist_len == 1) in pci9118_ai_check_chanlist()
299 for (i = 1; i < cmd->chanlist_len; i++) { in pci9118_ai_check_chanlist()
411 unsigned int stop_pos = start_pos + cmd->chanlist_len; in pci9118_ai_samples_ready()
416 if (span_len == cmd->chanlist_len) in pci9118_ai_samples_ready()
427 n_samples = whole_spans * cmd->chanlist_len; in pci9118_ai_samples_ready()
468 unsigned int stop_pos = start_pos + cmd->chanlist_len; in pci9118_ai_dma_xfer()
473 if (span_len == cmd->chanlist_len) { in pci9118_ai_dma_xfer()
1001 cmd->chanlist_len + in pci9118_ai_cmd()
1008 scanlen = devpriv->ai_add_front + cmd->chanlist_len + in pci9118_ai_cmd()
1015 (cmd->scan_end_arg / cmd->chanlist_len); in pci9118_ai_cmd()
[all …]
Damplc_pci224.c545 room /= cmd->chanlist_len; in pci224_ao_handle_fifo()
554 cmd->chanlist_len); in pci224_ao_handle_fifo()
555 for (i = 0; i < cmd->chanlist_len; i++) { in pci224_ao_handle_fifo()
629 for (i = 0; i < cmd->chanlist_len; i++) { in pci224_ao_check_chanlist()
731 arg = cmd->chanlist_len * CONVERT_PERIOD; in pci224_ao_cmdtest()
756 cmd->chanlist_len); in pci224_ao_cmdtest()
796 if (cmd->chanlist && cmd->chanlist_len > 0) in pci224_ao_cmdtest()
841 if (!cmd->chanlist || cmd->chanlist_len == 0) in pci224_ao_cmd()
847 for (i = 0; i < cmd->chanlist_len; i++) { in pci224_ao_cmd()
851 for (j = 0; j < cmd->chanlist_len; j++) { in pci224_ao_cmd()
Dme4000.c540 for (i = 0; i < cmd->chanlist_len; i++) { in me4000_ai_check_chanlist()
632 for (i = 0; i < cmd->chanlist_len; i++) { in me4000_ai_write_chanlist()
643 if (i == (cmd->chanlist_len - 1)) in me4000_ai_write_chanlist()
680 outl(cmd->chanlist_len * cmd->stop_arg, in me4000_ai_do_cmd()
770 if (cmd->chanlist_len < 1) { in me4000_ai_do_cmd_test()
771 cmd->chanlist_len = 1; in me4000_ai_do_cmd_test()
817 cmd->chanlist_len * devpriv->ai_chan_ticks) { in me4000_ai_do_cmd_test()
821 cmd->scan_end_arg = 2000 * cmd->chanlist_len + 31; in me4000_ai_do_cmd_test()
853 cmd->chanlist_len * devpriv->ai_chan_ticks) { in me4000_ai_do_cmd_test()
857 cmd->scan_end_arg = 2000 * cmd->chanlist_len + 31; in me4000_ai_do_cmd_test()
[all …]
Dni_labpc_common.c420 if (cmd->chanlist_len == 1) in labpc_ai_scan_mode()
449 for (i = 0; i < cmd->chanlist_len; i++) { in labpc_ai_check_chanlist()
472 if (chan != (cmd->chanlist_len - i - 1)) { in labpc_ai_check_chanlist()
549 if (!cmd->chanlist_len) in labpc_ai_cmdtest()
552 cmd->chanlist_len); in labpc_ai_cmdtest()
564 cmd->convert_arg * cmd->chanlist_len); in labpc_ai_cmdtest()
568 board->ai_speed * cmd->chanlist_len); in labpc_ai_cmdtest()
602 if (cmd->chanlist && cmd->chanlist_len > 0) in labpc_ai_cmdtest()
619 cmd->chanlist[cmd->chanlist_len - 1] : in labpc_ai_cmd()
632 devpriv->count = cmd->stop_arg * cmd->chanlist_len; in labpc_ai_cmd()
[all …]
Ddmm32at.c240 for (i = 1; i < cmd->chanlist_len; i++) { in dmm32at_ai_check_chanlist()
303 cmd->chanlist_len); in dmm32at_ai_cmdtest()
322 if (cmd->chanlist && cmd->chanlist_len > 0) in dmm32at_ai_cmdtest()
368 dmm32at_ai_set_chanspec(dev, s, cmd->chanlist[0], cmd->chanlist_len); in dmm32at_ai_cmd()
420 for (i = 0; i < cmd->chanlist_len; i++) { in dmm32at_isr()
Dcb_pcidas.c655 for (i = 1; i < cmd->chanlist_len; i++) { in cb_pcidas_ai_check_chanlist()
739 cmd->chanlist_len); in cb_pcidas_ai_cmdtest()
748 cmd->chanlist_len); in cb_pcidas_ai_cmdtest()
775 if (cmd->chanlist && cmd->chanlist_len > 0) in cb_pcidas_ai_cmdtest()
804 PCIDAS_AI_LAST(CR_CHAN(cmd->chanlist[cmd->chanlist_len - 1])) | in cb_pcidas_ai_cmd()
831 if (cmd->convert_src == TRIG_NOW && cmd->chanlist_len > 1) { in cb_pcidas_ai_cmd()
862 if (cmd->convert_src == TRIG_NOW && cmd->chanlist_len > 1) in cb_pcidas_ai_cmd()
875 if (cmd->chanlist_len > 1) { in cb_pcidas_ao_check_chanlist()
928 cmd->chanlist_len); in cb_pcidas_ao_cmdtest()
952 if (cmd->chanlist && cmd->chanlist_len > 0) in cb_pcidas_ao_cmdtest()
[all …]
Ddas800.c271 for (i = 1; i < cmd->chanlist_len; i++) { in das800_ai_check_chanlist()
330 err |= comedi_check_trigger_arg_min(&cmd->chanlist_len, 1); in das800_ai_do_cmdtest()
332 cmd->chanlist_len); in das800_ai_do_cmdtest()
355 if (cmd->chanlist && cmd->chanlist_len > 0) in das800_ai_do_cmdtest()
372 unsigned int end_chan = (start_chan + cmd->chanlist_len - 1) % 8; in das800_ai_do_cmd()
Ddas6402.c227 unsigned int chan_hi = CR_CHAN(cmd->chanlist[cmd->chanlist_len - 1]); in das6402_ai_cmd()
255 for (i = 1; i < cmd->chanlist_len; i++) { in das6402_ai_check_chanlist()
319 err |= comedi_check_trigger_arg_min(&cmd->chanlist_len, 1); in das6402_ai_cmdtest()
321 cmd->chanlist_len); in das6402_ai_cmdtest()
341 if (cmd->chanlist && cmd->chanlist_len > 0) in das6402_ai_cmdtest()
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()
Dcb_pcidas64.c2041 min_scan_divisor = convert_divisor * cmd->chanlist_len; in check_adc_timing()
2043 (convert_divisor * cmd->chanlist_len - 1) + in check_adc_timing()
2065 for (i = 1; i < cmd->chanlist_len; i++) { in cb_pcidas64_ai_check_chanlist()
2078 for (i = 1; i < cmd->chanlist_len; i++) { in cb_pcidas64_ai_check_chanlist()
2087 if (cmd->chanlist_len == 3) { in cb_pcidas64_ai_check_chanlist()
2173 cmd->chanlist_len); in ai_cmdtest()
2178 err |= comedi_check_trigger_arg_min(&cmd->chanlist_len, 1); in ai_cmdtest()
2180 cmd->chanlist_len); in ai_cmdtest()
2214 if (cmd->chanlist && cmd->chanlist_len > 0) in ai_cmdtest()
2280 (cmd->convert_arg * (cmd->chanlist_len - 1))) / in ai_scan_counter_6xxx()
[all …]
Dgsc_hpdi.c335 for (i = 0; i < cmd->chanlist_len; i++) { in gsc_hpdi_check_chanlist()
381 if (!cmd->chanlist_len || !cmd->chanlist) { in gsc_hpdi_cmd_test()
382 cmd->chanlist_len = 32; in gsc_hpdi_cmd_test()
386 cmd->chanlist_len); in gsc_hpdi_cmd_test()
400 if (cmd->chanlist && cmd->chanlist_len > 0) in gsc_hpdi_cmd_test()
Ddas1800.c600 arg = cmd->convert_arg * cmd->chanlist_len; in das1800_ai_fixup_burst_timing()
619 for (i = 1; i < cmd->chanlist_len; i++) { in das1800_ai_check_chanlist()
685 err |= comedi_check_trigger_arg_min(&cmd->chanlist_len, 1); in das1800_ai_cmdtest()
687 cmd->chanlist_len); in das1800_ai_cmdtest()
716 if (cmd->chanlist && cmd->chanlist_len > 0) in das1800_ai_cmdtest()
761 samples = ns / (cmd->scan_begin_arg * cmd->chanlist_len); in das1800_ai_transfer_size()
894 das1800_ai_set_chanlist(dev, cmd->chanlist, cmd->chanlist_len); in das1800_ai_cmd()
914 outb(cmd->chanlist_len - 1, dev->iobase + DAS1800_BURST_LENGTH); in das1800_ai_cmd()
Dadv_pci1710.c192 if (cmd->chanlist_len == 1) { in pci1710_ai_check_chanlist()
193 devpriv->saved_seglen = cmd->chanlist_len; in pci1710_ai_check_chanlist()
200 for (i = 1; i < cmd->chanlist_len; i++) { in pci1710_ai_check_chanlist()
228 for (i = 0; i < cmd->chanlist_len; i++) { in pci1710_ai_check_chanlist()
526 pci1710_ai_setup_chanlist(dev, s, cmd->chanlist, cmd->chanlist_len, in pci1710_ai_cmd()
602 cmd->chanlist_len); in pci1710_ai_cmdtest()
Ddas16.c563 for (i = 1; i < cmd->chanlist_len; i++) { in das16_ai_check_chanlist()
637 cmd->chanlist_len); in das16_cmd_test()
643 cmd->chanlist_len); in das16_cmd_test()
674 if (cmd->chanlist && cmd->chanlist_len > 0) in das16_cmd_test()
700 unsigned int last_chan = CR_CHAN(cmd->chanlist[cmd->chanlist_len - 1]); in das16_cmd_exec()
727 byte |= DAS16_PACER_BURST_LEN(cmd->chanlist_len - 1); in das16_cmd_exec()
Dusbduxsigma.c220 for (i = 0; i < cmd->chanlist_len; i++) { in usbduxsigma_ai_handle_urb()
349 *datap++ = cmd->chanlist_len; in usbduxsigma_ao_handle_urb()
350 for (i = 0; i < cmd->chanlist_len; i++) { in usbduxsigma_ao_handle_urb()
473 int interval = usbduxsigma_chans_to_interval(cmd->chanlist_len); in usbduxsigma_ai_cmdtest()
519 cmd->chanlist_len); in usbduxsigma_ai_cmdtest()
624 unsigned int len = cmd->chanlist_len; in usbduxsigma_ai_cmd()
870 cmd->chanlist_len); in usbduxsigma_ao_cmdtest()
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()
Dni_atmio16d.c272 cmd->chanlist_len); in atmio16d_ai_cmdtest()
302 if (cmd->chanlist_len < 2) { in atmio16d_ai_cmd()
313 for (i = 0; i < cmd->chanlist_len; ++i) { in atmio16d_ai_cmd()
392 if (cmd->chanlist_len > 1) { in atmio16d_ai_cmd()
Dpcmuio.c318 for (i = 0; i < cmd->chanlist_len; i++) { in pcmuio_handle_intr_subdev()
388 for (i = 0; i < cmd->chanlist_len; i++) { in pcmuio_start_intr()
502 cmd->chanlist_len); in pcmuio_cmdtest()
Dusbdux.c253 for (i = 0; i < cmd->chanlist_len; i++) { in usbduxsub_ai_handle_urb()
389 *datap++ = cmd->chanlist_len; in usbduxsub_ao_handle_urb()
390 for (i = 0; i < cmd->chanlist_len; i++) { in usbduxsub_ao_handle_urb()
555 while (i < cmd->chanlist_len) in usbdux_ai_cmdtest()
569 cmd->chanlist_len); in usbdux_ai_cmdtest()
663 int len = cmd->chanlist_len; in usbdux_ai_cmd()
933 cmd->chanlist_len); in usbdux_ao_cmdtest()

123