Home
last modified time | relevance | path

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

123

/Linux-v4.19/drivers/staging/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()
Dni_atmio16d.c277 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, 10000); in atmio16d_ai_cmdtest()
279 err |= comedi_check_trigger_arg_max(&cmd->convert_arg, SLOWEST_TIMER); in atmio16d_ai_cmdtest()
338 if (cmd->convert_arg < 65536000) { in atmio16d_ai_cmd()
340 timer = cmd->convert_arg / 1000; in atmio16d_ai_cmd()
341 } else if (cmd->convert_arg < 655360000) { in atmio16d_ai_cmd()
343 timer = cmd->convert_arg / 10000; in atmio16d_ai_cmd()
346 timer = cmd->convert_arg / 100000; in atmio16d_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()
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()
473 divider = dt3k_ns_to_timer(50, &cmd->convert_arg, cmd->flags); in dt3k_ai_cmd()
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 …]
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()
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()
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 * in labpc_ai_cmdtest()
593 tmp = cmd->convert_arg; in labpc_ai_cmdtest()
597 if (tmp != cmd->convert_arg || tmp2 != cmd->scan_begin_arg) in labpc_ai_cmdtest()
Ds626.c1093 s626_dio_set_irq(dev, cmd->convert_arg); in s626_handle_dio_interrupt()
1101 if ((irqbit >> (cmd->convert_arg - (16 * group))) == 1 && in s626_handle_dio_interrupt()
1108 s626_dio_set_irq(dev, cmd->convert_arg); in s626_handle_dio_interrupt()
1752 tick = s626_ns_to_timer(&cmd->convert_arg, cmd->flags); in s626_ai_cmd()
1762 s626_dio_set_irq(dev, cmd->convert_arg); in s626_ai_cmd()
1840 err |= comedi_check_trigger_arg_max(&cmd->convert_arg, 39); in s626_ai_cmdtest()
1859 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, in s626_ai_cmdtest()
1861 err |= comedi_check_trigger_arg_max(&cmd->convert_arg, in s626_ai_cmdtest()
1890 arg = cmd->convert_arg; in s626_ai_cmdtest()
1892 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, arg); in s626_ai_cmdtest()
[all …]
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.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()
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()
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()
Dni_tiocmd.c160 gate_source = cmd->convert_arg; in ni_tio_cmd_setup()
257 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, 0); in ni_tio_cmdtest()
Ddt282x.c692 err |= comedi_check_trigger_arg_max(&cmd->convert_arg, DT2821_OSC_MAX); in dt282x_ai_cmdtest()
693 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, board->ai_speed); in dt282x_ai_cmdtest()
707 arg = cmd->convert_arg; in dt282x_ai_cmdtest()
709 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, arg); in dt282x_ai_cmdtest()
856 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, 0); in dt282x_ao_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()
Dni_mio_common.c2079 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, in ni_ai_cmdtest()
2082 err |= comedi_check_trigger_arg_min(&cmd->convert_arg, in ni_ai_cmdtest()
2084 err |= comedi_check_trigger_arg_max(&cmd->convert_arg, in ni_ai_cmdtest()
2090 unsigned int tmp = CR_CHAN(cmd->convert_arg); in ni_ai_cmdtest()
2094 tmp |= (cmd->convert_arg & (CR_ALT_FILTER | CR_INVERT)); in ni_ai_cmdtest()
2095 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, tmp); in ni_ai_cmdtest()
2097 err |= comedi_check_trigger_arg_is(&cmd->convert_arg, 0); in ni_ai_cmdtest()
2131 tmp = cmd->convert_arg; in ni_ai_cmdtest()
2132 cmd->convert_arg = in ni_ai_cmdtest()
2134 cmd->convert_arg, in ni_ai_cmdtest()
[all …]
/Linux-v4.19/drivers/staging/comedi/
Dcomedi_compat32.c55 unsigned int convert_arg; member
185 err |= __get_user(temp.uint, &cmd32->convert_arg); in get_compat_cmd()
186 err |= __put_user(temp.uint, &cmd->convert_arg); in get_compat_cmd()
239 err |= __get_user(temp, &cmd->convert_arg); in put_compat_cmd()
240 err |= __put_user(temp, &cmd32->convert_arg); in put_compat_cmd()
/Linux-v4.19/fs/notify/dnotify/
Ddnotify.c198 static __u32 convert_arg(unsigned long arg) in convert_arg() function
306 mask = convert_arg(arg); in fcntl_dirnotify()

123