Home
last modified time | relevance | path

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

12345

/drivers/staging/comedi/drivers/
Dadv_pci1710.c419 chan = CR_CHAN(insn->chanspec); in pci171x_insn_write_ao()
451 chan = CR_CHAN(insn->chanspec); in pci171x_insn_read_ao()
587 chan = CR_CHAN(insn->chanspec); in pci1720_insn_write_ao()
1169 if (CR_CHAN(chanlist[i]) & 1) /* odd channel cann't by differencial */ in check_channel_list()
1176 (CR_CHAN(chansegment[i - 1]) + 1) % s->n_chan; in check_channel_list()
1179 if (nowmustbechan != CR_CHAN(chanlist[i])) { /* channel list isn't continuous :-( */ in check_channel_list()
1182 i, CR_CHAN(chanlist[i]), nowmustbechan, in check_channel_list()
1183 CR_CHAN(chanlist[0])); in check_channel_list()
1194 i, CR_CHAN(chansegment[i]), in check_channel_list()
1197 CR_CHAN(chanlist[i % seglen]), in check_channel_list()
[all …]
Dpcl816.c267 outb(CR_CHAN(insn->chanspec) & 0xf, dev->iobase + PCL816_MUX); in pcl816_ai_insn_read()
963 CR_CHAN(chanlist[i]), in check_channel_list()
970 (CR_CHAN(chansegment[i - 1]) + 1) % chanlen; in check_channel_list()
971 if (nowmustbechan != CR_CHAN(chanlist[i])) { in check_channel_list()
977 i, CR_CHAN(chanlist[i]), nowmustbechan, in check_channel_list()
978 CR_CHAN(chanlist[0])); in check_channel_list()
988 CR_CHAN(chansegment[i % seglen]), in check_channel_list()
990 CR_CHAN(chanlist[i]), in check_channel_list()
997 CR_CHAN(chansegment[i]), in check_channel_list()
1000 CR_CHAN(chanlist[i % seglen]), in check_channel_list()
[all …]
Dni_labpc.c865 if (CR_CHAN(cmd->chanlist[0]) == CR_CHAN(cmd->chanlist[1])) in labpc_ai_scan_mode()
868 if (CR_CHAN(cmd->chanlist[0]) < CR_CHAN(cmd->chanlist[1])) in labpc_ai_scan_mode()
871 if (CR_CHAN(cmd->chanlist[0]) > CR_CHAN(cmd->chanlist[1])) in labpc_ai_scan_mode()
900 channel = CR_CHAN(cmd->chanlist[0]); in labpc_ai_chanlist_invalid()
908 if (CR_CHAN(cmd->chanlist[i]) != channel) { in labpc_ai_chanlist_invalid()
915 if (CR_CHAN(cmd->chanlist[i]) != i) { in labpc_ai_chanlist_invalid()
922 if (CR_CHAN(cmd->chanlist[i]) != in labpc_ai_chanlist_invalid()
1263 channel = CR_CHAN(cmd->chanlist[cmd->chanlist_len - 1]); in labpc_ai_cmd()
1265 channel = CR_CHAN(cmd->chanlist[0]); in labpc_ai_cmd()
1639 chan = CR_CHAN(insn->chanspec); in labpc_ai_rinsn()
[all …]
Dcb_pcidas.c813 channel = CR_CHAN(insn->chanspec); in cb_pcidas_ai_rinsn()
894 channel = CR_CHAN(insn->chanspec); in cb_pcidas_ao_nofifo_winsn()
923 channel = CR_CHAN(insn->chanspec); in cb_pcidas_ao_fifo_winsn()
951 data[0] = devpriv->ao_value[CR_CHAN(insn->chanspec)]; in cb_pcidas_ao_readback_insn()
963 retval = nvram_read(dev, CR_CHAN(insn->chanspec), &nvram_data); in eeprom_read_insn()
976 const unsigned int channel = CR_CHAN(insn->chanspec); in caldac_write_insn()
985 data[0] = devpriv->caldac_value[CR_CHAN(insn->chanspec)]; in caldac_read_insn()
1054 unsigned int channel = CR_CHAN(insn->chanspec); in trimpot_write_insn()
1063 unsigned int channel = CR_CHAN(insn->chanspec); in trimpot_read_insn()
1225 start_chan = CR_CHAN(cmd->chanlist[0]); in cb_pcidas_ai_cmdtest()
[all …]
Dfl512.c86 char chan = CR_CHAN(insn->chanspec); in fl512_ai_insn()
111 int chan = CR_CHAN(insn->chanspec); /* get chan to write */ in fl512_ao_insn()
135 int chan = CR_CHAN(insn->chanspec); in fl512_ao_insn_readback()
Daio_aio12_8.c98 (CR_RANGE(insn->chanspec) << 3) | CR_CHAN(insn->chanspec); in aio_aio12_8_ai_read()
131 int val = devpriv->ao_readback[CR_CHAN(insn->chanspec)]; in aio_aio12_8_ao_read()
143 int chan = CR_CHAN(insn->chanspec); in aio_aio12_8_ao_write()
Dii_pci20kc.c160 #define CHAN (CR_CHAN(it->chanlist[0]))
331 data[0] = sdp->pci20006.last_data[CR_CHAN(insn->chanspec)]; in pci20006_insn_read()
344 sdp->pci20006.last_data[CR_CHAN(insn->chanspec)] = data[0]; in pci20006_insn_write()
350 switch (CR_CHAN(insn->chanspec)) { in pci20006_insn_write()
452 | CR_CHAN(insn->chanspec); in pci20341_insn_read()
535 mask = 1 << CR_CHAN(insn->chanspec); in pci20xxx_dio_insn_config()
Dmultiq3.c122 chan = CR_CHAN(insn->chanspec); in multiq3_ai_insn_read()
156 int chan = CR_CHAN(insn->chanspec); in multiq3_ao_insn_read()
169 int chan = CR_CHAN(insn->chanspec); in multiq3_ao_insn_write()
217 int chan = CR_CHAN(insn->chanspec); in multiq3_encoder_insn_read()
Ddmm32at.c490 chan = CR_CHAN(insn->chanspec) & (s->n_chan - 1); in dmm32at_ai_rinsn()
713 start_chan = CR_CHAN(cmd->chanlist[0]); in dmm32at_ai_cmdtest()
715 if (CR_CHAN(cmd->chanlist[i]) != in dmm32at_ai_cmdtest()
745 chanlo = CR_CHAN(cmd->chanlist[0]) & (s->n_chan - 1); in dmm32at_ai_cmd()
883 int chan = CR_CHAN(insn->chanspec); in dmm32at_ao_winsn()
927 int chan = CR_CHAN(insn->chanspec); in dmm32at_ao_rinsn()
999 int chan = CR_CHAN(insn->chanspec); in dmm32at_dio_insn_config()
Dni_at_ao.c346 int chan = CR_CHAN(insn->chanspec); in atao_ao_winsn()
370 int chan = CR_CHAN(insn->chanspec); in atao_ao_rinsn()
400 int chan = CR_CHAN(insn->chanspec); in atao_dio_insn_config()
456 unsigned int chan = CR_CHAN(insn->chanspec); in atao_calib_insn_write()
Ds526.c519 int counter_channel = CR_CHAN(insn->chanspec); in s526_gpct_rinsn()
544 int subdev_channel = CR_CHAN(insn->chanspec); /* Unpack chanspec */ in s526_gpct_insn_config()
770 int subdev_channel = CR_CHAN(insn->chanspec); /* Unpack chanspec */ in s526_gpct_winsn()
868 int chan = CR_CHAN(insn->chanspec); in s526_ai_rinsn()
918 int chan = CR_CHAN(insn->chanspec); in s526_ao_winsn()
950 int chan = CR_CHAN(insn->chanspec); in s526_ao_rinsn()
993 int chan = CR_CHAN(insn->chanspec); in s526_dio_insn_config()
Dcb_pcidas64.c1954 channel = CR_CHAN(insn->chanspec); in ai_rinsn()
2046 writew(adc_convert_chan_4020_bits(CR_CHAN(insn->chanspec)), in ai_rinsn()
2354 unsigned int first_channel = CR_CHAN(cmd->chanlist[0]); in ai_cmdtest()
2356 if (CR_CHAN(cmd->chanlist[i]) != in ai_cmdtest()
2533 if (CR_CHAN(chanspec)) in select_master_clock_4020()
2609 if (CR_CHAN(cmd->chanlist[i + 1]) != in use_internal_queue_6xxx()
2610 CR_CHAN(cmd->chanlist[i]) + 1) in use_internal_queue_6xxx()
2634 bits |= adc_chan_bits(CR_CHAN(cmd->chanlist[0])); in setup_channel_queue()
2646 (CR_CHAN(cmd->chanlist[cmd->chanlist_len - 1])), in setup_channel_queue()
2670 adc_chan_bits(CR_CHAN(cmd->chanlist[i])); in setup_channel_queue()
[all …]
Dserial2002.c711 chan = devpriv->digital_in_mapping[CR_CHAN(insn->chanspec)]; in serial2002_di_rinsn()
733 chan = devpriv->digital_out_mapping[CR_CHAN(insn->chanspec)]; in serial2002_do_winsn()
752 chan = devpriv->analog_in_mapping[CR_CHAN(insn->chanspec)]; in serial2002_ai_rinsn()
774 chan = devpriv->analog_out_mapping[CR_CHAN(insn->chanspec)]; in serial2002_ao_winsn()
792 int chan = CR_CHAN(insn->chanspec); in serial2002_ao_rinsn()
807 chan = devpriv->encoder_in_mapping[CR_CHAN(insn->chanspec)]; in serial2002_ei_rinsn()
Ddt3000.c646 chan = CR_CHAN(cmd->chanlist[i]); in dt3k_ai_cmd()
720 chan = CR_CHAN(insn->chanspec); in dt3k_ai_insn()
737 chan = CR_CHAN(insn->chanspec); in dt3k_ao_insn()
753 chan = CR_CHAN(insn->chanspec); in dt3k_ao_insn_read()
781 mask = (CR_CHAN(insn->chanspec) < 4) ? 0x0f : 0xf0; in dt3k_dio_insn_config()
793 io_bits & (1 << CR_CHAN(insn->chanspec))) ? COMEDI_OUTPUT : in dt3k_dio_insn_config()
828 unsigned int addr = CR_CHAN(insn->chanspec); in dt3k_mem_insn_read()
Dni_mio_common.c1914 chan = CR_CHAN(list[0]); in ni_m_series_load_channelgain_list()
1938 chan = CR_CHAN(list[i]); in ni_m_series_load_channelgain_list()
2064 chan = CR_CHAN(list[i]); in ni_load_channelgain_list()
2080 ni_writew(CR_CHAN(list[i]) & 0x0003, in ni_load_channelgain_list()
2231 unsigned int tmp = CR_CHAN(cmd->start_arg); in ni_ai_cmdtest()
2262 unsigned int tmp = CR_CHAN(cmd->scan_begin_arg); in ni_ai_cmdtest()
2296 unsigned int tmp = CR_CHAN(cmd->convert_arg); in ni_ai_cmdtest()
2419 int chan = CR_CHAN(cmd->start_arg); in ni_ai_cmd()
2534 AI_START_Select(1 + CR_CHAN(cmd->scan_begin_arg)); in ni_ai_cmd()
2900 chan = CR_CHAN(chanspec[i]); in ni_m_series_ao_config_chanlist()
[all …]
Drti802.c90 data[i] = devpriv->ao_readback[CR_CHAN(insn->chanspec)]; in rti802_ao_insn_read()
100 int chan = CR_CHAN(insn->chanspec); in rti802_ao_insn_write()
Dni_670x.c272 int chan = CR_CHAN(insn->chanspec); in ni_670x_ao_winsn()
302 int chan = CR_CHAN(insn->chanspec); in ni_670x_ao_rinsn()
337 int chan = CR_CHAN(insn->chanspec); in ni_670x_dio_insn_config()
Dvmk80xx.c598 chan = CR_CHAN(insn->chanspec); in vmk80xx_ai_rinsn()
651 chan = CR_CHAN(insn->chanspec); in vmk80xx_ao_winsn()
696 chan = CR_CHAN(insn->chanspec); in vmk80xx_ao_rinsn()
776 chan = CR_CHAN(insn->chanspec); in vmk80xx_di_rinsn()
823 chan = CR_CHAN(insn->chanspec); in vmk80xx_do_winsn()
871 chan = CR_CHAN(insn->chanspec); in vmk80xx_do_rinsn()
972 chan = CR_CHAN(insn->chanspec); in vmk80xx_cnt_rinsn()
1027 chan = CR_CHAN(insn->chanspec); in vmk80xx_cnt_cinsn()
1070 chan = CR_CHAN(insn->chanspec); in vmk80xx_cnt_winsn()
/drivers/staging/comedi/drivers/addi-data/
Dhwdrv_apci1516.c81 ui_Channel = CR_CHAN(insn->chanspec); in i_APCI1516_Read1DigitalInput()
125 ui_NoOfChannels = CR_CHAN(insn->chanspec); in i_APCI1516_ReadMoreDigitalInput()
206 unsigned int ui_NoOfChannel = CR_CHAN(insn->chanspec); /* get the channel */ in i_APCI1516_WriteDigitalOutput()
367 unsigned int ui_NoOfChannel = CR_CHAN(insn->chanspec); /* get the channel */ in i_APCI1516_ReadDigitalOutput()
Dhwdrv_apci3xxx.c363 unsigned char b_Channel = (unsigned char) CR_CHAN(insn->chanspec); in i_APCI3XXX_InsnReadAnalogInput()
655 unsigned char b_Channel = (unsigned char) CR_CHAN(insn->chanspec); in i_APCI3XXX_InsnWriteAnalogOutput()
1043 unsigned char b_Channel = (unsigned char) CR_CHAN(insn->chanspec); in i_APCI3XXX_InsnReadTTLIO()
1158 unsigned char b_Channel = (unsigned char) CR_CHAN(insn->chanspec); in i_APCI3XXX_InsnWriteTTLIO()
1271 unsigned char b_Channel = (unsigned char) CR_CHAN(insn->chanspec); in i_APCI3XXX_InsnReadDigitalInput()
1484 unsigned char b_Channel = CR_CHAN(insn->chanspec); in i_APCI3XXX_InsnWriteDigitalOutput()
1561 unsigned char b_Channel = CR_CHAN(insn->chanspec); in i_APCI3XXX_InsnReadDigitalOutput()
DAPCI1710_82x54.c242 b_TimerNbr = (unsigned char) CR_CHAN(insn->chanspec); in i_APCI1710_InsnConfigInitTimer()
464 b_TimerNbr = (unsigned char) CR_CHAN(insn->chanspec);
601 b_ReadType = CR_CHAN(insn->chanspec); in i_APCI1710_InsnReadAllTimerValue()
697 (unsigned char)CR_CHAN(insn->chanspec), in i_APCI1710_InsnBitsTimer()
704 (unsigned char)CR_CHAN(insn->chanspec), in i_APCI1710_InsnBitsTimer()
711 (unsigned char)CR_CHAN(insn->chanspec), in i_APCI1710_InsnBitsTimer()
718 (unsigned char)CR_CHAN(insn->chanspec), in i_APCI1710_InsnBitsTimer()
Dhwdrv_apci2200.c81 ui_Channel = CR_CHAN(insn->chanspec); in i_APCI2200_Read1DigitalInput()
123 ui_NoOfChannels = CR_CHAN(insn->chanspec); in i_APCI2200_ReadMoreDigitalInput()
204 unsigned int ui_NoOfChannel = CR_CHAN(insn->chanspec); /* get the channel */ in i_APCI2200_WriteDigitalOutput()
362 unsigned int ui_NoOfChannel = CR_CHAN(insn->chanspec); /* get the channel */ in i_APCI2200_ReadDigitalOutput()
Dhwdrv_apci3501.c81 ui_NoOfChannel = CR_CHAN(insn->chanspec); in i_APCI3501_ReadDigitalInput()
168 unsigned int ui_NoOfChannel = CR_CHAN(insn->chanspec); /* get the channel */ in i_APCI3501_WriteDigitalOutput()
257 ui_NoOfChannel = CR_CHAN(insn->chanspec); in i_APCI3501_ReadDigitalOutput()
344 ul_Channel_no = CR_CHAN(insn->chanspec); in i_APCI3501_WriteAnalogOutput()
Dhwdrv_apci1032.c152 ui_Channel = CR_CHAN(insn->chanspec); in i_APCI1032_Read1DigitalInput()
195 ui_NoOfChannels = CR_CHAN(insn->chanspec); in i_APCI1032_ReadMoreDigitalInput()
/drivers/staging/comedi/
Drange.c139 if (CR_CHAN(chanlist[i]) >= s->n_chan || in comedi_check_chanlist()
150 chan = CR_CHAN(chanlist[i]); in comedi_check_chanlist()

12345