Home
last modified time | relevance | path

Searched refs:insn (Results 1 – 25 of 152) sorted by relevance

1234567

/drivers/staging/comedi/kcomedilib/
Dkcomedilib_main.c83 static int comedi_do_insn(struct comedi_device *dev, struct comedi_insn *insn) in comedi_do_insn() argument
89 if (insn->subdev >= dev->n_subdevices) { in comedi_do_insn()
93 s = dev->subdevices + insn->subdev; in comedi_do_insn()
96 printk(KERN_ERR "%d not useable subdevice\n", insn->subdev); in comedi_do_insn()
103 ret = comedi_check_chanlist(s, 1, &insn->chanspec); in comedi_do_insn()
116 switch (insn->insn) { in comedi_do_insn()
118 ret = s->insn_bits(dev, s, insn, insn->data); in comedi_do_insn()
122 ret = s->insn_config(dev, s, insn, insn->data); in comedi_do_insn()
138 struct comedi_insn insn; in comedi_dio_config() local
140 memset(&insn, 0, sizeof(insn)); in comedi_dio_config()
[all …]
/drivers/staging/comedi/drivers/addi-data/
Dhwdrv_apci3xxx.c108 struct comedi_insn *insn, in i_APCI3XXX_AnalogInputConfigOperatingMode() argument
111 int i_ReturnValue = insn->n; in i_APCI3XXX_AnalogInputConfigOperatingMode()
121 if (insn->n == 4) { in i_APCI3XXX_AnalogInputConfigOperatingMode()
297 struct comedi_insn *insn, in i_APCI3XXX_InsnConfigAnalogInput() argument
300 int i_ReturnValue = insn->n; in i_APCI3XXX_InsnConfigAnalogInput()
306 if (insn->n >= 1) { in i_APCI3XXX_InsnConfigAnalogInput()
311 s, insn, data); in i_APCI3XXX_InsnConfigAnalogInput()
358 struct comedi_insn *insn, in i_APCI3XXX_InsnReadAnalogInput() argument
361 int i_ReturnValue = insn->n; in i_APCI3XXX_InsnReadAnalogInput()
362 unsigned char b_Configuration = (unsigned char) CR_RANGE(insn->chanspec); in i_APCI3XXX_InsnReadAnalogInput()
[all …]
Dhwdrv_apci1516.c77 struct comedi_insn *insn, unsigned int *data) in i_APCI1516_Read1DigitalInput() argument
81 ui_Channel = CR_CHAN(insn->chanspec); in i_APCI1516_Read1DigitalInput()
93 return insn->n; in i_APCI1516_Read1DigitalInput()
118 struct comedi_insn *insn, unsigned int *data) in i_APCI1516_ReadMoreDigitalInput() argument
125 ui_NoOfChannels = CR_CHAN(insn->chanspec); in i_APCI1516_ReadMoreDigitalInput()
146 return insn->n; in i_APCI1516_ReadMoreDigitalInput()
175 struct comedi_insn *insn, unsigned int *data) in i_APCI1516_ConfigDigitalOutput() argument
178 return insn->n; in i_APCI1516_ConfigDigitalOutput()
203 struct comedi_insn *insn, unsigned int *data) in i_APCI1516_WriteDigitalOutput() argument
206 unsigned int ui_NoOfChannel = CR_CHAN(insn->chanspec); /* get the channel */ in i_APCI1516_WriteDigitalOutput()
[all …]
Daddi_common.h105 struct comedi_insn *insn,
109 struct comedi_insn *insn,
113 struct comedi_insn *insn,
117 struct comedi_insn *insn,
130 struct comedi_insn *insn,
134 struct comedi_insn *insn,
138 struct comedi_insn *insn,
144 struct comedi_insn *insn,
148 struct comedi_insn *insn,
152 struct comedi_insn *insn,
[all …]
Dhwdrv_apci2200.c77 struct comedi_insn *insn, unsigned int *data) in i_APCI2200_Read1DigitalInput() argument
81 ui_Channel = CR_CHAN(insn->chanspec); in i_APCI2200_Read1DigitalInput()
91 return insn->n; in i_APCI2200_Read1DigitalInput()
116 struct comedi_insn *insn, unsigned int *data) in i_APCI2200_ReadMoreDigitalInput() argument
123 ui_NoOfChannels = CR_CHAN(insn->chanspec); in i_APCI2200_ReadMoreDigitalInput()
144 return insn->n; in i_APCI2200_ReadMoreDigitalInput()
173 struct comedi_insn *insn, unsigned int *data) in i_APCI2200_ConfigDigitalOutput() argument
176 return insn->n; in i_APCI2200_ConfigDigitalOutput()
201 struct comedi_insn *insn, unsigned int *data) in i_APCI2200_WriteDigitalOutput() argument
204 unsigned int ui_NoOfChannel = CR_CHAN(insn->chanspec); /* get the channel */ in i_APCI2200_WriteDigitalOutput()
[all …]
Dhwdrv_apci16xx.c94 struct comedi_subdevice *s, struct comedi_insn *insn, unsigned int *data) in i_APCI16XX_InsnConfigInitTTLIO() argument
96 int i_ReturnValue = insn->n; in i_APCI16XX_InsnConfigInitTTLIO()
106 if (insn->n >= 1) { in i_APCI16XX_InsnConfigInitTTLIO()
125 && ((unsigned char) (insn->n - 1) != b_NumberOfPort)) { in i_APCI16XX_InsnConfigInitTTLIO()
135 && ((unsigned char) (insn->n) != 2)) { in i_APCI16XX_InsnConfigInitTTLIO()
287 struct comedi_subdevice *s, struct comedi_insn *insn, unsigned int *data) in i_APCI16XX_InsnBitsReadTTLIO() argument
289 int i_ReturnValue = insn->n; in i_APCI16XX_InsnBitsReadTTLIO()
293 unsigned char b_SelectedPort = CR_RANGE(insn->chanspec); in i_APCI16XX_InsnBitsReadTTLIO()
294 unsigned char b_InputChannel = CR_CHAN(insn->chanspec); in i_APCI16XX_InsnBitsReadTTLIO()
302 if (insn->n >= 1) { in i_APCI16XX_InsnBitsReadTTLIO()
[all …]
Dhwdrv_apci3501.c77 struct comedi_insn *insn, unsigned int *data) in i_APCI3501_ReadDigitalInput() argument
81 ui_NoOfChannel = CR_CHAN(insn->chanspec); in i_APCI3501_ReadDigitalInput()
96 return insn->n; in i_APCI3501_ReadDigitalInput()
125 struct comedi_insn *insn, unsigned int *data) in i_APCI3501_ConfigDigitalOutput() argument
139 return insn->n; in i_APCI3501_ConfigDigitalOutput()
165 struct comedi_insn *insn, unsigned int *data) in i_APCI3501_WriteDigitalOutput() argument
168 unsigned int ui_NoOfChannel = CR_CHAN(insn->chanspec); /* get the channel */ in i_APCI3501_WriteDigitalOutput()
229 return insn->n; in i_APCI3501_WriteDigitalOutput()
252 struct comedi_insn *insn, unsigned int *data) in i_APCI3501_ReadDigitalOutput() argument
257 ui_NoOfChannel = CR_CHAN(insn->chanspec); in i_APCI3501_ReadDigitalOutput()
[all …]
Dhwdrv_apci2016.c79 struct comedi_insn *insn, unsigned int *data) in i_APCI2016_ConfigDigitalOutput() argument
92 return insn->n; in i_APCI2016_ConfigDigitalOutput()
115 struct comedi_insn *insn, unsigned int *data) in i_APCI2016_WriteDigitalOutput() argument
119 ui_NoOfChannel = CR_CHAN(insn->chanspec); in i_APCI2016_WriteDigitalOutput()
247 return insn->n; in i_APCI2016_WriteDigitalOutput()
270 struct comedi_insn *insn, unsigned int *data) in i_APCI2016_BitsDigitalOutput() argument
274 ui_NoOfChannel = CR_CHAN(insn->chanspec); in i_APCI2016_BitsDigitalOutput()
317 return insn->n; in i_APCI2016_BitsDigitalOutput()
341 struct comedi_insn *insn, unsigned int *data) in i_APCI2016_ConfigWatchdog() argument
360 return insn->n; in i_APCI2016_ConfigWatchdog()
[all …]
Dhwdrv_apci1564.h87 struct comedi_insn *insn, unsigned int *data);
89 struct comedi_insn *insn, unsigned int *data);
91 struct comedi_insn *insn, unsigned int *data);
95 struct comedi_insn *insn, unsigned int *data);
97 struct comedi_insn *insn, unsigned int *data);
99 struct comedi_insn *insn, unsigned int *data);
101 struct comedi_insn *insn, unsigned int *data);
108 struct comedi_insn *insn, unsigned int *data);
111 struct comedi_insn *insn,
115 struct comedi_insn *insn, unsigned int *data);
Dhwdrv_apci2032.c83 struct comedi_insn *insn, unsigned int *data) in i_APCI2032_ConfigDigitalOutput() argument
114 return insn->n; in i_APCI2032_ConfigDigitalOutput()
138 struct comedi_insn *insn, unsigned int *data) in i_APCI2032_WriteDigitalOutput() argument
141 unsigned int ui_NoOfChannel = CR_CHAN(insn->chanspec); /* get the channel */ in i_APCI2032_WriteDigitalOutput()
293 return insn->n; in i_APCI2032_WriteDigitalOutput()
317 struct comedi_insn *insn, unsigned int *data) in i_APCI2032_ReadDigitalOutput() argument
321 ui_NoOfChannel = CR_CHAN(insn->chanspec); in i_APCI2032_ReadDigitalOutput()
360 return insn->n; in i_APCI2032_ReadDigitalOutput()
384 struct comedi_insn *insn, unsigned int *data) in i_APCI2032_ConfigWatchdog() argument
400 return insn->n; in i_APCI2032_ConfigWatchdog()
[all …]
Dhwdrv_apci1500.h120 struct comedi_insn *insn, unsigned int *data);
123 struct comedi_insn *insn,
128 struct comedi_insn *insn, unsigned int *data);
131 struct comedi_insn *insn, unsigned int *data);
136 struct comedi_insn *insn,
140 struct comedi_insn *insn, unsigned int *data);
145 struct comedi_insn *insn,
149 struct comedi_insn *insn,
153 struct comedi_insn *insn,
157 struct comedi_insn *insn, unsigned int *data);
[all …]
Dhwdrv_apci3501.h59 struct comedi_insn *insn, unsigned int *data);
61 struct comedi_insn *insn, unsigned int *data);
70 struct comedi_insn *insn, unsigned int *data);
74 struct comedi_insn *insn, unsigned int *data);
76 struct comedi_insn *insn, unsigned int *data);
78 struct comedi_insn *insn, unsigned int *data);
86 struct comedi_insn *insn, unsigned int *data);
89 struct comedi_insn *insn,
93 struct comedi_insn *insn, unsigned int *data);
Dhwdrv_apci2200.h40 struct comedi_insn *insn, unsigned int *data);
42 struct comedi_insn *insn, unsigned int *data);
46 struct comedi_insn *insn, unsigned int *data);
48 struct comedi_insn *insn, unsigned int *data);
50 struct comedi_insn *insn, unsigned int *data);
54 struct comedi_insn *insn, unsigned int *data);
56 struct comedi_insn *insn, unsigned int *data);
58 struct comedi_insn *insn, unsigned int *data);
Dhwdrv_apci1516.h42 struct comedi_insn *insn, unsigned int *data);
44 struct comedi_insn *insn, unsigned int *data);
48 struct comedi_insn *insn, unsigned int *data);
50 struct comedi_insn *insn, unsigned int *data);
52 struct comedi_insn *insn, unsigned int *data);
58 struct comedi_insn *insn, unsigned int *data);
60 struct comedi_insn *insn, unsigned int *data);
62 struct comedi_insn *insn, unsigned int *data);
DAPCI1710_Dig_io.c103 struct comedi_insn *insn, unsigned int *data) in i_APCI1710_InsnConfigDigitalIO() argument
110 b_ModulNbr = (unsigned char) CR_AREF(insn->chanspec); in i_APCI1710_InsnConfigDigitalIO()
115 i_ReturnValue = insn->n; in i_APCI1710_InsnConfigDigitalIO()
297 struct comedi_subdevice *s, struct comedi_insn *insn, unsigned int *data) in i_APCI1710_InsnReadDigitalIOChlValue() argument
303 b_ModulNbr = (unsigned char) CR_AREF(insn->chanspec); in i_APCI1710_InsnReadDigitalIOChlValue()
304 b_InputChannel = (unsigned char) CR_CHAN(insn->chanspec); in i_APCI1710_InsnReadDigitalIOChlValue()
307 i_ReturnValue = insn->n; in i_APCI1710_InsnReadDigitalIOChlValue()
485 struct comedi_subdevice *s, struct comedi_insn *insn, unsigned int *data) in i_APCI1710_InsnWriteDigitalIOChlOnOff() argument
490 i_ReturnValue = insn->n; in i_APCI1710_InsnWriteDigitalIOChlOnOff()
491 b_ModulNbr = CR_AREF(insn->chanspec); in i_APCI1710_InsnWriteDigitalIOChlOnOff()
[all …]
DAPCI1710_82x54.c223 struct comedi_insn *insn, unsigned int *data) in i_APCI1710_InsnConfigInitTimer() argument
240 i_ReturnValue = insn->n; in i_APCI1710_InsnConfigInitTimer()
241 b_ModulNbr = (unsigned char) CR_AREF(insn->chanspec); in i_APCI1710_InsnConfigInitTimer()
242 b_TimerNbr = (unsigned char) CR_CHAN(insn->chanspec); in i_APCI1710_InsnConfigInitTimer()
453 struct comedi_insn *insn, unsigned int *data)
462 i_ReturnValue = insn->n;
463 b_ModulNbr = (unsigned char) CR_AREF(insn->chanspec);
464 b_TimerNbr = (unsigned char) CR_CHAN(insn->chanspec);
594 struct comedi_insn *insn, unsigned int *data) in i_APCI1710_InsnReadAllTimerValue() argument
600 b_ModulNbr = CR_AREF(insn->chanspec); in i_APCI1710_InsnReadAllTimerValue()
[all …]
/drivers/staging/comedi/drivers/
Ds526.c270 struct comedi_subdevice *s, struct comedi_insn *insn,
274 struct comedi_insn *insn, unsigned int *data);
276 struct comedi_subdevice *s, struct comedi_insn *insn,
280 struct comedi_insn *insn, unsigned int *data);
282 struct comedi_insn *insn, unsigned int *data);
284 struct comedi_insn *insn, unsigned int *data);
286 struct comedi_insn *insn, unsigned int *data);
289 struct comedi_insn *insn, unsigned int *data);
292 struct comedi_insn *insn, unsigned int *data);
515 struct comedi_subdevice *s, struct comedi_insn *insn, in s526_gpct_rinsn() argument
[all …]
Dadl_pci8164.c85 struct comedi_insn *insn,
90 struct comedi_insn *insn,
95 struct comedi_insn *insn,
100 struct comedi_insn *insn,
105 struct comedi_insn *insn,
110 struct comedi_insn *insn,
115 struct comedi_insn *insn,
120 struct comedi_insn *insn,
232 struct comedi_insn *insn, in adl_pci8164_insn_read() argument
239 axis = CR_CHAN(insn->chanspec); in adl_pci8164_insn_read()
[all …]
Dni_at_ao.c213 struct comedi_insn *insn, unsigned int *data);
215 struct comedi_insn *insn, unsigned int *data);
218 struct comedi_insn *insn, unsigned int *data);
221 struct comedi_insn *insn, unsigned int *data);
224 struct comedi_insn *insn, unsigned int *data);
227 struct comedi_insn *insn, unsigned int *data);
343 struct comedi_insn *insn, unsigned int *data) in atao_ao_winsn() argument
346 int chan = CR_CHAN(insn->chanspec); in atao_ao_winsn()
349 for (i = 0; i < insn->n; i++) { in atao_ao_winsn()
367 struct comedi_insn *insn, unsigned int *data) in atao_ao_rinsn() argument
[all …]
Dfl512.c69 struct comedi_subdevice *s, struct comedi_insn *insn,
72 struct comedi_insn *insn, unsigned int *data);
75 struct comedi_insn *insn, unsigned int *data);
81 struct comedi_subdevice *s, struct comedi_insn *insn, in fl512_ai_insn() argument
86 char chan = CR_CHAN(insn->chanspec); in fl512_ai_insn()
89 for (n = 0; n < insn->n; n++) { /* sample n times on selected channel */ in fl512_ai_insn()
107 struct comedi_subdevice *s, struct comedi_insn *insn, in fl512_ao_insn() argument
111 int chan = CR_CHAN(insn->chanspec); /* get chan to write */ in fl512_ao_insn()
114 for (n = 0; n < insn->n; n++) { /* write n data set */ in fl512_ao_insn()
132 struct comedi_insn *insn, unsigned int *data) in fl512_ao_insn_readback() argument
[all …]
Dskel.c189 struct comedi_insn *insn, unsigned int *data);
191 struct comedi_insn *insn, unsigned int *data);
193 struct comedi_insn *insn, unsigned int *data);
196 struct comedi_insn *insn, unsigned int *data);
199 struct comedi_insn *insn, unsigned int *data);
310 struct comedi_insn *insn, unsigned int *data) in skel_ai_rinsn() argument
324 for (n = 0; n < insn->n; n++) { in skel_ai_rinsn()
528 struct comedi_insn *insn, unsigned int *data) in skel_ao_winsn() argument
531 int chan = CR_CHAN(insn->chanspec); in skel_ao_winsn()
536 for (i = 0; i < insn->n; i++) { in skel_ao_winsn()
[all …]
Dni_670x.c167 struct comedi_insn *insn, unsigned int *data);
170 struct comedi_insn *insn, unsigned int *data);
173 struct comedi_insn *insn, unsigned int *data);
176 struct comedi_insn *insn,
269 struct comedi_insn *insn, unsigned int *data) in ni_670x_ao_winsn() argument
272 int chan = CR_CHAN(insn->chanspec); in ni_670x_ao_winsn()
285 for (i = 0; i < insn->n; i++) { in ni_670x_ao_winsn()
299 struct comedi_insn *insn, unsigned int *data) in ni_670x_ao_rinsn() argument
302 int chan = CR_CHAN(insn->chanspec); in ni_670x_ao_rinsn()
304 for (i = 0; i < insn->n; i++) in ni_670x_ao_rinsn()
[all …]
Daio_aio12_8.c93 struct comedi_insn *insn, unsigned int *data) in aio_aio12_8_ai_read() argument
98 (CR_RANGE(insn->chanspec) << 3) | CR_CHAN(insn->chanspec); in aio_aio12_8_ai_read()
103 for (n = 0; n < insn->n; n++) { in aio_aio12_8_ai_read()
128 struct comedi_insn *insn, unsigned int *data) in aio_aio12_8_ao_read() argument
131 int val = devpriv->ao_readback[CR_CHAN(insn->chanspec)]; in aio_aio12_8_ao_read()
133 for (i = 0; i < insn->n; i++) in aio_aio12_8_ao_read()
135 return insn->n; in aio_aio12_8_ao_read()
140 struct comedi_insn *insn, unsigned int *data) in aio_aio12_8_ao_write() argument
143 int chan = CR_CHAN(insn->chanspec); in aio_aio12_8_ao_write()
149 for (i = 0; i < insn->n; i++) { in aio_aio12_8_ao_write()
[all …]
Dcb_das16_cs.c115 struct comedi_insn *insn, unsigned int *data);
123 struct comedi_insn *insn, unsigned int *data);
126 struct comedi_insn *insn, unsigned int *data);
129 struct comedi_insn *insn, unsigned int *data);
132 struct comedi_insn *insn,
136 struct comedi_insn *insn,
140 struct comedi_insn *insn,
281 struct comedi_insn *insn, unsigned int *data) in das16cs_ai_rinsn() argument
290 chan = CR_CHAN(insn->chanspec); in das16cs_ai_rinsn()
291 aref = CR_AREF(insn->chanspec); in das16cs_ai_rinsn()
[all …]
Dpoc.c47 struct comedi_insn *insn, unsigned int *data);
50 struct comedi_insn *insn, unsigned int *data);
53 struct comedi_insn *insn, unsigned int *data);
56 struct comedi_insn *insn, unsigned int *data);
176 struct comedi_insn *insn, unsigned int *data) in readback_insn() argument
180 chan = CR_CHAN(insn->chanspec); in readback_insn()
191 struct comedi_insn *insn, unsigned int *data) in dac02_ao_winsn() argument
197 chan = CR_CHAN(insn->chanspec); in dac02_ao_winsn()
202 if ((CR_RANGE(insn->chanspec) & 0x2) == 0) in dac02_ao_winsn()
215 struct comedi_insn *insn, unsigned int *data) in pcl733_insn_bits() argument
[all …]

1234567