Home
last modified time | relevance | path

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

1234567

/linux/drivers/comedi/
A Dcomedidev.h154 struct comedi_device *device;
186 int (*insn_config)(struct comedi_device *dev,
192 int (*do_cmdtest)(struct comedi_device *dev,
199 int (*buf_change)(struct comedi_device *dev,
444 void (*detach)(struct comedi_device *dev);
541 struct comedi_device { struct
575 int (*open)(struct comedi_device *dev); argument
576 void (*close)(struct comedi_device *dev); argument
591 int comedi_dev_put(struct comedi_device *dev);
990 int (*cb)(struct comedi_device *dev,
[all …]
A 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);
A 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,
A Ddrivers.c61 static void comedi_clear_hw_dev(struct comedi_device *dev) in comedi_clear_hw_dev()
199 void comedi_device_detach(struct comedi_device *dev) in comedi_device_detach()
217 static int insn_device_inval(struct comedi_device *dev, in insn_device_inval()
288 int comedi_timeout(struct comedi_device *dev, in comedi_timeout()
291 int (*cb)(struct comedi_device *dev, in comedi_timeout()
336 int comedi_dio_insn_config(struct comedi_device *dev, in comedi_dio_insn_config()
838 int comedi_load_firmware(struct comedi_device *dev, in comedi_load_firmware()
841 int (*cb)(struct comedi_device *dev, in comedi_load_firmware()
909 int comedi_request_region(struct comedi_device *dev, in comedi_request_region()
936 void comedi_legacy_detach(struct comedi_device *dev) in comedi_legacy_detach()
[all …]
A Dcomedi_fops.c61 struct comedi_device *dev;
92 static struct comedi_device
114 struct comedi_device *dev = in comedi_dev_kref_release()
142 static struct comedi_device *comedi_dev_get(struct comedi_device *dev) in comedi_dev_get()
181 struct comedi_device *dev; in comedi_clear_board_minor()
218 struct comedi_device *dev; in comedi_dev_get_from_board_minor()
229 struct comedi_device *dev; in comedi_dev_get_from_subdevice_minor()
384 struct comedi_device *dev; in max_read_buffer_kb_show()
407 struct comedi_device *dev; in max_read_buffer_kb_store()
440 struct comedi_device *dev; in read_buffer_kb_show()
[all …]
/linux/drivers/comedi/drivers/
A 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()
A 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()
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()
239 static void dio200_read_scan_intr(struct comedi_device *dev, in dio200_read_scan_intr()
261 static int dio200_handle_read_intr(struct comedi_device *dev, in dio200_handle_read_intr()
397 static int dio200_subdev_intr_cmd(struct comedi_device *dev, in dio200_subdev_intr_cmd()
418 static int dio200_subdev_intr_init(struct comedi_device *dev, in dio200_subdev_intr_init()
[all …]
A 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 …]
A Ddaqboard2000.c318 static int db2k_ai_insn_read(struct comedi_device *dev, in db2k_ai_insn_read()
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()
598 static void db2k_adc_disarm(struct comedi_device *dev) in db2k_adc_disarm()
648 static void db2k_initialize_ctrs(struct comedi_device *dev) in db2k_initialize_ctrs()
656 static void db2k_dac_disarm(struct comedi_device *dev) in db2k_dac_disarm()
660 static void db2k_initialize_adc(struct comedi_device *dev) in db2k_initialize_adc()
[all …]
A Dni_mio_common.c438 static void ni_stc_writew(struct comedi_device *dev, in ni_stc_writew()
2747 static int ni_ao_arm(struct comedi_device *dev, in ni_ao_arm()
5499 struct comedi_device *dev) in decr_rtsi_brd_src_use()
5562 struct comedi_device *dev) in ni_get_gout_routing()
5583 struct comedi_device *dev) in ni_disable_gout_routing()
5604 struct comedi_device *dev) in ni_set_gout_routing()
5693 struct comedi_device *dev) in test_route()
5708 struct comedi_device *dev) in connect_route()
5776 struct comedi_device *dev) in disconnect_route()
5890 struct comedi_device *dev = d; in ni_E_interrupt()
[all …]
A Dni_660x.c283 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()
432 struct comedi_device *dev = d; in ni_660x_interrupt()
454 static int ni_660x_input_poll(struct comedi_device *dev, in ni_660x_input_poll()
468 static int ni_660x_buf_change(struct comedi_device *dev, in ni_660x_buf_change()
806 struct comedi_device *dev) in test_route()
821 struct comedi_device *dev) in connect_route()
888 struct comedi_device *dev) in disconnect_route()
997 static int ni_660x_auto_attach(struct comedi_device *dev, in ni_660x_auto_attach()
[all …]
A Dpcl816.c112 static void pcl816_ai_setup_dma(struct comedi_device *dev, in pcl816_ai_setup_dma()
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()
197 static int pcl816_ai_eoc(struct comedi_device *dev, in pcl816_ai_eoc()
243 struct comedi_device *dev = d; in pcl816_interrupt()
279 static int check_channel_list(struct comedi_device *dev, in check_channel_list()
335 static int pcl816_ai_cmdtest(struct comedi_device *dev, in pcl816_ai_cmdtest()
483 static int pcl816_ai_cancel(struct comedi_device *dev, in pcl816_ai_cancel()
559 static void pcl816_reset(struct comedi_device *dev) in pcl816_reset()
594 static void pcl816_free_dma(struct comedi_device *dev) in pcl816_free_dma()
[all …]
A 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 …]
A 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()
318 static int s626_send_dac_eoc(struct comedi_device *dev, in s626_send_dac_eoc()
515 static int s626_set_dac(struct comedi_device *dev, in s626_set_dac()
674 static void s626_preload(struct comedi_device *dev, in s626_preload()
869 static void s626_set_mode(struct comedi_device *dev, in s626_set_mode()
1232 struct comedi_device *dev = d; in s626_irq_handler()
1472 static int s626_ai_eoc(struct comedi_device *dev, in s626_ai_eoc()
1952 static void s626_dio_init(struct comedi_device *dev) in s626_dio_init()
[all …]
A 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()
A Dni_6527.c110 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()
209 static int ni6527_intr_cmdtest(struct comedi_device *dev, in ni6527_intr_cmdtest()
248 static int ni6527_intr_cmd(struct comedi_device *dev, in ni6527_intr_cmd()
257 static int ni6527_intr_cancel(struct comedi_device *dev, in ni6527_intr_cancel()
265 static int ni6527_intr_insn_bits(struct comedi_device *dev, in ni6527_intr_insn_bits()
359 static void ni6527_reset(struct comedi_device *dev) in ni6527_reset()
372 static int ni6527_auto_attach(struct comedi_device *dev, in ni6527_auto_attach()
[all …]
A 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()
158 static void das6402_ai_clear_eoc(struct comedi_device *dev) in das6402_ai_clear_eoc()
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()
289 static int das6402_ai_cmdtest(struct comedi_device *dev, in das6402_ai_cmdtest()
352 static int das6402_ai_cancel(struct comedi_device *dev, in das6402_ai_cancel()
365 static int das6402_ai_eoc(struct comedi_device *dev, in das6402_ai_eoc()
515 static void das6402_reset(struct comedi_device *dev) in das6402_reset()
[all …]
A Dusbduxsigma.c188 static int usbduxsigma_ai_cancel(struct comedi_device *dev, in usbduxsigma_ai_cancel()
252 struct comedi_device *dev = urb->context; in usbduxsigma_ai_urb_complete()
314 static int usbduxsigma_ao_cancel(struct comedi_device *dev, in usbduxsigma_ao_cancel()
391 struct comedi_device *dev = urb->context; in usbduxsigma_ao_urb_complete()
468 static int usbduxsigma_ai_cmdtest(struct comedi_device *dev, in usbduxsigma_ai_cmdtest()
592 static int usbduxsigma_ai_inttrig(struct comedi_device *dev, in usbduxsigma_ai_inttrig()
620 static int usbduxsigma_ai_cmd(struct comedi_device *dev, in usbduxsigma_ai_cmd()
892 static int usbduxsigma_ao_cmd(struct comedi_device *dev, in usbduxsigma_ao_cmd()
1014 struct comedi_device *dev = urb->context; in usbduxsigma_pwm_urb_complete()
1091 static int usbduxsigma_pwm_start(struct comedi_device *dev, in usbduxsigma_pwm_start()
[all …]
A Dusbdux.c225 static int usbdux_ai_cancel(struct comedi_device *dev, in usbdux_ai_cancel()
290 struct comedi_device *dev = urb->context; in usbduxsub_ai_isoc_irq()
353 static int usbdux_ao_cancel(struct comedi_device *dev, in usbdux_ao_cancel()
437 struct comedi_device *dev = urb->context; in usbduxsub_ao_isoc_irq()
507 static int usbdux_ai_cmdtest(struct comedi_device *dev, in usbdux_ai_cmdtest()
629 static int usbdux_ai_inttrig(struct comedi_device *dev, in usbdux_ai_inttrig()
836 static int usbdux_ao_inttrig(struct comedi_device *dev, in usbdux_ao_inttrig()
1152 struct comedi_device *dev = urb->context; in usbduxsub_pwm_irq()
1244 static int usbdux_pwm_start(struct comedi_device *dev, in usbdux_pwm_start()
1301 static int usbdux_pwm_write(struct comedi_device *dev, in usbdux_pwm_write()
[all …]
A Dpcl818.c411 static int pcl818_ai_eoc(struct comedi_device *dev, in pcl818_ai_eoc()
458 static void pcl818_handle_eoc(struct comedi_device *dev, in pcl818_handle_eoc()
474 static void pcl818_handle_dma(struct comedi_device *dev, in pcl818_handle_dma()
499 static void pcl818_handle_fifo(struct comedi_device *dev, in pcl818_handle_fifo()
536 struct comedi_device *dev = d; in pcl818_interrupt()
571 static int check_channel_list(struct comedi_device *dev, in check_channel_list()
708 static int pcl818_ai_cmd(struct comedi_device *dev, in pcl818_ai_cmd()
759 static int pcl818_ai_cancel(struct comedi_device *dev, in pcl818_ai_cancel()
877 static void pcl818_reset(struct comedi_device *dev) in pcl818_reset()
973 static void pcl818_free_dma(struct comedi_device *dev) in pcl818_free_dma()
[all …]
A Dcomedi_test.c87 struct comedi_device *dev; /* parent comedi device */
199 struct comedi_device *dev = devpriv->dev; in waveform_ai_timer()
247 static int waveform_ai_cmdtest(struct comedi_device *dev, in waveform_ai_cmdtest()
348 static int waveform_ai_cmd(struct comedi_device *dev, in waveform_ai_cmd()
402 static int waveform_ai_cancel(struct comedi_device *dev, in waveform_ai_cancel()
436 struct comedi_device *dev = devpriv->dev; in waveform_ao_timer()
527 static int waveform_ao_cmdtest(struct comedi_device *dev, in waveform_ao_cmdtest()
584 static int waveform_ao_cmd(struct comedi_device *dev, in waveform_ao_cmd()
601 static int waveform_ao_cancel(struct comedi_device *dev, in waveform_ao_cancel()
737 static int waveform_attach(struct comedi_device *dev, in waveform_attach()
[all …]
A 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()
225 static int parport_attach(struct comedi_device *dev, in parport_attach()
A Dcb_pcidas64.c1277 static void init_plx9080(struct comedi_device *dev) in init_plx9080()
1659 static int i2c_read_ack(struct comedi_device *dev) in i2c_read_ack()
1669 static void i2c_start(struct comedi_device *dev) in i2c_start()
1677 static void i2c_stop(struct comedi_device *dev) in i2c_stop()
2904 static void restart_ao_dma(struct comedi_device *dev) in restart_ao_dma()
3040 struct comedi_device *dev = d; in handle_interrupt()
3448 static int do_wbits(struct comedi_device *dev, in do_wbits()
3477 static int dio_60xx_wbits(struct comedi_device *dev, in dio_60xx_wbits()
3546 static int caldac_i2c_write(struct comedi_device *dev, in caldac_i2c_write()
3968 static int auto_attach(struct comedi_device *dev, in auto_attach()
[all …]
A 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()
137 int amplc_pc236_common_attach(struct comedi_device *dev, unsigned long iobase, in amplc_pc236_common_attach()
/linux/drivers/comedi/kcomedilib/
A 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()

Completed in 71 milliseconds

1234567