/drivers/comedi/drivers/ |
D | amplc_pci230.c | 943 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in pci230_ao_cmdtest() 945 err |= comedi_check_trigger_arg_max(&cmd->scan_begin_arg, in pci230_ao_cmdtest() 953 if (cmd->scan_begin_arg & ~CR_FLAGS_MASK) { in pci230_ao_cmdtest() 954 cmd->scan_begin_arg = COMBINE(cmd->scan_begin_arg, 0, in pci230_ao_cmdtest() 962 if (cmd->scan_begin_arg & CR_FLAGS_MASK & in pci230_ao_cmdtest() 964 cmd->scan_begin_arg = in pci230_ao_cmdtest() 965 COMBINE(cmd->scan_begin_arg, 0, in pci230_ao_cmdtest() 971 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, 0); in pci230_ao_cmdtest() 989 tmp = cmd->scan_begin_arg; in pci230_ao_cmdtest() 990 pci230_ns_to_single_timer(&cmd->scan_begin_arg, cmd->flags); in pci230_ao_cmdtest() [all …]
|
D | rtd520.c | 725 if (comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in rtd_ai_cmdtest() 727 rtd_ns_to_timer(&cmd->scan_begin_arg, in rtd_ai_cmdtest() 731 if (comedi_check_trigger_arg_max(&cmd->scan_begin_arg, in rtd_ai_cmdtest() 733 rtd_ns_to_timer(&cmd->scan_begin_arg, in rtd_ai_cmdtest() 738 if (comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in rtd_ai_cmdtest() 740 rtd_ns_to_timer(&cmd->scan_begin_arg, in rtd_ai_cmdtest() 744 if (comedi_check_trigger_arg_max(&cmd->scan_begin_arg, in rtd_ai_cmdtest() 746 rtd_ns_to_timer(&cmd->scan_begin_arg, in rtd_ai_cmdtest() 755 err |= comedi_check_trigger_arg_max(&cmd->scan_begin_arg, 9); in rtd_ai_cmdtest() 806 arg = cmd->scan_begin_arg; in rtd_ai_cmdtest() [all …]
|
D | comedi_test.c | 294 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, 0); in waveform_ai_cmdtest() 296 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in waveform_ai_cmdtest() 320 if (cmd->scan_begin_arg == TRIG_TIMER) { in waveform_ai_cmdtest() 331 arg = cmd->scan_begin_arg; in waveform_ai_cmdtest() 339 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, arg); in waveform_ai_cmdtest() 371 devpriv->ai_scan_period = cmd->scan_begin_arg / NSEC_PER_USEC; in waveform_ai_cmd() 556 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in waveform_ao_cmdtest() 573 arg = cmd->scan_begin_arg; in waveform_ao_cmdtest() 576 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, arg); in waveform_ao_cmdtest() 596 devpriv->ao_scan_period = cmd->scan_begin_arg / NSEC_PER_USEC; in waveform_ao_cmd()
|
D | dt2814.c | 176 err |= comedi_check_trigger_arg_max(&cmd->scan_begin_arg, 1000000000); in dt2814_ai_cmdtest() 177 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in dt2814_ai_cmdtest() 193 arg = cmd->scan_begin_arg; in dt2814_ai_cmdtest() 195 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, arg); in dt2814_ai_cmdtest() 210 trigvar = dt2814_ns_to_timer(&cmd->scan_begin_arg, cmd->flags); in dt2814_ai_cmd()
|
D | amplc_pci224.c | 593 if (cmd->scan_begin_arg & CR_INVERT) in pci224_ao_handle_fifo() 730 err |= comedi_check_trigger_arg_max(&cmd->scan_begin_arg, in pci224_ao_cmdtest() 736 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, arg); in pci224_ao_cmdtest() 740 if (cmd->scan_begin_arg & ~CR_FLAGS_MASK) { in pci224_ao_cmdtest() 741 cmd->scan_begin_arg = in pci224_ao_cmdtest() 742 COMBINE(cmd->scan_begin_arg, 0, ~CR_FLAGS_MASK); in pci224_ao_cmdtest() 746 if (cmd->scan_begin_arg & CR_FLAGS_MASK & in pci224_ao_cmdtest() 748 cmd->scan_begin_arg = in pci224_ao_cmdtest() 749 COMBINE(cmd->scan_begin_arg, 0, in pci224_ao_cmdtest() 788 arg = cmd->scan_begin_arg; in pci224_ao_cmdtest() [all …]
|
D | dt3000.c | 403 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in dt3k_ai_cmdtest() 405 err |= comedi_check_trigger_arg_max(&cmd->scan_begin_arg, in dt3k_ai_cmdtest() 430 arg = cmd->scan_begin_arg; in dt3k_ai_cmdtest() 432 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, arg); in dt3k_ai_cmdtest() 443 &cmd->scan_begin_arg, arg); in dt3k_ai_cmdtest() 478 tscandiv = dt3k_ns_to_timer(100, &cmd->scan_begin_arg, in dt3k_ai_cmd()
|
D | adl_pci9111.c | 285 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in pci9111_ai_do_cmd_test() 288 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, 0); in pci9111_ai_do_cmd_test() 317 if (arg < cmd->scan_begin_arg) in pci9111_ai_do_cmd_test() 318 arg *= (cmd->scan_begin_arg / arg); in pci9111_ai_do_cmd_test() 320 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, arg); in pci9111_ai_do_cmd_test() 370 dev_private->scan_delay = (cmd->scan_begin_arg / in pci9111_ai_do_cmd()
|
D | usbduxsigma.c | 510 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in usbduxsigma_ai_cmdtest() 515 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in usbduxsigma_ai_cmdtest() 532 tmp = rounddown(cmd->scan_begin_arg, high_speed ? 125000 : 1000000); in usbduxsigma_ai_cmdtest() 533 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, tmp); in usbduxsigma_ai_cmdtest() 643 devpriv->ai_timer = cmd->scan_begin_arg / (125000 * interval); in usbduxsigma_ai_cmd() 647 devpriv->ai_timer = cmd->scan_begin_arg / 1000000; in usbduxsigma_ai_cmd() 868 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, 1000000); in usbduxsigma_ao_cmdtest() 883 tmp = rounddown(cmd->scan_begin_arg, 1000000); in usbduxsigma_ao_cmdtest() 884 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, tmp); in usbduxsigma_ao_cmdtest() 907 devpriv->ao_timer = cmd->scan_begin_arg / 1000000; in usbduxsigma_ao_cmd()
|
D | ni_labpc_common.c | 288 return cmd->scan_begin_arg; in labpc_ai_convert_period() 301 cmd->scan_begin_arg = ns; in labpc_set_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() 318 return cmd->scan_begin_arg; in labpc_ai_scan_period() 330 cmd->scan_begin_arg = ns; in labpc_set_ai_scan_period() 564 &cmd->scan_begin_arg, in labpc_ai_cmdtest() 568 &cmd->scan_begin_arg, in labpc_ai_cmdtest() 593 tmp2 = cmd->scan_begin_arg; in labpc_ai_cmdtest() 596 if (tmp != cmd->convert_arg || tmp2 != cmd->scan_begin_arg) in labpc_ai_cmdtest()
|
D | ni_atmio16d.c | 268 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, 0); in atmio16d_ai_cmdtest() 394 if (cmd->scan_begin_arg < 65536000) { in atmio16d_ai_cmd() 396 timer = cmd->scan_begin_arg / 1000; in atmio16d_ai_cmd() 397 } else if (cmd->scan_begin_arg < 655360000) { in atmio16d_ai_cmd() 399 timer = cmd->scan_begin_arg / 10000; in atmio16d_ai_cmd() 402 timer = cmd->scan_begin_arg / 100000; in atmio16d_ai_cmd()
|
D | ni_pcidio.c | 564 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in ni_pcidio_cmdtest() 570 if ((cmd->scan_begin_arg & ~(CR_EDGE | CR_INVERT)) != 0) { in ni_pcidio_cmdtest() 571 cmd->scan_begin_arg &= (CR_EDGE | CR_INVERT); in ni_pcidio_cmdtest() 591 arg = cmd->scan_begin_arg; in ni_pcidio_cmdtest() 593 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, arg); in ni_pcidio_cmdtest() 649 writel(ni_pcidio_ns_to_timer(&cmd->scan_begin_arg, in ni_pcidio_cmd() 671 if (!(cmd->scan_begin_arg & CR_INVERT)) /* Leading Edge */ in ni_pcidio_cmd()
|
D | pcl711.c | 305 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, 0); in pcl711_ai_cmdtest() 308 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in pcl711_ai_cmdtest() 327 unsigned int arg = cmd->scan_begin_arg; in pcl711_ai_cmdtest() 330 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, arg); in pcl711_ai_cmdtest()
|
D | ni_mio_common.c | 2055 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in ni_ai_cmdtest() 2057 err |= comedi_check_trigger_arg_max(&cmd->scan_begin_arg, in ni_ai_cmdtest() 2062 err |= ni_check_trigger_arg_roffs(CR_CHAN(cmd->scan_begin_arg), in ni_ai_cmdtest() 2066 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, 0); in ni_ai_cmdtest() 2110 unsigned int tmp = cmd->scan_begin_arg; in ni_ai_cmdtest() 2112 cmd->scan_begin_arg = in ni_ai_cmdtest() 2114 cmd->scan_begin_arg, in ni_ai_cmdtest() 2116 if (tmp != cmd->scan_begin_arg) in ni_ai_cmdtest() 2130 cmd->scan_begin_arg < in ni_ai_cmdtest() 2132 cmd->scan_begin_arg = in ni_ai_cmdtest() [all …]
|
D | dmm32at.c | 291 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, 1000000); in dmm32at_ai_cmdtest() 292 err |= comedi_check_trigger_arg_max(&cmd->scan_begin_arg, 1000000000); in dmm32at_ai_cmdtest() 317 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, arg); in dmm32at_ai_cmdtest() 385 dmm32at_setaitimer(dev, cmd->scan_begin_arg); in dmm32at_ai_cmd()
|
D | adl_pci9118.c | 1076 &cmd->scan_begin_arg, &cmd->convert_arg, in pci9118_ai_cmd() 1212 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, 0); in pci9118_ai_cmdtest() 1217 cmd->convert_arg = cmd->scan_begin_arg; in pci9118_ai_cmdtest() 1218 cmd->scan_begin_arg = 0; in pci9118_ai_cmdtest() 1222 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in pci9118_ai_cmdtest() 1227 if (cmd->scan_begin_arg) { in pci9118_ai_cmdtest() 1228 cmd->scan_begin_arg = 0; in pci9118_ai_cmdtest() 1265 arg = cmd->scan_begin_arg; in pci9118_ai_cmdtest() 1267 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, arg); in pci9118_ai_cmdtest() 1284 &cmd->scan_begin_arg, arg); in pci9118_ai_cmdtest()
|
D | usbdux.c | 539 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, 0); in usbdux_ai_cmdtest() 562 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in usbdux_ai_cmdtest() 565 arg = (cmd->scan_begin_arg / arg) * arg; in usbdux_ai_cmdtest() 566 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, arg); in usbdux_ai_cmdtest() 697 devpriv->ai_timer = cmd->scan_begin_arg / in usbdux_ai_cmd() 702 devpriv->ai_timer = cmd->scan_begin_arg / 1000000; in usbdux_ai_cmd() 922 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, 0); in usbdux_ao_cmdtest() 925 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in usbdux_ao_cmdtest() 967 devpriv->ao_timer = cmd->scan_begin_arg / 1000000; in usbdux_ao_cmd()
|
D | s626.c | 1081 s626_dio_set_irq(dev, cmd->scan_begin_arg); in s626_handle_dio_interrupt() 1083 if ((irqbit >> (cmd->scan_begin_arg - (16 * group))) == 1 && in s626_handle_dio_interrupt() 1223 s626_dio_set_irq(dev, cmd->scan_begin_arg); in s626_handle_eos_interrupt() 1729 tick = s626_ns_to_timer(&cmd->scan_begin_arg, cmd->flags); in s626_ai_cmd() 1738 s626_dio_set_irq(dev, cmd->scan_begin_arg); in s626_ai_cmd() 1836 err |= comedi_check_trigger_arg_max(&cmd->scan_begin_arg, 39); in s626_ai_cmdtest() 1844 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in s626_ai_cmdtest() 1846 err |= comedi_check_trigger_arg_max(&cmd->scan_begin_arg, in s626_ai_cmdtest() 1882 arg = cmd->scan_begin_arg; in s626_ai_cmdtest() 1884 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, arg); in s626_ai_cmdtest() [all …]
|
D | ni_tiocmd.c | 173 gate_source = cmd->scan_begin_arg; in ni_tio_cmd_setup() 306 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, 0); in ni_tio_cmdtest() 308 err |= ni_check_trigger_arg(CR_CHAN(cmd->scan_begin_arg), in ni_tio_cmdtest()
|
D | quatech_daqp_cs.c | 416 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in daqp_ai_cmdtest() 431 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, in daqp_ai_cmdtest() 451 arg = cmd->scan_begin_arg; in daqp_ai_cmdtest() 453 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, arg); in daqp_ai_cmdtest()
|
D | ni_at_a2150.c | 446 arg = cmd->scan_begin_arg; in a2150_ai_cmdtest() 448 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, arg); in a2150_ai_cmdtest() 498 a2150_get_timing(dev, &cmd->scan_begin_arg, cmd->flags); in a2150_ai_cmd() 511 ONE_THIRD_SECOND / cmd->scan_begin_arg; in a2150_ai_cmd()
|
D | cb_pcidas64.c | 2040 scan_divisor = get_divisor(cmd->scan_begin_arg, cmd->flags); in check_adc_timing() 2054 cmd->scan_begin_arg = scan_divisor * TIMER_BASE; in check_adc_timing() 2172 &cmd->scan_begin_arg, in ai_cmdtest() 2203 tmp_arg2 = cmd->scan_begin_arg; in ai_cmdtest() 2207 if (tmp_arg2 != cmd->scan_begin_arg) in ai_cmdtest() 2280 count = (cmd->scan_begin_arg - in ai_scan_counter_6xxx() 2301 divisor = cmd->scan_begin_arg / TIMER_BASE; in ai_convert_counter_4020() 3144 if (cmd->scan_begin_arg & CR_INVERT) in set_dac_control0_reg() 3201 divisor = get_ao_divisor(cmd->scan_begin_arg, cmd->flags); in set_dac_interval_regs() 3374 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in ao_cmdtest() [all …]
|
D | cb_pcidas.c | 738 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in cb_pcidas_ai_cmdtest() 762 arg = cmd->scan_begin_arg; in cb_pcidas_ai_cmdtest() 764 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, arg); in cb_pcidas_ai_cmdtest() 924 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in cb_pcidas_ao_cmdtest() 942 unsigned int arg = cmd->scan_begin_arg; in cb_pcidas_ao_cmdtest() 946 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, arg); in cb_pcidas_ao_cmdtest()
|
D | adv_pci_dio.c | 322 if (cmd->scan_begin_arg & ~(CR_EDGE | CR_INVERT)) { in pci_dio_asy_cmdtest() 323 cmd->scan_begin_arg &= (CR_EDGE | CR_INVERT); in pci_dio_asy_cmdtest() 354 if (cmd->scan_begin_arg & CR_INVERT) in pci_dio_asy_cmd()
|
D | das16.c | 636 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, 0); in das16_cmd_test() 643 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in das16_cmd_test() 663 arg = cmd->scan_begin_arg; in das16_cmd_test() 665 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, arg); in das16_cmd_test()
|
D | dt282x.c | 664 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, 0); in dt282x_ai_cmdtest() 828 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, 5000); in dt282x_ao_cmdtest() 843 arg = cmd->scan_begin_arg; in dt282x_ao_cmdtest() 845 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, arg); in dt282x_ao_cmdtest()
|