Home
last modified time | relevance | path

Searched refs:CR_CHAN (Results 1 – 25 of 98) sorted by relevance

1234

/linux-6.6.21/drivers/comedi/drivers/
Dni_660x.c535 unsigned int shift = CR_CHAN(insn->chanspec); in ni_660x_dio_insn_bits()
698 unsigned int chan = CR_CHAN(insn->chanspec); in ni_660x_dio_insn_config()
792 return ni_find_route_source(CR_CHAN(reg), dest, in get_output_select_source()
808 s8 reg = ni_route_to_register(CR_CHAN(src), dest, in test_route()
813 if (get_output_select_source(dest, dev) != CR_CHAN(src)) in test_route()
823 s8 reg = ni_route_to_register(CR_CHAN(src), dest, in connect_route()
832 if (current_src == CR_CHAN(src)) in connect_route()
839 if (channel_is_pfi(CR_CHAN(dest))) { in connect_route()
846 } else if (channel_is_rtsi(CR_CHAN(dest))) { in connect_route()
873 } else if (channel_is_ctr(CR_CHAN(dest))) { in connect_route()
[all …]
Dpcl816.c154 unsigned int first_chan = CR_CHAN(chanlist[0]); in pcl816_ai_setup_chanlist()
161 last_chan = CR_CHAN(chanlist[i]); in pcl816_ai_setup_chanlist()
299 (CR_CHAN(chansegment[i - 1]) + 1) % chanlen; in check_channel_list()
300 if (nowmustbechan != CR_CHAN(chanlist[i])) { in check_channel_list()
304 i, CR_CHAN(chanlist[i]), nowmustbechan, in check_channel_list()
305 CR_CHAN(chanlist[0])); in check_channel_list()
317 i, CR_CHAN(chansegment[i]), in check_channel_list()
320 CR_CHAN(chanlist[i % seglen]), in check_channel_list()
505 unsigned int chan = CR_CHAN(insn->chanspec); in pcl816_ai_insn_read()
Ddas6402.c226 unsigned int chan_lo = CR_CHAN(cmd->chanlist[0]); in das6402_ai_cmd()
227 unsigned int chan_hi = CR_CHAN(cmd->chanlist[cmd->chanlist_len - 1]); in das6402_ai_cmd()
250 unsigned int chan0 = CR_CHAN(cmd->chanlist[0]); in das6402_ai_check_chanlist()
256 unsigned int chan = CR_CHAN(cmd->chanlist[i]); in das6402_ai_check_chanlist()
381 unsigned int chan = CR_CHAN(insn->chanspec); in das6402_ai_insn_read()
420 unsigned int chan = CR_CHAN(insn->chanspec); in das6402_ao_insn_write()
479 unsigned int chan = CR_CHAN(insn->chanspec); in das6402_ao_insn_read()
Dmultiq3.c98 unsigned int chan = CR_CHAN(insn->chanspec); in multiq3_ai_insn_read()
135 unsigned int chan = CR_CHAN(insn->chanspec); in multiq3_ao_insn_write()
178 unsigned int chan = CR_CHAN(insn->chanspec); in multiq3_encoder_insn_read()
237 unsigned int chan = CR_CHAN(insn->chanspec); in multiq3_encoder_insn_config()
Dni_tiocmd.c135 int reg = CR_CHAN(cmd->start_arg); in ni_tio_input_cmd()
179 if (CR_CHAN(gate_source) >= NI_NAMES_BASE) { in ni_tio_cmd_setup()
181 int reg = ni_get_reg_value(CR_CHAN(gate_source), in ni_tio_cmd_setup()
308 err |= ni_check_trigger_arg(CR_CHAN(cmd->scan_begin_arg), in ni_tio_cmdtest()
314 err |= ni_check_trigger_arg(CR_CHAN(cmd->convert_arg), in ni_tio_cmdtest()
Dpcl818.c344 unsigned int first_chan = CR_CHAN(chanlist[0]); in pcl818_ai_setup_chanlist()
354 last_chan = CR_CHAN(chanlist[i]); in pcl818_ai_setup_chanlist()
592 (CR_CHAN(chansegment[i - 1]) + 1) % s->n_chan; in check_channel_list()
593 if (nowmustbechan != CR_CHAN(chanlist[i])) { in check_channel_list()
597 i, CR_CHAN(chanlist[i]), nowmustbechan, in check_channel_list()
598 CR_CHAN(chanlist[0])); in check_channel_list()
610 i, CR_CHAN(chansegment[i]), in check_channel_list()
613 CR_CHAN(chanlist[i % seglen]), in check_channel_list()
803 unsigned int chan = CR_CHAN(insn->chanspec); in pcl818_ai_insn_read()
833 unsigned int chan = CR_CHAN(insn->chanspec); in pcl818_ao_insn_write()
Ds526.c200 unsigned int chan = CR_CHAN(insn->chanspec); in s526_gpct_rinsn()
215 unsigned int chan = CR_CHAN(insn->chanspec); in s526_gpct_insn_config()
386 unsigned int chan = CR_CHAN(insn->chanspec); in s526_gpct_winsn()
438 unsigned int chan = CR_CHAN(insn->chanspec); in s526_ai_insn_read()
477 unsigned int chan = CR_CHAN(insn->chanspec); in s526_ao_insn_write()
519 unsigned int chan = CR_CHAN(insn->chanspec); in s526_dio_insn_config()
Dcb_pcidas.c329 unsigned int chan = CR_CHAN(insn->chanspec); in cb_pcidas_ai_insn_read()
408 unsigned int chan = CR_CHAN(insn->chanspec); in cb_pcidas_ao_nofifo_insn_write()
439 unsigned int chan = CR_CHAN(insn->chanspec); in cb_pcidas_ao_fifo_insn_write()
487 unsigned int chan = CR_CHAN(insn->chanspec); in cb_pcidas_eeprom_insn_read()
563 unsigned int chan = CR_CHAN(insn->chanspec); in cb_pcidas_caldac_insn_write()
600 unsigned int chan = CR_CHAN(insn->chanspec); in cb_pcidas_dac08_insn_write()
633 unsigned int chan = CR_CHAN(insn->chanspec); in cb_pcidas_trimpot_insn_write()
651 unsigned int chan0 = CR_CHAN(cmd->chanlist[0]); in cb_pcidas_ai_check_chanlist()
656 unsigned int chan = CR_CHAN(cmd->chanlist[i]); in cb_pcidas_ai_check_chanlist()
803 bits = PCIDAS_AI_FIRST(CR_CHAN(cmd->chanlist[0])) | in cb_pcidas_ai_cmd()
[all …]
Dadv_pci1710.c185 unsigned int chan0 = CR_CHAN(cmd->chanlist[0]); in pci1710_ai_check_chanlist()
201 unsigned int chan = CR_CHAN(cmd->chanlist[i]); in pci1710_ai_check_chanlist()
232 i, CR_CHAN(chansegment[i]), in pci1710_ai_check_chanlist()
235 CR_CHAN(cmd->chanlist[i % seglen]), in pci1710_ai_check_chanlist()
253 unsigned int first_chan = CR_CHAN(chanlist[0]); in pci1710_ai_setup_chanlist()
254 unsigned int last_chan = CR_CHAN(chanlist[seglen - 1]); in pci1710_ai_setup_chanlist()
258 unsigned int chan = CR_CHAN(chanlist[i]); in pci1710_ai_setup_chanlist()
278 devpriv->act_chanlist[i] = CR_CHAN(chanlist[i]); in pci1710_ai_setup_chanlist()
640 unsigned int chan = CR_CHAN(insn->chanspec); in pci1710_ao_insn_write()
Daio_aio12_8.c116 unsigned int chan = CR_CHAN(insn->chanspec); in aio_aio12_8_ai_read()
159 unsigned int chan = CR_CHAN(insn->chanspec); in aio_aio12_8_ao_insn_write()
180 unsigned int chan = CR_CHAN(insn->chanspec); in aio_aio12_8_counter_insn_config()
Dcb_pcimdda.c87 unsigned int chan = CR_CHAN(insn->chanspec); in cb_pcimdda_ao_insn_write()
117 unsigned int chan = CR_CHAN(insn->chanspec); in cb_pcimdda_ao_insn_read()
Dc6xdigio.c153 unsigned int chan = CR_CHAN(insn->chanspec); in c6xdigio_pwm_insn_write()
179 unsigned int chan = CR_CHAN(insn->chanspec); in c6xdigio_pwm_insn_read()
196 unsigned int chan = CR_CHAN(insn->chanspec); in c6xdigio_encoder_insn_read()
Dfl512.c54 unsigned int chan = CR_CHAN(insn->chanspec); in fl512_ai_insn_read()
81 unsigned int chan = CR_CHAN(insn->chanspec); in fl512_ao_insn_write()
Dni_mio_common.c1621 chan = CR_CHAN(list[0]); in ni_m_series_load_channelgain_list()
1640 chan = CR_CHAN(list[i]); in ni_m_series_load_channelgain_list()
1764 chan = CR_CHAN(list[i]); in ni_load_channelgain_list()
1779 ni_writew(dev, CR_CHAN(list[i]) & 0x0003, in ni_load_channelgain_list()
2048 err |= ni_check_trigger_arg_roffs(CR_CHAN(cmd->start_arg), in ni_ai_cmdtest()
2062 err |= ni_check_trigger_arg_roffs(CR_CHAN(cmd->scan_begin_arg), in ni_ai_cmdtest()
2082 err |= ni_check_trigger_arg_roffs(CR_CHAN(cmd->convert_arg), in ni_ai_cmdtest()
2202 CR_CHAN(cmd->start_arg), in ni_ai_cmd()
2317 CR_CHAN(cmd->scan_begin_arg), in ni_ai_cmd()
2349 CR_CHAN(cmd->convert_arg), in ni_ai_cmd()
[all …]
Ddt2815.c76 int chan = CR_CHAN(insn->chanspec); in dt2815_ao_insn_read()
89 int chan = CR_CHAN(insn->chanspec); in dt2815_ao_insn()
Dadl_pci8164.c36 unsigned int chan = CR_CHAN(insn->chanspec); in adl_pci8164_insn_read()
51 unsigned int chan = CR_CHAN(insn->chanspec); in adl_pci8164_insn_write()
Dvmk80xx.c245 chan = CR_CHAN(insn->chanspec); in vmk80xx_ai_insn_read()
294 chan = CR_CHAN(insn->chanspec); in vmk80xx_ao_insn_write()
334 chan = CR_CHAN(insn->chanspec); in vmk80xx_ao_insn_read()
446 chan = CR_CHAN(insn->chanspec); in vmk80xx_cnt_insn_read()
485 unsigned int chan = CR_CHAN(insn->chanspec); in vmk80xx_cnt_insn_config()
529 chan = CR_CHAN(insn->chanspec); in vmk80xx_cnt_insn_write()
Dni_at_ao.c129 unsigned int chan = CR_CHAN(insn->chanspec); in atao_ao_insn_write()
170 unsigned int chan = CR_CHAN(insn->chanspec); in atao_dio_insn_config()
235 unsigned int chan = CR_CHAN(insn->chanspec); in atao_calib_insn_write()
Dpcm3724.c130 mask = 1 << CR_CHAN(chanspec); in enable_chan()
163 unsigned int chan = CR_CHAN(insn->chanspec); in subdev_3724_insn_config()
Dcb_pcidas64.c1756 channel = CR_CHAN(insn->chanspec); in ai_rinsn()
1856 writew(adc_convert_chan_4020_bits(CR_CHAN(insn->chanspec)), in ai_rinsn()
2076 unsigned int chan0 = CR_CHAN(cmd->chanlist[0]); in cb_pcidas64_ai_check_chanlist()
2079 unsigned int chan = CR_CHAN(cmd->chanlist[i]); in cb_pcidas64_ai_check_chanlist()
2325 if (CR_CHAN(chanspec)) in select_master_clock_4020()
2399 if (CR_CHAN(cmd->chanlist[i + 1]) != in use_internal_queue_6xxx()
2400 CR_CHAN(cmd->chanlist[i]) + 1) in use_internal_queue_6xxx()
2426 bits |= adc_chan_bits(CR_CHAN(cmd->chanlist[0])); in setup_channel_queue()
2438 (CR_CHAN(cmd->chanlist[cmd->chanlist_len - 1])), in setup_channel_queue()
2464 bits |= adc_chan_bits(CR_CHAN(chanspec)); in setup_channel_queue()
[all …]
Ddt3000.c461 chan = CR_CHAN(cmd->chanlist[i]); in dt3k_ai_cmd()
511 chan = CR_CHAN(insn->chanspec); in dt3k_ai_insn_read()
526 unsigned int chan = CR_CHAN(insn->chanspec); in dt3k_ao_insn_write()
556 unsigned int chan = CR_CHAN(insn->chanspec); in dt3k_dio_insn_config()
592 unsigned int addr = CR_CHAN(insn->chanspec); in dt3k_mem_insn_read()
Dni_labpc_common.c230 unsigned int chan = CR_CHAN(insn->chanspec); in labpc_ai_insn_read()
427 chan0 = CR_CHAN(cmd->chanlist[0]); in labpc_ai_scan_mode()
428 chan1 = CR_CHAN(cmd->chanlist[1]); in labpc_ai_scan_mode()
444 unsigned int chan0 = CR_CHAN(cmd->chanlist[0]); in labpc_ai_check_chanlist()
450 unsigned int chan = CR_CHAN(cmd->chanlist[i]); in labpc_ai_check_chanlist()
621 unsigned int chan = CR_CHAN(chanspec); in labpc_ai_cmd()
912 channel = CR_CHAN(insn->chanspec); in labpc_ao_insn_write()
1124 unsigned int chan = CR_CHAN(insn->chanspec); in labpc_calib_insn_write()
1161 unsigned int chan = CR_CHAN(insn->chanspec); in labpc_eeprom_insn_write()
Dke_counter.c45 unsigned int chan = CR_CHAN(insn->chanspec); in ke_counter_insn_write()
67 unsigned int chan = CR_CHAN(insn->chanspec); in ke_counter_insn_read()
Dadv_pci1723.c82 unsigned int chan = CR_CHAN(insn->chanspec); in pci1723_ao_insn_write()
100 unsigned int chan = CR_CHAN(insn->chanspec); in pci1723_dio_insn_config()
Ddmm32at.c162 unsigned int chan = CR_CHAN(chanspec); in dmm32at_ai_set_chanspec()
236 unsigned int chan0 = CR_CHAN(cmd->chanlist[0]); in dmm32at_ai_check_chanlist()
241 unsigned int chan = CR_CHAN(cmd->chanlist[i]); in dmm32at_ai_check_chanlist()
455 unsigned int chan = CR_CHAN(insn->chanspec); in dmm32at_ao_insn_write()

1234