Home
last modified time | relevance | path

Searched refs:comedi_subdevice (Results 1 – 25 of 129) sorted by relevance

123456

/Linux-v4.19/drivers/staging/comedi/
Dcomedidev.h153 struct comedi_subdevice { struct
180 int (*insn_read)(struct comedi_device *dev, struct comedi_subdevice *s, argument
182 int (*insn_write)(struct comedi_device *dev, struct comedi_subdevice *s, argument
184 int (*insn_bits)(struct comedi_device *dev, struct comedi_subdevice *s, argument
187 struct comedi_subdevice *s, argument
191 int (*do_cmd)(struct comedi_device *dev, struct comedi_subdevice *s); argument
193 struct comedi_subdevice *s, argument
195 int (*poll)(struct comedi_device *dev, struct comedi_subdevice *s); argument
196 int (*cancel)(struct comedi_device *dev, struct comedi_subdevice *s); argument
200 struct comedi_subdevice *s); argument
[all …]
Dcomedi_internal.h17 struct comedi_subdevice;
24 int comedi_alloc_subdevice_minor(struct comedi_subdevice *s);
25 void comedi_free_subdevice_minor(struct comedi_subdevice *s);
27 int comedi_buf_alloc(struct comedi_device *dev, struct comedi_subdevice *s,
29 void comedi_buf_reset(struct comedi_subdevice *s);
30 bool comedi_buf_is_mmapped(struct comedi_subdevice *s);
36 struct comedi_subdevice *s);
37 unsigned int comedi_buf_write_n_available(struct comedi_subdevice *s);
38 unsigned int comedi_buf_write_n_allocated(struct comedi_subdevice *s);
40 bool comedi_can_auto_free_spriv(struct comedi_subdevice *s);
[all …]
Dcomedi_buf.c53 struct comedi_subdevice *s) in __comedi_buf_free()
73 struct comedi_subdevice *s, in __comedi_buf_alloc()
181 comedi_buf_map_from_subdev_get(struct comedi_subdevice *s) in comedi_buf_map_from_subdev_get()
202 bool comedi_buf_is_mmapped(struct comedi_subdevice *s) in comedi_buf_is_mmapped()
209 int comedi_buf_alloc(struct comedi_device *dev, struct comedi_subdevice *s, in comedi_buf_alloc()
241 void comedi_buf_reset(struct comedi_subdevice *s) in comedi_buf_reset()
263 static unsigned int comedi_buf_write_n_unalloc(struct comedi_subdevice *s) in comedi_buf_write_n_unalloc()
271 unsigned int comedi_buf_write_n_available(struct comedi_subdevice *s) in comedi_buf_write_n_available()
290 unsigned int comedi_buf_write_alloc(struct comedi_subdevice *s, in comedi_buf_write_alloc()
315 static unsigned int comedi_buf_munge(struct comedi_subdevice *s, in comedi_buf_munge()
[all …]
Dcomedi_fops.c60 struct comedi_subdevice *read_subdev;
61 struct comedi_subdevice *write_subdev;
95 static struct comedi_subdevice
199 static struct comedi_subdevice *
202 struct comedi_subdevice *s; in comedi_subdevice_from_minor()
227 struct comedi_subdevice *s; in comedi_dev_get_from_subdevice_minor()
258 static struct comedi_subdevice *
261 struct comedi_subdevice *s; in comedi_read_subdevice()
271 static struct comedi_subdevice *
274 struct comedi_subdevice *s; in comedi_write_subdevice()
[all …]
Ddrivers.c99 struct comedi_subdevice *s; in comedi_alloc_subdevices()
141 int comedi_alloc_subdev_readback(struct comedi_subdevice *s) in comedi_alloc_subdev_readback()
160 struct comedi_subdevice *s; in comedi_device_detach_cleanup()
209 static int poll_invalid(struct comedi_device *dev, struct comedi_subdevice *s) in poll_invalid()
214 int insn_inval(struct comedi_device *dev, struct comedi_subdevice *s, in insn_inval()
238 struct comedi_subdevice *s, in comedi_readback_insn_read()
273 struct comedi_subdevice *s, in comedi_timeout()
276 struct comedi_subdevice *s, in comedi_timeout()
321 struct comedi_subdevice *s, in comedi_dio_insn_config()
366 unsigned int comedi_dio_update_state(struct comedi_subdevice *s, in comedi_dio_update_state()
[all …]
/Linux-v4.19/drivers/staging/comedi/drivers/
Damplc_dio200_common.c157 struct comedi_subdevice *s) in dio200_subdev_8254_offset()
178 struct comedi_subdevice *s, in dio200_subdev_intr_insn_bits()
197 struct comedi_subdevice *s) in dio200_stop_intr()
209 struct comedi_subdevice *s) in dio200_start_intr()
231 struct comedi_subdevice *s, in dio200_inttrig_start_intr()
252 struct comedi_subdevice *s, in dio200_read_scan_intr()
274 struct comedi_subdevice *s) in dio200_handle_read_intr()
345 struct comedi_subdevice *s) in dio200_subdev_intr_cancel()
360 struct comedi_subdevice *s, in dio200_subdev_intr_cmdtest()
410 struct comedi_subdevice *s) in dio200_subdev_intr_cmd()
[all …]
Dcomedi_parport.c73 struct comedi_subdevice *s, in parport_data_reg_insn_bits()
86 struct comedi_subdevice *s, in parport_data_reg_insn_config()
108 struct comedi_subdevice *s, in parport_status_reg_insn_bits()
118 struct comedi_subdevice *s, in parport_ctrl_reg_insn_bits()
137 struct comedi_subdevice *s, in parport_intr_insn_bits()
146 struct comedi_subdevice *s, in parport_intr_cmdtest()
185 struct comedi_subdevice *s) in parport_intr_cmd()
197 struct comedi_subdevice *s) in parport_intr_cancel()
211 struct comedi_subdevice *s = dev->read_subdev; in parport_interrupt()
227 struct comedi_subdevice *s; in parport_attach()
Dpcm3724.c63 static int compute_buffer(int config, int devno, struct comedi_subdevice *s) in compute_buffer()
88 struct comedi_subdevice *s, int chanspec) in do_3724_config()
90 struct comedi_subdevice *s_dio1 = &dev->subdevices[0]; in do_3724_config()
91 struct comedi_subdevice *s_dio2 = &dev->subdevices[1]; in do_3724_config()
122 static void enable_chan(struct comedi_device *dev, struct comedi_subdevice *s, in enable_chan()
126 struct comedi_subdevice *s_dio1 = &dev->subdevices[0]; in enable_chan()
161 struct comedi_subdevice *s, in subdev_3724_insn_config()
192 struct comedi_subdevice *s; in pcm3724_attach()
Dni_tio.h125 int ni_tio_insn_read(struct comedi_device *dev, struct comedi_subdevice *s,
127 int ni_tio_insn_config(struct comedi_device *dev, struct comedi_subdevice *s,
129 int ni_tio_insn_write(struct comedi_device *dev, struct comedi_subdevice *s,
131 int ni_tio_cmd(struct comedi_device *dev, struct comedi_subdevice *s);
132 int ni_tio_cmdtest(struct comedi_device *dev, struct comedi_subdevice *s,
136 struct comedi_subdevice *s);
D8255.h28 struct comedi_subdevice;
30 int subdev_8255_init(struct comedi_device *dev, struct comedi_subdevice *s,
35 int subdev_8255_mm_init(struct comedi_device *dev, struct comedi_subdevice *s,
40 unsigned long subdev_8255_regbase(struct comedi_subdevice *s);
Dmite.h18 struct comedi_subdevice;
56 void mite_sync_dma(struct mite_channel *mite_chan, struct comedi_subdevice *s);
57 void mite_ack_linkc(struct mite_channel *mite_chan, struct comedi_subdevice *s,
76 struct comedi_subdevice *s, unsigned int nbytes);
77 int mite_buf_change(struct mite_ring *ring, struct comedi_subdevice *s);
Dcomedi_8255.c63 struct comedi_subdevice *s, in subdev_8255_insn()
95 struct comedi_subdevice *s) in subdev_8255_do_config()
116 struct comedi_subdevice *s, in subdev_8255_insn_config()
143 struct comedi_subdevice *s, in __subdev_8255_init()
203 int subdev_8255_init(struct comedi_device *dev, struct comedi_subdevice *s, in subdev_8255_init()
238 int subdev_8255_mm_init(struct comedi_device *dev, struct comedi_subdevice *s, in subdev_8255_mm_init()
255 unsigned long subdev_8255_regbase(struct comedi_subdevice *s) in subdev_8255_regbase()
Daio_iiro_16.c59 struct comedi_subdevice *s = dev->read_subdev; in aio_iiro_16_cos()
85 struct comedi_subdevice *s) in aio_iiro_16_cos_cancel()
93 struct comedi_subdevice *s) in aio_iiro_16_cos_cmd()
101 struct comedi_subdevice *s, in aio_iiro_16_cos_cmdtest()
140 struct comedi_subdevice *s, in aio_iiro_16_do_insn_bits()
156 struct comedi_subdevice *s, in aio_iiro_16_di_insn_bits()
168 struct comedi_subdevice *s; in aio_iiro_16_attach()
Damplc_pc236_common.c60 struct comedi_subdevice *s, struct comedi_insn *insn, in pc236_intr_insn()
68 struct comedi_subdevice *s, in pc236_intr_cmdtest()
106 static int pc236_intr_cmd(struct comedi_device *dev, struct comedi_subdevice *s) in pc236_intr_cmd()
114 struct comedi_subdevice *s) in pc236_intr_cancel()
124 struct comedi_subdevice *s = dev->read_subdev; in pc236_interrupt()
138 struct comedi_subdevice *s; in amplc_pc236_common_attach()
Dpcl711.c164 struct comedi_subdevice *s) in pcl711_ai_get_sample()
175 struct comedi_subdevice *s) in pcl711_ai_cancel()
185 struct comedi_subdevice *s = dev->read_subdev; in pcl711_interrupt()
210 struct comedi_subdevice *s, in pcl711_set_changain()
236 struct comedi_subdevice *s, in pcl711_ai_eoc()
249 struct comedi_subdevice *s, in pcl711_ai_insn_read()
274 struct comedi_subdevice *s, struct comedi_cmd *cmd) in pcl711_ai_cmdtest()
339 static int pcl711_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s) in pcl711_ai_cmd()
365 struct comedi_subdevice *s, in pcl711_ao_insn_write()
383 struct comedi_subdevice *s, in pcl711_di_insn_bits()
[all …]
Daddi_apci_1564.c207 struct comedi_subdevice *s = dev->read_subdev; in apci1564_interrupt()
264 struct comedi_subdevice *s, in apci1564_di_insn_bits()
274 struct comedi_subdevice *s, in apci1564_do_insn_bits()
289 struct comedi_subdevice *s, in apci1564_diag_insn_bits()
329 struct comedi_subdevice *s, in apci1564_cos_insn_config()
401 struct comedi_subdevice *s, in apci1564_cos_insn_bits()
411 struct comedi_subdevice *s, in apci1564_cos_cmdtest()
455 struct comedi_subdevice *s) in apci1564_cos_cmd()
473 struct comedi_subdevice *s) in apci1564_cos_cancel()
484 struct comedi_subdevice *s, in apci1564_timer_insn_config()
[all …]
Dpcmuio.c135 static inline int pcmuio_subdevice_to_asic(struct comedi_subdevice *s) in pcmuio_subdevice_to_asic()
144 static inline int pcmuio_subdevice_to_port(struct comedi_subdevice *s) in pcmuio_subdevice_to_port()
213 struct comedi_subdevice *s, in pcmuio_dio_insn_bits()
248 struct comedi_subdevice *s, in pcmuio_dio_insn_config()
285 struct comedi_subdevice *s) in pcmuio_stop_intr()
300 struct comedi_subdevice *s, in pcmuio_handle_intr_subdev()
341 struct comedi_subdevice *s = &dev->subdevices[asic * 2]; in pcmuio_handle_asic_interrupt()
376 struct comedi_subdevice *s) in pcmuio_start_intr()
407 static int pcmuio_cancel(struct comedi_device *dev, struct comedi_subdevice *s) in pcmuio_cancel()
423 struct comedi_subdevice *s, in pcmuio_inttrig_start_intr()
[all …]
Dpcl726.c149 struct comedi_subdevice *s, in pcl726_intr_insn_bits()
158 struct comedi_subdevice *s, in pcl726_intr_cmdtest()
197 struct comedi_subdevice *s) in pcl726_intr_cmd()
207 struct comedi_subdevice *s) in pcl726_intr_cancel()
219 struct comedi_subdevice *s = dev->read_subdev; in pcl726_interrupt()
233 struct comedi_subdevice *s, in pcl726_ao_insn_write()
259 struct comedi_subdevice *s, in pcl726_di_insn_bits()
280 struct comedi_subdevice *s, in pcl726_do_insn_bits()
313 struct comedi_subdevice *s; in pcl726_attach()
Dpcl816.c113 struct comedi_subdevice *s, in pcl816_ai_setup_dma()
187 struct comedi_subdevice *s) in pcl816_ai_get_sample()
198 struct comedi_subdevice *s, in pcl816_ai_eoc()
211 struct comedi_subdevice *s) in pcl816_ai_next_chan()
225 struct comedi_subdevice *s, in transfer_from_dma_buf()
244 struct comedi_subdevice *s = dev->read_subdev; in pcl816_interrupt()
280 struct comedi_subdevice *s, in check_channel_list()
336 struct comedi_subdevice *s, struct comedi_cmd *cmd) in pcl816_ai_cmdtest()
405 static int pcl816_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s) in pcl816_ai_cmd()
450 static int pcl816_ai_poll(struct comedi_device *dev, struct comedi_subdevice *s) in pcl816_ai_poll()
[all …]
Dpcmmio.c243 struct comedi_subdevice *s, in pcmmio_dio_insn_bits()
278 struct comedi_subdevice *s, in pcmmio_dio_insn_config()
310 struct comedi_subdevice *s) in pcmmio_stop_intr()
323 struct comedi_subdevice *s, in pcmmio_handle_dio_intr()
362 struct comedi_subdevice *s = dev->read_subdev; in interrupt_pcmmio()
382 struct comedi_subdevice *s) in pcmmio_start_intr()
411 static int pcmmio_cancel(struct comedi_device *dev, struct comedi_subdevice *s) in pcmmio_cancel()
425 struct comedi_subdevice *s, in pcmmio_inttrig_start_intr()
447 static int pcmmio_cmd(struct comedi_device *dev, struct comedi_subdevice *s) in pcmmio_cmd()
468 struct comedi_subdevice *s, in pcmmio_cmdtest()
[all …]
Daddi_apci_1032.c104 struct comedi_subdevice *s, in apci1032_cos_insn_config()
172 struct comedi_subdevice *s, in apci1032_cos_insn_bits()
182 struct comedi_subdevice *s, in apci1032_cos_cmdtest()
226 struct comedi_subdevice *s) in apci1032_cos_cmd()
244 struct comedi_subdevice *s) in apci1032_cos_cancel()
253 struct comedi_subdevice *s = dev->read_subdev; in apci1032_interrupt()
280 struct comedi_subdevice *s, in apci1032_di_insn_bits()
294 struct comedi_subdevice *s; in apci1032_auto_attach()
Dmultiq3.c82 struct comedi_subdevice *s, in multiq3_ai_status()
95 struct comedi_subdevice *s, in multiq3_ai_insn_read()
132 struct comedi_subdevice *s, in multiq3_ao_insn_write()
153 struct comedi_subdevice *s, in multiq3_di_insn_bits()
162 struct comedi_subdevice *s, in multiq3_do_insn_bits()
175 struct comedi_subdevice *s, in multiq3_encoder_insn_read()
234 struct comedi_subdevice *s, in multiq3_encoder_insn_config()
254 struct comedi_subdevice *s; in multiq3_attach()
Ddt2811.c183 struct comedi_subdevice *s) in dt2811_ai_read_sample()
196 struct comedi_subdevice *s = dev->read_subdev; in dt2811_interrupt()
229 struct comedi_subdevice *s) in dt2811_ai_cancel()
253 struct comedi_subdevice *s) in dt2811_ai_cmd()
391 struct comedi_subdevice *s, in dt2811_ai_cmdtest()
460 struct comedi_subdevice *s, in dt2811_ai_eoc()
473 struct comedi_subdevice *s, in dt2811_ai_insn_read()
496 struct comedi_subdevice *s, in dt2811_ao_insn_write()
516 struct comedi_subdevice *s, in dt2811_di_insn_bits()
526 struct comedi_subdevice *s, in dt2811_do_insn_bits()
[all …]
Ddas6402.c164 struct comedi_subdevice *s) in das6402_ai_read_sample()
177 struct comedi_subdevice *s = dev->read_subdev; in das6402_interrupt()
207 struct comedi_subdevice *s, in das6402_ai_set_mode()
224 struct comedi_subdevice *s) in das6402_ai_cmd()
249 struct comedi_subdevice *s, in das6402_ai_check_chanlist()
290 struct comedi_subdevice *s, in das6402_ai_cmdtest()
353 struct comedi_subdevice *s) in das6402_ai_cancel()
366 struct comedi_subdevice *s, in das6402_ai_eoc()
379 struct comedi_subdevice *s, in das6402_ai_insn_read()
417 struct comedi_subdevice *s, in das6402_ao_insn_write()
[all …]
Dni_daq_700.c75 struct comedi_subdevice *s, in daq700_dio_insn_bits()
97 struct comedi_subdevice *s, in daq700_dio_insn_config()
114 struct comedi_subdevice *s, in daq700_ai_eoc()
132 struct comedi_subdevice *s, in daq700_ai_rinsn()
196 struct comedi_subdevice *s) in daq700_ai_config()
213 struct comedi_subdevice *s; in daq700_auto_attach()

123456