Lines Matching defs:tty_port

13 struct tty_port;
17 * struct tty_port_operations -- operations on 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);
52 * struct tty_port -- port level information
83 * Each device keeps its own port level information. &struct tty_port was
85 * shall have a backing tty_port structure, every driver can use these members.
95 * There is a lot of helpers around &struct tty_port too. To name the most
101 struct tty_port {
126 /* tty_port::iflags bits -- use atomic bit ops */
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)
172 static inline bool tty_port_cts_enabled(const struct tty_port *port)
177 static inline void tty_port_set_cts_flow(struct tty_port *port, bool val)
182 static inline bool tty_port_active(const struct tty_port *port)
187 static inline void tty_port_set_active(struct tty_port *port, bool val)
192 static inline bool tty_port_check_carrier(const struct tty_port *port)
197 static inline void tty_port_set_check_carrier(struct tty_port *port, bool val)
202 static inline bool tty_port_suspended(const struct tty_port *port)
207 static inline void tty_port_set_suspended(struct tty_port *port, bool val)
212 static inline bool tty_port_initialized(const struct tty_port *port)
217 static inline void tty_port_set_initialized(struct tty_port *port, bool val)
222 static inline bool tty_port_kopened(const struct tty_port *port)
227 static inline void tty_port_set_kopened(struct tty_port *port, bool val)
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)