Lines Matching refs:tty_port

13 struct tty_port;
34 bool (*carrier_raised)(struct tty_port *port);
35 void (*dtr_rts)(struct tty_port *port, bool active);
36 void (*shutdown)(struct tty_port *port);
37 int (*activate)(struct tty_port *port, struct tty_struct *tty);
38 void (*destruct)(struct tty_port *port);
42 size_t (*receive_buf)(struct tty_port *port, const u8 *cp, const u8 *fp,
44 void (*lookahead_buf)(struct tty_port *port, const u8 *cp,
46 void (*write_wakeup)(struct tty_port *port);
101 struct tty_port { struct
140 void tty_port_init(struct tty_port *port);
141 void tty_port_link_device(struct tty_port *port, struct tty_driver *driver,
143 struct device *tty_port_register_device(struct tty_port *port,
146 struct device *tty_port_register_device_attr(struct tty_port *port,
150 struct device *tty_port_register_device_serdev(struct tty_port *port,
153 struct device *tty_port_register_device_attr_serdev(struct tty_port *port,
157 void tty_port_unregister_device(struct tty_port *port,
159 int tty_port_alloc_xmit_buf(struct tty_port *port);
160 void tty_port_free_xmit_buf(struct tty_port *port);
161 void tty_port_destroy(struct tty_port *port);
162 void tty_port_put(struct tty_port *port);
164 static inline struct tty_port *tty_port_get(struct tty_port *port) in tty_port_get()
172 static inline bool tty_port_cts_enabled(const struct tty_port *port) in tty_port_cts_enabled()
177 static inline void tty_port_set_cts_flow(struct tty_port *port, bool val) in tty_port_set_cts_flow()
182 static inline bool tty_port_active(const struct tty_port *port) in tty_port_active()
187 static inline void tty_port_set_active(struct tty_port *port, bool val) in tty_port_set_active()
192 static inline bool tty_port_check_carrier(const struct tty_port *port) in tty_port_check_carrier()
197 static inline void tty_port_set_check_carrier(struct tty_port *port, bool val) in tty_port_set_check_carrier()
202 static inline bool tty_port_suspended(const struct tty_port *port) in tty_port_suspended()
207 static inline void tty_port_set_suspended(struct tty_port *port, bool val) in tty_port_set_suspended()
212 static inline bool tty_port_initialized(const struct tty_port *port) in tty_port_initialized()
217 static inline void tty_port_set_initialized(struct tty_port *port, bool val) in tty_port_set_initialized()
222 static inline bool tty_port_kopened(const struct tty_port *port) in tty_port_kopened()
227 static inline void tty_port_set_kopened(struct tty_port *port, bool val) in tty_port_set_kopened()
232 struct tty_struct *tty_port_tty_get(struct tty_port *port);
233 void tty_port_tty_set(struct tty_port *port, struct tty_struct *tty);
234 bool tty_port_carrier_raised(struct tty_port *port);
235 void tty_port_raise_dtr_rts(struct tty_port *port);
236 void tty_port_lower_dtr_rts(struct tty_port *port);
237 void tty_port_hangup(struct tty_port *port);
238 void tty_port_tty_hangup(struct tty_port *port, bool check_clocal);
239 void tty_port_tty_wakeup(struct tty_port *port);
240 int tty_port_block_til_ready(struct tty_port *port, struct tty_struct *tty,
242 int tty_port_close_start(struct tty_port *port, struct tty_struct *tty,
244 void tty_port_close_end(struct tty_port *port, struct tty_struct *tty);
245 void tty_port_close(struct tty_port *port, struct tty_struct *tty,
247 int tty_port_install(struct tty_port *port, struct tty_driver *driver,
249 int tty_port_open(struct tty_port *port, struct tty_struct *tty,
252 static inline int tty_port_users(struct tty_port *port) in tty_port_users()