Home
last modified time | relevance | path

Searched refs:comedi_device (Results 1 – 25 of 155) sorted by relevance

1234567

/drivers/staging/comedi/
Dcomedidev.h163 struct comedi_device *device;
189 int (*insn_read)(struct comedi_device *, struct comedi_subdevice *,
191 int (*insn_write)(struct comedi_device *, struct comedi_subdevice *,
193 int (*insn_bits)(struct comedi_device *, struct comedi_subdevice *,
195 int (*insn_config)(struct comedi_device *, struct comedi_subdevice *,
198 int (*do_cmd)(struct comedi_device *, struct comedi_subdevice *);
199 int (*do_cmdtest)(struct comedi_device *, struct comedi_subdevice *,
201 int (*poll)(struct comedi_device *, struct comedi_subdevice *);
202 int (*cancel)(struct comedi_device *, struct comedi_subdevice *);
205 int (*buf_change)(struct comedi_device *, struct comedi_subdevice *);
[all …]
Dcomedi_internal.h13 struct comedi_device;
19 int do_rangeinfo_ioctl(struct comedi_device *dev,
21 struct comedi_device *comedi_alloc_board_minor(struct device *hardware_device);
26 int comedi_buf_alloc(struct comedi_device *dev, struct comedi_subdevice *s,
36 void comedi_device_cancel_all(struct comedi_device *dev);
47 int insn_inval(struct comedi_device *, struct comedi_subdevice *,
50 void comedi_device_detach(struct comedi_device *);
51 int comedi_device_attach(struct comedi_device *, struct comedi_devconfig *);
Dcomedilib.h22 struct comedi_device *comedi_open(const char *path);
23 int comedi_close(struct comedi_device *dev);
24 int comedi_dio_get_config(struct comedi_device *dev, unsigned int subdev,
26 int comedi_dio_config(struct comedi_device *dev, unsigned int subdev,
28 int comedi_dio_bitfield2(struct comedi_device *dev, unsigned int subdev,
31 int comedi_find_subdevice_by_type(struct comedi_device *dev, int type,
33 int comedi_get_n_channels(struct comedi_device *dev, unsigned int subdevice);
Ddrivers.c59 int comedi_set_hw_dev(struct comedi_device *dev, struct device *hw_dev) in comedi_set_hw_dev()
70 static void comedi_clear_hw_dev(struct comedi_device *dev) in comedi_clear_hw_dev()
87 void *comedi_alloc_devpriv(struct comedi_device *dev, size_t size) in comedi_alloc_devpriv()
106 int comedi_alloc_subdevices(struct comedi_device *dev, int num_subdevices) in comedi_alloc_subdevices()
166 static void comedi_device_detach_cleanup(struct comedi_device *dev) in comedi_device_detach_cleanup()
206 void comedi_device_detach(struct comedi_device *dev) in comedi_device_detach()
218 static int poll_invalid(struct comedi_device *dev, struct comedi_subdevice *s) in poll_invalid()
223 int insn_inval(struct comedi_device *dev, struct comedi_subdevice *s, in insn_inval()
246 int comedi_readback_insn_read(struct comedi_device *dev, in comedi_readback_insn_read()
281 int comedi_timeout(struct comedi_device *dev, in comedi_timeout()
[all …]
Dcomedi_fops.c72 struct comedi_device *dev;
103 static struct comedi_device
114 static void comedi_device_init(struct comedi_device *dev) in comedi_device_init()
125 struct comedi_device *dev = in comedi_dev_kref_release()
126 container_of(kref, struct comedi_device, refcount); in comedi_dev_kref_release()
145 int comedi_dev_put(struct comedi_device *dev) in comedi_dev_put()
153 static struct comedi_device *comedi_dev_get(struct comedi_device *dev) in comedi_dev_get()
160 static void comedi_device_cleanup(struct comedi_device *dev) in comedi_device_cleanup()
175 static bool comedi_clear_board_dev(struct comedi_device *dev) in comedi_clear_board_dev()
189 static struct comedi_device *comedi_clear_board_minor(unsigned int minor) in comedi_clear_board_minor()
[all …]
/drivers/staging/comedi/drivers/
Dni_labpc_isadma.h10 void labpc_init_dma_chan(struct comedi_device *dev, unsigned int dma_chan);
11 void labpc_free_dma_chan(struct comedi_device *dev);
12 void labpc_setup_dma(struct comedi_device *dev, struct comedi_subdevice *s);
13 void labpc_drain_dma(struct comedi_device *dev);
14 void labpc_handle_dma_status(struct comedi_device *dev);
18 static inline void labpc_init_dma_chan(struct comedi_device *dev, in labpc_init_dma_chan()
23 static inline void labpc_free_dma_chan(struct comedi_device *dev) in labpc_free_dma_chan()
27 static inline void labpc_setup_dma(struct comedi_device *dev, in labpc_setup_dma()
32 static inline void labpc_drain_dma(struct comedi_device *dev) in labpc_drain_dma()
36 static inline void labpc_handle_dma_status(struct comedi_device *dev) in labpc_handle_dma_status()
Ddaqboard2000.c268 static void daqboard2000_write_acq_scan_list_entry(struct comedi_device *dev, in daqboard2000_write_acq_scan_list_entry()
276 static void daqboard2000_setup_sampling(struct comedi_device *dev, int chan, in daqboard2000_setup_sampling()
317 static int daqboard2000_ai_status(struct comedi_device *dev, in daqboard2000_ai_status()
330 static int daqboard2000_ai_insn_read(struct comedi_device *dev, in daqboard2000_ai_insn_read()
396 static int daqboard2000_ao_eoc(struct comedi_device *dev, in daqboard2000_ao_eoc()
410 static int daqboard2000_ao_insn_write(struct comedi_device *dev, in daqboard2000_ao_insn_write()
434 static void daqboard2000_reset_local_bus(struct comedi_device *dev) in daqboard2000_reset_local_bus()
444 static void daqboard2000_reload_plx(struct comedi_device *dev) in daqboard2000_reload_plx()
456 static void daqboard2000_pulse_prog_pin(struct comedi_device *dev) in daqboard2000_pulse_prog_pin()
466 static int daqboard2000_poll_cpld(struct comedi_device *dev, int mask) in daqboard2000_poll_cpld()
[all …]
Damplc_dio200_common.c111 static unsigned char dio200_read8(struct comedi_device *dev, in dio200_read8()
124 static void dio200_write8(struct comedi_device *dev, in dio200_write8()
138 static unsigned int dio200_read32(struct comedi_device *dev, in dio200_read32()
151 static void dio200_write32(struct comedi_device *dev, in dio200_write32()
165 static unsigned int dio200_subdev_8254_offset(struct comedi_device *dev, in dio200_subdev_8254_offset()
186 static int dio200_subdev_intr_insn_bits(struct comedi_device *dev, in dio200_subdev_intr_insn_bits()
205 static void dio200_stop_intr(struct comedi_device *dev, in dio200_stop_intr()
217 static void dio200_start_intr(struct comedi_device *dev, in dio200_start_intr()
239 static int dio200_inttrig_start_intr(struct comedi_device *dev, in dio200_inttrig_start_intr()
260 static void dio200_read_scan_intr(struct comedi_device *dev, in dio200_read_scan_intr()
[all …]
Dcomedi_8255.c47 int (*io)(struct comedi_device *dev, int dir, int port, int data,
51 static int subdev_8255_io(struct comedi_device *dev, in subdev_8255_io()
61 static int subdev_8255_mmio(struct comedi_device *dev, in subdev_8255_mmio()
71 static int subdev_8255_insn(struct comedi_device *dev, in subdev_8255_insn()
103 static void subdev_8255_do_config(struct comedi_device *dev, in subdev_8255_do_config()
124 static int subdev_8255_insn_config(struct comedi_device *dev, in subdev_8255_insn_config()
151 static int __subdev_8255_init(struct comedi_device *dev, in __subdev_8255_init()
153 int (*io)(struct comedi_device *dev, in __subdev_8255_init()
212 int subdev_8255_init(struct comedi_device *dev, struct comedi_subdevice *s, in subdev_8255_init()
213 int (*io)(struct comedi_device *dev, int dir, int port, in subdev_8255_init()
[all …]
Dpcl816.c111 static void pcl816_ai_setup_dma(struct comedi_device *dev, in pcl816_ai_setup_dma()
135 static void pcl816_ai_set_chan_range(struct comedi_device *dev, in pcl816_ai_set_chan_range()
143 static void pcl816_ai_set_chan_scan(struct comedi_device *dev, in pcl816_ai_set_chan_scan()
151 static void pcl816_ai_setup_chanlist(struct comedi_device *dev, in pcl816_ai_setup_chanlist()
173 static void pcl816_ai_clear_eoc(struct comedi_device *dev) in pcl816_ai_clear_eoc()
179 static void pcl816_ai_soft_trig(struct comedi_device *dev) in pcl816_ai_soft_trig()
185 static unsigned int pcl816_ai_get_sample(struct comedi_device *dev, in pcl816_ai_get_sample()
196 static int pcl816_ai_eoc(struct comedi_device *dev, in pcl816_ai_eoc()
209 static bool pcl816_ai_next_chan(struct comedi_device *dev, in pcl816_ai_next_chan()
223 static void transfer_from_dma_buf(struct comedi_device *dev, in transfer_from_dma_buf()
[all …]
Dni_mio_common.c231 static void ni_writel(struct comedi_device *dev, unsigned int data, int reg) in ni_writel()
239 static void ni_writew(struct comedi_device *dev, unsigned int data, int reg) in ni_writew()
247 static void ni_writeb(struct comedi_device *dev, unsigned int data, int reg) in ni_writeb()
255 static unsigned int ni_readl(struct comedi_device *dev, int reg) in ni_readl()
263 static unsigned int ni_readw(struct comedi_device *dev, int reg) in ni_readw()
271 static unsigned int ni_readb(struct comedi_device *dev, int reg) in ni_readb()
371 static void m_series_stc_write(struct comedi_device *dev, in m_series_stc_write()
419 static unsigned int m_series_stc_read(struct comedi_device *dev, in m_series_stc_read()
446 static void ni_stc_writew(struct comedi_device *dev, in ni_stc_writew()
466 static void ni_stc_writel(struct comedi_device *dev, in ni_stc_writel()
[all …]
Dc6xdigio.c57 static int c6xdigio_chk_status(struct comedi_device *dev, unsigned long context) in c6xdigio_chk_status()
72 static int c6xdigio_write_data(struct comedi_device *dev, in c6xdigio_write_data()
79 static int c6xdigio_get_encoder_bits(struct comedi_device *dev, in c6xdigio_get_encoder_bits()
95 static void c6xdigio_pwm_write(struct comedi_device *dev, in c6xdigio_pwm_write()
120 static int c6xdigio_encoder_read(struct comedi_device *dev, in c6xdigio_encoder_read()
158 static int c6xdigio_pwm_insn_write(struct comedi_device *dev, in c6xdigio_pwm_insn_write()
184 static int c6xdigio_pwm_insn_read(struct comedi_device *dev, in c6xdigio_pwm_insn_read()
201 static int c6xdigio_encoder_insn_read(struct comedi_device *dev, in c6xdigio_encoder_insn_read()
220 static void c6xdigio_init(struct comedi_device *dev) in c6xdigio_init()
248 static int c6xdigio_attach(struct comedi_device *dev, in c6xdigio_attach()
[all …]
Ds626.c107 static void s626_mc_enable(struct comedi_device *dev, in s626_mc_enable()
116 static void s626_mc_disable(struct comedi_device *dev, in s626_mc_disable()
123 static bool s626_mc_test(struct comedi_device *dev, in s626_mc_test()
148 static void s626_debi_transfer(struct comedi_device *dev) in s626_debi_transfer()
182 static uint16_t s626_debi_read(struct comedi_device *dev, uint16_t addr) in s626_debi_read()
196 static void s626_debi_write(struct comedi_device *dev, uint16_t addr, in s626_debi_write()
212 static void s626_debi_replace(struct comedi_device *dev, unsigned int addr, in s626_debi_replace()
231 static int s626_i2c_handshake_eoc(struct comedi_device *dev, in s626_i2c_handshake_eoc()
244 static int s626_i2c_handshake(struct comedi_device *dev, uint32_t val) in s626_i2c_handshake()
271 static uint8_t s626_i2c_read(struct comedi_device *dev, uint8_t addr) in s626_i2c_read()
[all …]
Dni_tio.h112 struct comedi_device *dev;
124 ni_gpct_device_construct(struct comedi_device *,
134 int ni_tio_insn_read(struct comedi_device *, struct comedi_subdevice *,
136 int ni_tio_insn_config(struct comedi_device *, struct comedi_subdevice *,
138 int ni_tio_insn_write(struct comedi_device *, struct comedi_subdevice *,
140 int ni_tio_cmd(struct comedi_device *, struct comedi_subdevice *);
141 int ni_tio_cmdtest(struct comedi_device *, struct comedi_subdevice *,
Daio_iiro_16.c55 static unsigned int aio_iiro_16_read_inputs(struct comedi_device *dev) in aio_iiro_16_read_inputs()
67 struct comedi_device *dev = d; in aio_iiro_16_cos()
85 static void aio_iiro_enable_irq(struct comedi_device *dev, bool enable) in aio_iiro_enable_irq()
93 static int aio_iiro_16_cos_cancel(struct comedi_device *dev, in aio_iiro_16_cos_cancel()
101 static int aio_iiro_16_cos_cmd(struct comedi_device *dev, in aio_iiro_16_cos_cmd()
109 static int aio_iiro_16_cos_cmdtest(struct comedi_device *dev, in aio_iiro_16_cos_cmdtest()
148 static int aio_iiro_16_do_insn_bits(struct comedi_device *dev, in aio_iiro_16_do_insn_bits()
164 static int aio_iiro_16_di_insn_bits(struct comedi_device *dev, in aio_iiro_16_di_insn_bits()
174 static int aio_iiro_16_attach(struct comedi_device *dev, in aio_iiro_16_attach()
Dni_6527.c93 static void ni6527_set_filter_interval(struct comedi_device *dev, in ni6527_set_filter_interval()
111 static void ni6527_set_filter_enable(struct comedi_device *dev, in ni6527_set_filter_enable()
119 static int ni6527_di_insn_config(struct comedi_device *dev, in ni6527_di_insn_config()
153 static int ni6527_di_insn_bits(struct comedi_device *dev, in ni6527_di_insn_bits()
169 static int ni6527_do_insn_bits(struct comedi_device *dev, in ni6527_do_insn_bits()
198 struct comedi_device *dev = d; in ni6527_interrupt()
216 static int ni6527_intr_cmdtest(struct comedi_device *dev, in ni6527_intr_cmdtest()
255 static int ni6527_intr_cmd(struct comedi_device *dev, in ni6527_intr_cmd()
264 static int ni6527_intr_cancel(struct comedi_device *dev, in ni6527_intr_cancel()
272 static int ni6527_intr_insn_bits(struct comedi_device *dev, in ni6527_intr_insn_bits()
[all …]
Ddas6402.c146 static void das6402_set_mode(struct comedi_device *dev, in das6402_set_mode()
152 static void das6402_set_extended(struct comedi_device *dev, in das6402_set_extended()
160 static void das6402_clear_all_interrupts(struct comedi_device *dev) in das6402_clear_all_interrupts()
167 static void das6402_ai_clear_eoc(struct comedi_device *dev) in das6402_ai_clear_eoc()
172 static unsigned int das6402_ai_read_sample(struct comedi_device *dev, in das6402_ai_read_sample()
185 struct comedi_device *dev = d; in das6402_interrupt()
215 static void das6402_ai_set_mode(struct comedi_device *dev, in das6402_ai_set_mode()
232 static int das6402_ai_cmd(struct comedi_device *dev, in das6402_ai_cmd()
257 static int das6402_ai_check_chanlist(struct comedi_device *dev, in das6402_ai_check_chanlist()
298 static int das6402_ai_cmdtest(struct comedi_device *dev, in das6402_ai_cmdtest()
[all …]
Dni_660x.c268 static void ni_660x_write(struct comedi_device *dev, unsigned int chip, in ni_660x_write()
280 static unsigned int ni_660x_read(struct comedi_device *dev, in ni_660x_read()
294 struct comedi_device *dev = counter->counter_dev->dev; in ni_660x_gpct_write()
302 struct comedi_device *dev = counter->counter_dev->dev; in ni_660x_gpct_read()
307 static inline void ni_660x_set_dma_channel(struct comedi_device *dev, in ni_660x_set_dma_channel()
323 static inline void ni_660x_unset_dma_channel(struct comedi_device *dev, in ni_660x_unset_dma_channel()
336 static int ni_660x_request_mite_channel(struct comedi_device *dev, in ni_660x_request_mite_channel()
361 static void ni_660x_release_mite_channel(struct comedi_device *dev, in ni_660x_release_mite_channel()
378 static int ni_660x_cmd(struct comedi_device *dev, struct comedi_subdevice *s) in ni_660x_cmd()
394 static int ni_660x_cancel(struct comedi_device *dev, struct comedi_subdevice *s) in ni_660x_cancel()
[all …]
Dusbduxsigma.c187 static void usbduxsigma_ai_stop(struct comedi_device *dev, int do_unlink) in usbduxsigma_ai_stop()
197 static int usbduxsigma_ai_cancel(struct comedi_device *dev, in usbduxsigma_ai_cancel()
210 static void usbduxsigma_ai_handle_urb(struct comedi_device *dev, in usbduxsigma_ai_handle_urb()
261 struct comedi_device *dev = urb->context; in usbduxsigma_ai_urb_complete()
313 static void usbduxsigma_ao_stop(struct comedi_device *dev, int do_unlink) in usbduxsigma_ao_stop()
323 static int usbduxsigma_ao_cancel(struct comedi_device *dev, in usbduxsigma_ao_cancel()
336 static void usbduxsigma_ao_handle_urb(struct comedi_device *dev, in usbduxsigma_ao_handle_urb()
400 struct comedi_device *dev = urb->context; in usbduxsigma_ao_urb_complete()
440 static int usbduxsigma_submit_urbs(struct comedi_device *dev, in usbduxsigma_submit_urbs()
477 static int usbduxsigma_ai_cmdtest(struct comedi_device *dev, in usbduxsigma_ai_cmdtest()
[all …]
Dusbdux.c224 static void usbdux_ai_stop(struct comedi_device *dev, int do_unlink) in usbdux_ai_stop()
234 static int usbdux_ai_cancel(struct comedi_device *dev, in usbdux_ai_cancel()
248 static void usbduxsub_ai_handle_urb(struct comedi_device *dev, in usbduxsub_ai_handle_urb()
299 struct comedi_device *dev = urb->context; in usbduxsub_ai_isoc_irq()
352 static void usbdux_ao_stop(struct comedi_device *dev, int do_unlink) in usbdux_ao_stop()
362 static int usbdux_ao_cancel(struct comedi_device *dev, in usbdux_ao_cancel()
376 static void usbduxsub_ao_handle_urb(struct comedi_device *dev, in usbduxsub_ao_handle_urb()
446 struct comedi_device *dev = urb->context; in usbduxsub_ao_isoc_irq()
487 static int usbdux_submit_urbs(struct comedi_device *dev, in usbdux_submit_urbs()
516 static int usbdux_ai_cmdtest(struct comedi_device *dev, in usbdux_ai_cmdtest()
[all …]
Dpcl818.c300 static void pcl818_ai_setup_dma(struct comedi_device *dev, in pcl818_ai_setup_dma()
324 static void pcl818_ai_set_chan_range(struct comedi_device *dev, in pcl818_ai_set_chan_range()
332 static void pcl818_ai_set_chan_scan(struct comedi_device *dev, in pcl818_ai_set_chan_scan()
340 static void pcl818_ai_setup_chanlist(struct comedi_device *dev, in pcl818_ai_setup_chanlist()
368 static void pcl818_ai_clear_eoc(struct comedi_device *dev) in pcl818_ai_clear_eoc()
374 static void pcl818_ai_soft_trig(struct comedi_device *dev) in pcl818_ai_soft_trig()
380 static unsigned int pcl818_ai_get_fifo_sample(struct comedi_device *dev, in pcl818_ai_get_fifo_sample()
395 static unsigned int pcl818_ai_get_sample(struct comedi_device *dev, in pcl818_ai_get_sample()
410 static int pcl818_ai_eoc(struct comedi_device *dev, in pcl818_ai_eoc()
423 static bool pcl818_ai_write_sample(struct comedi_device *dev, in pcl818_ai_write_sample()
[all …]
Dcomedi_parport.c81 static int parport_data_reg_insn_bits(struct comedi_device *dev, in parport_data_reg_insn_bits()
94 static int parport_data_reg_insn_config(struct comedi_device *dev, in parport_data_reg_insn_config()
116 static int parport_status_reg_insn_bits(struct comedi_device *dev, in parport_status_reg_insn_bits()
126 static int parport_ctrl_reg_insn_bits(struct comedi_device *dev, in parport_ctrl_reg_insn_bits()
145 static int parport_intr_insn_bits(struct comedi_device *dev, in parport_intr_insn_bits()
154 static int parport_intr_cmdtest(struct comedi_device *dev, in parport_intr_cmdtest()
193 static int parport_intr_cmd(struct comedi_device *dev, in parport_intr_cmd()
205 static int parport_intr_cancel(struct comedi_device *dev, in parport_intr_cancel()
219 struct comedi_device *dev = d; in parport_interrupt()
233 static int parport_attach(struct comedi_device *dev, in parport_attach()
Dcb_pcidas64.c1107 static inline unsigned short se_diff_bit_6xxx(struct comedi_device *dev, in se_diff_bit_6xxx()
1187 static unsigned int ai_range_bits_6xxx(const struct comedi_device *dev, in ai_range_bits_6xxx()
1195 static unsigned int hw_revision(const struct comedi_device *dev, in hw_revision()
1206 static void set_dac_range_bits(struct comedi_device *dev, in set_dac_range_bits()
1227 static void abort_dma(struct comedi_device *dev, unsigned int channel) in abort_dma()
1240 static void disable_plx_interrupts(struct comedi_device *dev) in disable_plx_interrupts()
1249 static void disable_ai_interrupts(struct comedi_device *dev) in disable_ai_interrupts()
1264 static void enable_ai_interrupts(struct comedi_device *dev, in enable_ai_interrupts()
1291 static void init_plx9080(struct comedi_device *dev) in init_plx9080()
1355 static void disable_ai_pacing(struct comedi_device *dev) in disable_ai_pacing()
[all …]
Daddi_apci_1500.c64 static unsigned int z8536_read(struct comedi_device *dev, unsigned int reg) in z8536_read()
77 static void z8536_write(struct comedi_device *dev, in z8536_write()
88 static void z8536_reset(struct comedi_device *dev) in z8536_reset()
164 static void apci1500_port_enable(struct comedi_device *dev, bool enable) in apci1500_port_enable()
176 static void apci1500_timer_enable(struct comedi_device *dev, in apci1500_timer_enable()
199 static bool apci1500_ack_irq(struct comedi_device *dev, in apci1500_ack_irq()
217 struct comedi_device *dev = d; in apci1500_interrupt()
265 static int apci1500_di_cancel(struct comedi_device *dev, in apci1500_di_cancel()
288 static int apci1500_di_inttrig_start(struct comedi_device *dev, in apci1500_di_inttrig_start()
371 static int apci1500_di_cmd(struct comedi_device *dev, in apci1500_di_cmd()
[all …]
/drivers/staging/comedi/kcomedilib/
Dkcomedilib_main.c36 struct comedi_device *comedi_open(const char *filename) in comedi_open()
38 struct comedi_device *dev, *retval = NULL; in comedi_open()
68 int comedi_close(struct comedi_device *dev) in comedi_close()
75 static int comedi_do_insn(struct comedi_device *dev, in comedi_do_insn()
138 int comedi_dio_get_config(struct comedi_device *dev, unsigned int subdev, in comedi_dio_get_config()
159 int comedi_dio_config(struct comedi_device *dev, unsigned int subdev, in comedi_dio_config()
174 int comedi_dio_bitfield2(struct comedi_device *dev, unsigned int subdev, in comedi_dio_bitfield2()
219 int comedi_find_subdevice_by_type(struct comedi_device *dev, int type, in comedi_find_subdevice_by_type()
239 int comedi_get_n_channels(struct comedi_device *dev, unsigned int subdevice) in comedi_get_n_channels()

1234567