/openbmc/linux/drivers/comedi/drivers/ |
H A D | das16m1.c | 144 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()
|
H A D | adl_pci9111.c | 208 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()
|
H A D | usbduxfast.c | 326 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()
|
H A D | ni_at_a2150.c | 358 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()
|
H A D | rtd520.c | 723 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() 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() 886 devpriv->xfer_count *= cmd->chanlist_len; in rtd_ai_cmd() [all …]
|
H A D | amplc_pci230.c | 855 for (i = 1; i < cmd->chanlist_len; i++) { in pci230_ao_check_chanlist() 974 cmd->chanlist_len); in pci230_ao_cmdtest() 1136 room /= cmd->chanlist_len; in pci230_handle_ao_fifo() 1327 for (i = 0; i < cmd->chanlist_len; i++) in pci230_ao_cmd() 1382 chanlist_len = cmd->chanlist_len; in pci230_ai_check_scan_period() 1383 if (cmd->chanlist_len == 0) in pci230_ai_check_scan_period() 1384 chanlist_len = 1; in pci230_ai_check_scan_period() 1387 if (min_scan_period < chanlist_len || in pci230_ai_check_scan_period() 1473 subseq_len = cmd->chanlist_len; in pci230_ai_check_chanlist() 1475 if (cmd->chanlist_len % subseq_len) { in pci230_ai_check_chanlist() [all …]
|
H A D | amplc_pci224.c | 545 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()
|
H A D | adl_pci9118.c | 296 if (cmd->chanlist_len == 1) in pci9118_ai_check_chanlist() 299 for (i = 1; i < cmd->chanlist_len; i++) { in pci9118_ai_check_chanlist() 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() 473 if (span_len == cmd->chanlist_len) { in pci9118_ai_dma_xfer() 1001 cmd->chanlist_len + in pci9118_ai_cmd() 1015 (cmd->scan_end_arg / cmd->chanlist_len); in pci9118_ai_cmd() 1250 cmd->chanlist_len); in pci9118_ai_cmdtest() 1252 if ((cmd->scan_end_arg % cmd->chanlist_len)) { in pci9118_ai_cmdtest() 1254 cmd->chanlist_len * (cmd->scan_end_arg / cmd->chanlist_len); in pci9118_ai_cmdtest() [all …]
|
H A D | me4000.c | 540 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 …]
|
H A D | ni_labpc_common.c | 420 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 …]
|
H A D | dmm32at.c | 240 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()
|
H A D | cb_pcidas.c | 655 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 …]
|
H A D | addi_apci_2032.c | 108 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()
|
H A D | das800.c | 271 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()
|
H A D | das6402.c | 227 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()
|
H A D | cb_pcidas64.c | 2065 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() 2180 cmd->chanlist_len); in ai_cmdtest() 2477 if (i == cmd->chanlist_len - 1) in setup_channel_queue() 2593 if (cmd->chanlist_len == 4) in ai_cmd() 2595 else if (cmd->chanlist_len == 2) in ai_cmd() 2603 [cmd->chanlist_len - 1])); in ai_cmd() 3155 for (i = 0; i < cmd->chanlist_len; i++) { in set_dac_control1_reg() 3320 for (i = 1; i < cmd->chanlist_len; i++) { in cb_pcidas64_ao_check_chanlist() [all …]
|
H A D | gsc_hpdi.c | 335 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()
|
H A D | das1800.c | 600 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()
|
H A D | adv_pci1710.c | 192 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()
|
H A D | das16.c | 563 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()
|
H A D | usbduxsigma.c | 220 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()
|
H A D | ni_atmio16d.c | 272 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()
|
H A D | pcmuio.c | 318 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()
|
H A D | usbdux.c | 253 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()
|
H A D | comedi_test.c | 306 err |= comedi_check_trigger_arg_min(&cmd->chanlist_len, 1); in waveform_ai_cmdtest() 308 cmd->chanlist_len); in waveform_ai_cmdtest() 578 err |= comedi_check_trigger_arg_min(&cmd->chanlist_len, 1); in waveform_ao_cmdtest() 580 cmd->chanlist_len); in waveform_ao_cmdtest()
|