/drivers/staging/comedi/drivers/ |
D | ni_tiocmd.c | 157 case TRIG_EXT: in ni_tio_input_cmd() 192 if (cmd->scan_begin_src == TRIG_EXT) { in ni_tio_cmd_setup() 195 } else if (cmd->convert_src == TRIG_EXT) { in ni_tio_cmd_setup() 248 sources |= TRIG_EXT; in ni_tio_cmdtest() 254 cmd->scan_begin_src &= TRIG_FOLLOW | TRIG_EXT | TRIG_OTHER; in ni_tio_cmdtest() 259 sources = TRIG_NOW | TRIG_EXT | TRIG_OTHER; in ni_tio_cmdtest() 281 cmd->start_src != TRIG_EXT && cmd->start_src != TRIG_OTHER) in ni_tio_cmdtest() 284 cmd->scan_begin_src != TRIG_EXT && in ni_tio_cmdtest() 288 cmd->convert_src != TRIG_EXT && cmd->convert_src != TRIG_NOW) in ni_tio_cmdtest() 300 if (cmd->start_src != TRIG_EXT) { in ni_tio_cmdtest() [all …]
|
D | me4000.c | 1277 if ((cmd->start_src == TRIG_EXT && in ai_prepare() 1280 (cmd->start_src == TRIG_EXT && in ai_prepare() 1286 } else if (cmd->start_src == TRIG_EXT && in ai_prepare() 1287 cmd->scan_begin_src == TRIG_EXT && in ai_prepare() 1292 } else if (cmd->start_src == TRIG_EXT && in ai_prepare() 1293 cmd->scan_begin_src == TRIG_EXT && in ai_prepare() 1294 cmd->convert_src == TRIG_EXT) { in ai_prepare() 1460 case TRIG_EXT: in me4000_ai_do_cmd_test() 1463 cmd->start_src &= TRIG_NOW | TRIG_EXT; in me4000_ai_do_cmd_test() 1476 case TRIG_EXT: in me4000_ai_do_cmd_test() [all …]
|
D | adl_pci9118.c | 966 cmd->start_src &= TRIG_NOW | TRIG_EXT | TRIG_INT; in pci9118_ai_cmdtest() 972 cmd->scan_begin_src &= TRIG_TIMER | TRIG_EXT | TRIG_FOLLOW; in pci9118_ai_cmdtest() 981 cmd->convert_src &= TRIG_TIMER | TRIG_EXT | TRIG_NOW; in pci9118_ai_cmdtest() 983 cmd->convert_src &= TRIG_TIMER | TRIG_EXT; in pci9118_ai_cmdtest() 994 cmd->stop_src &= TRIG_COUNT | TRIG_NONE | TRIG_EXT; in pci9118_ai_cmdtest() 1008 cmd->start_src != TRIG_INT && cmd->start_src != TRIG_EXT) { in pci9118_ai_cmdtest() 1014 cmd->scan_begin_src != TRIG_EXT && in pci9118_ai_cmdtest() 1022 cmd->convert_src != TRIG_EXT && cmd->convert_src != TRIG_NOW) { in pci9118_ai_cmdtest() 1034 cmd->stop_src != TRIG_INT && cmd->stop_src != TRIG_EXT) { in pci9118_ai_cmdtest() 1039 if (cmd->start_src == TRIG_EXT && cmd->scan_begin_src == TRIG_EXT) { in pci9118_ai_cmdtest() [all …]
|
D | amplc_pci224.c | 635 if (cmd->stop_src == TRIG_EXT) in pci224_ao_start() 804 cmd->start_src &= TRIG_INT | TRIG_EXT; in pci224_ao_cmdtest() 809 cmd->scan_begin_src &= TRIG_EXT | TRIG_TIMER; in pci224_ao_cmdtest() 824 cmd->stop_src &= TRIG_COUNT | TRIG_EXT | TRIG_NONE; in pci224_ao_cmdtest() 849 if (cmd->start_src & TRIG_EXT) in pci224_ao_cmdtest() 851 if (cmd->scan_begin_src & TRIG_EXT) in pci224_ao_cmdtest() 853 if (cmd->stop_src & TRIG_EXT) in pci224_ao_cmdtest() 870 case TRIG_EXT: in pci224_ao_cmdtest() 901 case TRIG_EXT: in pci224_ao_cmdtest() 936 case TRIG_EXT: in pci224_ao_cmdtest() [all …]
|
D | usbduxfast.c | 575 cmd->start_src &= TRIG_NOW | TRIG_EXT | TRIG_INT; in usbduxfast_ai_cmdtest() 580 cmd->scan_begin_src &= TRIG_TIMER | TRIG_FOLLOW | TRIG_EXT; in usbduxfast_ai_cmdtest() 585 cmd->convert_src &= TRIG_TIMER | TRIG_EXT; in usbduxfast_ai_cmdtest() 608 cmd->start_src != TRIG_EXT && cmd->start_src != TRIG_INT) in usbduxfast_ai_cmdtest() 612 cmd->scan_begin_src != TRIG_EXT) in usbduxfast_ai_cmdtest() 614 if (cmd->convert_src != TRIG_TIMER && cmd->convert_src != TRIG_EXT) in usbduxfast_ai_cmdtest() 617 cmd->stop_src != TRIG_EXT && cmd->stop_src != TRIG_NONE) in usbduxfast_ai_cmdtest() 621 if (cmd->start_src == TRIG_EXT && cmd->stop_src == TRIG_EXT) in usbduxfast_ai_cmdtest() 836 if ((cmd->start_src == TRIG_EXT) && (cmd->chanlist_len != 1) in usbduxfast_ai_cmd() 865 if (cmd->start_src == TRIG_EXT) { in usbduxfast_ai_cmd() [all …]
|
D | cb_pcidas.c | 1088 cmd->start_src &= TRIG_NOW | TRIG_EXT; in cb_pcidas_ai_cmdtest() 1093 cmd->scan_begin_src &= TRIG_FOLLOW | TRIG_TIMER | TRIG_EXT; in cb_pcidas_ai_cmdtest() 1098 cmd->convert_src &= TRIG_TIMER | TRIG_NOW | TRIG_EXT; in cb_pcidas_ai_cmdtest() 1117 if (cmd->start_src != TRIG_NOW && cmd->start_src != TRIG_EXT) in cb_pcidas_ai_cmdtest() 1121 cmd->scan_begin_src != TRIG_EXT) in cb_pcidas_ai_cmdtest() 1124 cmd->convert_src != TRIG_EXT && cmd->convert_src != TRIG_NOW) in cb_pcidas_ai_cmdtest() 1134 if (cmd->start_src == TRIG_EXT && in cb_pcidas_ai_cmdtest() 1135 (cmd->convert_src == TRIG_EXT || cmd->scan_begin_src == TRIG_EXT)) in cb_pcidas_ai_cmdtest() 1144 case TRIG_EXT: in cb_pcidas_ai_cmdtest() 1273 if (cmd->convert_src == TRIG_EXT || cmd->scan_begin_src == TRIG_EXT) in cb_pcidas_ai_cmd() [all …]
|
D | ni_labpc.c | 1022 cmd->start_src &= TRIG_NOW | TRIG_EXT; in labpc_ai_cmdtest() 1027 cmd->scan_begin_src &= TRIG_TIMER | TRIG_FOLLOW | TRIG_EXT; in labpc_ai_cmdtest() 1032 cmd->convert_src &= TRIG_TIMER | TRIG_EXT; in labpc_ai_cmdtest() 1044 stop_mask |= TRIG_EXT; in labpc_ai_cmdtest() 1054 if (cmd->start_src != TRIG_NOW && cmd->start_src != TRIG_EXT) in labpc_ai_cmdtest() 1058 cmd->scan_begin_src != TRIG_EXT) in labpc_ai_cmdtest() 1060 if (cmd->convert_src != TRIG_TIMER && cmd->convert_src != TRIG_EXT) in labpc_ai_cmdtest() 1063 cmd->stop_src != TRIG_EXT && cmd->stop_src != TRIG_NONE) in labpc_ai_cmdtest() 1067 if (cmd->start_src == TRIG_EXT && cmd->stop_src == TRIG_EXT) in labpc_ai_cmdtest() 1186 if (cmd->stop_src == TRIG_EXT) { in labpc_ai_cmd() [all …]
|
D | das1800.c | 1196 cmd->start_src &= TRIG_NOW | TRIG_EXT; in das1800_ai_do_cmdtest() 1201 cmd->scan_begin_src &= TRIG_FOLLOW | TRIG_TIMER | TRIG_EXT; in das1800_ai_do_cmdtest() 1206 cmd->convert_src &= TRIG_TIMER | TRIG_EXT; in das1800_ai_do_cmdtest() 1216 cmd->stop_src &= TRIG_COUNT | TRIG_EXT | TRIG_NONE; in das1800_ai_do_cmdtest() 1226 if (cmd->start_src != TRIG_NOW && cmd->start_src != TRIG_EXT) in das1800_ai_do_cmdtest() 1230 cmd->scan_begin_src != TRIG_EXT) in das1800_ai_do_cmdtest() 1232 if (cmd->convert_src != TRIG_TIMER && cmd->convert_src != TRIG_EXT) in das1800_ai_do_cmdtest() 1235 cmd->stop_src != TRIG_NONE && cmd->stop_src != TRIG_EXT) in das1800_ai_do_cmdtest() 1371 if (cmd.stop_src == TRIG_EXT) in control_a_bits() 1374 case TRIG_EXT: in control_a_bits() [all …]
|
D | s626.c | 1123 if (devpriv->ai_cmd_running && cmd->scan_begin_src == TRIG_EXT) { in s626_irq_handler() 1166 == 1 && cmd->start_src == TRIG_EXT) { in s626_irq_handler() 1178 TRIG_EXT) { in s626_irq_handler() 1195 TRIG_EXT) { in s626_irq_handler() 1207 TRIG_EXT) { in s626_irq_handler() 1237 && cmd->convert_src == TRIG_EXT) { in s626_irq_handler() 1838 case TRIG_EXT: in s626_ai_cmd() 1840 if (cmd->start_src != TRIG_EXT) in s626_ai_cmd() 1865 case TRIG_EXT: in s626_ai_cmd() 1867 if (cmd->scan_begin_src != TRIG_EXT in s626_ai_cmd() [all …]
|
D | adl_pci9111.c | 634 TRIG_TIMER | TRIG_FOLLOW | TRIG_EXT); in pci9111_ai_do_cmd_test() 635 pci9111_check_trigger_src(cmd->convert_src, TRIG_TIMER | TRIG_EXT); in pci9111_ai_do_cmd_test() 650 (cmd->scan_begin_src != TRIG_EXT)) in pci9111_ai_do_cmd_test() 653 if ((cmd->convert_src != TRIG_TIMER) && (cmd->convert_src != TRIG_EXT)) in pci9111_ai_do_cmd_test() 659 if ((cmd->convert_src == TRIG_EXT) && in pci9111_ai_do_cmd_test() 660 !((cmd->scan_begin_src == TRIG_EXT) || in pci9111_ai_do_cmd_test() 695 if ((cmd->convert_src == TRIG_EXT) && (cmd->convert_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() 902 case TRIG_EXT: in pci9111_ai_do_cmd()
|
D | das16m1.c | 226 cmd->start_src &= TRIG_NOW | TRIG_EXT; in das16m1_cmd_test() 236 cmd->convert_src &= TRIG_TIMER | TRIG_EXT; in das16m1_cmd_test() 256 if (cmd->start_src != TRIG_NOW && cmd->start_src != TRIG_EXT) in das16m1_cmd_test() 258 if (cmd->convert_src != TRIG_TIMER && cmd->convert_src != TRIG_EXT) in das16m1_cmd_test() 387 if (cmd->start_src == TRIG_EXT && cmd->convert_src != TRIG_EXT) in das16m1_cmd_exec()
|
D | skel.c | 378 cmd->scan_begin_src &= TRIG_TIMER | TRIG_EXT; in skel_ai_cmdtest() 383 cmd->convert_src &= TRIG_TIMER | TRIG_EXT; in skel_ai_cmdtest() 405 cmd->scan_begin_src != TRIG_EXT) in skel_ai_cmdtest() 407 if (cmd->convert_src != TRIG_TIMER && cmd->convert_src != TRIG_EXT) in skel_ai_cmdtest()
|
D | das800.c | 616 cmd->start_src &= TRIG_NOW | TRIG_EXT; in das800_ai_do_cmdtest() 626 cmd->convert_src &= TRIG_TIMER | TRIG_EXT; in das800_ai_do_cmdtest() 645 if (cmd->start_src != TRIG_NOW && cmd->start_src != TRIG_EXT) in das800_ai_do_cmdtest() 647 if (cmd->convert_src != TRIG_TIMER && cmd->convert_src != TRIG_EXT) in das800_ai_do_cmdtest() 782 if (async->cmd.start_src == TRIG_EXT) in das800_ai_do_cmd() 798 case TRIG_EXT: in das800_ai_do_cmd()
|
D | cb_pcidda.c | 465 cmd->scan_begin_src &= TRIG_TIMER | TRIG_EXT; 470 cmd->convert_src &= TRIG_TIMER | TRIG_EXT; 491 && cmd->scan_begin_src != TRIG_EXT) 493 if (cmd->convert_src != TRIG_TIMER && cmd->convert_src != TRIG_EXT) 495 if (cmd->stop_src != TRIG_TIMER && cmd->stop_src != TRIG_EXT)
|
D | cb_pcidas64.c | 2206 cmd->start_src &= TRIG_NOW | TRIG_EXT; in ai_cmdtest() 2225 triggers |= TRIG_EXT; in ai_cmdtest() 2236 cmd->stop_src &= TRIG_COUNT | TRIG_EXT | TRIG_NONE; in ai_cmdtest() 2246 if (cmd->start_src != TRIG_NOW && cmd->start_src != TRIG_EXT) in ai_cmdtest() 2253 cmd->convert_src != TRIG_EXT && cmd->convert_src != TRIG_NOW) in ai_cmdtest() 2256 cmd->stop_src != TRIG_NONE && cmd->stop_src != TRIG_EXT) in ai_cmdtest() 2260 if (cmd->convert_src == TRIG_EXT && cmd->scan_begin_src == TRIG_TIMER) in ai_cmdtest() 2263 cmd->stop_src != TRIG_NONE && cmd->stop_src != TRIG_EXT) in ai_cmdtest() 2305 case TRIG_EXT: in ai_cmdtest() 2788 if (cmd->convert_src == TRIG_EXT) in ai_cmd() [all …]
|
D | cb_das16_cs.c | 349 cmd->scan_begin_src &= TRIG_TIMER | TRIG_EXT; in das16cs_ai_cmdtest() 354 cmd->convert_src &= TRIG_TIMER | TRIG_EXT; in das16cs_ai_cmdtest() 376 cmd->scan_begin_src != TRIG_EXT) in das16cs_ai_cmdtest() 378 if (cmd->convert_src != TRIG_TIMER && cmd->convert_src != TRIG_EXT) in das16cs_ai_cmdtest()
|
D | pcl711.c | 309 cmd->scan_begin_src &= TRIG_TIMER | TRIG_EXT; in pcl711_ai_cmdtest() 334 cmd->scan_begin_src != TRIG_EXT) in pcl711_ai_cmdtest() 348 if (cmd->scan_begin_src == TRIG_EXT) { in pcl711_ai_cmdtest()
|
D | ni_mio_common.c | 2177 cmd->start_src &= TRIG_NOW | TRIG_INT | TRIG_EXT; in ni_ai_cmdtest() 2182 cmd->scan_begin_src &= TRIG_TIMER | TRIG_EXT; in ni_ai_cmdtest() 2187 sources = TRIG_TIMER | TRIG_EXT; in ni_ai_cmdtest() 2212 cmd->start_src != TRIG_INT && cmd->start_src != TRIG_EXT) in ni_ai_cmdtest() 2215 cmd->scan_begin_src != TRIG_EXT && in ni_ai_cmdtest() 2219 cmd->convert_src != TRIG_EXT && cmd->convert_src != TRIG_NOW) in ni_ai_cmdtest() 2229 if (cmd->start_src == TRIG_EXT) { in ni_ai_cmdtest() 2260 } else if (cmd->scan_begin_src == TRIG_EXT) { in ni_ai_cmdtest() 2294 } else if (cmd->convert_src == TRIG_EXT) { in ni_ai_cmdtest() 2417 case TRIG_EXT: in ni_ai_cmd() [all …]
|
D | amplc_pci230.c | 1300 cmd->scan_begin_src &= TRIG_TIMER | TRIG_INT | TRIG_EXT; in pci230_ao_cmdtest() 1369 case TRIG_EXT: in pci230_ao_cmdtest() 1538 case TRIG_EXT: in pci230_ao_start() 1739 | TRIG_EXT; in pci230_ai_cmdtest() 1747 cmd->convert_src &= TRIG_TIMER | TRIG_INT | TRIG_EXT; in pci230_ai_cmdtest() 1835 } else if (cmd->convert_src == TRIG_EXT) { in pci230_ai_cmdtest() 1890 if (cmd->scan_begin_src == TRIG_EXT) { in pci230_ai_cmdtest() 2235 case TRIG_EXT: in pci230_ai_start() 2290 case TRIG_EXT: in pci230_ai_start()
|
D | adv_pci1710.c | 957 cmd->start_src &= TRIG_NOW | TRIG_EXT; in pci171x_ai_cmdtest() 967 cmd->convert_src &= TRIG_TIMER | TRIG_EXT; in pci171x_ai_cmdtest() 993 if (cmd->start_src != TRIG_NOW && cmd->start_src != TRIG_EXT) { in pci171x_ai_cmdtest() 1003 if (cmd->convert_src != TRIG_TIMER && cmd->convert_src != TRIG_EXT) in pci171x_ai_cmdtest() 1132 TRIG_EXT ? 2 : 1, dev, in pci171x_ai_cmd() 1135 if (cmd->convert_src == TRIG_EXT) { /* mode 3 */ in pci171x_ai_cmd()
|
D | pcm_common.c | 22 cmd->scan_begin_src &= TRIG_EXT; in comedi_pcm_cmdtest()
|
D | ni_at_a2150.c | 515 cmd->start_src &= TRIG_NOW | TRIG_EXT; in a2150_ai_cmdtest() 544 if (cmd->start_src != TRIG_NOW && cmd->start_src != TRIG_EXT) in a2150_ai_cmdtest() 724 if (cmd->start_src == TRIG_EXT) { in a2150_ai_cmd()
|
D | rtd520.c | 1742 cmd->scan_begin_src &= TRIG_TIMER | TRIG_EXT; 1748 cmd->convert_src &= TRIG_TIMER | TRIG_EXT; 1772 cmd->scan_begin_src != TRIG_EXT) { 1775 if (cmd->convert_src != TRIG_TIMER && cmd->convert_src != TRIG_EXT) 2055 case TRIG_EXT: 2077 case TRIG_EXT: /* external */
|
D | das16.c | 785 mask |= TRIG_TIMER | TRIG_EXT; in das16_cmd_test() 791 mask = TRIG_TIMER | TRIG_EXT; in das16_cmd_test() 817 cmd->scan_begin_src != TRIG_EXT && in das16_cmd_test() 821 cmd->convert_src != TRIG_EXT && cmd->convert_src != TRIG_NOW) in das16_cmd_test() 1020 if (cmd->convert_src == TRIG_EXT) in das16_cmd_exec()
|
D | pcl812.c | 669 cmd->convert_src &= TRIG_EXT; in pcl812_ai_cmdtest() 712 if (cmd->convert_src != TRIG_EXT) { in pcl812_ai_cmdtest() 713 cmd->convert_src = TRIG_EXT; in pcl812_ai_cmdtest() 841 if (cmd->convert_src != TRIG_EXT) in pcl812_ai_cmd()
|