/linux-3.4.99/drivers/staging/comedi/drivers/ |
D | skel.c | 443 if (cmd->convert_arg < MAX_SPEED) { in skel_ai_cmdtest() 444 cmd->convert_arg = MAX_SPEED; in skel_ai_cmdtest() 447 if (cmd->convert_arg > MIN_SPEED) { in skel_ai_cmdtest() 448 cmd->convert_arg = MIN_SPEED; in skel_ai_cmdtest() 454 if (cmd->convert_arg > 9) { in skel_ai_cmdtest() 455 cmd->convert_arg = 9; in skel_ai_cmdtest() 490 tmp = cmd->convert_arg; in skel_ai_cmdtest() 491 skel_ns_to_timer(&cmd->convert_arg, in skel_ai_cmdtest() 493 if (tmp != cmd->convert_arg) in skel_ai_cmdtest() 497 cmd->convert_arg * cmd->scan_end_arg) { in skel_ai_cmdtest() [all …]
|
D | dmm32at.c | 639 if (cmd->convert_arg >= 17500) in dmm32at_ai_cmdtest() 640 cmd->convert_arg = 20000; in dmm32at_ai_cmdtest() 641 else if (cmd->convert_arg >= 12500) in dmm32at_ai_cmdtest() 642 cmd->convert_arg = 15000; in dmm32at_ai_cmdtest() 643 else if (cmd->convert_arg >= 7500) in dmm32at_ai_cmdtest() 644 cmd->convert_arg = 10000; in dmm32at_ai_cmdtest() 646 cmd->convert_arg = 5000; in dmm32at_ai_cmdtest() 651 if (cmd->convert_arg > 9) { in dmm32at_ai_cmdtest() 652 cmd->convert_arg = 9; in dmm32at_ai_cmdtest() 691 tmp = cmd->convert_arg; in dmm32at_ai_cmdtest() [all …]
|
D | cb_pcidda.c | 433 printk("convert_arg: %d\n", cmd->convert_arg); 529 if (cmd->convert_arg < MAX_SPEED) { 530 cmd->convert_arg = MAX_SPEED; 533 if (cmd->convert_arg > MIN_SPEED) { 534 cmd->convert_arg = MIN_SPEED; 540 if (cmd->convert_arg > 9) { 541 cmd->convert_arg = 9; 576 tmp = cmd->convert_arg; 577 cb_pcidda_ns_to_timer(&cmd->convert_arg, 579 if (tmp != cmd->convert_arg) [all …]
|
D | das1800.c | 226 static unsigned int burst_convert_arg(unsigned int convert_arg, int round_mode); 1252 if (cmd->convert_arg < thisboard->ai_speed) { in das1800_ai_do_cmdtest() 1253 cmd->convert_arg = thisboard->ai_speed; in das1800_ai_do_cmdtest() 1291 tmp_arg = cmd->convert_arg; in das1800_ai_do_cmdtest() 1296 &(cmd->convert_arg), in das1800_ai_do_cmdtest() 1299 if (tmp_arg != cmd->convert_arg) in das1800_ai_do_cmdtest() 1305 tmp_arg = cmd->convert_arg; in das1800_ai_do_cmdtest() 1306 cmd->convert_arg = in das1800_ai_do_cmdtest() 1307 burst_convert_arg(cmd->convert_arg, in das1800_ai_do_cmdtest() 1309 if (tmp_arg != cmd->convert_arg) in das1800_ai_do_cmdtest() [all …]
|
D | comedi_test.c | 354 if (cmd->convert_arg != 0) { in waveform_ai_cmdtest() 355 cmd->convert_arg = 0; in waveform_ai_cmdtest() 366 cmd->convert_arg * cmd->chanlist_len) { in waveform_ai_cmdtest() 368 cmd->convert_arg * cmd->chanlist_len; in waveform_ai_cmdtest() 412 tmp = cmd->convert_arg; in waveform_ai_cmdtest() 414 cmd->convert_arg = in waveform_ai_cmdtest() 417 if (tmp != cmd->convert_arg) in waveform_ai_cmdtest() 445 devpriv->convert_period = cmd->convert_arg / nano_per_micro; in waveform_ai_cmd()
|
D | cb_das16_cs.c | 414 if (cmd->convert_arg < MAX_SPEED) { in das16cs_ai_cmdtest() 415 cmd->convert_arg = MAX_SPEED; in das16cs_ai_cmdtest() 418 if (cmd->convert_arg > MIN_SPEED) { in das16cs_ai_cmdtest() 419 cmd->convert_arg = MIN_SPEED; in das16cs_ai_cmdtest() 425 if (cmd->convert_arg > 9) { in das16cs_ai_cmdtest() 426 cmd->convert_arg = 9; in das16cs_ai_cmdtest() 466 tmp = cmd->convert_arg; in das16cs_ai_cmdtest() 470 if (tmp != cmd->convert_arg) in das16cs_ai_cmdtest() 474 cmd->convert_arg * cmd->scan_end_arg) { in das16cs_ai_cmdtest() 476 cmd->convert_arg * cmd->scan_end_arg; in das16cs_ai_cmdtest()
|
D | ni_atmio16d.c | 375 if (cmd->convert_arg < 10000) { in atmio16d_ai_cmdtest() 376 cmd->convert_arg = 10000; in atmio16d_ai_cmdtest() 380 if (cmd->convert_arg > SLOWEST_TIMER) { in atmio16d_ai_cmdtest() 381 cmd->convert_arg = SLOWEST_TIMER; in atmio16d_ai_cmdtest() 446 if (cmd->convert_arg < 65536000) { in atmio16d_ai_cmd() 448 timer = cmd->convert_arg / 1000; in atmio16d_ai_cmd() 449 } else if (cmd->convert_arg < 655360000) { in atmio16d_ai_cmd() 451 timer = cmd->convert_arg / 10000; in atmio16d_ai_cmd() 452 } else if (cmd->convert_arg <= 0xffffffff /* 6553600000 */) { in atmio16d_ai_cmd() 454 timer = cmd->convert_arg / 100000; in atmio16d_ai_cmd() [all …]
|
D | rtd520.c | 1831 if (cmd->convert_arg < RTD_MAX_SPEED_1) { 1832 cmd->convert_arg = RTD_MAX_SPEED_1; 1833 rtd_ns_to_timer(&cmd->convert_arg, 1837 if (cmd->convert_arg > RTD_MIN_SPEED_1) { 1838 cmd->convert_arg = RTD_MIN_SPEED_1; 1839 rtd_ns_to_timer(&cmd->convert_arg, 1844 if (cmd->convert_arg < RTD_MAX_SPEED) { 1845 cmd->convert_arg = RTD_MAX_SPEED; 1846 rtd_ns_to_timer(&cmd->convert_arg, 1850 if (cmd->convert_arg > RTD_MIN_SPEED) { [all …]
|
D | dt282x.c | 809 if (cmd->convert_arg < 4000) { in dt282x_ai_cmdtest() 811 cmd->convert_arg = 4000; in dt282x_ai_cmdtest() 815 if (cmd->convert_arg > SLOWEST_TIMER) { in dt282x_ai_cmdtest() 816 cmd->convert_arg = SLOWEST_TIMER; in dt282x_ai_cmdtest() 819 if (cmd->convert_arg < this_board->ai_speed) { in dt282x_ai_cmdtest() 820 cmd->convert_arg = this_board->ai_speed; in dt282x_ai_cmdtest() 842 tmp = cmd->convert_arg; in dt282x_ai_cmdtest() 843 dt282x_ns_to_timer(&cmd->convert_arg, cmd->flags & TRIG_ROUND_MASK); in dt282x_ai_cmdtest() 844 if (tmp != cmd->convert_arg) in dt282x_ai_cmdtest() 867 if (cmd->convert_arg < this_board->ai_speed) in dt282x_ai_cmd() [all …]
|
D | pcl816.c | 490 cmd->start_arg, cmd->scan_begin_arg, cmd->convert_arg); in pcl816_cmdtest_out() 583 if (cmd->convert_arg < this_board->ai_ns_min) { in pcl816_ai_cmdtest() 584 cmd->convert_arg = this_board->ai_ns_min; in pcl816_ai_cmdtest() 588 if (cmd->convert_arg != 0) { in pcl816_ai_cmdtest() 589 cmd->convert_arg = 0; in pcl816_ai_cmdtest() 616 tmp = cmd->convert_arg; in pcl816_ai_cmdtest() 619 &cmd->convert_arg, in pcl816_ai_cmdtest() 621 if (cmd->convert_arg < this_board->ai_ns_min) in pcl816_ai_cmdtest() 622 cmd->convert_arg = this_board->ai_ns_min; in pcl816_ai_cmdtest() 623 if (tmp != cmd->convert_arg) in pcl816_ai_cmdtest() [all …]
|
D | amplc_pci230.c | 1695 min_scan_period = chanlist_len * cmd->convert_arg; in pci230_ai_check_scan_period() 1697 || (min_scan_period < cmd->convert_arg)) { in pci230_ai_check_scan_period() 1827 if (cmd->convert_arg < max_speed_ai) { in pci230_ai_cmdtest() 1828 cmd->convert_arg = max_speed_ai; in pci230_ai_cmdtest() 1831 if (cmd->convert_arg > MIN_SPEED_AI) { in pci230_ai_cmdtest() 1832 cmd->convert_arg = MIN_SPEED_AI; in pci230_ai_cmdtest() 1844 if ((cmd->convert_arg & CR_FLAGS_MASK) != 0) { in pci230_ai_cmdtest() 1846 if ((cmd->convert_arg & ~CR_FLAGS_MASK) != 0) { in pci230_ai_cmdtest() 1847 cmd->convert_arg = COMBINE(cmd->convert_arg, 0, in pci230_ai_cmdtest() 1853 if ((cmd->convert_arg & (CR_FLAGS_MASK & ~CR_INVERT)) in pci230_ai_cmdtest() [all …]
|
D | dt3000.c | 533 if (cmd->convert_arg < this_board->ai_speed) { in dt3k_ai_cmdtest() 534 cmd->convert_arg = this_board->ai_speed; in dt3k_ai_cmdtest() 537 if (cmd->convert_arg > 50 * 16 * 65535) { in dt3k_ai_cmdtest() 538 cmd->convert_arg = 50 * 16 * 65535; in dt3k_ai_cmdtest() 577 tmp = cmd->convert_arg; in dt3k_ai_cmdtest() 578 dt3k_ns_to_timer(50, &cmd->convert_arg, in dt3k_ai_cmdtest() 580 if (tmp != cmd->convert_arg) in dt3k_ai_cmdtest() 584 cmd->convert_arg * cmd->scan_end_arg) { in dt3k_ai_cmdtest() 586 cmd->convert_arg * cmd->scan_end_arg; in dt3k_ai_cmdtest() 658 divider = dt3k_ns_to_timer(50, &cmd->convert_arg, in dt3k_ai_cmd()
|
D | pcm_common.c | 77 if (cmd->convert_arg != 0) { in comedi_pcm_cmdtest() 78 cmd->convert_arg = 0; in comedi_pcm_cmdtest()
|
D | adl_pci9118.c | 1086 cmd->convert_arg = cmd->scan_begin_arg; in pci9118_ai_cmdtest() 1107 if (cmd->convert_arg < this_board->ai_ns_min) { in pci9118_ai_cmdtest() 1108 cmd->convert_arg = this_board->ai_ns_min; in pci9118_ai_cmdtest() 1113 if (cmd->convert_arg) { in pci9118_ai_cmdtest() 1114 cmd->convert_arg = 0; in pci9118_ai_cmdtest() 1170 tmp = cmd->convert_arg; in pci9118_ai_cmdtest() 1172 &divisor2, &cmd->convert_arg, in pci9118_ai_cmdtest() 1175 if (cmd->convert_arg < this_board->ai_ns_min) in pci9118_ai_cmdtest() 1176 cmd->convert_arg = this_board->ai_ns_min; in pci9118_ai_cmdtest() 1177 if (tmp != cmd->convert_arg) in pci9118_ai_cmdtest() [all …]
|
D | pcl812.c | 633 cmd->start_arg, cmd->scan_begin_arg, cmd->convert_arg); in pcl812_cmdtest_out() 754 if (cmd->convert_arg < this_board->ai_ns_min) { in pcl812_ai_cmdtest() 755 cmd->convert_arg = this_board->ai_ns_min; in pcl812_ai_cmdtest() 759 if (cmd->convert_arg != 0) { in pcl812_ai_cmdtest() 760 cmd->convert_arg = 0; in pcl812_ai_cmdtest() 802 tmp = cmd->convert_arg; in pcl812_ai_cmdtest() 804 &divisor2, &cmd->convert_arg, in pcl812_ai_cmdtest() 806 if (cmd->convert_arg < this_board->ai_ns_min) in pcl812_ai_cmdtest() 807 cmd->convert_arg = this_board->ai_ns_min; in pcl812_ai_cmdtest() 808 if (tmp != cmd->convert_arg) in pcl812_ai_cmdtest() [all …]
|
D | das16m1.c | 279 if (cmd->convert_arg < thisboard->ai_speed) { in das16m1_cmd_test() 280 cmd->convert_arg = thisboard->ai_speed; in das16m1_cmd_test() 306 tmp = cmd->convert_arg; in das16m1_cmd_test() 311 &(cmd->convert_arg), in das16m1_cmd_test() 313 if (tmp != cmd->convert_arg) in das16m1_cmd_test() 379 cmd->convert_arg = in das16m1_cmd_exec() 380 das16m1_set_pacer(dev, cmd->convert_arg, in das16m1_cmd_exec()
|
D | adl_pci9111.c | 691 (cmd->convert_arg < board->ai_acquisition_period_min_ns)) { in pci9111_ai_do_cmd_test() 692 cmd->convert_arg = board->ai_acquisition_period_min_ns; in pci9111_ai_do_cmd_test() 695 if ((cmd->convert_src == TRIG_EXT) && (cmd->convert_arg != 0)) { in pci9111_ai_do_cmd_test() 696 cmd->convert_arg = 0; in pci9111_ai_do_cmd_test() 736 tmp = cmd->convert_arg; in pci9111_ai_do_cmd_test() 740 &(cmd->convert_arg), in pci9111_ai_do_cmd_test() 742 if (tmp != cmd->convert_arg) in pci9111_ai_do_cmd_test() 754 scan_begin_min = cmd->chanlist_len * cmd->convert_arg; in pci9111_ai_do_cmd_test() 875 &(async_cmd->convert_arg), in pci9111_ai_do_cmd() 896 (async_cmd->convert_arg * in pci9111_ai_do_cmd()
|
D | quatech_daqp_cs.c | 528 && cmd->scan_begin_arg != cmd->convert_arg * cmd->scan_end_arg) { in daqp_ai_cmdtest() 532 if (cmd->convert_src == TRIG_TIMER && cmd->convert_arg < MAX_SPEED) { in daqp_ai_cmdtest() 533 cmd->convert_arg = MAX_SPEED; in daqp_ai_cmdtest() 568 tmp = cmd->convert_arg; in daqp_ai_cmdtest() 569 daqp_ns_to_timer(&cmd->convert_arg, in daqp_ai_cmdtest() 571 if (tmp != cmd->convert_arg) in daqp_ai_cmdtest() 618 counter = daqp_ns_to_timer(&cmd->convert_arg, in daqp_ai_cmd()
|
D | s626.c | 1211 cmd->convert_arg - in s626_irq_handler() 1219 cmd->convert_arg); in s626_irq_handler() 1234 if ((irqbit >> (cmd->convert_arg - in s626_irq_handler() 1240 cmd->convert_arg); in s626_irq_handler() 1255 cmd->convert_arg - in s626_irq_handler() 1260 cmd->convert_arg); in s626_irq_handler() 1854 tick = s626_ns_to_timer((int *)&cmd->convert_arg, in s626_ai_cmd() 1869 s626_dio_set_irq(dev, cmd->convert_arg); in s626_ai_cmd() 2000 if (cmd->convert_src == TRIG_EXT && cmd->convert_arg > 39) { in s626_ai_cmdtest() 2001 cmd->convert_arg = 39; in s626_ai_cmdtest() [all …]
|
D | das800.c | 662 if (cmd->convert_arg < thisboard->ai_speed) { in das800_ai_do_cmdtest() 663 cmd->convert_arg = thisboard->ai_speed; in das800_ai_do_cmdtest() 693 tmp = cmd->convert_arg; in das800_ai_do_cmdtest() 697 &(cmd->convert_arg), in das800_ai_do_cmdtest() 699 if (tmp != cmd->convert_arg) in das800_ai_do_cmdtest() 790 &(async->cmd.convert_arg), in das800_ai_do_cmd()
|
D | adv_pci1710.c | 931 cmd->start_arg, cmd->scan_begin_arg, cmd->convert_arg); in pci171x_cmdtest_out() 1037 if (cmd->convert_arg < this_board->ai_ns_min) { in pci171x_ai_cmdtest() 1038 cmd->convert_arg = this_board->ai_ns_min; in pci171x_ai_cmdtest() 1042 if (cmd->convert_arg != 0) { in pci171x_ai_cmdtest() 1043 cmd->convert_arg = 0; in pci171x_ai_cmdtest() 1077 tmp = cmd->convert_arg; in pci171x_ai_cmdtest() 1079 &divisor2, &cmd->convert_arg, in pci171x_ai_cmdtest() 1081 if (cmd->convert_arg < this_board->ai_ns_min) in pci171x_ai_cmdtest() 1082 cmd->convert_arg = this_board->ai_ns_min; in pci171x_ai_cmdtest() 1083 if (tmp != cmd->convert_arg) in pci171x_ai_cmdtest() [all …]
|
D | pcl818.c | 1043 &divisor2, &cmd->convert_arg, in pcl818_ai_cmd_mode() 1391 if (cmd->convert_arg < this_board->ns_min) { in ai_cmdtest() 1392 cmd->convert_arg = this_board->ns_min; in ai_cmdtest() 1396 if (cmd->convert_arg != 0) { in ai_cmdtest() 1397 cmd->convert_arg = 0; in ai_cmdtest() 1424 tmp = cmd->convert_arg; in ai_cmdtest() 1426 &divisor2, &cmd->convert_arg, in ai_cmdtest() 1428 if (cmd->convert_arg < this_board->ns_min) in ai_cmdtest() 1429 cmd->convert_arg = this_board->ns_min; in ai_cmdtest() 1430 if (tmp != cmd->convert_arg) in ai_cmdtest() [all …]
|
D | das16.c | 863 if (cmd->convert_arg < thisboard->ai_speed) { in das16_cmd_test() 864 cmd->convert_arg = thisboard->ai_speed; in das16_cmd_test() 890 unsigned int tmp = cmd->convert_arg; in das16_cmd_test() 895 &(cmd->convert_arg), in das16_cmd_test() 897 err += (tmp != cmd->convert_arg); in das16_cmd_test() 972 cmd->convert_arg = in das16_cmd_exec() 973 das16_set_pacer(dev, cmd->convert_arg, in das16_cmd_exec() 975 DEBUG_PRINT("pacer period: %d ns\n", cmd->convert_arg); in das16_cmd_exec() 1747 freq = 1000000000 / cmd.convert_arg; in das16_suggest_transfer_size()
|
D | ni_labpc.c | 971 return cmd->convert_arg; in labpc_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() 985 cmd->convert_arg = ns; in labpc_set_ai_convert_period() 1089 if (cmd->convert_arg < thisboard->ai_speed) { in labpc_ai_cmdtest() 1090 cmd->convert_arg = thisboard->ai_speed; in labpc_ai_cmdtest() 1098 cmd->convert_arg * cmd->chanlist_len) { in labpc_ai_cmdtest() 1100 cmd->convert_arg * cmd->chanlist_len; in labpc_ai_cmdtest() 1137 tmp = cmd->convert_arg; in labpc_ai_cmdtest() 1140 if (tmp != cmd->convert_arg || tmp2 != cmd->scan_begin_arg) in labpc_ai_cmdtest() [all …]
|
/linux-3.4.99/drivers/staging/comedi/ |
D | comedi_compat32.c | 66 unsigned int convert_arg; member 199 err |= __get_user(temp.uint, &cmd32->convert_arg); in get_compat_cmd() 200 err |= __put_user(temp.uint, &cmd->convert_arg); in get_compat_cmd() 250 err |= __get_user(temp, &cmd->convert_arg); in put_compat_cmd() 251 err |= __put_user(temp, &cmd32->convert_arg); in put_compat_cmd()
|