/linux/drivers/comedi/drivers/ |
H A D | amplc_pci230.c | 941 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in pci230_ao_cmdtest() 943 err |= comedi_check_trigger_arg_max(&cmd->scan_begin_arg, in pci230_ao_cmdtest() 951 if (cmd->scan_begin_arg & ~CR_FLAGS_MASK) { in pci230_ao_cmdtest() 952 cmd->scan_begin_arg = COMBINE(cmd->scan_begin_arg, 0, in pci230_ao_cmdtest() 960 if (cmd->scan_begin_arg & CR_FLAGS_MASK & in pci230_ao_cmdtest() 962 cmd->scan_begin_arg = in pci230_ao_cmdtest() 963 COMBINE(cmd->scan_begin_arg, 0, in pci230_ao_cmdtest() 969 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, 0); in pci230_ao_cmdtest() 987 tmp = cmd->scan_begin_arg; in pci230_ao_cmdtest() 988 pci230_ns_to_single_timer(&cmd->scan_begin_arg, cmd->flags); in pci230_ao_cmdtest() [all …]
|
H A D | rtd520.c | 724 if (comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in rtd_ai_cmdtest() 726 rtd_ns_to_timer(&cmd->scan_begin_arg, in rtd_ai_cmdtest() 730 if (comedi_check_trigger_arg_max(&cmd->scan_begin_arg, in rtd_ai_cmdtest() 732 rtd_ns_to_timer(&cmd->scan_begin_arg, in rtd_ai_cmdtest() 737 if (comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in rtd_ai_cmdtest() 739 rtd_ns_to_timer(&cmd->scan_begin_arg, in rtd_ai_cmdtest() 743 if (comedi_check_trigger_arg_max(&cmd->scan_begin_arg, in rtd_ai_cmdtest() 745 rtd_ns_to_timer(&cmd->scan_begin_arg, in rtd_ai_cmdtest() 754 err |= comedi_check_trigger_arg_max(&cmd->scan_begin_arg, 9); in rtd_ai_cmdtest() 805 arg = cmd->scan_begin_arg; in rtd_ai_cmdtest() [all …]
|
H A D | dt2814.c | 175 err |= comedi_check_trigger_arg_max(&cmd->scan_begin_arg, 1000000000); in dt2814_ai_cmdtest() 176 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in dt2814_ai_cmdtest() 192 arg = cmd->scan_begin_arg; in dt2814_ai_cmdtest() 194 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, arg); in dt2814_ai_cmdtest() 209 trigvar = dt2814_ns_to_timer(&cmd->scan_begin_arg, cmd->flags); in dt2814_ai_cmd()
|
H A D | amplc_pci224.c | 591 if (cmd->scan_begin_arg & CR_INVERT) in pci224_ao_handle_fifo() 728 err |= comedi_check_trigger_arg_max(&cmd->scan_begin_arg, in pci224_ao_cmdtest() 734 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, arg); in pci224_ao_cmdtest() 738 if (cmd->scan_begin_arg & ~CR_FLAGS_MASK) { in pci224_ao_cmdtest() 739 cmd->scan_begin_arg = in pci224_ao_cmdtest() 740 COMBINE(cmd->scan_begin_arg, 0, ~CR_FLAGS_MASK); in pci224_ao_cmdtest() 744 if (cmd->scan_begin_arg & CR_FLAGS_MASK & in pci224_ao_cmdtest() 746 cmd->scan_begin_arg = in pci224_ao_cmdtest() 747 COMBINE(cmd->scan_begin_arg, 0, in pci224_ao_cmdtest() 786 arg = cmd->scan_begin_arg; in pci224_ao_cmdtest() [all …]
|
H A D | comedi_test.c | 300 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, 0); in waveform_ai_cmdtest() 302 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in waveform_ai_cmdtest() 326 if (cmd->scan_begin_arg == TRIG_TIMER) { in waveform_ai_cmdtest() 337 arg = cmd->scan_begin_arg; in waveform_ai_cmdtest() 345 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, arg); in waveform_ai_cmdtest() 377 devpriv->ai_scan_period = cmd->scan_begin_arg / NSEC_PER_USEC; in waveform_ai_cmd() 575 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in waveform_ao_cmdtest() 592 arg = cmd->scan_begin_arg; in waveform_ao_cmdtest() 595 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, arg); in waveform_ao_cmdtest() 615 devpriv->ao_scan_period = cmd->scan_begin_arg / NSEC_PER_USEC; in waveform_ao_cmd()
|
H A D | dt3000.c | 402 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in dt3k_ai_cmdtest() 404 err |= comedi_check_trigger_arg_max(&cmd->scan_begin_arg, in dt3k_ai_cmdtest() 429 arg = cmd->scan_begin_arg; in dt3k_ai_cmdtest() 431 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, arg); in dt3k_ai_cmdtest() 442 &cmd->scan_begin_arg, arg); in dt3k_ai_cmdtest() 477 tscandiv = dt3k_ns_to_timer(100, &cmd->scan_begin_arg, in dt3k_ai_cmd()
|
H A D | adl_pci9111.c | 284 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in pci9111_ai_do_cmd_test() 287 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, 0); in pci9111_ai_do_cmd_test() 316 if (arg < cmd->scan_begin_arg) in pci9111_ai_do_cmd_test() 317 arg *= (cmd->scan_begin_arg / arg); in pci9111_ai_do_cmd_test() 319 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, arg); in pci9111_ai_do_cmd_test() 369 dev_private->scan_delay = (cmd->scan_begin_arg / in pci9111_ai_do_cmd()
|
H A D | ni_labpc_common.c | 292 return cmd->scan_begin_arg; in labpc_ai_convert_period() 305 cmd->scan_begin_arg = ns; in labpc_set_ai_convert_period() 306 if (cmd->convert_arg > cmd->scan_begin_arg) in labpc_set_ai_convert_period() 307 cmd->convert_arg = cmd->scan_begin_arg; in labpc_set_ai_convert_period() 322 return cmd->scan_begin_arg; in labpc_ai_scan_period() 334 cmd->scan_begin_arg = ns; in labpc_set_ai_scan_period() 568 &cmd->scan_begin_arg, in labpc_ai_cmdtest() 572 &cmd->scan_begin_arg, in labpc_ai_cmdtest() 597 tmp2 = cmd->scan_begin_arg; in labpc_ai_cmdtest() 600 if (tmp != cmd->convert_arg || tmp2 != cmd->scan_begin_arg) in labpc_ai_cmdtest()
|
H A D | usbduxsigma.c | 509 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in usbduxsigma_ai_cmdtest() 514 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in usbduxsigma_ai_cmdtest() 531 tmp = rounddown(cmd->scan_begin_arg, high_speed ? 125000 : 1000000); in usbduxsigma_ai_cmdtest() 532 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, tmp); in usbduxsigma_ai_cmdtest() 642 devpriv->ai_timer = cmd->scan_begin_arg / (125000 * interval); in usbduxsigma_ai_cmd() 646 devpriv->ai_timer = cmd->scan_begin_arg / 1000000; in usbduxsigma_ai_cmd() 867 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, 1000000); in usbduxsigma_ao_cmdtest() 882 tmp = rounddown(cmd->scan_begin_arg, 1000000); in usbduxsigma_ao_cmdtest() 883 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, tmp); in usbduxsigma_ao_cmdtest() 906 devpriv->ao_timer = cmd->scan_begin_arg / 1000000; in usbduxsigma_ao_cmd()
|
H A D | ni_atmio16d.c | 267 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, 0); in atmio16d_ai_cmdtest() 393 if (cmd->scan_begin_arg < 65536000) { in atmio16d_ai_cmd() 395 timer = cmd->scan_begin_arg / 1000; in atmio16d_ai_cmd() 396 } else if (cmd->scan_begin_arg < 655360000) { in atmio16d_ai_cmd() 398 timer = cmd->scan_begin_arg / 10000; in atmio16d_ai_cmd() 401 timer = cmd->scan_begin_arg / 100000; in atmio16d_ai_cmd()
|
H A D | ni_pcidio.c | 563 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in ni_pcidio_cmdtest() 569 if ((cmd->scan_begin_arg & ~(CR_EDGE | CR_INVERT)) != 0) { in ni_pcidio_cmdtest() 570 cmd->scan_begin_arg &= (CR_EDGE | CR_INVERT); in ni_pcidio_cmdtest() 590 arg = cmd->scan_begin_arg; in ni_pcidio_cmdtest() 592 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, arg); in ni_pcidio_cmdtest() 648 writel(ni_pcidio_ns_to_timer(&cmd->scan_begin_arg, in ni_pcidio_cmd() 670 if (!(cmd->scan_begin_arg & CR_INVERT)) /* Leading Edge */ in ni_pcidio_cmd()
|
H A D | pcl711.c | 303 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, 0); in pcl711_ai_cmdtest() 306 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in pcl711_ai_cmdtest() 325 unsigned int arg = cmd->scan_begin_arg; in pcl711_ai_cmdtest() 328 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, arg); in pcl711_ai_cmdtest()
|
H A D | dmm32at.c | 290 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, 1000000); in dmm32at_ai_cmdtest() 291 err |= comedi_check_trigger_arg_max(&cmd->scan_begin_arg, 1000000000); in dmm32at_ai_cmdtest() 316 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, arg); in dmm32at_ai_cmdtest() 384 dmm32at_setaitimer(dev, cmd->scan_begin_arg); in dmm32at_ai_cmd()
|
H A D | ni_mio_common.c | 2070 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in ni_ai_cmdtest() 2072 err |= comedi_check_trigger_arg_max(&cmd->scan_begin_arg, in ni_ai_cmdtest() 2077 err |= ni_check_trigger_arg_roffs(CR_CHAN(cmd->scan_begin_arg), in ni_ai_cmdtest() 2081 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, 0); in ni_ai_cmdtest() 2125 unsigned int tmp = cmd->scan_begin_arg; in ni_ai_cmdtest() 2127 cmd->scan_begin_arg = in ni_ai_cmdtest() 2129 cmd->scan_begin_arg, in ni_ai_cmdtest() 2131 if (tmp != cmd->scan_begin_arg) in ni_ai_cmdtest() 2145 cmd->scan_begin_arg < in ni_ai_cmdtest() 2147 cmd->scan_begin_arg = in ni_ai_cmdtest() [all …]
|
H A D | adl_pci9118.c | 1075 &cmd->scan_begin_arg, &cmd->convert_arg, in pci9118_ai_cmd() 1211 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, 0); in pci9118_ai_cmdtest() 1216 cmd->convert_arg = cmd->scan_begin_arg; in pci9118_ai_cmdtest() 1217 cmd->scan_begin_arg = 0; in pci9118_ai_cmdtest() 1221 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in pci9118_ai_cmdtest() 1226 if (cmd->scan_begin_arg) { in pci9118_ai_cmdtest() 1227 cmd->scan_begin_arg = 0; in pci9118_ai_cmdtest() 1264 arg = cmd->scan_begin_arg; in pci9118_ai_cmdtest() 1266 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, arg); in pci9118_ai_cmdtest() 1283 &cmd->scan_begin_arg, arg); in pci9118_ai_cmdtest()
|
H A D | usbdux.c | 538 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, 0); in usbdux_ai_cmdtest() 561 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in usbdux_ai_cmdtest() 564 arg = (cmd->scan_begin_arg / arg) * arg; in usbdux_ai_cmdtest() 565 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, arg); in usbdux_ai_cmdtest() 696 devpriv->ai_timer = cmd->scan_begin_arg / in usbdux_ai_cmd() 701 devpriv->ai_timer = cmd->scan_begin_arg / 1000000; in usbdux_ai_cmd() 921 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, 0); in usbdux_ao_cmdtest() 924 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in usbdux_ao_cmdtest() 966 devpriv->ao_timer = cmd->scan_begin_arg / 1000000; in usbdux_ao_cmd()
|
H A D | s626.c | 1080 s626_dio_set_irq(dev, cmd->scan_begin_arg); in s626_handle_dio_interrupt() 1082 if ((irqbit >> (cmd->scan_begin_arg - (16 * group))) == 1 && in s626_handle_dio_interrupt() 1222 s626_dio_set_irq(dev, cmd->scan_begin_arg); in s626_handle_eos_interrupt() 1728 tick = s626_ns_to_timer(&cmd->scan_begin_arg, cmd->flags); in s626_ai_cmd() 1737 s626_dio_set_irq(dev, cmd->scan_begin_arg); in s626_ai_cmd() 1835 err |= comedi_check_trigger_arg_max(&cmd->scan_begin_arg, 39); in s626_ai_cmdtest() 1843 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in s626_ai_cmdtest() 1845 err |= comedi_check_trigger_arg_max(&cmd->scan_begin_arg, in s626_ai_cmdtest() 1881 arg = cmd->scan_begin_arg; in s626_ai_cmdtest() 1883 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, arg); in s626_ai_cmdtest() [all …]
|
H A 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()
|
H A D | quatech_daqp_cs.c | 415 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in daqp_ai_cmdtest() 430 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, in daqp_ai_cmdtest() 450 arg = cmd->scan_begin_arg; in daqp_ai_cmdtest() 452 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, arg); in daqp_ai_cmdtest()
|
H A D | ni_at_a2150.c | 444 arg = cmd->scan_begin_arg; in a2150_ai_cmdtest() 446 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, arg); in a2150_ai_cmdtest() 496 a2150_get_timing(dev, &cmd->scan_begin_arg, cmd->flags); in a2150_ai_cmd() 509 ONE_THIRD_SECOND / cmd->scan_begin_arg; in a2150_ai_cmd()
|
H A D | cb_pcidas.c | 737 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in cb_pcidas_ai_cmdtest() 761 arg = cmd->scan_begin_arg; in cb_pcidas_ai_cmdtest() 763 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, arg); in cb_pcidas_ai_cmdtest() 923 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in cb_pcidas_ao_cmdtest() 941 unsigned int arg = cmd->scan_begin_arg; in cb_pcidas_ao_cmdtest() 945 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, arg); in cb_pcidas_ao_cmdtest()
|
H A D | adv_pci_dio.c | 320 if (cmd->scan_begin_arg & ~(CR_EDGE | CR_INVERT)) { in pci_dio_asy_cmdtest() 321 cmd->scan_begin_arg &= (CR_EDGE | CR_INVERT); in pci_dio_asy_cmdtest() 352 if (cmd->scan_begin_arg & CR_INVERT) in pci_dio_asy_cmd()
|
H A D | dt282x.c | 662 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, 0); in dt282x_ai_cmdtest() 826 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, 5000); in dt282x_ao_cmdtest() 841 arg = cmd->scan_begin_arg; in dt282x_ao_cmdtest() 843 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, arg); in dt282x_ao_cmdtest()
|
H A D | das16.c | 634 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, 0); in das16_cmd_test() 641 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in das16_cmd_test() 661 arg = cmd->scan_begin_arg; in das16_cmd_test() 663 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, arg); in das16_cmd_test()
|
H A D | amplc_pc236_common.c | 89 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, 0); in pc236_intr_cmdtest()
|