Home
last modified time | relevance | path

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

1234567

/linux-6.6.21/include/linux/comedi/
Dcomedidev.h153 struct comedi_device *device;
179 int (*insn_read)(struct comedi_device *dev, struct comedi_subdevice *s,
181 int (*insn_write)(struct comedi_device *dev, struct comedi_subdevice *s,
183 int (*insn_bits)(struct comedi_device *dev, struct comedi_subdevice *s,
185 int (*insn_config)(struct comedi_device *dev,
190 int (*do_cmd)(struct comedi_device *dev, struct comedi_subdevice *s);
191 int (*do_cmdtest)(struct comedi_device *dev,
194 int (*poll)(struct comedi_device *dev, struct comedi_subdevice *s);
195 int (*cancel)(struct comedi_device *dev, struct comedi_subdevice *s);
198 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_8255.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,
/linux-6.6.21/drivers/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.c37 int (*io)(struct comedi_device *dev, int dir, int port, int data,
41 static int subdev_8255_io(struct comedi_device *dev, in subdev_8255_io()
51 static int subdev_8255_mmio(struct comedi_device *dev, in subdev_8255_mmio()
61 static int subdev_8255_insn(struct comedi_device *dev, in subdev_8255_insn()
93 static void subdev_8255_do_config(struct comedi_device *dev, in subdev_8255_do_config()
114 static int subdev_8255_insn_config(struct comedi_device *dev, in subdev_8255_insn_config()
141 static int __subdev_8255_init(struct comedi_device *dev, in __subdev_8255_init()
143 int (*io)(struct comedi_device *dev, in __subdev_8255_init()
202 int subdev_8255_init(struct comedi_device *dev, struct comedi_subdevice *s, in subdev_8255_init()
203 int (*io)(struct comedi_device *dev, int dir, int port, in subdev_8255_init()
[all …]
Damplc_dio200_common.c89 static unsigned char dio200_read8(struct comedi_device *dev, in dio200_read8()
102 static void dio200_write8(struct comedi_device *dev, in dio200_write8()
116 static unsigned int dio200_read32(struct comedi_device *dev, in dio200_read32()
129 static void dio200_write32(struct comedi_device *dev, in dio200_write32()
143 static unsigned int dio200_subdev_8254_offset(struct comedi_device *dev, in dio200_subdev_8254_offset()
164 static int dio200_subdev_intr_insn_bits(struct comedi_device *dev, in dio200_subdev_intr_insn_bits()
183 static void dio200_stop_intr(struct comedi_device *dev, in dio200_stop_intr()
195 static void dio200_start_intr(struct comedi_device *dev, in dio200_start_intr()
217 static int dio200_inttrig_start_intr(struct comedi_device *dev, in dio200_inttrig_start_intr()
238 static void dio200_read_scan_intr(struct comedi_device *dev, in dio200_read_scan_intr()
[all …]
Ddaqboard2000.c259 static void db2k_write_acq_scan_list_entry(struct comedi_device *dev, u16 entry) in db2k_write_acq_scan_list_entry()
266 static void db2k_setup_sampling(struct comedi_device *dev, int chan, int gain) in db2k_setup_sampling()
306 static int db2k_ai_status(struct comedi_device *dev, struct comedi_subdevice *s, in db2k_ai_status()
317 static int db2k_ai_insn_read(struct comedi_device *dev, in db2k_ai_insn_read()
382 static int db2k_ao_eoc(struct comedi_device *dev, struct comedi_subdevice *s, in db2k_ao_eoc()
394 static int db2k_ao_insn_write(struct comedi_device *dev, in db2k_ao_insn_write()
417 static void db2k_reset_local_bus(struct comedi_device *dev) in db2k_reset_local_bus()
431 static void db2k_reload_plx(struct comedi_device *dev) in db2k_reload_plx()
448 static void db2k_pulse_prog_pin(struct comedi_device *dev) in db2k_pulse_prog_pin()
462 static int db2k_wait_cpld_init(struct comedi_device *dev) in db2k_wait_cpld_init()
[all …]
Dni_660x.c270 static void ni_660x_write(struct comedi_device *dev, unsigned int chip, in ni_660x_write()
282 static unsigned int ni_660x_read(struct comedi_device *dev, in ni_660x_read()
296 struct comedi_device *dev = counter->counter_dev->dev; in ni_660x_gpct_write()
304 struct comedi_device *dev = counter->counter_dev->dev; in ni_660x_gpct_read()
309 static inline void ni_660x_set_dma_channel(struct comedi_device *dev, in ni_660x_set_dma_channel()
324 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 …]
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.c110 static void pcl816_ai_setup_dma(struct comedi_device *dev, in pcl816_ai_setup_dma()
134 static void pcl816_ai_set_chan_range(struct comedi_device *dev, in pcl816_ai_set_chan_range()
142 static void pcl816_ai_set_chan_scan(struct comedi_device *dev, in pcl816_ai_set_chan_scan()
150 static void pcl816_ai_setup_chanlist(struct comedi_device *dev, in pcl816_ai_setup_chanlist()
172 static void pcl816_ai_clear_eoc(struct comedi_device *dev) in pcl816_ai_clear_eoc()
178 static void pcl816_ai_soft_trig(struct comedi_device *dev) in pcl816_ai_soft_trig()
184 static unsigned int pcl816_ai_get_sample(struct comedi_device *dev, in pcl816_ai_get_sample()
195 static int pcl816_ai_eoc(struct comedi_device *dev, in pcl816_ai_eoc()
208 static bool pcl816_ai_next_chan(struct comedi_device *dev, in pcl816_ai_next_chan()
222 static void transfer_from_dma_buf(struct comedi_device *dev, in transfer_from_dma_buf()
[all …]
Dc6xdigio.c47 static int c6xdigio_chk_status(struct comedi_device *dev, unsigned long context) in c6xdigio_chk_status()
62 static int c6xdigio_write_data(struct comedi_device *dev, in c6xdigio_write_data()
69 static int c6xdigio_get_encoder_bits(struct comedi_device *dev, in c6xdigio_get_encoder_bits()
85 static void c6xdigio_pwm_write(struct comedi_device *dev, in c6xdigio_pwm_write()
110 static int c6xdigio_encoder_read(struct comedi_device *dev, in c6xdigio_encoder_read()
148 static int c6xdigio_pwm_insn_write(struct comedi_device *dev, in c6xdigio_pwm_insn_write()
174 static int c6xdigio_pwm_insn_read(struct comedi_device *dev, in c6xdigio_pwm_insn_read()
191 static int c6xdigio_encoder_insn_read(struct comedi_device *dev, in c6xdigio_encoder_insn_read()
210 static void c6xdigio_init(struct comedi_device *dev) in c6xdigio_init()
238 static int c6xdigio_attach(struct comedi_device *dev, in c6xdigio_attach()
[all …]
Daio_iiro_16.c45 static unsigned int aio_iiro_16_read_inputs(struct comedi_device *dev) in aio_iiro_16_read_inputs()
57 struct comedi_device *dev = d; in aio_iiro_16_cos()
75 static void aio_iiro_enable_irq(struct comedi_device *dev, bool enable) in aio_iiro_enable_irq()
83 static int aio_iiro_16_cos_cancel(struct comedi_device *dev, in aio_iiro_16_cos_cancel()
91 static int aio_iiro_16_cos_cmd(struct comedi_device *dev, in aio_iiro_16_cos_cmd()
99 static int aio_iiro_16_cos_cmdtest(struct comedi_device *dev, in aio_iiro_16_cos_cmdtest()
138 static int aio_iiro_16_do_insn_bits(struct comedi_device *dev, in aio_iiro_16_do_insn_bits()
154 static int aio_iiro_16_di_insn_bits(struct comedi_device *dev, in aio_iiro_16_di_insn_bits()
164 static int aio_iiro_16_attach(struct comedi_device *dev, in aio_iiro_16_attach()
Damplc_pc236_common.c19 static void pc236_intr_update(struct comedi_device *dev, bool enable) in pc236_intr_update()
39 static bool pc236_intr_check(struct comedi_device *dev) in pc236_intr_check()
58 static int pc236_intr_insn(struct comedi_device *dev, in pc236_intr_insn()
66 static int pc236_intr_cmdtest(struct comedi_device *dev, in pc236_intr_cmdtest()
105 static int pc236_intr_cmd(struct comedi_device *dev, struct comedi_subdevice *s) in pc236_intr_cmd()
112 static int pc236_intr_cancel(struct comedi_device *dev, in pc236_intr_cancel()
122 struct comedi_device *dev = d; in pc236_interrupt()
136 int amplc_pc236_common_attach(struct comedi_device *dev, unsigned long iobase, in amplc_pc236_common_attach()
Dni_6527.c83 static void ni6527_set_filter_interval(struct comedi_device *dev, in ni6527_set_filter_interval()
101 static void ni6527_set_filter_enable(struct comedi_device *dev, in ni6527_set_filter_enable()
109 static int ni6527_di_insn_config(struct comedi_device *dev, in ni6527_di_insn_config()
143 static int ni6527_di_insn_bits(struct comedi_device *dev, in ni6527_di_insn_bits()
159 static int ni6527_do_insn_bits(struct comedi_device *dev, in ni6527_do_insn_bits()
188 struct comedi_device *dev = d; in ni6527_interrupt()
208 static int ni6527_intr_cmdtest(struct comedi_device *dev, in ni6527_intr_cmdtest()
247 static int ni6527_intr_cmd(struct comedi_device *dev, in ni6527_intr_cmd()
256 static int ni6527_intr_cancel(struct comedi_device *dev, in ni6527_intr_cancel()
264 static int ni6527_intr_insn_bits(struct comedi_device *dev, in ni6527_intr_insn_bits()
[all …]
Dcomedi_parport.c71 static int parport_data_reg_insn_bits(struct comedi_device *dev, in parport_data_reg_insn_bits()
84 static int parport_data_reg_insn_config(struct comedi_device *dev, in parport_data_reg_insn_config()
106 static int parport_status_reg_insn_bits(struct comedi_device *dev, in parport_status_reg_insn_bits()
116 static int parport_ctrl_reg_insn_bits(struct comedi_device *dev, in parport_ctrl_reg_insn_bits()
135 static int parport_intr_insn_bits(struct comedi_device *dev, in parport_intr_insn_bits()
144 static int parport_intr_cmdtest(struct comedi_device *dev, in parport_intr_cmdtest()
183 static int parport_intr_cmd(struct comedi_device *dev, in parport_intr_cmd()
195 static int parport_intr_cancel(struct comedi_device *dev, in parport_intr_cancel()
209 struct comedi_device *dev = d; in parport_interrupt()
224 static int parport_attach(struct comedi_device *dev, in parport_attach()
Ds626.c105 static void s626_mc_enable(struct comedi_device *dev, in s626_mc_enable()
113 static void s626_mc_disable(struct comedi_device *dev, in s626_mc_disable()
119 static bool s626_mc_test(struct comedi_device *dev, in s626_mc_test()
144 static void s626_debi_transfer(struct comedi_device *dev) in s626_debi_transfer()
178 static u16 s626_debi_read(struct comedi_device *dev, u16 addr) in s626_debi_read()
192 static void s626_debi_write(struct comedi_device *dev, u16 addr, in s626_debi_write()
208 static void s626_debi_replace(struct comedi_device *dev, unsigned int addr, in s626_debi_replace()
227 static int s626_i2c_handshake_eoc(struct comedi_device *dev, in s626_i2c_handshake_eoc()
240 static int s626_i2c_handshake(struct comedi_device *dev, u32 val) in s626_i2c_handshake()
267 static u8 s626_i2c_read(struct comedi_device *dev, u8 addr) in s626_i2c_read()
[all …]
Ddas6402.c135 static void das6402_set_mode(struct comedi_device *dev, in das6402_set_mode()
141 static void das6402_set_extended(struct comedi_device *dev, in das6402_set_extended()
149 static void das6402_clear_all_interrupts(struct comedi_device *dev) in das6402_clear_all_interrupts()
156 static void das6402_ai_clear_eoc(struct comedi_device *dev) in das6402_ai_clear_eoc()
161 static unsigned int das6402_ai_read_sample(struct comedi_device *dev, in das6402_ai_read_sample()
174 struct comedi_device *dev = d; in das6402_interrupt()
204 static void das6402_ai_set_mode(struct comedi_device *dev, in das6402_ai_set_mode()
221 static int das6402_ai_cmd(struct comedi_device *dev, in das6402_ai_cmd()
246 static int das6402_ai_check_chanlist(struct comedi_device *dev, in das6402_ai_check_chanlist()
287 static int das6402_ai_cmdtest(struct comedi_device *dev, in das6402_ai_cmdtest()
[all …]
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,
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,
Dusbduxsigma.c177 static void usbduxsigma_ai_stop(struct comedi_device *dev, int do_unlink) in usbduxsigma_ai_stop()
187 static int usbduxsigma_ai_cancel(struct comedi_device *dev, in usbduxsigma_ai_cancel()
200 static void usbduxsigma_ai_handle_urb(struct comedi_device *dev, in usbduxsigma_ai_handle_urb()
251 struct comedi_device *dev = urb->context; in usbduxsigma_ai_urb_complete()
303 static void usbduxsigma_ao_stop(struct comedi_device *dev, int do_unlink) in usbduxsigma_ao_stop()
313 static int usbduxsigma_ao_cancel(struct comedi_device *dev, in usbduxsigma_ao_cancel()
326 static void usbduxsigma_ao_handle_urb(struct comedi_device *dev, in usbduxsigma_ao_handle_urb()
390 struct comedi_device *dev = urb->context; in usbduxsigma_ao_urb_complete()
430 static int usbduxsigma_submit_urbs(struct comedi_device *dev, in usbduxsigma_submit_urbs()
467 static int usbduxsigma_ai_cmdtest(struct comedi_device *dev, in usbduxsigma_ai_cmdtest()
[all …]
Dpcmuio.c128 static inline unsigned long pcmuio_asic_iobase(struct comedi_device *dev, in pcmuio_asic_iobase()
152 static void pcmuio_write(struct comedi_device *dev, unsigned int val, in pcmuio_write()
175 static unsigned int pcmuio_read(struct comedi_device *dev, in pcmuio_read()
211 static int pcmuio_dio_insn_bits(struct comedi_device *dev, in pcmuio_dio_insn_bits()
246 static int pcmuio_dio_insn_config(struct comedi_device *dev, in pcmuio_dio_insn_config()
265 static void pcmuio_reset(struct comedi_device *dev) in pcmuio_reset()
283 static void pcmuio_stop_intr(struct comedi_device *dev, in pcmuio_stop_intr()
298 static void pcmuio_handle_intr_subdev(struct comedi_device *dev, in pcmuio_handle_intr_subdev()
337 static int pcmuio_handle_asic_interrupt(struct comedi_device *dev, int asic) in pcmuio_handle_asic_interrupt()
361 struct comedi_device *dev = d; in pcmuio_interrupt()
[all …]
/linux-6.6.21/drivers/comedi/
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.c49 int comedi_set_hw_dev(struct comedi_device *dev, struct device *hw_dev) in comedi_set_hw_dev()
60 static void comedi_clear_hw_dev(struct comedi_device *dev) in comedi_clear_hw_dev()
77 void *comedi_alloc_devpriv(struct comedi_device *dev, size_t size) in comedi_alloc_devpriv()
96 int comedi_alloc_subdevices(struct comedi_device *dev, int num_subdevices) in comedi_alloc_subdevices()
156 static void comedi_device_detach_cleanup(struct comedi_device *dev) in comedi_device_detach_cleanup()
198 void comedi_device_detach(struct comedi_device *dev) in comedi_device_detach()
211 static int poll_invalid(struct comedi_device *dev, struct comedi_subdevice *s) in poll_invalid()
216 static int insn_device_inval(struct comedi_device *dev, in insn_device_inval()
222 static unsigned int get_zero_valid_routes(struct comedi_device *dev, in get_zero_valid_routes()
229 int insn_inval(struct comedi_device *dev, struct comedi_subdevice *s, in insn_inval()
[all …]
Dcomedi_fops.c61 struct comedi_device *dev;
92 static struct comedi_device
102 static void comedi_device_init(struct comedi_device *dev) in comedi_device_init()
113 struct comedi_device *dev = in comedi_dev_kref_release()
114 container_of(kref, struct comedi_device, refcount); in comedi_dev_kref_release()
133 int comedi_dev_put(struct comedi_device *dev) in comedi_dev_put()
141 static struct comedi_device *comedi_dev_get(struct comedi_device *dev) in comedi_dev_get()
148 static void comedi_device_cleanup(struct comedi_device *dev) in comedi_device_cleanup()
163 static bool comedi_clear_board_dev(struct comedi_device *dev) in comedi_clear_board_dev()
178 static struct comedi_device *comedi_clear_board_minor(unsigned int minor) in comedi_clear_board_minor()
[all …]
/linux-6.6.21/drivers/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