/drivers/comedi/drivers/ |
D | dmm32at.c | 294 if (cmd->convert_arg >= 17500) in dmm32at_ai_cmdtest() 295 cmd->convert_arg = 20000; in dmm32at_ai_cmdtest() 296 else if (cmd->convert_arg >= 12500) in dmm32at_ai_cmdtest() 297 cmd->convert_arg = 15000; in dmm32at_ai_cmdtest() 298 else if (cmd->convert_arg >= 7500) in dmm32at_ai_cmdtest() 299 cmd->convert_arg = 10000; in dmm32at_ai_cmdtest() 301 cmd->convert_arg = 5000; in dmm32at_ai_cmdtest() 316 arg = cmd->convert_arg * cmd->scan_end_arg; in dmm32at_ai_cmdtest()
|
D | rtd520.c | 760 if (comedi_check_trigger_arg_min(&cmd->convert_arg, in rtd_ai_cmdtest() 762 rtd_ns_to_timer(&cmd->convert_arg, in rtd_ai_cmdtest() 766 if (comedi_check_trigger_arg_max(&cmd->convert_arg, in rtd_ai_cmdtest() 768 rtd_ns_to_timer(&cmd->convert_arg, in rtd_ai_cmdtest() 773 if (comedi_check_trigger_arg_min(&cmd->convert_arg, in rtd_ai_cmdtest() 775 rtd_ns_to_timer(&cmd->convert_arg, in rtd_ai_cmdtest() 779 if (comedi_check_trigger_arg_max(&cmd->convert_arg, in rtd_ai_cmdtest() 781 rtd_ns_to_timer(&cmd->convert_arg, in rtd_ai_cmdtest() 789 err |= comedi_check_trigger_arg_max(&cmd->convert_arg, 9); in rtd_ai_cmdtest() 812 arg = cmd->convert_arg; in rtd_ai_cmdtest() [all …]
|
D | amplc_pci230.c | 1388 min_scan_period = chanlist_len * cmd->convert_arg; in pci230_ai_check_scan_period() 1390 min_scan_period < cmd->convert_arg) { in pci230_ai_check_scan_period() 1594 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, in pci230_ai_cmdtest() 1596 err |= comedi_check_trigger_arg_max(&cmd->convert_arg, in pci230_ai_cmdtest() 1607 if (cmd->convert_arg & CR_FLAGS_MASK) { in pci230_ai_cmdtest() 1609 if (cmd->convert_arg & ~CR_FLAGS_MASK) { in pci230_ai_cmdtest() 1610 cmd->convert_arg = COMBINE(cmd->convert_arg, 0, in pci230_ai_cmdtest() 1618 if ((cmd->convert_arg & CR_FLAGS_MASK & ~CR_INVERT) != in pci230_ai_cmdtest() 1621 cmd->convert_arg = in pci230_ai_cmdtest() 1632 err |= comedi_check_trigger_arg_max(&cmd->convert_arg, in pci230_ai_cmdtest() [all …]
|
D | comedi_test.c | 285 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, 0); in waveform_ai_cmdtest() 288 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, in waveform_ai_cmdtest() 316 arg = cmd->convert_arg; in waveform_ai_cmdtest() 326 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, arg); in waveform_ai_cmdtest() 337 arg = max(arg, cmd->convert_arg * cmd->scan_end_arg); in waveform_ai_cmdtest() 365 devpriv->ai_convert_period = cmd->convert_arg / NSEC_PER_USEC; in waveform_ai_cmd() 558 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, 0); in waveform_ao_cmdtest()
|
D | adl_pci9118.c | 992 if (cmd->convert_arg < devpriv->ai_ns_min) in pci9118_ai_cmd() 993 cmd->convert_arg = devpriv->ai_ns_min; in pci9118_ai_cmd() 994 addchans = devpriv->softsshdelay / cmd->convert_arg; in pci9118_ai_cmd() 995 if (devpriv->softsshdelay % cmd->convert_arg) in pci9118_ai_cmd() 1041 comedi_8254_cascade_ns_to_timer(pacer, &cmd->convert_arg, in pci9118_ai_cmd() 1076 &cmd->scan_begin_arg, &cmd->convert_arg, in pci9118_ai_cmd() 1217 cmd->convert_arg = cmd->scan_begin_arg; in pci9118_ai_cmdtest() 1236 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, in pci9118_ai_cmdtest() 1241 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, 0); in pci9118_ai_cmdtest() 1271 arg = cmd->convert_arg; in pci9118_ai_cmdtest() [all …]
|
D | dt3000.c | 410 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, in dt3k_ai_cmdtest() 412 err |= comedi_check_trigger_arg_max(&cmd->convert_arg, in dt3k_ai_cmdtest() 436 arg = cmd->convert_arg; in dt3k_ai_cmdtest() 438 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, arg); in dt3k_ai_cmdtest() 441 arg = cmd->convert_arg * cmd->scan_end_arg; in dt3k_ai_cmdtest() 472 divider = dt3k_ns_to_timer(50, &cmd->convert_arg, cmd->flags); in dt3k_ai_cmd()
|
D | adl_pci9111.c | 278 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, in pci9111_ai_do_cmd_test() 281 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, 0); in pci9111_ai_do_cmd_test() 305 arg = cmd->convert_arg; in pci9111_ai_do_cmd_test() 307 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, arg); in pci9111_ai_do_cmd_test() 315 arg = cmd->chanlist_len * cmd->convert_arg; in pci9111_ai_do_cmd_test() 371 (cmd->convert_arg * cmd->chanlist_len)) - 1; in pci9111_ai_do_cmd()
|
D | ni_atmio16d.c | 271 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, 10000); in atmio16d_ai_cmdtest() 328 if (cmd->convert_arg < 65536000) { in atmio16d_ai_cmd() 330 timer = cmd->convert_arg / 1000; in atmio16d_ai_cmd() 331 } else if (cmd->convert_arg < 655360000) { in atmio16d_ai_cmd() 333 timer = cmd->convert_arg / 10000; in atmio16d_ai_cmd() 336 timer = cmd->convert_arg / 100000; in atmio16d_ai_cmd()
|
D | me4000.c | 613 if (cmd->convert_arg) { in me4000_ai_round_cmd_args() 614 devpriv->ai_chan_ticks = (cmd->convert_arg * 33) / 1000; in me4000_ai_round_cmd_args() 615 rest = (cmd->convert_arg * 33) % 1000; in me4000_ai_round_cmd_args() 788 cmd->convert_arg = 2000; in me4000_ai_do_cmd_test() 814 cmd->convert_arg = 2000; /* 66 ticks at least */ in me4000_ai_do_cmd_test() 836 cmd->convert_arg = 2000; /* 66 ticks at least */ in me4000_ai_do_cmd_test() 850 cmd->convert_arg = 2000; /* 66 ticks at least */ in me4000_ai_do_cmd_test() 872 cmd->convert_arg = 2000; /* 66 ticks at least */ in me4000_ai_do_cmd_test() 886 cmd->convert_arg = 2000; /* 66 ticks at least */ in me4000_ai_do_cmd_test()
|
D | dt2811.c | 429 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, 12500); in dt2811_ai_cmdtest() 443 arg = cmd->convert_arg; in dt2811_ai_cmdtest() 445 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, arg); in dt2811_ai_cmdtest() 448 devpriv->ai_divisor = cmd->convert_arg; in dt2811_ai_cmdtest()
|
D | das1800.c | 547 unsigned int arg = cmd->convert_arg; in das1800_ai_fixup_paced_timing() 560 return comedi_check_trigger_arg_is(&cmd->convert_arg, arg); in das1800_ai_fixup_paced_timing() 566 unsigned int arg = cmd->convert_arg; in das1800_ai_fixup_burst_timing() 594 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, arg * 1000); in das1800_ai_fixup_burst_timing() 602 arg = cmd->convert_arg * cmd->chanlist_len; in das1800_ai_fixup_burst_timing() 683 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, in das1800_ai_cmdtest() 760 samples = ns / cmd->convert_arg; in das1800_ai_transfer_size() 914 outb(cmd->convert_arg / 1000 - 1, /* microseconds - 1 */ in das1800_ai_cmd()
|
D | ni_labpc_common.c | 290 return cmd->convert_arg; in labpc_ai_convert_period() 302 if (cmd->convert_arg > cmd->scan_begin_arg) in labpc_set_ai_convert_period() 303 cmd->convert_arg = cmd->scan_begin_arg; in labpc_set_ai_convert_period() 305 cmd->convert_arg = ns; in labpc_set_ai_convert_period() 556 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, in labpc_ai_cmdtest() 565 cmd->convert_arg * cmd->chanlist_len); in labpc_ai_cmdtest() 592 tmp = cmd->convert_arg; in labpc_ai_cmdtest() 596 if (tmp != cmd->convert_arg || tmp2 != cmd->scan_begin_arg) in labpc_ai_cmdtest()
|
D | s626.c | 1091 s626_dio_set_irq(dev, cmd->convert_arg); in s626_handle_dio_interrupt() 1099 if ((irqbit >> (cmd->convert_arg - (16 * group))) == 1 && in s626_handle_dio_interrupt() 1106 s626_dio_set_irq(dev, cmd->convert_arg); in s626_handle_dio_interrupt() 1750 tick = s626_ns_to_timer(&cmd->convert_arg, cmd->flags); in s626_ai_cmd() 1760 s626_dio_set_irq(dev, cmd->convert_arg); in s626_ai_cmd() 1838 err |= comedi_check_trigger_arg_max(&cmd->convert_arg, 39); in s626_ai_cmdtest() 1857 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, in s626_ai_cmdtest() 1859 err |= comedi_check_trigger_arg_max(&cmd->convert_arg, in s626_ai_cmdtest() 1888 arg = cmd->convert_arg; in s626_ai_cmdtest() 1890 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, arg); in s626_ai_cmdtest() [all …]
|
D | ni_tiocmd.c | 176 gate_source = cmd->convert_arg; in ni_tio_cmd_setup() 312 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, 0); in ni_tio_cmdtest() 314 err |= ni_check_trigger_arg(CR_CHAN(cmd->convert_arg), in ni_tio_cmdtest()
|
D | quatech_daqp_cs.c | 420 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, in daqp_ai_cmdtest() 430 arg = cmd->convert_arg * cmd->scan_end_arg; in daqp_ai_cmdtest() 447 arg = cmd->convert_arg; in daqp_ai_cmdtest() 449 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, arg); in daqp_ai_cmdtest()
|
D | pcl816.c | 368 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, 10000); in pcl816_ai_cmdtest() 370 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, 0); in pcl816_ai_cmdtest() 385 unsigned int arg = cmd->convert_arg; in pcl816_ai_cmdtest() 388 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, arg); in pcl816_ai_cmdtest()
|
D | das16m1.c | 204 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, 1000); in das16m1_ai_cmdtest() 220 unsigned int arg = cmd->convert_arg; in das16m1_ai_cmdtest() 223 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, arg); in das16m1_ai_cmdtest()
|
D | das16.c | 649 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, in das16_cmd_test() 668 arg = cmd->convert_arg; in das16_cmd_test() 670 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, arg); in das16_cmd_test() 720 cmd->convert_arg = das16_set_pacer(dev, cmd->convert_arg, cmd->flags); in das16_cmd_exec()
|
D | dt282x.c | 665 err |= comedi_check_trigger_arg_max(&cmd->convert_arg, DT2821_OSC_MAX); in dt282x_ai_cmdtest() 666 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, board->ai_speed); in dt282x_ai_cmdtest() 680 arg = cmd->convert_arg; in dt282x_ai_cmdtest() 682 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, arg); in dt282x_ai_cmdtest() 829 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, 0); in dt282x_ao_cmdtest()
|
D | das800.c | 328 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, in das800_ai_do_cmdtest() 347 unsigned int arg = cmd->convert_arg; in das800_ai_do_cmdtest() 350 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, arg); in das800_ai_do_cmdtest()
|
D | das6402.c | 320 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, 10000); in das6402_ai_cmdtest() 335 arg = cmd->convert_arg; in das6402_ai_cmdtest() 337 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, arg); in das6402_ai_cmdtest()
|
D | adv_pci1710.c | 598 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, 10000); in pci1710_ai_cmdtest() 600 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, 0); in pci1710_ai_cmdtest() 616 unsigned int arg = cmd->convert_arg; in pci1710_ai_cmdtest() 619 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, arg); in pci1710_ai_cmdtest()
|
D | pcl818.c | 668 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, in ai_cmdtest() 671 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, 0); in ai_cmdtest() 688 unsigned int arg = cmd->convert_arg; in ai_cmdtest() 691 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, arg); in ai_cmdtest()
|
D | pcl812.c | 671 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, in pcl812_ai_cmdtest() 674 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, 0); in pcl812_ai_cmdtest() 692 unsigned int arg = cmd->convert_arg; in pcl812_ai_cmdtest() 695 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, arg); in pcl812_ai_cmdtest()
|
D | ni_mio_common.c | 2071 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, in ni_ai_cmdtest() 2074 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, in ni_ai_cmdtest() 2076 err |= comedi_check_trigger_arg_max(&cmd->convert_arg, in ni_ai_cmdtest() 2082 err |= ni_check_trigger_arg_roffs(CR_CHAN(cmd->convert_arg), in ni_ai_cmdtest() 2086 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, 0); in ni_ai_cmdtest() 2121 unsigned int tmp = cmd->convert_arg; in ni_ai_cmdtest() 2123 cmd->convert_arg = in ni_ai_cmdtest() 2125 cmd->convert_arg, in ni_ai_cmdtest() 2127 if (tmp != cmd->convert_arg) in ni_ai_cmdtest() 2131 cmd->convert_arg * cmd->scan_end_arg) { in ni_ai_cmdtest() [all …]
|