Home
last modified time | relevance | path

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

123

/drivers/staging/comedi/drivers/
Ddas16m1.c154 if (cmd->chanlist_len == 1) in das16m1_ai_check_chanlist()
157 if ((cmd->chanlist_len % 2) != 0) { in das16m1_ai_check_chanlist()
163 for (i = 0; i < cmd->chanlist_len; i++) { in das16m1_ai_check_chanlist()
216 cmd->chanlist_len); in das16m1_ai_cmdtest()
239 if (cmd->chanlist && cmd->chanlist_len > 0) in das16m1_ai_cmdtest()
273 das16m1_ai_set_queue(dev, cmd->chanlist, cmd->chanlist_len); in das16m1_ai_cmd()
416 if (num_samples > cmd->stop_arg * cmd->chanlist_len) in das16m1_handler()
417 num_samples = cmd->stop_arg * cmd->chanlist_len; in das16m1_handler()
427 if (devpriv->adc_count >= cmd->stop_arg * cmd->chanlist_len) { in das16m1_handler()
Dusbduxfast.c334 if (cmd->chanlist_len > 3 && cmd->chanlist_len != 16) { in usbduxfast_ai_check_chanlist()
339 for (i = 0; i < cmd->chanlist_len; ++i) { in usbduxfast_ai_check_chanlist()
348 if (gain != gain0 && cmd->chanlist_len > 3) { in usbduxfast_ai_check_chanlist()
391 if (!cmd->chanlist_len) in usbduxfast_ai_cmdtest()
396 cmd->chanlist_len != 1 && cmd->chanlist_len != 16) in usbduxfast_ai_cmdtest()
400 cmd->chanlist_len); in usbduxfast_ai_cmdtest()
410 if (cmd->chanlist_len != 1) in usbduxfast_ai_cmdtest()
428 if (cmd->chanlist && cmd->chanlist_len > 0) in usbduxfast_ai_cmdtest()
489 switch (cmd->chanlist_len) { in usbduxfast_ai_cmd()
Dadl_pci9111.c218 for (i = 1; i < cmd->chanlist_len; i++) { in pci9111_ai_check_chanlist()
301 cmd->chanlist_len); in pci9111_ai_do_cmd_test()
324 arg = cmd->chanlist_len * cmd->convert_arg; in pci9111_ai_do_cmd_test()
336 if (cmd->chanlist && cmd->chanlist_len > 0) in pci9111_ai_do_cmd_test()
350 unsigned int last_chan = CR_CHAN(cmd->chanlist[cmd->chanlist_len - 1]); in pci9111_ai_do_cmd()
358 if (cmd->chanlist_len > 1) in pci9111_ai_do_cmd()
380 (cmd->convert_arg * cmd->chanlist_len)) - 1; in pci9111_ai_do_cmd()
393 dev_private->chunk_num_samples = cmd->chanlist_len * in pci9111_ai_do_cmd()
433 if (devpriv->chunk_counter < cmd->chanlist_len) { in pci9111_handle_fifo_half_full()
434 to_read = cmd->chanlist_len - in pci9111_handle_fifo_half_full()
Dni_at_a2150.c369 if (cmd->chanlist_len == 2 && (chan0 == 1 || chan0 == 3)) { in a2150_ai_check_chanlist()
375 if (cmd->chanlist_len == 3) { in a2150_ai_check_chanlist()
381 for (i = 1; i < cmd->chanlist_len; i++) { in a2150_ai_check_chanlist()
440 err |= comedi_check_trigger_arg_min(&cmd->chanlist_len, 1); in a2150_ai_cmdtest()
442 cmd->chanlist_len); in a2150_ai_cmdtest()
464 if (cmd->chanlist && cmd->chanlist_len > 0) in a2150_ai_cmdtest()
493 cmd->chanlist_len) < 0) in a2150_ai_cmd()
513 devpriv->count = cmd->stop_arg * cmd->chanlist_len; in a2150_ai_cmd()
519 desc->size = comedi_bytes_per_sample(s) * cmd->chanlist_len * in a2150_ai_cmd()
Drtd520.c733 if (cmd->chanlist_len == 1) { /* no scanning */ in rtd_ai_cmdtest()
768 if (cmd->chanlist_len == 1) { /* no scanning */ in rtd_ai_cmdtest()
802 cmd->chanlist_len); in rtd_ai_cmdtest()
856 rtd_load_channelgain_list(dev, cmd->chanlist_len, cmd->chanlist); in rtd_ai_cmd()
859 if (cmd->chanlist_len > 1) { in rtd_ai_cmd()
883 devpriv->xfer_count = cmd->chanlist_len; in rtd_ai_cmd()
888 (TRANS_TARGET_PERIOD * cmd->chanlist_len) / in rtd_ai_cmd()
890 if (devpriv->xfer_count < cmd->chanlist_len) { in rtd_ai_cmd()
892 devpriv->xfer_count = cmd->chanlist_len; in rtd_ai_cmd()
896 cmd->chanlist_len); in rtd_ai_cmd()
[all …]
Damplc_pci230.c864 for (i = 1; i < cmd->chanlist_len; i++) { in pci230_ao_check_chanlist()
983 cmd->chanlist_len); in pci230_ao_cmdtest()
1006 if (cmd->chanlist && cmd->chanlist_len > 0) in pci230_ao_cmdtest()
1080 for (i = 0; i < cmd->chanlist_len; i++) { in pci230_handle_ao_nofifo()
1145 room /= cmd->chanlist_len; in pci230_handle_ao_fifo()
1151 for (i = 0; i < cmd->chanlist_len; i++) { in pci230_handle_ao_fifo()
1336 for (i = 0; i < cmd->chanlist_len; i++) in pci230_ao_cmd()
1388 unsigned int min_scan_period, chanlist_len; in pci230_ai_check_scan_period() local
1391 chanlist_len = cmd->chanlist_len; in pci230_ai_check_scan_period()
1392 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.c550 room /= cmd->chanlist_len; in pci224_ao_handle_fifo()
559 cmd->chanlist_len); in pci224_ao_handle_fifo()
560 for (i = 0; i < cmd->chanlist_len; i++) { in pci224_ao_handle_fifo()
634 for (i = 0; i < cmd->chanlist_len; i++) { in pci224_ao_check_chanlist()
736 arg = cmd->chanlist_len * CONVERT_PERIOD; in pci224_ao_cmdtest()
761 cmd->chanlist_len); in pci224_ao_cmdtest()
801 if (cmd->chanlist && cmd->chanlist_len > 0) in pci224_ao_cmdtest()
844 if (!cmd->chanlist || cmd->chanlist_len == 0) in pci224_ao_cmd()
850 for (i = 0; i < cmd->chanlist_len; i++) { in pci224_ao_cmd()
854 for (j = 0; j < cmd->chanlist_len; j++) { in pci224_ao_cmd()
Dme4000.c550 for (i = 0; i < cmd->chanlist_len; i++) { in me4000_ai_check_chanlist()
642 for (i = 0; i < cmd->chanlist_len; i++) { in me4000_ai_write_chanlist()
653 if (i == (cmd->chanlist_len - 1)) in me4000_ai_write_chanlist()
690 outl(cmd->chanlist_len * cmd->stop_arg, in me4000_ai_do_cmd()
780 if (cmd->chanlist_len < 1) { in me4000_ai_do_cmd_test()
781 cmd->chanlist_len = 1; in me4000_ai_do_cmd_test()
827 cmd->chanlist_len * devpriv->ai_chan_ticks) { in me4000_ai_do_cmd_test()
831 cmd->scan_end_arg = 2000 * cmd->chanlist_len + 31; in me4000_ai_do_cmd_test()
863 cmd->chanlist_len * devpriv->ai_chan_ticks) { in me4000_ai_do_cmd_test()
867 cmd->scan_end_arg = 2000 * cmd->chanlist_len + 31; in me4000_ai_do_cmd_test()
[all …]
Dni_labpc_common.c430 if (cmd->chanlist_len == 1) in labpc_ai_scan_mode()
459 for (i = 0; i < cmd->chanlist_len; i++) { in labpc_ai_check_chanlist()
482 if (chan != (cmd->chanlist_len - i - 1)) { in labpc_ai_check_chanlist()
559 if (!cmd->chanlist_len) in labpc_ai_cmdtest()
562 cmd->chanlist_len); in labpc_ai_cmdtest()
575 cmd->chanlist_len); in labpc_ai_cmdtest()
579 cmd->chanlist_len); in labpc_ai_cmdtest()
613 if (cmd->chanlist && cmd->chanlist_len > 0) in labpc_ai_cmdtest()
630 cmd->chanlist[cmd->chanlist_len - 1] : in labpc_ai_cmd()
643 devpriv->count = cmd->stop_arg * cmd->chanlist_len; in labpc_ai_cmd()
[all …]
Ddmm32at.c250 for (i = 1; i < cmd->chanlist_len; i++) { in dmm32at_ai_check_chanlist()
313 cmd->chanlist_len); in dmm32at_ai_cmdtest()
332 if (cmd->chanlist && cmd->chanlist_len > 0) in dmm32at_ai_cmdtest()
378 dmm32at_ai_set_chanspec(dev, s, cmd->chanlist[0], cmd->chanlist_len); in dmm32at_ai_cmd()
430 for (i = 0; i < cmd->chanlist_len; i++) { in dmm32at_isr()
Dcb_pcidas.c665 for (i = 1; i < cmd->chanlist_len; i++) { in cb_pcidas_ai_check_chanlist()
749 cmd->chanlist_len); in cb_pcidas_ai_cmdtest()
758 cmd->chanlist_len); in cb_pcidas_ai_cmdtest()
785 if (cmd->chanlist && cmd->chanlist_len > 0) in cb_pcidas_ai_cmdtest()
814 PCIDAS_AI_LAST(CR_CHAN(cmd->chanlist[cmd->chanlist_len - 1])) | in cb_pcidas_ai_cmd()
841 if (cmd->convert_src == TRIG_NOW && cmd->chanlist_len > 1) { in cb_pcidas_ai_cmd()
872 if (cmd->convert_src == TRIG_NOW && cmd->chanlist_len > 1) in cb_pcidas_ai_cmd()
885 if (cmd->chanlist_len > 1) { in cb_pcidas_ao_check_chanlist()
938 cmd->chanlist_len); in cb_pcidas_ao_cmdtest()
962 if (cmd->chanlist && cmd->chanlist_len > 0) in cb_pcidas_ao_cmdtest()
[all …]
Dcb_pcidas64.c2059 min_scan_divisor = convert_divisor * cmd->chanlist_len; in check_adc_timing()
2061 (convert_divisor * cmd->chanlist_len - 1) + in check_adc_timing()
2083 for (i = 1; i < cmd->chanlist_len; i++) { in cb_pcidas64_ai_check_chanlist()
2096 for (i = 1; i < cmd->chanlist_len; i++) { in cb_pcidas64_ai_check_chanlist()
2105 if (cmd->chanlist_len == 3) { in cb_pcidas64_ai_check_chanlist()
2191 cmd->chanlist_len); in ai_cmdtest()
2196 err |= comedi_check_trigger_arg_min(&cmd->chanlist_len, 1); in ai_cmdtest()
2198 cmd->chanlist_len); in ai_cmdtest()
2232 if (cmd->chanlist && cmd->chanlist_len > 0) in ai_cmdtest()
2298 (cmd->convert_arg * (cmd->chanlist_len - 1))) / in ai_scan_counter_6xxx()
[all …]
Ddas800.c282 for (i = 1; i < cmd->chanlist_len; i++) { in das800_ai_check_chanlist()
341 err |= comedi_check_trigger_arg_min(&cmd->chanlist_len, 1); in das800_ai_do_cmdtest()
343 cmd->chanlist_len); in das800_ai_do_cmdtest()
366 if (cmd->chanlist && cmd->chanlist_len > 0) in das800_ai_do_cmdtest()
383 unsigned int end_chan = (start_chan + cmd->chanlist_len - 1) % 8; in das800_ai_do_cmd()
Ddas6402.c238 unsigned int chan_hi = CR_CHAN(cmd->chanlist[cmd->chanlist_len - 1]); in das6402_ai_cmd()
266 for (i = 1; i < cmd->chanlist_len; i++) { in das6402_ai_check_chanlist()
330 err |= comedi_check_trigger_arg_min(&cmd->chanlist_len, 1); in das6402_ai_cmdtest()
332 cmd->chanlist_len); in das6402_ai_cmdtest()
352 if (cmd->chanlist && cmd->chanlist_len > 0) in das6402_ai_cmdtest()
Ddas1800.c611 arg = cmd->convert_arg * cmd->chanlist_len; in das1800_ai_fixup_burst_timing()
630 for (i = 1; i < cmd->chanlist_len; i++) { in das1800_ai_check_chanlist()
696 err |= comedi_check_trigger_arg_min(&cmd->chanlist_len, 1); in das1800_ai_cmdtest()
698 cmd->chanlist_len); in das1800_ai_cmdtest()
727 if (cmd->chanlist && cmd->chanlist_len > 0) in das1800_ai_cmdtest()
772 samples = ns / (cmd->scan_begin_arg * cmd->chanlist_len); in das1800_ai_transfer_size()
905 das1800_ai_set_chanlist(dev, cmd->chanlist, cmd->chanlist_len); in das1800_ai_cmd()
925 outb(cmd->chanlist_len - 1, dev->iobase + DAS1800_BURST_LENGTH); in das1800_ai_cmd()
Daddi_apci_2032.c117 cmd->chanlist_len); in apci2032_int_cmdtest()
143 for (n = 0; n < cmd->chanlist_len; n++) in apci2032_int_cmd()
204 for (i = 0; i < cmd->chanlist_len; i++) { in apci2032_interrupt()
Dgsc_hpdi.c345 for (i = 0; i < cmd->chanlist_len; i++) { in gsc_hpdi_check_chanlist()
391 if (!cmd->chanlist_len || !cmd->chanlist) { in gsc_hpdi_cmd_test()
392 cmd->chanlist_len = 32; in gsc_hpdi_cmd_test()
396 cmd->chanlist_len); in gsc_hpdi_cmd_test()
410 if (cmd->chanlist && cmd->chanlist_len > 0) in gsc_hpdi_cmd_test()
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.c573 for (i = 1; i < cmd->chanlist_len; i++) { in das16_ai_check_chanlist()
647 cmd->chanlist_len); in das16_cmd_test()
653 cmd->chanlist_len); in das16_cmd_test()
684 if (cmd->chanlist && cmd->chanlist_len > 0) in das16_cmd_test()
710 unsigned int last_chan = CR_CHAN(cmd->chanlist[cmd->chanlist_len - 1]); in das16_cmd_exec()
737 byte |= DAS16_PACER_BURST_LEN(cmd->chanlist_len - 1); in das16_cmd_exec()
Dcomedi_test.c281 err |= comedi_check_trigger_arg_min(&cmd->chanlist_len, 1); in waveform_ai_cmdtest()
283 cmd->chanlist_len); in waveform_ai_cmdtest()
540 err |= comedi_check_trigger_arg_min(&cmd->chanlist_len, 1); in waveform_ao_cmdtest()
542 cmd->chanlist_len); in waveform_ao_cmdtest()
Dusbduxsigma.c230 for (i = 0; i < cmd->chanlist_len; i++) { in usbduxsigma_ai_handle_urb()
359 *datap++ = cmd->chanlist_len; in usbduxsigma_ao_handle_urb()
360 for (i = 0; i < cmd->chanlist_len; i++) { in usbduxsigma_ao_handle_urb()
483 int interval = usbduxsigma_chans_to_interval(cmd->chanlist_len); in usbduxsigma_ai_cmdtest()
529 cmd->chanlist_len); in usbduxsigma_ai_cmdtest()
634 unsigned int len = cmd->chanlist_len; in usbduxsigma_ai_cmd()
880 cmd->chanlist_len); in usbduxsigma_ao_cmdtest()
Dni_atmio16d.c292 cmd->chanlist_len); in atmio16d_ai_cmdtest()
322 if (cmd->chanlist_len < 2) { in atmio16d_ai_cmd()
333 for (i = 0; i < cmd->chanlist_len; ++i) { in atmio16d_ai_cmd()
412 if (cmd->chanlist_len > 1) { in atmio16d_ai_cmd()
Dusbdux.c263 for (i = 0; i < cmd->chanlist_len; i++) { in usbduxsub_ai_handle_urb()
399 *datap++ = cmd->chanlist_len; in usbduxsub_ao_handle_urb()
400 for (i = 0; i < cmd->chanlist_len; i++) { in usbduxsub_ao_handle_urb()
565 while (i < cmd->chanlist_len) in usbdux_ai_cmdtest()
579 cmd->chanlist_len); in usbdux_ai_cmdtest()
673 int len = cmd->chanlist_len; in usbdux_ai_cmd()
944 cmd->chanlist_len); in usbdux_ao_cmdtest()
/drivers/staging/comedi/
Dcomedi_compat32.c70 unsigned int chanlist_len; member
207 err |= __get_user(temp.uint, &cmd32->chanlist_len); in get_compat_cmd()
208 err |= __put_user(temp.uint, &cmd->chanlist_len); in get_compat_cmd()
259 err |= __get_user(temp, &cmd->chanlist_len); in put_compat_cmd()
260 err |= __put_user(temp, &cmd32->chanlist_len); in put_compat_cmd()

123