Home
last modified time | relevance | path

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

1234567

/Linux-v5.4/drivers/staging/comedi/
Dcomedidev.h154 struct comedi_device *device;
180 int (*insn_read)(struct comedi_device *dev, struct comedi_subdevice *s,
182 int (*insn_write)(struct comedi_device *dev, struct comedi_subdevice *s,
184 int (*insn_bits)(struct comedi_device *dev, struct comedi_subdevice *s,
186 int (*insn_config)(struct comedi_device *dev,
191 int (*do_cmd)(struct comedi_device *dev, struct comedi_subdevice *s);
192 int (*do_cmdtest)(struct comedi_device *dev,
195 int (*poll)(struct comedi_device *dev, struct comedi_subdevice *s);
196 int (*cancel)(struct comedi_device *dev, struct comedi_subdevice *s);
199 int (*buf_change)(struct comedi_device *dev,
[all …]
Dcomedilib.h13 struct comedi_device *comedi_open(const char *path);
14 int comedi_close(struct comedi_device *dev);
15 int comedi_dio_get_config(struct comedi_device *dev, unsigned int subdev,
17 int comedi_dio_config(struct comedi_device *dev, unsigned int subdev,
19 int comedi_dio_bitfield2(struct comedi_device *dev, unsigned int subdev,
22 int comedi_find_subdevice_by_type(struct comedi_device *dev, int type,
24 int comedi_get_n_channels(struct comedi_device *dev, unsigned int subdevice);
Dcomedi_internal.h14 struct comedi_device;
20 int do_rangeinfo_ioctl(struct comedi_device *dev,
22 struct comedi_device *comedi_alloc_board_minor(struct device *hardware_device);
27 int comedi_buf_alloc(struct comedi_device *dev, struct comedi_subdevice *s,
39 void comedi_device_cancel_all(struct comedi_device *dev);
50 int insn_inval(struct comedi_device *dev, struct comedi_subdevice *s,
53 void comedi_device_detach(struct comedi_device *dev);
54 int comedi_device_attach(struct comedi_device *dev,
Ddrivers.c50 int comedi_set_hw_dev(struct comedi_device *dev, struct device *hw_dev) in comedi_set_hw_dev()
61 static void comedi_clear_hw_dev(struct comedi_device *dev) in comedi_clear_hw_dev()
78 void *comedi_alloc_devpriv(struct comedi_device *dev, size_t size) in comedi_alloc_devpriv()
97 int comedi_alloc_subdevices(struct comedi_device *dev, int num_subdevices) in comedi_alloc_subdevices()
157 static void comedi_device_detach_cleanup(struct comedi_device *dev) in comedi_device_detach_cleanup()
199 void comedi_device_detach(struct comedi_device *dev) in comedi_device_detach()
212 static int poll_invalid(struct comedi_device *dev, struct comedi_subdevice *s) in poll_invalid()
217 static int insn_device_inval(struct comedi_device *dev, in insn_device_inval()
223 static unsigned int get_zero_valid_routes(struct comedi_device *dev, in get_zero_valid_routes()
230 int insn_inval(struct comedi_device *dev, struct comedi_subdevice *s, in insn_inval()
[all …]
Dcomedi_fops.c59 struct comedi_device *dev;
90 static struct comedi_device
101 static void comedi_device_init(struct comedi_device *dev) in comedi_device_init()
112 struct comedi_device *dev = in comedi_dev_kref_release()
113 container_of(kref, struct comedi_device, refcount); in comedi_dev_kref_release()
132 int comedi_dev_put(struct comedi_device *dev) in comedi_dev_put()
140 static struct comedi_device *comedi_dev_get(struct comedi_device *dev) in comedi_dev_get()
147 static void comedi_device_cleanup(struct comedi_device *dev) in comedi_device_cleanup()
162 static bool comedi_clear_board_dev(struct comedi_device *dev) in comedi_clear_board_dev()
177 static struct comedi_device *comedi_clear_board_minor(unsigned int minor) in comedi_clear_board_minor()
[all …]
/Linux-v5.4/drivers/staging/comedi/drivers/
Dni_labpc_isadma.h11 void labpc_init_dma_chan(struct comedi_device *dev, unsigned int dma_chan);
12 void labpc_free_dma_chan(struct comedi_device *dev);
13 void labpc_setup_dma(struct comedi_device *dev, struct comedi_subdevice *s);
14 void labpc_drain_dma(struct comedi_device *dev);
15 void labpc_handle_dma_status(struct comedi_device *dev);
19 static inline void labpc_init_dma_chan(struct comedi_device *dev, in labpc_init_dma_chan()
24 static inline void labpc_free_dma_chan(struct comedi_device *dev) in labpc_free_dma_chan()
28 static inline void labpc_setup_dma(struct comedi_device *dev, in labpc_setup_dma()
33 static inline void labpc_drain_dma(struct comedi_device *dev) in labpc_drain_dma()
37 static inline void labpc_handle_dma_status(struct comedi_device *dev) in labpc_handle_dma_status()
Dcomedi_8255.c38 int (*io)(struct comedi_device *dev, int dir, int port, int data,
42 static int subdev_8255_io(struct comedi_device *dev, in subdev_8255_io()
52 static int subdev_8255_mmio(struct comedi_device *dev, in subdev_8255_mmio()
62 static int subdev_8255_insn(struct comedi_device *dev, in subdev_8255_insn()
94 static void subdev_8255_do_config(struct comedi_device *dev, in subdev_8255_do_config()
115 static int subdev_8255_insn_config(struct comedi_device *dev, in subdev_8255_insn_config()
142 static int __subdev_8255_init(struct comedi_device *dev, in __subdev_8255_init()
144 int (*io)(struct comedi_device *dev, in __subdev_8255_init()
203 int subdev_8255_init(struct comedi_device *dev, struct comedi_subdevice *s, in subdev_8255_init()
204 int (*io)(struct comedi_device *dev, int dir, int port, in subdev_8255_init()
[all …]
Damplc_dio200_common.c90 static unsigned char dio200_read8(struct comedi_device *dev, in dio200_read8()
103 static void dio200_write8(struct comedi_device *dev, in dio200_write8()
117 static unsigned int dio200_read32(struct comedi_device *dev, in dio200_read32()
130 static void dio200_write32(struct comedi_device *dev, in dio200_write32()
144 static unsigned int dio200_subdev_8254_offset(struct comedi_device *dev, in dio200_subdev_8254_offset()
165 static int dio200_subdev_intr_insn_bits(struct comedi_device *dev, in dio200_subdev_intr_insn_bits()
184 static void dio200_stop_intr(struct comedi_device *dev, in dio200_stop_intr()
196 static void dio200_start_intr(struct comedi_device *dev, in dio200_start_intr()
218 static int dio200_inttrig_start_intr(struct comedi_device *dev, in dio200_inttrig_start_intr()
239 static void dio200_read_scan_intr(struct comedi_device *dev, in dio200_read_scan_intr()
[all …]
Ddaqboard2000.c260 static void db2k_write_acq_scan_list_entry(struct comedi_device *dev, u16 entry) in db2k_write_acq_scan_list_entry()
267 static void db2k_setup_sampling(struct comedi_device *dev, int chan, int gain) in db2k_setup_sampling()
307 static int db2k_ai_status(struct comedi_device *dev, struct comedi_subdevice *s, in db2k_ai_status()
318 static int db2k_ai_insn_read(struct comedi_device *dev, in db2k_ai_insn_read()
383 static int db2k_ao_eoc(struct comedi_device *dev, struct comedi_subdevice *s, in db2k_ao_eoc()
395 static int db2k_ao_insn_write(struct comedi_device *dev, in db2k_ao_insn_write()
418 static void db2k_reset_local_bus(struct comedi_device *dev) in db2k_reset_local_bus()
432 static void db2k_reload_plx(struct comedi_device *dev) in db2k_reload_plx()
449 static void db2k_pulse_prog_pin(struct comedi_device *dev) in db2k_pulse_prog_pin()
463 static int db2k_wait_cpld_init(struct comedi_device *dev) in db2k_wait_cpld_init()
[all …]
Dni_660x.c271 static void ni_660x_write(struct comedi_device *dev, unsigned int chip, in ni_660x_write()
283 static unsigned int ni_660x_read(struct comedi_device *dev, in ni_660x_read()
297 struct comedi_device *dev = counter->counter_dev->dev; in ni_660x_gpct_write()
305 struct comedi_device *dev = counter->counter_dev->dev; in ni_660x_gpct_read()
310 static inline void ni_660x_set_dma_channel(struct comedi_device *dev, in ni_660x_set_dma_channel()
325 static inline void ni_660x_unset_dma_channel(struct comedi_device *dev, in ni_660x_unset_dma_channel()
337 static int ni_660x_request_mite_channel(struct comedi_device *dev, in ni_660x_request_mite_channel()
362 static void ni_660x_release_mite_channel(struct comedi_device *dev, in ni_660x_release_mite_channel()
379 static int ni_660x_cmd(struct comedi_device *dev, struct comedi_subdevice *s) in ni_660x_cmd()
395 static int ni_660x_cancel(struct comedi_device *dev, struct comedi_subdevice *s) in ni_660x_cancel()
[all …]
Dni_mio_common.c222 static void ni_writel(struct comedi_device *dev, unsigned int data, int reg) in ni_writel()
230 static void ni_writew(struct comedi_device *dev, unsigned int data, int reg) in ni_writew()
238 static void ni_writeb(struct comedi_device *dev, unsigned int data, int reg) in ni_writeb()
246 static unsigned int ni_readl(struct comedi_device *dev, int reg) in ni_readl()
254 static unsigned int ni_readw(struct comedi_device *dev, int reg) in ni_readw()
262 static unsigned int ni_readb(struct comedi_device *dev, int reg) in ni_readb()
363 static void m_series_stc_write(struct comedi_device *dev, in m_series_stc_write()
411 static unsigned int m_series_stc_read(struct comedi_device *dev, in m_series_stc_read()
438 static void ni_stc_writew(struct comedi_device *dev, in ni_stc_writew()
458 static void ni_stc_writel(struct comedi_device *dev, in ni_stc_writel()
[all …]
Dpcl816.c112 static void pcl816_ai_setup_dma(struct comedi_device *dev, in pcl816_ai_setup_dma()
136 static void pcl816_ai_set_chan_range(struct comedi_device *dev, in pcl816_ai_set_chan_range()
144 static void pcl816_ai_set_chan_scan(struct comedi_device *dev, in pcl816_ai_set_chan_scan()
152 static void pcl816_ai_setup_chanlist(struct comedi_device *dev, in pcl816_ai_setup_chanlist()
174 static void pcl816_ai_clear_eoc(struct comedi_device *dev) in pcl816_ai_clear_eoc()
180 static void pcl816_ai_soft_trig(struct comedi_device *dev) in pcl816_ai_soft_trig()
186 static unsigned int pcl816_ai_get_sample(struct comedi_device *dev, in pcl816_ai_get_sample()
197 static int pcl816_ai_eoc(struct comedi_device *dev, in pcl816_ai_eoc()
210 static bool pcl816_ai_next_chan(struct comedi_device *dev, in pcl816_ai_next_chan()
224 static void transfer_from_dma_buf(struct comedi_device *dev, in transfer_from_dma_buf()
[all …]
D8255.h27 struct comedi_device;
30 int subdev_8255_init(struct comedi_device *dev, struct comedi_subdevice *s,
31 int (*io)(struct comedi_device *dev, int dir, int port,
35 int subdev_8255_mm_init(struct comedi_device *dev, struct comedi_subdevice *s,
36 int (*io)(struct comedi_device *dev, int dir, int port,
Dc6xdigio.c48 static int c6xdigio_chk_status(struct comedi_device *dev, unsigned long context) in c6xdigio_chk_status()
63 static int c6xdigio_write_data(struct comedi_device *dev, in c6xdigio_write_data()
70 static int c6xdigio_get_encoder_bits(struct comedi_device *dev, in c6xdigio_get_encoder_bits()
86 static void c6xdigio_pwm_write(struct comedi_device *dev, in c6xdigio_pwm_write()
111 static int c6xdigio_encoder_read(struct comedi_device *dev, in c6xdigio_encoder_read()
149 static int c6xdigio_pwm_insn_write(struct comedi_device *dev, in c6xdigio_pwm_insn_write()
175 static int c6xdigio_pwm_insn_read(struct comedi_device *dev, in c6xdigio_pwm_insn_read()
192 static int c6xdigio_encoder_insn_read(struct comedi_device *dev, in c6xdigio_encoder_insn_read()
211 static void c6xdigio_init(struct comedi_device *dev) in c6xdigio_init()
239 static int c6xdigio_attach(struct comedi_device *dev, in c6xdigio_attach()
[all …]
Daio_iiro_16.c46 static unsigned int aio_iiro_16_read_inputs(struct comedi_device *dev) in aio_iiro_16_read_inputs()
58 struct comedi_device *dev = d; in aio_iiro_16_cos()
76 static void aio_iiro_enable_irq(struct comedi_device *dev, bool enable) in aio_iiro_enable_irq()
84 static int aio_iiro_16_cos_cancel(struct comedi_device *dev, in aio_iiro_16_cos_cancel()
92 static int aio_iiro_16_cos_cmd(struct comedi_device *dev, in aio_iiro_16_cos_cmd()
100 static int aio_iiro_16_cos_cmdtest(struct comedi_device *dev, in aio_iiro_16_cos_cmdtest()
139 static int aio_iiro_16_do_insn_bits(struct comedi_device *dev, in aio_iiro_16_do_insn_bits()
155 static int aio_iiro_16_di_insn_bits(struct comedi_device *dev, in aio_iiro_16_di_insn_bits()
165 static int aio_iiro_16_attach(struct comedi_device *dev, in aio_iiro_16_attach()
Damplc_pc236_common.c20 static void pc236_intr_update(struct comedi_device *dev, bool enable) in pc236_intr_update()
40 static bool pc236_intr_check(struct comedi_device *dev) in pc236_intr_check()
59 static int pc236_intr_insn(struct comedi_device *dev, in pc236_intr_insn()
67 static int pc236_intr_cmdtest(struct comedi_device *dev, in pc236_intr_cmdtest()
106 static int pc236_intr_cmd(struct comedi_device *dev, struct comedi_subdevice *s) in pc236_intr_cmd()
113 static int pc236_intr_cancel(struct comedi_device *dev, in pc236_intr_cancel()
123 struct comedi_device *dev = d; in pc236_interrupt()
135 int amplc_pc236_common_attach(struct comedi_device *dev, unsigned long iobase, in amplc_pc236_common_attach()
Damplc_pc236.h17 struct comedi_device;
21 void (*intr_update_cb)(struct comedi_device *dev, bool enable);
22 bool (*intr_chk_clr_cb)(struct comedi_device *dev);
30 int amplc_pc236_common_attach(struct comedi_device *dev, unsigned long iobase,
Dni_6527.c84 static void ni6527_set_filter_interval(struct comedi_device *dev, in ni6527_set_filter_interval()
102 static void ni6527_set_filter_enable(struct comedi_device *dev, in ni6527_set_filter_enable()
110 static int ni6527_di_insn_config(struct comedi_device *dev, in ni6527_di_insn_config()
144 static int ni6527_di_insn_bits(struct comedi_device *dev, in ni6527_di_insn_bits()
160 static int ni6527_do_insn_bits(struct comedi_device *dev, in ni6527_do_insn_bits()
189 struct comedi_device *dev = d; in ni6527_interrupt()
207 static int ni6527_intr_cmdtest(struct comedi_device *dev, in ni6527_intr_cmdtest()
246 static int ni6527_intr_cmd(struct comedi_device *dev, in ni6527_intr_cmd()
255 static int ni6527_intr_cancel(struct comedi_device *dev, in ni6527_intr_cancel()
263 static int ni6527_intr_insn_bits(struct comedi_device *dev, in ni6527_intr_insn_bits()
[all …]
Dcomedi_parport.c72 static int parport_data_reg_insn_bits(struct comedi_device *dev, in parport_data_reg_insn_bits()
85 static int parport_data_reg_insn_config(struct comedi_device *dev, in parport_data_reg_insn_config()
107 static int parport_status_reg_insn_bits(struct comedi_device *dev, in parport_status_reg_insn_bits()
117 static int parport_ctrl_reg_insn_bits(struct comedi_device *dev, in parport_ctrl_reg_insn_bits()
136 static int parport_intr_insn_bits(struct comedi_device *dev, in parport_intr_insn_bits()
145 static int parport_intr_cmdtest(struct comedi_device *dev, in parport_intr_cmdtest()
184 static int parport_intr_cmd(struct comedi_device *dev, in parport_intr_cmd()
196 static int parport_intr_cancel(struct comedi_device *dev, in parport_intr_cancel()
210 struct comedi_device *dev = d; in parport_interrupt()
224 static int parport_attach(struct comedi_device *dev, in parport_attach()
Dni_tio.h103 struct comedi_device *dev;
117 ni_gpct_device_construct(struct comedi_device *dev,
129 int ni_tio_insn_read(struct comedi_device *dev, struct comedi_subdevice *s,
131 int ni_tio_insn_config(struct comedi_device *dev, struct comedi_subdevice *s,
133 int ni_tio_insn_write(struct comedi_device *dev, struct comedi_subdevice *s,
135 int ni_tio_cmd(struct comedi_device *dev, struct comedi_subdevice *s);
136 int ni_tio_cmdtest(struct comedi_device *dev, struct comedi_subdevice *s,
Ddas6402.c137 static void das6402_set_mode(struct comedi_device *dev, in das6402_set_mode()
143 static void das6402_set_extended(struct comedi_device *dev, in das6402_set_extended()
151 static void das6402_clear_all_interrupts(struct comedi_device *dev) in das6402_clear_all_interrupts()
158 static void das6402_ai_clear_eoc(struct comedi_device *dev) in das6402_ai_clear_eoc()
163 static unsigned int das6402_ai_read_sample(struct comedi_device *dev, in das6402_ai_read_sample()
176 struct comedi_device *dev = d; in das6402_interrupt()
206 static void das6402_ai_set_mode(struct comedi_device *dev, in das6402_ai_set_mode()
223 static int das6402_ai_cmd(struct comedi_device *dev, in das6402_ai_cmd()
248 static int das6402_ai_check_chanlist(struct comedi_device *dev, in das6402_ai_check_chanlist()
289 static int das6402_ai_cmdtest(struct comedi_device *dev, in das6402_ai_cmdtest()
[all …]
Ds626.c106 static void s626_mc_enable(struct comedi_device *dev, in s626_mc_enable()
114 static void s626_mc_disable(struct comedi_device *dev, in s626_mc_disable()
120 static bool s626_mc_test(struct comedi_device *dev, in s626_mc_test()
145 static void s626_debi_transfer(struct comedi_device *dev) in s626_debi_transfer()
179 static u16 s626_debi_read(struct comedi_device *dev, u16 addr) in s626_debi_read()
193 static void s626_debi_write(struct comedi_device *dev, u16 addr, in s626_debi_write()
209 static void s626_debi_replace(struct comedi_device *dev, unsigned int addr, in s626_debi_replace()
228 static int s626_i2c_handshake_eoc(struct comedi_device *dev, in s626_i2c_handshake_eoc()
241 static int s626_i2c_handshake(struct comedi_device *dev, u32 val) in s626_i2c_handshake()
268 static u8 s626_i2c_read(struct comedi_device *dev, u8 addr) in s626_i2c_read()
[all …]
Dusbduxsigma.c178 static void usbduxsigma_ai_stop(struct comedi_device *dev, int do_unlink) in usbduxsigma_ai_stop()
188 static int usbduxsigma_ai_cancel(struct comedi_device *dev, in usbduxsigma_ai_cancel()
201 static void usbduxsigma_ai_handle_urb(struct comedi_device *dev, in usbduxsigma_ai_handle_urb()
252 struct comedi_device *dev = urb->context; in usbduxsigma_ai_urb_complete()
304 static void usbduxsigma_ao_stop(struct comedi_device *dev, int do_unlink) in usbduxsigma_ao_stop()
314 static int usbduxsigma_ao_cancel(struct comedi_device *dev, in usbduxsigma_ao_cancel()
327 static void usbduxsigma_ao_handle_urb(struct comedi_device *dev, in usbduxsigma_ao_handle_urb()
391 struct comedi_device *dev = urb->context; in usbduxsigma_ao_urb_complete()
431 static int usbduxsigma_submit_urbs(struct comedi_device *dev, in usbduxsigma_submit_urbs()
468 static int usbduxsigma_ai_cmdtest(struct comedi_device *dev, in usbduxsigma_ai_cmdtest()
[all …]
Dpcmuio.c129 static inline unsigned long pcmuio_asic_iobase(struct comedi_device *dev, in pcmuio_asic_iobase()
153 static void pcmuio_write(struct comedi_device *dev, unsigned int val, in pcmuio_write()
176 static unsigned int pcmuio_read(struct comedi_device *dev, in pcmuio_read()
212 static int pcmuio_dio_insn_bits(struct comedi_device *dev, in pcmuio_dio_insn_bits()
247 static int pcmuio_dio_insn_config(struct comedi_device *dev, in pcmuio_dio_insn_config()
266 static void pcmuio_reset(struct comedi_device *dev) in pcmuio_reset()
284 static void pcmuio_stop_intr(struct comedi_device *dev, in pcmuio_stop_intr()
299 static void pcmuio_handle_intr_subdev(struct comedi_device *dev, in pcmuio_handle_intr_subdev()
338 static int pcmuio_handle_asic_interrupt(struct comedi_device *dev, int asic) in pcmuio_handle_asic_interrupt()
362 struct comedi_device *dev = d; in pcmuio_interrupt()
[all …]
/Linux-v5.4/drivers/staging/comedi/kcomedilib/
Dkcomedilib_main.c27 struct comedi_device *comedi_open(const char *filename) in comedi_open()
29 struct comedi_device *dev, *retval = NULL; in comedi_open()
59 int comedi_close(struct comedi_device *dev) in comedi_close()
66 static int comedi_do_insn(struct comedi_device *dev, in comedi_do_insn()
129 int comedi_dio_get_config(struct comedi_device *dev, unsigned int subdev, in comedi_dio_get_config()
150 int comedi_dio_config(struct comedi_device *dev, unsigned int subdev, in comedi_dio_config()
165 int comedi_dio_bitfield2(struct comedi_device *dev, unsigned int subdev, in comedi_dio_bitfield2()
210 int comedi_find_subdevice_by_type(struct comedi_device *dev, int type, in comedi_find_subdevice_by_type()
230 int comedi_get_n_channels(struct comedi_device *dev, unsigned int subdevice) in comedi_get_n_channels()

1234567