Lines Matching refs:serdev_device

15 struct serdev_device;
29 int (*receive_buf)(struct serdev_device *, const unsigned char *, size_t);
30 void (*write_wakeup)(struct serdev_device *);
42 struct serdev_device { struct
51 static inline struct serdev_device *to_serdev_device(struct device *d) in to_serdev_device() argument
53 return container_of(d, struct serdev_device, dev); in to_serdev_device()
65 int (*probe)(struct serdev_device *);
66 void (*remove)(struct serdev_device *);
107 struct serdev_device *serdev;
116 static inline void *serdev_device_get_drvdata(const struct serdev_device *serdev) in serdev_device_get_drvdata()
121 static inline void serdev_device_set_drvdata(struct serdev_device *serdev, void *data) in serdev_device_set_drvdata()
130 static inline void serdev_device_put(struct serdev_device *serdev) in serdev_device_put()
136 static inline void serdev_device_set_client_ops(struct serdev_device *serdev, in serdev_device_set_client_ops()
164 struct serdev_device *serdev_device_alloc(struct serdev_controller *);
165 int serdev_device_add(struct serdev_device *);
166 void serdev_device_remove(struct serdev_device *);
174 struct serdev_device *serdev = ctrl->serdev; in serdev_controller_write_wakeup()
186 struct serdev_device *serdev = ctrl->serdev; in serdev_controller_receive_buf()
196 int serdev_device_open(struct serdev_device *);
197 void serdev_device_close(struct serdev_device *);
198 int devm_serdev_device_open(struct device *, struct serdev_device *);
199 unsigned int serdev_device_set_baudrate(struct serdev_device *, unsigned int);
200 void serdev_device_set_flow_control(struct serdev_device *, bool);
201 int serdev_device_write_buf(struct serdev_device *, const unsigned char *, size_t);
202 void serdev_device_wait_until_sent(struct serdev_device *, long);
203 int serdev_device_get_tiocm(struct serdev_device *);
204 int serdev_device_set_tiocm(struct serdev_device *, int, int);
205 void serdev_device_write_wakeup(struct serdev_device *);
206 int serdev_device_write(struct serdev_device *, const unsigned char *, size_t, long);
207 void serdev_device_write_flush(struct serdev_device *);
208 int serdev_device_write_room(struct serdev_device *);
233 static inline int serdev_device_open(struct serdev_device *sdev) in serdev_device_open()
237 static inline void serdev_device_close(struct serdev_device *sdev) {} in serdev_device_close()
238 static inline unsigned int serdev_device_set_baudrate(struct serdev_device *sdev, unsigned int baud… in serdev_device_set_baudrate()
242 static inline void serdev_device_set_flow_control(struct serdev_device *sdev, bool enable) {} in serdev_device_set_flow_control()
243 static inline int serdev_device_write_buf(struct serdev_device *serdev, in serdev_device_write_buf()
249 static inline void serdev_device_wait_until_sent(struct serdev_device *sdev, long timeout) {} in serdev_device_wait_until_sent()
250 static inline int serdev_device_get_tiocm(struct serdev_device *serdev) in serdev_device_get_tiocm()
254 static inline int serdev_device_set_tiocm(struct serdev_device *serdev, int set, int clear) in serdev_device_set_tiocm()
258 static inline int serdev_device_write(struct serdev_device *sdev, const unsigned char *buf, in serdev_device_write()
263 static inline void serdev_device_write_flush(struct serdev_device *sdev) {} in serdev_device_write_flush()
264 static inline int serdev_device_write_room(struct serdev_device *sdev) in serdev_device_write_room()
274 static inline bool serdev_device_get_cts(struct serdev_device *serdev) in serdev_device_get_cts()
280 static inline int serdev_device_wait_for_cts(struct serdev_device *serdev, bool state, int timeout_… in serdev_device_wait_for_cts()
296 static inline int serdev_device_set_rts(struct serdev_device *serdev, bool enable) in serdev_device_set_rts()
304 int serdev_device_set_parity(struct serdev_device *serdev,