Home
last modified time | relevance | path

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

123

/drivers/comedi/drivers/
Ddmm32at.c294 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()
Drtd520.c760 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 …]
Damplc_pci230.c1388 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 …]
Dcomedi_test.c285 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()
Dadl_pci9118.c992 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 …]
Ddt3000.c410 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()
Dadl_pci9111.c278 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()
Dni_atmio16d.c271 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()
Dme4000.c613 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()
Ddt2811.c429 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()
Ddas1800.c547 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()
Dni_labpc_common.c290 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()
Ds626.c1091 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 …]
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.c420 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()
Dpcl816.c368 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()
Ddas16m1.c204 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()
Ddas16.c649 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()
Ddt282x.c665 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()
Ddas800.c328 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()
Ddas6402.c320 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()
Dadv_pci1710.c598 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()
Dpcl818.c668 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()
Dpcl812.c671 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()
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