Home
last modified time | relevance | path

Searched refs:convert_arg (Results 1 – 25 of 50) sorted by relevance

12

/drivers/staging/comedi/drivers/
Ddmm32at.c301 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()
Drtd520.c769 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 …]
Damplc_pci230.c1382 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 …]
Ddas1800.c680 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 …]
Dcomedi_test.c266 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()
Dni_atmio16d.c270 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()
Dadl_pci9118.c990 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 …]
Ddt3000.c419 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()
Dadl_pci9111.c287 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()
Dme4000.c622 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()
Dni_labpc_common.c297 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()
Dquatech_daqp_cs.c419 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()
Dpcl816.c367 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()
Ddt282x.c691 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()
Ds626.c1371 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 …]
Ddas16.c654 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()
Ddas16m1.c213 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()
Ddas6402.c327 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()
Dni_mio_common.c2148 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 …]
Ddas800.c337 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()
Dpcl818.c667 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()
Dpcl812.c670 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()
Dni_tiocmd.c176 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()
Dusbduxfast.c411 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/
Dcomedi_compat32.c64 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()

12