/drivers/staging/comedi/drivers/ |
D | amplc_pci230.c | 939 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in pci230_ao_cmdtest() 941 err |= comedi_check_trigger_arg_max(&cmd->scan_begin_arg, in pci230_ao_cmdtest() 949 if (cmd->scan_begin_arg & ~CR_FLAGS_MASK) { in pci230_ao_cmdtest() 950 cmd->scan_begin_arg = COMBINE(cmd->scan_begin_arg, 0, in pci230_ao_cmdtest() 958 if (cmd->scan_begin_arg & CR_FLAGS_MASK & in pci230_ao_cmdtest() 960 cmd->scan_begin_arg = in pci230_ao_cmdtest() 961 COMBINE(cmd->scan_begin_arg, 0, in pci230_ao_cmdtest() 967 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, 0); in pci230_ao_cmdtest() 985 tmp = cmd->scan_begin_arg; in pci230_ao_cmdtest() 986 pci230_ns_to_single_timer(&cmd->scan_begin_arg, cmd->flags); in pci230_ao_cmdtest() [all …]
|
D | dt2814.c | 152 err |= comedi_check_trigger_arg_max(&cmd->scan_begin_arg, 1000000000); in dt2814_ai_cmdtest() 153 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in dt2814_ai_cmdtest() 169 arg = cmd->scan_begin_arg; in dt2814_ai_cmdtest() 171 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, arg); in dt2814_ai_cmdtest() 186 trigvar = dt2814_ns_to_timer(&cmd->scan_begin_arg, cmd->flags); in dt2814_ai_cmd()
|
D | comedi_test.c | 275 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, 0); in waveform_ai_cmdtest() 277 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in waveform_ai_cmdtest() 301 if (cmd->scan_begin_arg == TRIG_TIMER) { in waveform_ai_cmdtest() 312 arg = cmd->scan_begin_arg; in waveform_ai_cmdtest() 320 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, arg); in waveform_ai_cmdtest() 352 devpriv->ai_scan_period = cmd->scan_begin_arg / NSEC_PER_USEC; in waveform_ai_cmd() 537 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in waveform_ao_cmdtest() 554 arg = cmd->scan_begin_arg; in waveform_ao_cmdtest() 557 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, arg); in waveform_ao_cmdtest() 577 devpriv->ao_scan_period = cmd->scan_begin_arg / NSEC_PER_USEC; in waveform_ao_cmd()
|
D | rtd520.c | 734 if (comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in rtd_ai_cmdtest() 736 rtd_ns_to_timer(&cmd->scan_begin_arg, in rtd_ai_cmdtest() 740 if (comedi_check_trigger_arg_max(&cmd->scan_begin_arg, in rtd_ai_cmdtest() 742 rtd_ns_to_timer(&cmd->scan_begin_arg, in rtd_ai_cmdtest() 747 if (comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in rtd_ai_cmdtest() 749 rtd_ns_to_timer(&cmd->scan_begin_arg, in rtd_ai_cmdtest() 753 if (comedi_check_trigger_arg_max(&cmd->scan_begin_arg, in rtd_ai_cmdtest() 755 rtd_ns_to_timer(&cmd->scan_begin_arg, in rtd_ai_cmdtest() 764 err |= comedi_check_trigger_arg_max(&cmd->scan_begin_arg, 9); in rtd_ai_cmdtest() 815 arg = cmd->scan_begin_arg; in rtd_ai_cmdtest() [all …]
|
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 …]
|
D | ni_atmio16d.c | 261 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, 0); in atmio16d_ai_cmdtest() 266 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()
|
D | dt3000.c | 412 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in dt3k_ai_cmdtest() 414 err |= comedi_check_trigger_arg_max(&cmd->scan_begin_arg, in dt3k_ai_cmdtest() 439 arg = cmd->scan_begin_arg; in dt3k_ai_cmdtest() 441 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, arg); in dt3k_ai_cmdtest() 452 scan_begin_arg, in dt3k_ai_cmdtest() 488 tscandiv = dt3k_ns_to_timer(100, &cmd->scan_begin_arg, in dt3k_ai_cmd()
|
D | adl_pci9111.c | 294 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in pci9111_ai_do_cmd_test() 297 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, 0); in pci9111_ai_do_cmd_test() 326 if (arg < cmd->scan_begin_arg) in pci9111_ai_do_cmd_test() 327 arg *= (cmd->scan_begin_arg / arg); in pci9111_ai_do_cmd_test() 329 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, arg); in pci9111_ai_do_cmd_test() 379 dev_private->scan_delay = (cmd->scan_begin_arg / in pci9111_ai_do_cmd()
|
D | ni_labpc_common.c | 295 return cmd->scan_begin_arg; in labpc_ai_convert_period() 308 cmd->scan_begin_arg = ns; in labpc_set_ai_convert_period() 309 if (cmd->convert_arg > cmd->scan_begin_arg) in labpc_set_ai_convert_period() 310 cmd->convert_arg = cmd->scan_begin_arg; in labpc_set_ai_convert_period() 325 return cmd->scan_begin_arg; in labpc_ai_scan_period() 337 cmd->scan_begin_arg = ns; in labpc_set_ai_scan_period() 571 scan_begin_arg, in labpc_ai_cmdtest() 575 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in labpc_ai_cmdtest() 601 tmp2 = cmd->scan_begin_arg; in labpc_ai_cmdtest() 604 if (tmp != cmd->convert_arg || tmp2 != cmd->scan_begin_arg) in labpc_ai_cmdtest()
|
D | usbduxsigma.c | 519 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in usbduxsigma_ai_cmdtest() 524 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in usbduxsigma_ai_cmdtest() 541 tmp = rounddown(cmd->scan_begin_arg, high_speed ? 125000 : 1000000); in usbduxsigma_ai_cmdtest() 542 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, tmp); in usbduxsigma_ai_cmdtest() 652 devpriv->ai_timer = cmd->scan_begin_arg / (125000 * interval); in usbduxsigma_ai_cmd() 656 devpriv->ai_timer = cmd->scan_begin_arg / 1000000; in usbduxsigma_ai_cmd() 877 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, 1000000); in usbduxsigma_ao_cmdtest() 892 tmp = rounddown(cmd->scan_begin_arg, 1000000); in usbduxsigma_ao_cmdtest() 893 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, tmp); in usbduxsigma_ao_cmdtest() 916 devpriv->ao_timer = cmd->scan_begin_arg / 1000000; in usbduxsigma_ao_cmd()
|
D | ni_pcidio.c | 578 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in ni_pcidio_cmdtest() 584 if ((cmd->scan_begin_arg & ~(CR_EDGE | CR_INVERT)) != 0) { in ni_pcidio_cmdtest() 585 cmd->scan_begin_arg &= (CR_EDGE | CR_INVERT); in ni_pcidio_cmdtest() 605 arg = cmd->scan_begin_arg; in ni_pcidio_cmdtest() 607 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, arg); in ni_pcidio_cmdtest() 663 writel(ni_pcidio_ns_to_timer(&cmd->scan_begin_arg, in ni_pcidio_cmd() 683 if (!(cmd->scan_begin_arg & CR_INVERT)) /* Leading Edge */ in ni_pcidio_cmd()
|
D | pcl711.c | 314 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, 0); in pcl711_ai_cmdtest() 317 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in pcl711_ai_cmdtest() 336 unsigned int arg = cmd->scan_begin_arg; in pcl711_ai_cmdtest() 339 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, arg); in pcl711_ai_cmdtest()
|
D | ni_mio_common.c | 2129 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in ni_ai_cmdtest() 2131 err |= comedi_check_trigger_arg_max(&cmd->scan_begin_arg, in ni_ai_cmdtest() 2136 unsigned int tmp = CR_CHAN(cmd->scan_begin_arg); in ni_ai_cmdtest() 2140 tmp |= (cmd->scan_begin_arg & (CR_INVERT | CR_EDGE)); in ni_ai_cmdtest() 2141 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, tmp); in ni_ai_cmdtest() 2143 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, 0); in ni_ai_cmdtest() 2190 tmp = cmd->scan_begin_arg; in ni_ai_cmdtest() 2191 cmd->scan_begin_arg = in ni_ai_cmdtest() 2193 cmd->scan_begin_arg, in ni_ai_cmdtest() 2195 if (tmp != cmd->scan_begin_arg) in ni_ai_cmdtest() [all …]
|
D | dmm32at.c | 298 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, 1000000); in dmm32at_ai_cmdtest() 299 err |= comedi_check_trigger_arg_max(&cmd->scan_begin_arg, 1000000000); in dmm32at_ai_cmdtest() 324 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, arg); in dmm32at_ai_cmdtest() 392 dmm32at_setaitimer(dev, cmd->scan_begin_arg); in dmm32at_ai_cmd()
|
D | adl_pci9118.c | 1074 &cmd->scan_begin_arg, &cmd->convert_arg, in pci9118_ai_cmd() 1210 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, 0); in pci9118_ai_cmdtest() 1215 cmd->convert_arg = cmd->scan_begin_arg; in pci9118_ai_cmdtest() 1216 cmd->scan_begin_arg = 0; in pci9118_ai_cmdtest() 1220 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in pci9118_ai_cmdtest() 1225 if (cmd->scan_begin_arg) { in pci9118_ai_cmdtest() 1226 cmd->scan_begin_arg = 0; in pci9118_ai_cmdtest() 1263 arg = cmd->scan_begin_arg; in pci9118_ai_cmdtest() 1265 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, arg); in pci9118_ai_cmdtest() 1282 scan_begin_arg, in pci9118_ai_cmdtest()
|
D | usbdux.c | 548 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, 0); in usbdux_ai_cmdtest() 571 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in usbdux_ai_cmdtest() 574 arg = (cmd->scan_begin_arg / arg) * arg; in usbdux_ai_cmdtest() 575 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, arg); in usbdux_ai_cmdtest() 706 devpriv->ai_timer = cmd->scan_begin_arg / in usbdux_ai_cmd() 711 devpriv->ai_timer = cmd->scan_begin_arg / 1000000; in usbdux_ai_cmd() 932 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, 0); in usbdux_ao_cmdtest() 935 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in usbdux_ao_cmdtest() 977 devpriv->ao_timer = cmd->scan_begin_arg / 1000000; in usbdux_ao_cmd()
|
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()
|
D | ni_at_a2150.c | 465 arg = cmd->scan_begin_arg; in a2150_ai_cmdtest() 467 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, arg); in a2150_ai_cmdtest() 517 a2150_get_timing(dev, &cmd->scan_begin_arg, cmd->flags); in a2150_ai_cmd() 530 ONE_THIRD_SECOND / cmd->scan_begin_arg; in a2150_ai_cmd()
|
D | s626.c | 1361 s626_dio_set_irq(dev, cmd->scan_begin_arg); in s626_handle_dio_interrupt() 1363 if ((irqbit >> (cmd->scan_begin_arg - (16 * group))) == 1 && in s626_handle_dio_interrupt() 1503 s626_dio_set_irq(dev, cmd->scan_begin_arg); in s626_handle_eos_interrupt() 2047 tick = s626_ns_to_timer(&cmd->scan_begin_arg, cmd->flags); in s626_ai_cmd() 2056 s626_dio_set_irq(dev, cmd->scan_begin_arg); in s626_ai_cmd() 2154 err |= comedi_check_trigger_arg_max(&cmd->scan_begin_arg, 39); in s626_ai_cmdtest() 2162 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in s626_ai_cmdtest() 2164 err |= comedi_check_trigger_arg_max(&cmd->scan_begin_arg, in s626_ai_cmdtest() 2200 arg = cmd->scan_begin_arg; in s626_ai_cmdtest() 2202 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, arg); in s626_ai_cmdtest() [all …]
|
D | cb_pcidas64.c | 2047 scan_divisor = get_divisor(cmd->scan_begin_arg, cmd->flags); in check_adc_timing() 2061 cmd->scan_begin_arg = scan_divisor * TIMER_BASE; in check_adc_timing() 2179 &cmd->scan_begin_arg, in ai_cmdtest() 2210 tmp_arg2 = cmd->scan_begin_arg; in ai_cmdtest() 2214 if (tmp_arg2 != cmd->scan_begin_arg) in ai_cmdtest() 2287 count = (cmd->scan_begin_arg - in ai_scan_counter_6xxx() 2308 divisor = cmd->scan_begin_arg / TIMER_BASE; in ai_convert_counter_4020() 3159 if (cmd->scan_begin_arg & CR_INVERT) in set_dac_control0_reg() 3216 divisor = get_ao_divisor(cmd->scan_begin_arg, cmd->flags); in set_dac_interval_regs() 3391 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in ao_cmdtest() [all …]
|
D | cb_pcidas.c | 747 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in cb_pcidas_ai_cmdtest() 771 arg = cmd->scan_begin_arg; in cb_pcidas_ai_cmdtest() 773 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, arg); in cb_pcidas_ai_cmdtest() 933 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in cb_pcidas_ao_cmdtest() 951 unsigned int arg = cmd->scan_begin_arg; in cb_pcidas_ao_cmdtest() 955 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, arg); in cb_pcidas_ao_cmdtest()
|
D | das16.c | 641 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, 0); in das16_cmd_test() 648 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, in das16_cmd_test() 668 arg = cmd->scan_begin_arg; in das16_cmd_test() 670 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, arg); in das16_cmd_test()
|
D | ni_tiocmd.c | 173 gate_source = cmd->scan_begin_arg; in ni_tio_cmd_setup() 270 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, 0); in ni_tio_cmdtest()
|
D | dt282x.c | 689 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, 0); in dt282x_ai_cmdtest() 857 err |= comedi_check_trigger_arg_min(&cmd->scan_begin_arg, 5000); in dt282x_ao_cmdtest() 872 arg = cmd->scan_begin_arg; in dt282x_ao_cmdtest() 874 err |= comedi_check_trigger_arg_is(&cmd->scan_begin_arg, arg); in dt282x_ao_cmdtest()
|
/drivers/staging/comedi/ |
D | comedi_compat32.c | 62 unsigned int scan_begin_arg; member 190 err |= __get_user(temp.uint, &cmd32->scan_begin_arg); in get_compat_cmd() 191 err |= __put_user(temp.uint, &cmd->scan_begin_arg); in get_compat_cmd() 244 err |= __get_user(temp, &cmd->scan_begin_arg); in put_compat_cmd() 245 err |= __put_user(temp, &cmd32->scan_begin_arg); in put_compat_cmd()
|