Lines Matching refs:comedi_subdevice
152 struct comedi_subdevice { struct
179 int (*insn_read)(struct comedi_device *dev, struct comedi_subdevice *s, argument
181 int (*insn_write)(struct comedi_device *dev, struct comedi_subdevice *s, argument
183 int (*insn_bits)(struct comedi_device *dev, struct comedi_subdevice *s, argument
186 struct comedi_subdevice *s, argument
190 int (*do_cmd)(struct comedi_device *dev, struct comedi_subdevice *s); argument
192 struct comedi_subdevice *s, argument
194 int (*poll)(struct comedi_device *dev, struct comedi_subdevice *s); argument
195 int (*cancel)(struct comedi_device *dev, struct comedi_subdevice *s); argument
199 struct comedi_subdevice *s); argument
201 void (*munge)(struct comedi_device *dev, struct comedi_subdevice *s, argument
367 int (*inttrig)(struct comedi_device *dev, struct comedi_subdevice *s,
561 struct comedi_subdevice *subdevices;
569 struct comedi_subdevice *read_subdev;
570 struct comedi_subdevice *write_subdev;
587 void comedi_event(struct comedi_device *dev, struct comedi_subdevice *s);
592 bool comedi_is_subdevice_running(struct comedi_subdevice *s);
594 void *comedi_alloc_spriv(struct comedi_subdevice *s, size_t size);
595 void comedi_set_spriv_auto_free(struct comedi_subdevice *s);
597 int comedi_check_chanlist(struct comedi_subdevice *s,
654 static inline bool comedi_range_is_bipolar(struct comedi_subdevice *s, in comedi_range_is_bipolar()
675 static inline bool comedi_range_is_unipolar(struct comedi_subdevice *s, in comedi_range_is_unipolar()
696 static inline bool comedi_range_is_external(struct comedi_subdevice *s, in comedi_range_is_external()
718 static inline bool comedi_chan_range_is_bipolar(struct comedi_subdevice *s, in comedi_chan_range_is_bipolar()
741 static inline bool comedi_chan_range_is_unipolar(struct comedi_subdevice *s, in comedi_chan_range_is_unipolar()
764 static inline bool comedi_chan_range_is_external(struct comedi_subdevice *s, in comedi_chan_range_is_external()
781 static inline unsigned int comedi_offset_munge(struct comedi_subdevice *s, in comedi_offset_munge()
796 static inline unsigned int comedi_bytes_per_sample(struct comedi_subdevice *s) in comedi_bytes_per_sample()
812 static inline unsigned int comedi_sample_shift(struct comedi_subdevice *s) in comedi_sample_shift()
824 static inline unsigned int comedi_bytes_to_samples(struct comedi_subdevice *s, in comedi_bytes_to_samples()
838 static inline unsigned int comedi_samples_to_bytes(struct comedi_subdevice *s, in comedi_samples_to_bytes()
966 static inline unsigned int comedi_buf_n_bytes_ready(struct comedi_subdevice *s) in comedi_buf_n_bytes_ready()
971 unsigned int comedi_buf_write_alloc(struct comedi_subdevice *s, unsigned int n);
972 unsigned int comedi_buf_write_free(struct comedi_subdevice *s, unsigned int n);
974 unsigned int comedi_buf_read_n_available(struct comedi_subdevice *s);
975 unsigned int comedi_buf_read_alloc(struct comedi_subdevice *s, unsigned int n);
976 unsigned int comedi_buf_read_free(struct comedi_subdevice *s, unsigned int n);
978 unsigned int comedi_buf_write_samples(struct comedi_subdevice *s,
980 unsigned int comedi_buf_read_samples(struct comedi_subdevice *s,
987 int comedi_timeout(struct comedi_device *dev, struct comedi_subdevice *s,
990 struct comedi_subdevice *s,
995 struct comedi_subdevice *s);
998 struct comedi_subdevice *s,
1001 unsigned int comedi_dio_update_state(struct comedi_subdevice *s,
1003 unsigned int comedi_bytes_per_scan_cmd(struct comedi_subdevice *s,
1005 unsigned int comedi_bytes_per_scan(struct comedi_subdevice *s);
1006 unsigned int comedi_nscans_left(struct comedi_subdevice *s,
1008 unsigned int comedi_nsamples_left(struct comedi_subdevice *s,
1010 void comedi_inc_scan_progress(struct comedi_subdevice *s,
1015 int comedi_alloc_subdev_readback(struct comedi_subdevice *s);
1018 struct comedi_subdevice *s,