Home
last modified time | relevance | path

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

123

/drivers/comedi/drivers/
Ddmm32at.c293 if (cmd->convert_arg >= 17500) in dmm32at_ai_cmdtest()
294 cmd->convert_arg = 20000; in dmm32at_ai_cmdtest()
295 else if (cmd->convert_arg >= 12500) in dmm32at_ai_cmdtest()
296 cmd->convert_arg = 15000; in dmm32at_ai_cmdtest()
297 else if (cmd->convert_arg >= 7500) in dmm32at_ai_cmdtest()
298 cmd->convert_arg = 10000; in dmm32at_ai_cmdtest()
300 cmd->convert_arg = 5000; in dmm32at_ai_cmdtest()
315 arg = cmd->convert_arg * cmd->scan_end_arg; in dmm32at_ai_cmdtest()
Drtd520.c759 if (comedi_check_trigger_arg_min(&cmd->convert_arg, in rtd_ai_cmdtest()
761 rtd_ns_to_timer(&cmd->convert_arg, in rtd_ai_cmdtest()
765 if (comedi_check_trigger_arg_max(&cmd->convert_arg, in rtd_ai_cmdtest()
767 rtd_ns_to_timer(&cmd->convert_arg, in rtd_ai_cmdtest()
772 if (comedi_check_trigger_arg_min(&cmd->convert_arg, in rtd_ai_cmdtest()
774 rtd_ns_to_timer(&cmd->convert_arg, in rtd_ai_cmdtest()
778 if (comedi_check_trigger_arg_max(&cmd->convert_arg, in rtd_ai_cmdtest()
780 rtd_ns_to_timer(&cmd->convert_arg, in rtd_ai_cmdtest()
788 err |= comedi_check_trigger_arg_max(&cmd->convert_arg, 9); in rtd_ai_cmdtest()
811 arg = cmd->convert_arg; in rtd_ai_cmdtest()
[all …]
Damplc_pci230.c1386 min_scan_period = chanlist_len * cmd->convert_arg; in pci230_ai_check_scan_period()
1388 min_scan_period < cmd->convert_arg) { in pci230_ai_check_scan_period()
1592 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, in pci230_ai_cmdtest()
1594 err |= comedi_check_trigger_arg_max(&cmd->convert_arg, in pci230_ai_cmdtest()
1605 if (cmd->convert_arg & CR_FLAGS_MASK) { in pci230_ai_cmdtest()
1607 if (cmd->convert_arg & ~CR_FLAGS_MASK) { in pci230_ai_cmdtest()
1608 cmd->convert_arg = COMBINE(cmd->convert_arg, 0, in pci230_ai_cmdtest()
1616 if ((cmd->convert_arg & CR_FLAGS_MASK & ~CR_INVERT) != in pci230_ai_cmdtest()
1619 cmd->convert_arg = in pci230_ai_cmdtest()
1630 err |= comedi_check_trigger_arg_max(&cmd->convert_arg, in pci230_ai_cmdtest()
[all …]
Dadl_pci9118.c991 if (cmd->convert_arg < devpriv->ai_ns_min) in pci9118_ai_cmd()
992 cmd->convert_arg = devpriv->ai_ns_min; in pci9118_ai_cmd()
993 addchans = devpriv->softsshdelay / cmd->convert_arg; in pci9118_ai_cmd()
994 if (devpriv->softsshdelay % cmd->convert_arg) in pci9118_ai_cmd()
1040 comedi_8254_cascade_ns_to_timer(pacer, &cmd->convert_arg, in pci9118_ai_cmd()
1075 &cmd->scan_begin_arg, &cmd->convert_arg, in pci9118_ai_cmd()
1216 cmd->convert_arg = cmd->scan_begin_arg; in pci9118_ai_cmdtest()
1235 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, in pci9118_ai_cmdtest()
1240 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, 0); in pci9118_ai_cmdtest()
1270 arg = cmd->convert_arg; in pci9118_ai_cmdtest()
[all …]
Dadl_pci9111.c277 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, in pci9111_ai_do_cmd_test()
280 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, 0); in pci9111_ai_do_cmd_test()
304 arg = cmd->convert_arg; in pci9111_ai_do_cmd_test()
306 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, arg); in pci9111_ai_do_cmd_test()
314 arg = cmd->chanlist_len * cmd->convert_arg; in pci9111_ai_do_cmd_test()
370 (cmd->convert_arg * cmd->chanlist_len)) - 1; in pci9111_ai_do_cmd()
Ddt3000.c409 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, in dt3k_ai_cmdtest()
411 err |= comedi_check_trigger_arg_max(&cmd->convert_arg, in dt3k_ai_cmdtest()
435 arg = cmd->convert_arg; in dt3k_ai_cmdtest()
437 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, arg); in dt3k_ai_cmdtest()
440 arg = cmd->convert_arg * cmd->scan_end_arg; in dt3k_ai_cmdtest()
471 divider = dt3k_ns_to_timer(50, &cmd->convert_arg, cmd->flags); in dt3k_ai_cmd()
Dcomedi_test.c291 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, 0); in waveform_ai_cmdtest()
294 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, in waveform_ai_cmdtest()
322 arg = cmd->convert_arg; in waveform_ai_cmdtest()
332 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, arg); in waveform_ai_cmdtest()
343 arg = max(arg, cmd->convert_arg * cmd->scan_end_arg); in waveform_ai_cmdtest()
371 devpriv->ai_convert_period = cmd->convert_arg / NSEC_PER_USEC; in waveform_ai_cmd()
577 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()
327 if (cmd->convert_arg < 65536000) { in atmio16d_ai_cmd()
329 timer = cmd->convert_arg / 1000; in atmio16d_ai_cmd()
330 } else if (cmd->convert_arg < 655360000) { in atmio16d_ai_cmd()
332 timer = cmd->convert_arg / 10000; in atmio16d_ai_cmd()
335 timer = cmd->convert_arg / 100000; in atmio16d_ai_cmd()
Dme4000.c612 if (cmd->convert_arg) { in me4000_ai_round_cmd_args()
613 devpriv->ai_chan_ticks = (cmd->convert_arg * 33) / 1000; in me4000_ai_round_cmd_args()
614 rest = (cmd->convert_arg * 33) % 1000; in me4000_ai_round_cmd_args()
787 cmd->convert_arg = 2000; in me4000_ai_do_cmd_test()
813 cmd->convert_arg = 2000; /* 66 ticks at least */ in me4000_ai_do_cmd_test()
835 cmd->convert_arg = 2000; /* 66 ticks at least */ in me4000_ai_do_cmd_test()
849 cmd->convert_arg = 2000; /* 66 ticks at least */ in me4000_ai_do_cmd_test()
871 cmd->convert_arg = 2000; /* 66 ticks at least */ in me4000_ai_do_cmd_test()
885 cmd->convert_arg = 2000; /* 66 ticks at least */ in me4000_ai_do_cmd_test()
Ddt2811.c428 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, 12500); in dt2811_ai_cmdtest()
442 arg = cmd->convert_arg; in dt2811_ai_cmdtest()
444 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, arg); in dt2811_ai_cmdtest()
447 devpriv->ai_divisor = cmd->convert_arg; in dt2811_ai_cmdtest()
Ddas1800.c545 unsigned int arg = cmd->convert_arg; in das1800_ai_fixup_paced_timing()
558 return comedi_check_trigger_arg_is(&cmd->convert_arg, arg); in das1800_ai_fixup_paced_timing()
564 unsigned int arg = cmd->convert_arg; in das1800_ai_fixup_burst_timing()
592 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, arg * 1000); in das1800_ai_fixup_burst_timing()
600 arg = cmd->convert_arg * cmd->chanlist_len; in das1800_ai_fixup_burst_timing()
681 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, in das1800_ai_cmdtest()
758 samples = ns / cmd->convert_arg; in das1800_ai_transfer_size()
912 outb(cmd->convert_arg / 1000 - 1, /* microseconds - 1 */ in das1800_ai_cmd()
Dni_labpc_common.c289 return cmd->convert_arg; in labpc_ai_convert_period()
301 if (cmd->convert_arg > cmd->scan_begin_arg) in labpc_set_ai_convert_period()
302 cmd->convert_arg = cmd->scan_begin_arg; in labpc_set_ai_convert_period()
304 cmd->convert_arg = ns; in labpc_set_ai_convert_period()
555 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, in labpc_ai_cmdtest()
564 cmd->convert_arg * cmd->chanlist_len); in labpc_ai_cmdtest()
591 tmp = cmd->convert_arg; in labpc_ai_cmdtest()
595 if (tmp != cmd->convert_arg || tmp2 != cmd->scan_begin_arg) in labpc_ai_cmdtest()
Ds626.c1090 s626_dio_set_irq(dev, cmd->convert_arg); in s626_handle_dio_interrupt()
1098 if ((irqbit >> (cmd->convert_arg - (16 * group))) == 1 && in s626_handle_dio_interrupt()
1105 s626_dio_set_irq(dev, cmd->convert_arg); in s626_handle_dio_interrupt()
1749 tick = s626_ns_to_timer(&cmd->convert_arg, cmd->flags); in s626_ai_cmd()
1759 s626_dio_set_irq(dev, cmd->convert_arg); in s626_ai_cmd()
1837 err |= comedi_check_trigger_arg_max(&cmd->convert_arg, 39); in s626_ai_cmdtest()
1856 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, in s626_ai_cmdtest()
1858 err |= comedi_check_trigger_arg_max(&cmd->convert_arg, in s626_ai_cmdtest()
1887 arg = cmd->convert_arg; in s626_ai_cmdtest()
1889 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, arg); in s626_ai_cmdtest()
[all …]
Dni_tiocmd.c176 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()
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.c366 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, 10000); in pcl816_ai_cmdtest()
368 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, 0); in pcl816_ai_cmdtest()
383 unsigned int arg = cmd->convert_arg; in pcl816_ai_cmdtest()
386 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, arg); in pcl816_ai_cmdtest()
Ddas16m1.c203 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, 1000); in das16m1_ai_cmdtest()
219 unsigned int arg = cmd->convert_arg; in das16m1_ai_cmdtest()
222 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, arg); in das16m1_ai_cmdtest()
Ddt282x.c663 err |= comedi_check_trigger_arg_max(&cmd->convert_arg, DT2821_OSC_MAX); in dt282x_ai_cmdtest()
664 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, board->ai_speed); in dt282x_ai_cmdtest()
678 arg = cmd->convert_arg; in dt282x_ai_cmdtest()
680 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, arg); in dt282x_ai_cmdtest()
827 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, 0); in dt282x_ao_cmdtest()
Ddas16.c647 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, in das16_cmd_test()
666 arg = cmd->convert_arg; in das16_cmd_test()
668 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, arg); in das16_cmd_test()
718 cmd->convert_arg = das16_set_pacer(dev, cmd->convert_arg, cmd->flags); in das16_cmd_exec()
Ddas6402.c318 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, 10000); in das6402_ai_cmdtest()
333 arg = cmd->convert_arg; in das6402_ai_cmdtest()
335 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, arg); in das6402_ai_cmdtest()
Ddas800.c326 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, in das800_ai_do_cmdtest()
345 unsigned int arg = cmd->convert_arg; in das800_ai_do_cmdtest()
348 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, arg); in das800_ai_do_cmdtest()
Dadv_pci1710.c597 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, 10000); in pci1710_ai_cmdtest()
599 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, 0); in pci1710_ai_cmdtest()
615 unsigned int arg = cmd->convert_arg; in pci1710_ai_cmdtest()
618 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, arg); in pci1710_ai_cmdtest()
Dpcl818.c666 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, in ai_cmdtest()
669 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, 0); in ai_cmdtest()
686 unsigned int arg = cmd->convert_arg; in ai_cmdtest()
689 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, arg); in ai_cmdtest()
Dpcl812.c669 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, in pcl812_ai_cmdtest()
672 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, 0); in pcl812_ai_cmdtest()
690 unsigned int arg = cmd->convert_arg; in pcl812_ai_cmdtest()
693 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, arg); in pcl812_ai_cmdtest()
Dni_mio_common.c2071 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 …]

123