/drivers/staging/comedi/drivers/ |
D | dmm32at.c | 301 if (cmd->convert_arg >= 17500) in dmm32at_ai_cmdtest() 302 cmd->convert_arg = 20000; in dmm32at_ai_cmdtest() 303 else if (cmd->convert_arg >= 12500) in dmm32at_ai_cmdtest() 304 cmd->convert_arg = 15000; in dmm32at_ai_cmdtest() 305 else if (cmd->convert_arg >= 7500) in dmm32at_ai_cmdtest() 306 cmd->convert_arg = 10000; in dmm32at_ai_cmdtest() 308 cmd->convert_arg = 5000; in dmm32at_ai_cmdtest() 323 arg = cmd->convert_arg * cmd->scan_end_arg; in dmm32at_ai_cmdtest()
|
D | rtd520.c | 769 if (comedi_check_trigger_arg_min(&cmd->convert_arg, in rtd_ai_cmdtest() 771 rtd_ns_to_timer(&cmd->convert_arg, in rtd_ai_cmdtest() 775 if (comedi_check_trigger_arg_max(&cmd->convert_arg, in rtd_ai_cmdtest() 777 rtd_ns_to_timer(&cmd->convert_arg, in rtd_ai_cmdtest() 782 if (comedi_check_trigger_arg_min(&cmd->convert_arg, in rtd_ai_cmdtest() 784 rtd_ns_to_timer(&cmd->convert_arg, in rtd_ai_cmdtest() 788 if (comedi_check_trigger_arg_max(&cmd->convert_arg, in rtd_ai_cmdtest() 790 rtd_ns_to_timer(&cmd->convert_arg, in rtd_ai_cmdtest() 798 err |= comedi_check_trigger_arg_max(&cmd->convert_arg, 9); in rtd_ai_cmdtest() 821 arg = cmd->convert_arg; in rtd_ai_cmdtest() [all …]
|
D | amplc_pci230.c | 1382 min_scan_period = chanlist_len * cmd->convert_arg; in pci230_ai_check_scan_period() 1384 min_scan_period < cmd->convert_arg) { in pci230_ai_check_scan_period() 1588 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, in pci230_ai_cmdtest() 1590 err |= comedi_check_trigger_arg_max(&cmd->convert_arg, in pci230_ai_cmdtest() 1601 if (cmd->convert_arg & CR_FLAGS_MASK) { in pci230_ai_cmdtest() 1603 if (cmd->convert_arg & ~CR_FLAGS_MASK) { in pci230_ai_cmdtest() 1604 cmd->convert_arg = COMBINE(cmd->convert_arg, 0, in pci230_ai_cmdtest() 1612 if ((cmd->convert_arg & CR_FLAGS_MASK & ~CR_INVERT) != in pci230_ai_cmdtest() 1615 cmd->convert_arg = in pci230_ai_cmdtest() 1626 err |= comedi_check_trigger_arg_max(&cmd->convert_arg, in pci230_ai_cmdtest() [all …]
|
D | das1800.c | 680 static unsigned int burst_convert_arg(unsigned int convert_arg, int flags) in burst_convert_arg() argument 685 if (convert_arg > 64000) in burst_convert_arg() 686 convert_arg = 64000; in burst_convert_arg() 692 micro_sec = (convert_arg + 500) / 1000; in burst_convert_arg() 695 micro_sec = convert_arg / 1000; in burst_convert_arg() 698 micro_sec = (convert_arg - 1) / 1000 + 1; in burst_convert_arg() 770 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, in das1800_ai_do_cmdtest() 797 arg = cmd->convert_arg; in das1800_ai_do_cmdtest() 799 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, arg); in das1800_ai_do_cmdtest() 802 arg = burst_convert_arg(cmd->convert_arg, cmd->flags); in das1800_ai_do_cmdtest() [all …]
|
D | comedi_test.c | 266 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, 0); in waveform_ai_cmdtest() 269 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, in waveform_ai_cmdtest() 297 arg = cmd->convert_arg; in waveform_ai_cmdtest() 307 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, arg); in waveform_ai_cmdtest() 318 arg = max(arg, cmd->convert_arg * cmd->scan_end_arg); in waveform_ai_cmdtest() 346 devpriv->ai_convert_period = cmd->convert_arg / NSEC_PER_USEC; in waveform_ai_cmd() 539 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, 0); in waveform_ao_cmdtest()
|
D | ni_atmio16d.c | 270 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, 10000); in atmio16d_ai_cmdtest() 272 err |= comedi_check_trigger_arg_max(&cmd->convert_arg, SLOWEST_TIMER); 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 | adl_pci9118.c | 990 if (cmd->convert_arg < devpriv->ai_ns_min) in pci9118_ai_cmd() 991 cmd->convert_arg = devpriv->ai_ns_min; in pci9118_ai_cmd() 992 addchans = devpriv->softsshdelay / cmd->convert_arg; in pci9118_ai_cmd() 993 if (devpriv->softsshdelay % cmd->convert_arg) in pci9118_ai_cmd() 1039 comedi_8254_cascade_ns_to_timer(pacer, &cmd->convert_arg, in pci9118_ai_cmd() 1074 &cmd->scan_begin_arg, &cmd->convert_arg, in pci9118_ai_cmd() 1215 cmd->convert_arg = cmd->scan_begin_arg; in pci9118_ai_cmdtest() 1234 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, in pci9118_ai_cmdtest() 1239 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, 0); in pci9118_ai_cmdtest() 1269 arg = cmd->convert_arg; in pci9118_ai_cmdtest() [all …]
|
D | dt3000.c | 419 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, in dt3k_ai_cmdtest() 421 err |= comedi_check_trigger_arg_max(&cmd->convert_arg, in dt3k_ai_cmdtest() 445 arg = cmd->convert_arg; in dt3k_ai_cmdtest() 447 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, arg); in dt3k_ai_cmdtest() 450 arg = cmd->convert_arg * cmd->scan_end_arg; in dt3k_ai_cmdtest() 482 divider = dt3k_ns_to_timer(50, &cmd->convert_arg, cmd->flags); in dt3k_ai_cmd()
|
D | adl_pci9111.c | 287 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, in pci9111_ai_do_cmd_test() 290 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, 0); in pci9111_ai_do_cmd_test() 314 arg = cmd->convert_arg; in pci9111_ai_do_cmd_test() 316 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, arg); in pci9111_ai_do_cmd_test() 324 arg = cmd->chanlist_len * cmd->convert_arg; in pci9111_ai_do_cmd_test() 380 (cmd->convert_arg * cmd->chanlist_len)) - 1; in pci9111_ai_do_cmd()
|
D | me4000.c | 622 if (cmd->convert_arg) { in me4000_ai_round_cmd_args() 623 devpriv->ai_chan_ticks = (cmd->convert_arg * 33) / 1000; in me4000_ai_round_cmd_args() 624 rest = (cmd->convert_arg * 33) % 1000; in me4000_ai_round_cmd_args() 797 cmd->convert_arg = 2000; in me4000_ai_do_cmd_test() 823 cmd->convert_arg = 2000; /* 66 ticks at least */ in me4000_ai_do_cmd_test() 845 cmd->convert_arg = 2000; /* 66 ticks at least */ in me4000_ai_do_cmd_test() 859 cmd->convert_arg = 2000; /* 66 ticks at least */ in me4000_ai_do_cmd_test() 881 cmd->convert_arg = 2000; /* 66 ticks at least */ in me4000_ai_do_cmd_test() 895 cmd->convert_arg = 2000; /* 66 ticks at least */ in me4000_ai_do_cmd_test()
|
D | ni_labpc_common.c | 297 return cmd->convert_arg; in labpc_ai_convert_period() 309 if (cmd->convert_arg > cmd->scan_begin_arg) in labpc_set_ai_convert_period() 310 cmd->convert_arg = cmd->scan_begin_arg; in labpc_set_ai_convert_period() 312 cmd->convert_arg = ns; in labpc_set_ai_convert_period() 563 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, in labpc_ai_cmdtest() 572 cmd->convert_arg * in labpc_ai_cmdtest() 600 tmp = cmd->convert_arg; in labpc_ai_cmdtest() 604 if (tmp != cmd->convert_arg || tmp2 != cmd->scan_begin_arg) in labpc_ai_cmdtest()
|
D | quatech_daqp_cs.c | 419 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, in daqp_ai_cmdtest() 429 arg = cmd->convert_arg * cmd->scan_end_arg; in daqp_ai_cmdtest() 446 arg = cmd->convert_arg; in daqp_ai_cmdtest() 448 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, arg); in daqp_ai_cmdtest()
|
D | pcl816.c | 367 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, 10000); in pcl816_ai_cmdtest() 369 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, 0); in pcl816_ai_cmdtest() 384 unsigned int arg = cmd->convert_arg; in pcl816_ai_cmdtest() 387 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, arg); in pcl816_ai_cmdtest()
|
D | dt282x.c | 691 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, 4000); in dt282x_ai_cmdtest() 694 err |= comedi_check_trigger_arg_max(&cmd->convert_arg, SLOWEST_TIMER); in dt282x_ai_cmdtest() 695 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, board->ai_speed); in dt282x_ai_cmdtest() 709 arg = cmd->convert_arg; in dt282x_ai_cmdtest() 711 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, arg); in dt282x_ai_cmdtest() 858 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, 0); in dt282x_ao_cmdtest()
|
D | s626.c | 1371 s626_dio_set_irq(dev, cmd->convert_arg); in s626_handle_dio_interrupt() 1379 if ((irqbit >> (cmd->convert_arg - (16 * group))) == 1 && in s626_handle_dio_interrupt() 1386 s626_dio_set_irq(dev, cmd->convert_arg); in s626_handle_dio_interrupt() 2068 tick = s626_ns_to_timer(&cmd->convert_arg, cmd->flags); in s626_ai_cmd() 2078 s626_dio_set_irq(dev, cmd->convert_arg); in s626_ai_cmd() 2156 err |= comedi_check_trigger_arg_max(&cmd->convert_arg, 39); in s626_ai_cmdtest() 2175 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, in s626_ai_cmdtest() 2177 err |= comedi_check_trigger_arg_max(&cmd->convert_arg, in s626_ai_cmdtest() 2206 arg = cmd->convert_arg; in s626_ai_cmdtest() 2208 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, arg); in s626_ai_cmdtest() [all …]
|
D | das16.c | 654 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, in das16_cmd_test() 673 arg = cmd->convert_arg; in das16_cmd_test() 675 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, arg); in das16_cmd_test() 725 cmd->convert_arg = das16_set_pacer(dev, cmd->convert_arg, cmd->flags); in das16_cmd_exec()
|
D | das16m1.c | 213 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, 1000); in das16m1_cmd_test() 229 unsigned int arg = cmd->convert_arg; in das16m1_cmd_test() 232 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, arg); in das16m1_cmd_test()
|
D | das6402.c | 327 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, 10000); in das6402_ai_cmdtest() 342 arg = cmd->convert_arg; in das6402_ai_cmdtest() 344 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, arg); in das6402_ai_cmdtest()
|
D | ni_mio_common.c | 2148 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, in ni_ai_cmdtest() 2151 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, in ni_ai_cmdtest() 2153 err |= comedi_check_trigger_arg_max(&cmd->convert_arg, in ni_ai_cmdtest() 2159 unsigned int tmp = CR_CHAN(cmd->convert_arg); in ni_ai_cmdtest() 2163 tmp |= (cmd->convert_arg & (CR_ALT_FILTER | CR_INVERT)); in ni_ai_cmdtest() 2164 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, tmp); in ni_ai_cmdtest() 2166 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, 0); in ni_ai_cmdtest() 2200 tmp = cmd->convert_arg; in ni_ai_cmdtest() 2201 cmd->convert_arg = in ni_ai_cmdtest() 2203 cmd->convert_arg, in ni_ai_cmdtest() [all …]
|
D | das800.c | 337 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, in das800_ai_do_cmdtest() 356 unsigned int arg = cmd->convert_arg; in das800_ai_do_cmdtest() 359 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, arg); in das800_ai_do_cmdtest()
|
D | pcl818.c | 667 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, in ai_cmdtest() 670 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, 0); in ai_cmdtest() 687 unsigned int arg = cmd->convert_arg; in ai_cmdtest() 690 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, arg); in ai_cmdtest()
|
D | pcl812.c | 670 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, in pcl812_ai_cmdtest() 673 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, 0); in pcl812_ai_cmdtest() 691 unsigned int arg = cmd->convert_arg; in pcl812_ai_cmdtest() 694 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, arg); in pcl812_ai_cmdtest()
|
D | ni_tiocmd.c | 176 gate_source = cmd->convert_arg; in ni_tio_cmd_setup() 273 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, 0); in ni_tio_cmdtest()
|
D | usbduxfast.c | 411 steps = (cmd->convert_arg * 30) / 1000; in usbduxfast_ai_cmdtest() 421 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, arg); in usbduxfast_ai_cmdtest() 494 steps = (cmd->convert_arg * 30) / 1000; in usbduxfast_ai_cmd()
|
/drivers/staging/comedi/ |
D | comedi_compat32.c | 64 unsigned int convert_arg; member 194 err |= __get_user(temp.uint, &cmd32->convert_arg); in get_compat_cmd() 195 err |= __put_user(temp.uint, &cmd->convert_arg); in get_compat_cmd() 248 err |= __get_user(temp, &cmd->convert_arg); in put_compat_cmd() 249 err |= __put_user(temp, &cmd32->convert_arg); in put_compat_cmd()
|