Home
last modified time | relevance | path

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

123456

/drivers/staging/comedi/
Dcomedidev.h37 struct comedi_subdevice { struct
64 int (*insn_read)(struct comedi_device *, struct comedi_subdevice *, argument
66 int (*insn_write)(struct comedi_device *, struct comedi_subdevice *, argument
68 int (*insn_bits)(struct comedi_device *, struct comedi_subdevice *, argument
70 int (*insn_config)(struct comedi_device *, struct comedi_subdevice *, argument
73 int (*do_cmd)(struct comedi_device *, struct comedi_subdevice *); argument
74 int (*do_cmdtest)(struct comedi_device *, struct comedi_subdevice *, argument
76 int (*poll)(struct comedi_device *, struct comedi_subdevice *); argument
77 int (*cancel)(struct comedi_device *, struct comedi_subdevice *); argument
80 int (*buf_change)(struct comedi_device *, struct comedi_subdevice *); argument
[all …]
Dcomedi_internal.h13 int comedi_alloc_subdevice_minor(struct comedi_subdevice *s);
14 void comedi_free_subdevice_minor(struct comedi_subdevice *s);
16 int comedi_buf_alloc(struct comedi_device *dev, struct comedi_subdevice *s,
18 void comedi_buf_reset(struct comedi_subdevice *s);
19 bool comedi_buf_is_mmapped(struct comedi_subdevice *s);
23 struct comedi_subdevice *s);
24 unsigned int comedi_buf_write_n_allocated(struct comedi_subdevice *s);
35 int insn_inval(struct comedi_device *, struct comedi_subdevice *,
Dcomedi_buf.c62 struct comedi_subdevice *s) in __comedi_buf_free()
82 struct comedi_subdevice *s, in __comedi_buf_alloc()
166 comedi_buf_map_from_subdev_get(struct comedi_subdevice *s) in comedi_buf_map_from_subdev_get()
187 bool comedi_buf_is_mmapped(struct comedi_subdevice *s) in comedi_buf_is_mmapped()
194 int comedi_buf_alloc(struct comedi_device *dev, struct comedi_subdevice *s, in comedi_buf_alloc()
226 void comedi_buf_reset(struct comedi_subdevice *s) in comedi_buf_reset()
247 static unsigned int comedi_buf_write_n_available(struct comedi_subdevice *s) in comedi_buf_write_n_available()
255 static unsigned int __comedi_buf_write_alloc(struct comedi_subdevice *s, in __comedi_buf_write_alloc()
277 unsigned int comedi_buf_write_alloc(struct comedi_subdevice *s, in comedi_buf_write_alloc()
288 static unsigned int comedi_buf_munge(struct comedi_subdevice *s, in comedi_buf_munge()
[all …]
Dcomedi_fops.c75 static struct comedi_subdevice
167 static struct comedi_subdevice
170 struct comedi_subdevice *s; in comedi_subdevice_from_minor()
196 struct comedi_subdevice *s; in comedi_dev_get_from_subdevice_minor()
216 static struct comedi_subdevice *
219 struct comedi_subdevice *s; in comedi_read_subdevice()
229 static struct comedi_subdevice *
232 struct comedi_subdevice *s; in comedi_write_subdevice()
243 struct comedi_subdevice *s, unsigned new_size) in resize_async_buffer()
288 struct comedi_subdevice *s; in max_read_buffer_kb_show()
[all …]
Ddrivers.c76 struct comedi_subdevice *s; in comedi_alloc_subdevices()
104 int comedi_alloc_subdev_readback(struct comedi_subdevice *s) in comedi_alloc_subdev_readback()
119 struct comedi_subdevice *s; in comedi_device_detach_cleanup()
166 static int poll_invalid(struct comedi_device *dev, struct comedi_subdevice *s) in poll_invalid()
171 int insn_inval(struct comedi_device *dev, struct comedi_subdevice *s, in insn_inval()
185 struct comedi_subdevice *s, in comedi_readback_insn_read()
211 struct comedi_subdevice *s, in comedi_timeout()
214 struct comedi_subdevice *s, in comedi_timeout()
241 struct comedi_subdevice *s, in comedi_dio_insn_config()
277 unsigned int comedi_dio_update_state(struct comedi_subdevice *s, in comedi_dio_update_state()
[all …]
/drivers/staging/comedi/drivers/addi-data/
Daddi_common.h49 int (*ai_config)(struct comedi_device *, struct comedi_subdevice *,
51 int (*ai_read)(struct comedi_device *, struct comedi_subdevice *,
53 int (*ai_write)(struct comedi_device *, struct comedi_subdevice *,
55 int (*ai_bits)(struct comedi_device *, struct comedi_subdevice *,
57 int (*ai_cmdtest)(struct comedi_device *, struct comedi_subdevice *,
59 int (*ai_cmd)(struct comedi_device *, struct comedi_subdevice *);
60 int (*ai_cancel)(struct comedi_device *, struct comedi_subdevice *);
63 int (*ao_write)(struct comedi_device *, struct comedi_subdevice *,
67 int (*di_config)(struct comedi_device *, struct comedi_subdevice *,
69 int (*di_read)(struct comedi_device *, struct comedi_subdevice *,
[all …]
/drivers/staging/comedi/drivers/
Damplc_dio200_common.c182 struct comedi_subdevice *s, in dio200_subdev_intr_insn_bits()
201 struct comedi_subdevice *s) in dio200_stop_intr()
213 struct comedi_subdevice *s) in dio200_start_intr()
235 struct comedi_subdevice *s, in dio200_inttrig_start_intr()
256 struct comedi_subdevice *s, in dio200_read_scan_intr()
293 struct comedi_subdevice *s) in dio200_handle_read_intr()
366 struct comedi_subdevice *s) in dio200_subdev_intr_cancel()
381 struct comedi_subdevice *s, in dio200_subdev_intr_cmdtest()
430 struct comedi_subdevice *s) in dio200_subdev_intr_cmd()
452 struct comedi_subdevice *s, in dio200_subdev_intr_init()
[all …]
Dcomedi_fc.h26 static inline unsigned int cfc_bytes_per_scan(struct comedi_subdevice *s) in cfc_bytes_per_scan()
31 static inline void cfc_inc_scan_progress(struct comedi_subdevice *s, in cfc_inc_scan_progress()
37 static inline unsigned int cfc_write_array_to_buffer(struct comedi_subdevice *s, in cfc_write_array_to_buffer()
44 static inline unsigned int cfc_write_to_buffer(struct comedi_subdevice *s, in cfc_write_to_buffer()
50 static inline unsigned int cfc_write_long_to_buffer(struct comedi_subdevice *s, in cfc_write_long_to_buffer()
57 cfc_read_array_from_buffer(struct comedi_subdevice *s, void *data, in cfc_read_array_from_buffer()
64 struct comedi_subdevice *s) in cfc_handle_events()
Dcomedi_parport.c84 struct comedi_subdevice *s, in parport_data_reg_insn_bits()
97 struct comedi_subdevice *s, in parport_data_reg_insn_config()
119 struct comedi_subdevice *s, in parport_status_reg_insn_bits()
129 struct comedi_subdevice *s, in parport_ctrl_reg_insn_bits()
148 struct comedi_subdevice *s, in parport_intr_insn_bits()
157 struct comedi_subdevice *s, in parport_intr_cmdtest()
195 struct comedi_subdevice *s) in parport_intr_cmd()
207 struct comedi_subdevice *s) in parport_intr_cancel()
221 struct comedi_subdevice *s = dev->read_subdev; in parport_interrupt()
238 struct comedi_subdevice *s; in parport_attach()
Dpcm3724.c56 static int compute_buffer(int config, int devno, struct comedi_subdevice *s) in compute_buffer()
81 struct comedi_subdevice *s, int chanspec) in do_3724_config()
83 struct comedi_subdevice *s_dio1 = &dev->subdevices[0]; in do_3724_config()
84 struct comedi_subdevice *s_dio2 = &dev->subdevices[1]; in do_3724_config()
115 static void enable_chan(struct comedi_device *dev, struct comedi_subdevice *s, in enable_chan()
119 struct comedi_subdevice *s_dio1 = &dev->subdevices[0]; in enable_chan()
154 struct comedi_subdevice *s, in subdev_3724_insn_config()
185 struct comedi_subdevice *s; in pcm3724_attach()
Dni_tio.h140 int ni_tio_insn_read(struct comedi_device *, struct comedi_subdevice *,
142 int ni_tio_insn_config(struct comedi_device *, struct comedi_subdevice *,
144 int ni_tio_insn_write(struct comedi_device *, struct comedi_subdevice *,
146 int ni_tio_cmd(struct comedi_device *, struct comedi_subdevice *);
147 int ni_tio_cmdtest(struct comedi_device *, struct comedi_subdevice *,
150 void ni_tio_handle_interrupt(struct ni_gpct *, struct comedi_subdevice *);
D8255.c108 struct comedi_subdevice *s, in subdev_8255_insn()
140 struct comedi_subdevice *s) in subdev_8255_do_config()
161 struct comedi_subdevice *s, in subdev_8255_insn_config()
188 struct comedi_subdevice *s, in __subdev_8255_init()
221 int subdev_8255_init(struct comedi_device *dev, struct comedi_subdevice *s, in subdev_8255_init()
230 int subdev_8255_mm_init(struct comedi_device *dev, struct comedi_subdevice *s, in subdev_8255_mm_init()
247 struct comedi_subdevice *s; in dev_8255_attach()
292 struct comedi_subdevice *s; in dev_8255_detach()
Dunioxx5.c92 static void __unioxx5_digital_config(struct comedi_subdevice *s, int mode)
138 static int __unioxx5_digital_read(struct comedi_subdevice *s, in __unioxx5_digital_read()
163 static int __unioxx5_analog_read(struct comedi_subdevice *s, in __unioxx5_analog_read()
206 static int __unioxx5_digital_write(struct comedi_subdevice *s, in __unioxx5_digital_write()
237 static int __unioxx5_analog_write(struct comedi_subdevice *s, in __unioxx5_analog_write()
277 struct comedi_subdevice *subdev, in unioxx5_subdev_read()
299 struct comedi_subdevice *subdev, in unioxx5_subdev_write()
322 struct comedi_subdevice *subdev, in unioxx5_insn_config()
377 struct comedi_subdevice *s, in __unioxx5_subdev_init()
439 struct comedi_subdevice *s; in unioxx5_attach()
[all …]
Dpcmmio.c255 struct comedi_subdevice *s, in pcmmio_dio_insn_bits()
290 struct comedi_subdevice *s, in pcmmio_dio_insn_config()
322 struct comedi_subdevice *s) in pcmmio_stop_intr()
335 struct comedi_subdevice *s, in pcmmio_handle_dio_intr()
390 struct comedi_subdevice *s = dev->read_subdev; in interrupt_pcmmio()
410 struct comedi_subdevice *s) in pcmmio_start_intr()
439 static int pcmmio_cancel(struct comedi_device *dev, struct comedi_subdevice *s) in pcmmio_cancel()
453 struct comedi_subdevice *s, in pcmmio_inttrig_start_intr()
475 static int pcmmio_cmd(struct comedi_device *dev, struct comedi_subdevice *s) in pcmmio_cmd()
498 struct comedi_subdevice *s, in pcmmio_cmdtest()
[all …]
Damplc_pc236_common.c70 struct comedi_subdevice *s, struct comedi_insn *insn, in pc236_intr_insn()
78 struct comedi_subdevice *s, in pc236_intr_cmdtest()
115 static int pc236_intr_cmd(struct comedi_device *dev, struct comedi_subdevice *s) in pc236_intr_cmd()
123 struct comedi_subdevice *s) in pc236_intr_cancel()
133 struct comedi_subdevice *s = dev->read_subdev; in pc236_interrupt()
148 struct comedi_subdevice *s; in amplc_pc236_common_attach()
Dpcl711.c181 struct comedi_subdevice *s) in pcl711_ai_get_sample()
192 struct comedi_subdevice *s) in pcl711_ai_cancel()
203 struct comedi_subdevice *s = dev->read_subdev; in pcl711_interrupt()
230 struct comedi_subdevice *s, in pcl711_set_changain()
256 struct comedi_subdevice *s, in pcl711_ai_eoc()
269 struct comedi_subdevice *s, in pcl711_ai_insn_read()
294 struct comedi_subdevice *s, struct comedi_cmd *cmd) in pcl711_ai_cmdtest()
374 static int pcl711_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s) in pcl711_ai_cmd()
403 struct comedi_subdevice *s, in pcl711_ao_insn_write()
421 struct comedi_subdevice *s, in pcl711_di_insn_bits()
[all …]
Dmultiq3.c79 struct comedi_subdevice *s, in multiq3_ai_status()
92 struct comedi_subdevice *s, in multiq3_ai_insn_read()
126 struct comedi_subdevice *s, in multiq3_ao_insn_write()
147 struct comedi_subdevice *s, in multiq3_di_insn_bits()
156 struct comedi_subdevice *s, in multiq3_do_insn_bits()
169 struct comedi_subdevice *s, in multiq3_encoder_insn_read()
193 struct comedi_subdevice *s = &dev->subdevices[4]; in encoder_reset()
213 struct comedi_subdevice *s; in multiq3_attach()
Daddi_apci_1032.c96 struct comedi_subdevice *s, in apci1032_cos_insn_config()
164 struct comedi_subdevice *s, in apci1032_cos_insn_bits()
174 struct comedi_subdevice *s, in apci1032_cos_cmdtest()
217 struct comedi_subdevice *s) in apci1032_cos_cmd()
235 struct comedi_subdevice *s) in apci1032_cos_cancel()
244 struct comedi_subdevice *s = dev->read_subdev; in apci1032_interrupt()
272 struct comedi_subdevice *s, in apci1032_di_insn_bits()
286 struct comedi_subdevice *s; in apci1032_auto_attach()
Dpcl816.c153 struct comedi_subdevice *s) in pcl816_ai_setup_dma()
187 struct comedi_subdevice *s) in pcl816_ai_setup_next_dma()
263 struct comedi_subdevice *s) in pcl816_ai_get_sample()
274 struct comedi_subdevice *s, in pcl816_ai_eoc()
287 struct comedi_subdevice *s) in pcl816_ai_next_chan()
312 struct comedi_subdevice *s, in transfer_from_dma_buf()
329 struct comedi_subdevice *s = dev->read_subdev; in pcl816_interrupt()
363 struct comedi_subdevice *s, in check_channel_list()
419 struct comedi_subdevice *s, struct comedi_cmd *cmd) in pcl816_ai_cmdtest()
493 static int pcl816_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s) in pcl816_ai_cmd()
[all …]
Dpcl726.c163 struct comedi_subdevice *s, in pcl726_intr_insn_bits()
172 struct comedi_subdevice *s, in pcl726_intr_cmdtest()
210 struct comedi_subdevice *s) in pcl726_intr_cmd()
220 struct comedi_subdevice *s) in pcl726_intr_cancel()
232 struct comedi_subdevice *s = dev->read_subdev; in pcl726_interrupt()
247 struct comedi_subdevice *s, in pcl726_ao_insn_write()
273 struct comedi_subdevice *s, in pcl726_di_insn_bits()
294 struct comedi_subdevice *s, in pcl726_do_insn_bits()
327 struct comedi_subdevice *s; in pcl726_attach()
Dicp_multi.c122 struct comedi_subdevice *s, in setup_channel_list()
169 struct comedi_subdevice *s, in icp_multi_ai_eoc()
182 struct comedi_subdevice *s, in icp_multi_insn_read_ai()
229 struct comedi_subdevice *s, in icp_multi_ao_eoc()
242 struct comedi_subdevice *s, in icp_multi_ao_insn_write()
305 struct comedi_subdevice *s, in icp_multi_insn_bits_di()
315 struct comedi_subdevice *s, in icp_multi_insn_bits_do()
328 struct comedi_subdevice *s, in icp_multi_insn_read_ctr()
335 struct comedi_subdevice *s, in icp_multi_insn_write_ctr()
381 struct comedi_subdevice *s,
[all …]
Ddas08.c205 struct comedi_subdevice *s, in das08_ai_eoc()
217 static int das08_ai_rinsn(struct comedi_device *dev, struct comedi_subdevice *s, in das08_ai_rinsn()
284 static int das08_di_rbits(struct comedi_device *dev, struct comedi_subdevice *s, in das08_di_rbits()
294 struct comedi_subdevice *s, in das08_do_wbits()
315 struct comedi_subdevice *s, in das08jr_di_rbits()
325 struct comedi_subdevice *s, in das08jr_do_wbits()
360 struct comedi_subdevice *s, in das08_ao_insn_write()
389 struct comedi_subdevice *s, in das08_counter_read()
401 struct comedi_subdevice *s, in das08_counter_write()
413 struct comedi_subdevice *s, in das08_counter_config()
[all …]
Dpcmuio.c148 static inline int pcmuio_subdevice_to_asic(struct comedi_subdevice *s) in pcmuio_subdevice_to_asic()
157 static inline int pcmuio_subdevice_to_port(struct comedi_subdevice *s) in pcmuio_subdevice_to_port()
226 struct comedi_subdevice *s, in pcmuio_dio_insn_bits()
261 struct comedi_subdevice *s, in pcmuio_dio_insn_config()
298 struct comedi_subdevice *s) in pcmuio_stop_intr()
313 struct comedi_subdevice *s, in pcmuio_handle_intr_subdev()
372 struct comedi_subdevice *s = &dev->subdevices[asic * 2]; in pcmuio_handle_asic_interrupt()
407 struct comedi_subdevice *s) in pcmuio_start_intr()
438 static int pcmuio_cancel(struct comedi_device *dev, struct comedi_subdevice *s) in pcmuio_cancel()
454 struct comedi_subdevice *s, in pcmuio_inttrig_start_intr()
[all …]
Dpcl818.c345 struct comedi_subdevice *s) in pcl818_ai_setup_dma()
374 struct comedi_subdevice *s) in pcl818_ai_setup_next_dma()
456 struct comedi_subdevice *s, in pcl818_ai_get_fifo_sample()
471 struct comedi_subdevice *s, in pcl818_ai_get_sample()
486 struct comedi_subdevice *s, in pcl818_ai_eoc()
499 struct comedi_subdevice *s, in pcl818_ai_dropout()
519 struct comedi_subdevice *s) in pcl818_ai_next_chan()
547 struct comedi_subdevice *s) in pcl818_handle_eoc()
569 struct comedi_subdevice *s) in pcl818_handle_dma()
600 struct comedi_subdevice *s) in pcl818_handle_fifo()
[all …]
Dii_pci20kc.c136 struct comedi_subdevice *s) in ii20k_module_iobase()
142 struct comedi_subdevice *s, in ii20k_ao_insn_write()
168 struct comedi_subdevice *s, in ii20k_ai_eoc()
182 struct comedi_subdevice *s, in ii20k_ai_setup()
222 struct comedi_subdevice *s, in ii20k_ai_insn_read()
256 struct comedi_subdevice *s) in ii20k_dio_config()
320 struct comedi_subdevice *s, in ii20k_dio_insn_config()
347 struct comedi_subdevice *s, in ii20k_dio_insn_bits()
378 struct comedi_subdevice *s) in ii20k_init_module()
421 struct comedi_subdevice *s; in ii20k_attach()

123456