/linux-3.4.99/drivers/staging/comedi/drivers/ |
D | skel.c | 425 if (cmd->scan_begin_arg < MAX_SPEED) { in skel_ai_cmdtest() 426 cmd->scan_begin_arg = MAX_SPEED; in skel_ai_cmdtest() 429 if (cmd->scan_begin_arg > MIN_SPEED) { in skel_ai_cmdtest() 430 cmd->scan_begin_arg = MIN_SPEED; in skel_ai_cmdtest() 437 if (cmd->scan_begin_arg > 9) { in skel_ai_cmdtest() 438 cmd->scan_begin_arg = 9; in skel_ai_cmdtest() 483 tmp = cmd->scan_begin_arg; in skel_ai_cmdtest() 484 skel_ns_to_timer(&cmd->scan_begin_arg, in skel_ai_cmdtest() 486 if (tmp != cmd->scan_begin_arg) in skel_ai_cmdtest() 496 cmd->scan_begin_arg < in skel_ai_cmdtest() [all …]
|
D | amplc_pci224.c | 756 if (cmd->scan_begin_arg & CR_INVERT) in pci224_ao_handle_fifo() 888 if (cmd->scan_begin_arg > MAX_SCAN_PERIOD) { in pci224_ao_cmdtest() 889 cmd->scan_begin_arg = MAX_SCAN_PERIOD; in pci224_ao_cmdtest() 896 if (cmd->scan_begin_arg < tmp) { in pci224_ao_cmdtest() 897 cmd->scan_begin_arg = tmp; in pci224_ao_cmdtest() 903 if ((cmd->scan_begin_arg & ~CR_FLAGS_MASK) != 0) { in pci224_ao_cmdtest() 904 cmd->scan_begin_arg = COMBINE(cmd->scan_begin_arg, 0, in pci224_ao_cmdtest() 909 if ((cmd->scan_begin_arg & CR_FLAGS_MASK & in pci224_ao_cmdtest() 911 cmd->scan_begin_arg = COMBINE(cmd->scan_begin_arg, 0, in pci224_ao_cmdtest() 966 tmp = cmd->scan_begin_arg; in pci224_ao_cmdtest() [all …]
|
D | dt2814.c | 203 if (cmd->scan_begin_arg > 1000000000) { in dt2814_ai_cmdtest() 204 cmd->scan_begin_arg = 1000000000; in dt2814_ai_cmdtest() 207 if (cmd->scan_begin_arg < DT2814_MAX_SPEED) { in dt2814_ai_cmdtest() 208 cmd->scan_begin_arg = DT2814_MAX_SPEED; in dt2814_ai_cmdtest() 233 tmp = cmd->scan_begin_arg; in dt2814_ai_cmdtest() 234 dt2814_ns_to_timer(&cmd->scan_begin_arg, cmd->flags & TRIG_ROUND_MASK); in dt2814_ai_cmdtest() 235 if (tmp != cmd->scan_begin_arg) in dt2814_ai_cmdtest() 251 dt2814_ns_to_timer(&cmd->scan_begin_arg, in dt2814_ai_cmd()
|
D | cb_das16_cs.c | 396 if (cmd->scan_begin_arg < MAX_SPEED) { in das16cs_ai_cmdtest() 397 cmd->scan_begin_arg = MAX_SPEED; in das16cs_ai_cmdtest() 400 if (cmd->scan_begin_arg > MIN_SPEED) { in das16cs_ai_cmdtest() 401 cmd->scan_begin_arg = MIN_SPEED; in das16cs_ai_cmdtest() 408 if (cmd->scan_begin_arg > 9) { in das16cs_ai_cmdtest() 409 cmd->scan_begin_arg = 9; in das16cs_ai_cmdtest() 456 tmp = cmd->scan_begin_arg; in das16cs_ai_cmdtest() 458 &cmd->scan_begin_arg, in das16cs_ai_cmdtest() 460 if (tmp != cmd->scan_begin_arg) in das16cs_ai_cmdtest() 468 &cmd->scan_begin_arg, in das16cs_ai_cmdtest() [all …]
|
D | cb_pcidda.c | 511 if (cmd->scan_begin_arg < MAX_SPEED) { 512 cmd->scan_begin_arg = MAX_SPEED; 515 if (cmd->scan_begin_arg > MIN_SPEED) { 516 cmd->scan_begin_arg = MIN_SPEED; 523 if (cmd->scan_begin_arg > 9) { 524 cmd->scan_begin_arg = 9; 569 tmp = cmd->scan_begin_arg; 570 cb_pcidda_ns_to_timer(&cmd->scan_begin_arg, 572 if (tmp != cmd->scan_begin_arg) 582 cmd->scan_begin_arg < [all …]
|
D | adl_pci9111.c | 701 (cmd->scan_begin_arg < board->ai_acquisition_period_min_ns)) { in pci9111_ai_do_cmd_test() 702 cmd->scan_begin_arg = board->ai_acquisition_period_min_ns; in pci9111_ai_do_cmd_test() 706 && (cmd->scan_begin_arg != 0)) { in pci9111_ai_do_cmd_test() 707 cmd->scan_begin_arg = 0; in pci9111_ai_do_cmd_test() 710 if ((cmd->scan_begin_src == TRIG_EXT) && (cmd->scan_begin_arg != 0)) { in pci9111_ai_do_cmd_test() 711 cmd->scan_begin_arg = 0; in pci9111_ai_do_cmd_test() 751 unsigned int scan_begin_arg; in pci9111_ai_do_cmd_test() local 756 if (cmd->scan_begin_arg != scan_begin_min) { in pci9111_ai_do_cmd_test() 757 if (scan_begin_min < cmd->scan_begin_arg) { in pci9111_ai_do_cmd_test() 759 cmd->scan_begin_arg / scan_begin_min; in pci9111_ai_do_cmd_test() [all …]
|
D | dmm32at.c | 621 if (cmd->scan_begin_arg < MAX_SCAN_SPEED) { in dmm32at_ai_cmdtest() 622 cmd->scan_begin_arg = MAX_SCAN_SPEED; in dmm32at_ai_cmdtest() 625 if (cmd->scan_begin_arg > MIN_SCAN_SPEED) { in dmm32at_ai_cmdtest() 626 cmd->scan_begin_arg = MIN_SCAN_SPEED; in dmm32at_ai_cmdtest() 633 if (cmd->scan_begin_arg > 9) { in dmm32at_ai_cmdtest() 634 cmd->scan_begin_arg = 9; in dmm32at_ai_cmdtest() 684 tmp = cmd->scan_begin_arg; in dmm32at_ai_cmdtest() 685 dmm32at_ns_to_timer(&cmd->scan_begin_arg, in dmm32at_ai_cmdtest() 687 if (tmp != cmd->scan_begin_arg) in dmm32at_ai_cmdtest() 697 cmd->scan_begin_arg < in dmm32at_ai_cmdtest() [all …]
|
D | amplc_pci230.c | 1360 if (cmd->scan_begin_arg < MAX_SPEED_AO) { in pci230_ao_cmdtest() 1361 cmd->scan_begin_arg = MAX_SPEED_AO; in pci230_ao_cmdtest() 1364 if (cmd->scan_begin_arg > MIN_SPEED_AO) { in pci230_ao_cmdtest() 1365 cmd->scan_begin_arg = MIN_SPEED_AO; in pci230_ao_cmdtest() 1372 if ((cmd->scan_begin_arg & ~CR_FLAGS_MASK) != 0) { in pci230_ao_cmdtest() 1373 cmd->scan_begin_arg = COMBINE(cmd->scan_begin_arg, 0, in pci230_ao_cmdtest() 1379 if ((cmd->scan_begin_arg in pci230_ao_cmdtest() 1381 cmd->scan_begin_arg = in pci230_ao_cmdtest() 1382 COMBINE(cmd->scan_begin_arg, 0, in pci230_ao_cmdtest() 1388 if (cmd->scan_begin_arg != 0) { in pci230_ao_cmdtest() [all …]
|
D | comedi_test.c | 360 if (cmd->scan_begin_arg < nano_per_micro) { in waveform_ai_cmdtest() 361 cmd->scan_begin_arg = nano_per_micro; in waveform_ai_cmdtest() 365 cmd->scan_begin_arg < in waveform_ai_cmdtest() 367 cmd->scan_begin_arg = in waveform_ai_cmdtest() 403 tmp = cmd->scan_begin_arg; in waveform_ai_cmdtest() 405 cmd->scan_begin_arg = in waveform_ai_cmdtest() 408 if (tmp != cmd->scan_begin_arg) in waveform_ai_cmdtest() 440 devpriv->scan_period = cmd->scan_begin_arg / nano_per_micro; in waveform_ai_cmd()
|
D | pcl711.c | 349 if (cmd->scan_begin_arg != 0) { in pcl711_ai_cmdtest() 350 cmd->scan_begin_arg = 0; in pcl711_ai_cmdtest() 356 if (cmd->scan_begin_arg < MAX_SPEED) { in pcl711_ai_cmdtest() 357 cmd->scan_begin_arg = MAX_SPEED; in pcl711_ai_cmdtest() 384 tmp = cmd->scan_begin_arg; in pcl711_ai_cmdtest() 388 &cmd->scan_begin_arg, in pcl711_ai_cmdtest() 390 if (tmp != cmd->scan_begin_arg) in pcl711_ai_cmdtest() 420 &cmd->scan_begin_arg, in pcl711_ai_cmd()
|
D | ni_atmio16d.c | 360 if (cmd->scan_begin_arg != 0) { in atmio16d_ai_cmdtest() 361 cmd->scan_begin_arg = 0; in atmio16d_ai_cmdtest() 368 if (cmd->scan_begin_arg != 0) { in atmio16d_ai_cmdtest() 369 cmd->scan_begin_arg = 0; in atmio16d_ai_cmdtest() 514 if (cmd->scan_begin_arg < 65536000) { in atmio16d_ai_cmd() 516 timer = cmd->scan_begin_arg / 1000; in atmio16d_ai_cmd() 517 } else if (cmd->scan_begin_arg < 655360000) { in atmio16d_ai_cmd() 519 timer = cmd->scan_begin_arg / 10000; in atmio16d_ai_cmd() 520 } else if (cmd->scan_begin_arg < 0xffffffff /* 6553600000 */) { in atmio16d_ai_cmd() 522 timer = cmd->scan_begin_arg / 100000; in atmio16d_ai_cmd() [all …]
|
D | rtd520.c | 1794 if (cmd->scan_begin_arg < RTD_MAX_SPEED_1) { 1795 cmd->scan_begin_arg = RTD_MAX_SPEED_1; 1796 rtd_ns_to_timer(&cmd->scan_begin_arg, 1800 if (cmd->scan_begin_arg > RTD_MIN_SPEED_1) { 1801 cmd->scan_begin_arg = RTD_MIN_SPEED_1; 1802 rtd_ns_to_timer(&cmd->scan_begin_arg, 1807 if (cmd->scan_begin_arg < RTD_MAX_SPEED) { 1808 cmd->scan_begin_arg = RTD_MAX_SPEED; 1809 rtd_ns_to_timer(&cmd->scan_begin_arg, 1813 if (cmd->scan_begin_arg > RTD_MIN_SPEED) { [all …]
|
D | dt3000.c | 521 if (cmd->scan_begin_arg < this_board->ai_speed) { in dt3k_ai_cmdtest() 522 cmd->scan_begin_arg = this_board->ai_speed; in dt3k_ai_cmdtest() 525 if (cmd->scan_begin_arg > 100 * 16 * 65535) { in dt3k_ai_cmdtest() 526 cmd->scan_begin_arg = 100 * 16 * 65535; in dt3k_ai_cmdtest() 568 tmp = cmd->scan_begin_arg; in dt3k_ai_cmdtest() 569 dt3k_ns_to_timer(100, &cmd->scan_begin_arg, in dt3k_ai_cmdtest() 571 if (tmp != cmd->scan_begin_arg) in dt3k_ai_cmdtest() 583 cmd->scan_begin_arg < in dt3k_ai_cmdtest() 585 cmd->scan_begin_arg = in dt3k_ai_cmdtest() 669 tscandiv = dt3k_ns_to_timer(100, &cmd->scan_begin_arg, in dt3k_ai_cmd()
|
D | pcm_common.c | 71 if (cmd->scan_begin_arg != 0) { in comedi_pcm_cmdtest() 72 cmd->scan_begin_arg = 0; in comedi_pcm_cmdtest()
|
D | usbduxsigma.c | 971 if (cmd->scan_begin_arg != 0) { in usbdux_ai_cmdtest() 972 cmd->scan_begin_arg = 0; in usbdux_ai_cmdtest() 986 if (cmd->scan_begin_arg < (1000000 / 8 * i)) { in usbdux_ai_cmdtest() 987 cmd->scan_begin_arg = 1000000 / 8 * i; in usbdux_ai_cmdtest() 993 ((unsigned int)(cmd->scan_begin_arg / 125000)) * in usbdux_ai_cmdtest() 995 if (cmd->scan_begin_arg != tmpTimer) { in usbdux_ai_cmdtest() 996 cmd->scan_begin_arg = tmpTimer; in usbdux_ai_cmdtest() 1002 if (cmd->scan_begin_arg < 1000000) { in usbdux_ai_cmdtest() 1003 cmd->scan_begin_arg = 1000000; in usbdux_ai_cmdtest() 1009 tmpTimer = ((unsigned int)(cmd->scan_begin_arg / in usbdux_ai_cmdtest() [all …]
|
D | usbdux.c | 1003 if (cmd->scan_begin_arg != 0) { in usbdux_ai_cmdtest() 1004 cmd->scan_begin_arg = 0; in usbdux_ai_cmdtest() 1022 if (cmd->scan_begin_arg < (1000000 / 8 * i)) { in usbdux_ai_cmdtest() 1023 cmd->scan_begin_arg = 1000000 / 8 * i; in usbdux_ai_cmdtest() 1029 ((unsigned int)(cmd->scan_begin_arg / 125000)) * in usbdux_ai_cmdtest() 1031 if (cmd->scan_begin_arg != tmpTimer) { in usbdux_ai_cmdtest() 1032 cmd->scan_begin_arg = tmpTimer; in usbdux_ai_cmdtest() 1038 if (cmd->scan_begin_arg < 1000000) { in usbdux_ai_cmdtest() 1039 cmd->scan_begin_arg = 1000000; in usbdux_ai_cmdtest() 1045 tmpTimer = ((unsigned int)(cmd->scan_begin_arg / in usbdux_ai_cmdtest() [all …]
|
D | adl_pci9118.c | 1078 if (cmd->scan_begin_arg != 0) { in pci9118_ai_cmdtest() 1079 cmd->scan_begin_arg = 0; in pci9118_ai_cmdtest() 1086 cmd->convert_arg = cmd->scan_begin_arg; in pci9118_ai_cmdtest() 1087 cmd->scan_begin_arg = 0; in pci9118_ai_cmdtest() 1091 if (cmd->scan_begin_arg < this_board->ai_ns_min) { in pci9118_ai_cmdtest() 1092 cmd->scan_begin_arg = this_board->ai_ns_min; in pci9118_ai_cmdtest() 1097 if (cmd->scan_begin_arg) { in pci9118_ai_cmdtest() 1098 cmd->scan_begin_arg = 0; in pci9118_ai_cmdtest() 1157 tmp = cmd->scan_begin_arg; in pci9118_ai_cmdtest() 1160 &divisor2, &cmd->scan_begin_arg, in pci9118_ai_cmdtest() [all …]
|
D | quatech_daqp_cs.c | 517 && cmd->scan_begin_arg < MAX_SPEED) { in daqp_ai_cmdtest() 518 cmd->scan_begin_arg = MAX_SPEED; in daqp_ai_cmdtest() 528 && cmd->scan_begin_arg != cmd->convert_arg * cmd->scan_end_arg) { in daqp_ai_cmdtest() 560 tmp = cmd->scan_begin_arg; in daqp_ai_cmdtest() 561 daqp_ns_to_timer(&cmd->scan_begin_arg, in daqp_ai_cmdtest() 563 if (tmp != cmd->scan_begin_arg) in daqp_ai_cmdtest() 625 counter = daqp_ns_to_timer(&cmd->scan_begin_arg, in daqp_ai_cmd()
|
D | dt282x.c | 797 if (cmd->scan_begin_arg != 0) { in dt282x_ai_cmdtest() 798 cmd->scan_begin_arg = 0; in dt282x_ai_cmdtest() 804 if (cmd->scan_begin_arg != 0) { in dt282x_ai_cmdtest() 805 cmd->scan_begin_arg = 0; in dt282x_ai_cmdtest() 1069 if (cmd->scan_begin_arg < 5000 /* XXX unknown */) { in dt282x_ao_cmdtest() 1070 cmd->scan_begin_arg = 5000; in dt282x_ao_cmdtest() 1097 tmp = cmd->scan_begin_arg; in dt282x_ao_cmdtest() 1098 dt282x_ns_to_timer(&cmd->scan_begin_arg, cmd->flags & TRIG_ROUND_MASK); in dt282x_ao_cmdtest() 1099 if (tmp != cmd->scan_begin_arg) in dt282x_ao_cmdtest() 1162 timer = dt282x_ns_to_timer(&cmd->scan_begin_arg, TRIG_ROUND_NEAREST); in dt282x_ao_cmd()
|
D | s626.c | 1126 cmd->scan_begin_arg); in s626_irq_handler() 1128 s626_dio_set_irq(dev, cmd->scan_begin_arg); in s626_irq_handler() 1182 scan_begin_arg); in s626_irq_handler() 1185 cmd->scan_begin_arg); in s626_irq_handler() 1191 if ((irqbit >> (cmd->scan_begin_arg - in s626_irq_handler() 1198 cmd->scan_begin_arg); in s626_irq_handler() 1827 tick = s626_ns_to_timer((int *)&cmd->scan_begin_arg, in s626_ai_cmd() 1841 s626_dio_set_irq(dev, cmd->scan_begin_arg); in s626_ai_cmd() 1995 if (cmd->scan_begin_src == TRIG_EXT && cmd->scan_begin_arg > 39) { in s626_ai_cmdtest() 1996 cmd->scan_begin_arg = 39; in s626_ai_cmdtest() [all …]
|
D | ni_mio_common.c | 2248 if (cmd->scan_begin_arg < ni_min_ai_scan_period_ns(dev, in ni_ai_cmdtest() 2252 cmd->scan_begin_arg = in ni_ai_cmdtest() 2256 if (cmd->scan_begin_arg > devpriv->clock_ns * 0xffffff) { in ni_ai_cmdtest() 2257 cmd->scan_begin_arg = devpriv->clock_ns * 0xffffff; in ni_ai_cmdtest() 2262 unsigned int tmp = CR_CHAN(cmd->scan_begin_arg); in ni_ai_cmdtest() 2266 tmp |= (cmd->scan_begin_arg & (CR_INVERT | CR_EDGE)); in ni_ai_cmdtest() 2267 if (cmd->scan_begin_arg != tmp) { in ni_ai_cmdtest() 2268 cmd->scan_begin_arg = tmp; in ni_ai_cmdtest() 2272 if (cmd->scan_begin_arg) { in ni_ai_cmdtest() 2273 cmd->scan_begin_arg = 0; in ni_ai_cmdtest() [all …]
|
D | ni_pcidio.c | 845 if (cmd->scan_begin_arg < MAX_SPEED) { in ni_pcidio_cmdtest() 846 cmd->scan_begin_arg = MAX_SPEED; in ni_pcidio_cmdtest() 853 if ((cmd->scan_begin_arg & ~(CR_EDGE | CR_INVERT)) != 0) { in ni_pcidio_cmdtest() 854 cmd->scan_begin_arg &= (CR_EDGE | CR_INVERT); in ni_pcidio_cmdtest() 883 tmp = cmd->scan_begin_arg; in ni_pcidio_cmdtest() 884 ni_pcidio_ns_to_timer(&cmd->scan_begin_arg, in ni_pcidio_cmdtest() 886 if (tmp != cmd->scan_begin_arg) in ni_pcidio_cmdtest() 949 writel(ni_pcidio_ns_to_timer(&cmd->scan_begin_arg, in ni_pcidio_cmd() 969 if (!(cmd->scan_begin_arg & CR_INVERT)) { in ni_pcidio_cmd()
|
D | cb_pcidas.c | 1167 if (cmd->scan_begin_arg < in cb_pcidas_ai_cmdtest() 1169 cmd->scan_begin_arg = in cb_pcidas_ai_cmdtest() 1199 tmp = cmd->scan_begin_arg; in cb_pcidas_ai_cmdtest() 1203 &(cmd->scan_begin_arg), in cb_pcidas_ai_cmdtest() 1205 if (tmp != cmd->scan_begin_arg) in cb_pcidas_ai_cmdtest() 1288 cb_pcidas_load_counters(dev, &cmd->scan_begin_arg, in cb_pcidas_ai_cmd() 1403 if (cmd->scan_begin_arg < thisboard->ao_scan_speed) { in cb_pcidas_ao_cmdtest() 1404 cmd->scan_begin_arg = thisboard->ao_scan_speed; in cb_pcidas_ao_cmdtest() 1427 tmp = cmd->scan_begin_arg; in cb_pcidas_ao_cmdtest() 1431 &(cmd->scan_begin_arg), in cb_pcidas_ao_cmdtest() [all …]
|
D | ni_labpc.c | 969 return cmd->scan_begin_arg; in labpc_ai_convert_period() 981 cmd->scan_begin_arg = ns; in labpc_set_ai_convert_period() 982 if (cmd->convert_arg > cmd->scan_begin_arg) in labpc_set_ai_convert_period() 983 cmd->convert_arg = cmd->scan_begin_arg; in labpc_set_ai_convert_period() 997 return cmd->scan_begin_arg; in labpc_ai_scan_period() 1009 cmd->scan_begin_arg = ns; in labpc_set_ai_scan_period() 1097 cmd->scan_begin_arg < in labpc_ai_cmdtest() 1099 cmd->scan_begin_arg = in labpc_ai_cmdtest() 1103 if (cmd->scan_begin_arg < in labpc_ai_cmdtest() 1105 cmd->scan_begin_arg = in labpc_ai_cmdtest() [all …]
|
/linux-3.4.99/drivers/staging/comedi/ |
D | comedi_compat32.c | 64 unsigned int scan_begin_arg; member 195 err |= __get_user(temp.uint, &cmd32->scan_begin_arg); in get_compat_cmd() 196 err |= __put_user(temp.uint, &cmd->scan_begin_arg); in get_compat_cmd() 246 err |= __get_user(temp, &cmd->scan_begin_arg); in put_compat_cmd() 247 err |= __put_user(temp, &cmd32->scan_begin_arg); in put_compat_cmd()
|