/Linux-v4.19/drivers/staging/comedi/drivers/ |
D | das16m1.c | 145 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()
|
D | adl_pci9111.c | 209 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()
|
D | usbduxfast.c | 325 if (cmd->chanlist_len > 3 && cmd->chanlist_len != 16) { in usbduxfast_ai_check_chanlist() 330 for (i = 0; i < cmd->chanlist_len; ++i) { in usbduxfast_ai_check_chanlist() 339 if (gain != gain0 && cmd->chanlist_len > 3) { in usbduxfast_ai_check_chanlist() 382 if (!cmd->chanlist_len) in usbduxfast_ai_cmdtest() 387 cmd->chanlist_len != 1 && cmd->chanlist_len != 16) in usbduxfast_ai_cmdtest() 391 cmd->chanlist_len); in usbduxfast_ai_cmdtest() 401 if (cmd->chanlist_len != 1) in usbduxfast_ai_cmdtest() 419 if (cmd->chanlist && cmd->chanlist_len > 0) in usbduxfast_ai_cmdtest() 480 switch (cmd->chanlist_len) { in usbduxfast_ai_cmd()
|
D | ni_at_a2150.c | 360 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()
|
D | rtd520.c | 724 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() 847 rtd_load_channelgain_list(dev, cmd->chanlist_len, cmd->chanlist); in rtd_ai_cmd() 850 if (cmd->chanlist_len > 1) { in rtd_ai_cmd() 874 devpriv->xfer_count = cmd->chanlist_len; in rtd_ai_cmd() 879 (TRANS_TARGET_PERIOD * cmd->chanlist_len) / in rtd_ai_cmd() 881 if (devpriv->xfer_count < cmd->chanlist_len) { in rtd_ai_cmd() 883 devpriv->xfer_count = cmd->chanlist_len; in rtd_ai_cmd() 887 cmd->chanlist_len); in rtd_ai_cmd() [all …]
|
D | amplc_pci230.c | 857 for (i = 1; i < cmd->chanlist_len; i++) { in pci230_ao_check_chanlist() 976 cmd->chanlist_len); in pci230_ao_cmdtest() 999 if (cmd->chanlist && cmd->chanlist_len > 0) in pci230_ao_cmdtest() 1073 for (i = 0; i < cmd->chanlist_len; i++) { in pci230_handle_ao_nofifo() 1138 room /= cmd->chanlist_len; in pci230_handle_ao_fifo() 1144 for (i = 0; i < cmd->chanlist_len; i++) { in pci230_handle_ao_fifo() 1329 for (i = 0; i < cmd->chanlist_len; i++) in pci230_ao_cmd() 1381 unsigned int min_scan_period, chanlist_len; in pci230_ai_check_scan_period() local 1384 chanlist_len = cmd->chanlist_len; in pci230_ai_check_scan_period() 1385 if (cmd->chanlist_len == 0) in pci230_ai_check_scan_period() [all …]
|
D | amplc_pci224.c | 547 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()
|
D | adl_pci9118.c | 297 if (cmd->chanlist_len == 1) in pci9118_ai_check_chanlist() 300 for (i = 1; i < cmd->chanlist_len; i++) { in pci9118_ai_check_chanlist() 412 unsigned int stop_pos = start_pos + cmd->chanlist_len; in pci9118_ai_samples_ready() 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() 469 unsigned int stop_pos = start_pos + cmd->chanlist_len; in pci9118_ai_dma_xfer() 474 if (span_len == cmd->chanlist_len) { in pci9118_ai_dma_xfer() 1002 cmd->chanlist_len + in pci9118_ai_cmd() 1009 scanlen = devpriv->ai_add_front + cmd->chanlist_len + in pci9118_ai_cmd() 1016 (cmd->scan_end_arg / cmd->chanlist_len); in pci9118_ai_cmd() [all …]
|
D | me4000.c | 541 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 …]
|
D | ni_labpc_common.c | 421 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() 566 cmd->chanlist_len); in labpc_ai_cmdtest() 570 cmd->chanlist_len); in labpc_ai_cmdtest() 604 if (cmd->chanlist && cmd->chanlist_len > 0) in labpc_ai_cmdtest() 621 cmd->chanlist[cmd->chanlist_len - 1] : in labpc_ai_cmd() 634 devpriv->count = cmd->stop_arg * cmd->chanlist_len; in labpc_ai_cmd() [all …]
|
D | dmm32at.c | 241 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()
|
D | cb_pcidas.c | 656 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 …]
|
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()
|
D | das6402.c | 229 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()
|
D | das800.c | 273 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()
|
D | cb_pcidas64.c | 2047 min_scan_divisor = convert_divisor * cmd->chanlist_len; in check_adc_timing() 2049 (convert_divisor * cmd->chanlist_len - 1) + in check_adc_timing() 2071 for (i = 1; i < cmd->chanlist_len; i++) { in cb_pcidas64_ai_check_chanlist() 2084 for (i = 1; i < cmd->chanlist_len; i++) { in cb_pcidas64_ai_check_chanlist() 2093 if (cmd->chanlist_len == 3) { in cb_pcidas64_ai_check_chanlist() 2179 cmd->chanlist_len); in ai_cmdtest() 2184 err |= comedi_check_trigger_arg_min(&cmd->chanlist_len, 1); in ai_cmdtest() 2186 cmd->chanlist_len); in ai_cmdtest() 2220 if (cmd->chanlist && cmd->chanlist_len > 0) in ai_cmdtest() 2286 (cmd->convert_arg * (cmd->chanlist_len - 1))) / in ai_scan_counter_6xxx() [all …]
|
D | gsc_hpdi.c | 336 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()
|
D | das1800.c | 602 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()
|
D | adv_pci1710.c | 193 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()
|
D | das16.c | 565 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()
|
D | usbduxsigma.c | 221 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()
|
D | comedi_test.c | 300 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()
|
D | ni_atmio16d.c | 283 cmd->chanlist_len); in atmio16d_ai_cmdtest() 313 if (cmd->chanlist_len < 2) { in atmio16d_ai_cmd() 324 for (i = 0; i < cmd->chanlist_len; ++i) { in atmio16d_ai_cmd() 403 if (cmd->chanlist_len > 1) { in atmio16d_ai_cmd()
|
D | pcmuio.c | 319 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()
|
/Linux-v4.19/drivers/staging/comedi/ |
D | comedi_compat32.c | 61 unsigned int chanlist_len; member 198 err |= __get_user(temp.uint, &cmd32->chanlist_len); in get_compat_cmd() 199 err |= __put_user(temp.uint, &cmd->chanlist_len); in get_compat_cmd() 250 err |= __get_user(temp, &cmd->chanlist_len); in put_compat_cmd() 251 err |= __put_user(temp, &cmd32->chanlist_len); in put_compat_cmd()
|