Lines Matching refs:tty_port

13 struct tty_port;
34 int (*carrier_raised)(struct tty_port *port);
35 void (*dtr_rts)(struct tty_port *port, int raise);
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 int (*receive_buf)(struct tty_port *port, const unsigned char *, const unsigned char *, size_t);
43 void (*lookahead_buf)(struct tty_port *port, const unsigned char *cp,
45 void (*write_wakeup)(struct tty_port *port);
100 struct tty_port { struct
139 void tty_port_init(struct tty_port *port);
140 void tty_port_link_device(struct tty_port *port, struct tty_driver *driver,
142 struct device *tty_port_register_device(struct tty_port *port,
145 struct device *tty_port_register_device_attr(struct tty_port *port,
149 struct device *tty_port_register_device_serdev(struct tty_port *port,
152 struct device *tty_port_register_device_attr_serdev(struct tty_port *port,
156 void tty_port_unregister_device(struct tty_port *port,
158 int tty_port_alloc_xmit_buf(struct tty_port *port);
159 void tty_port_free_xmit_buf(struct tty_port *port);
160 void tty_port_destroy(struct tty_port *port);
161 void tty_port_put(struct tty_port *port);
163 static inline struct tty_port *tty_port_get(struct tty_port *port) in tty_port_get()
171 static inline bool tty_port_cts_enabled(const struct tty_port *port) in tty_port_cts_enabled()
176 static inline void tty_port_set_cts_flow(struct tty_port *port, bool val) in tty_port_set_cts_flow()
181 static inline bool tty_port_active(const struct tty_port *port) in tty_port_active()
186 static inline void tty_port_set_active(struct tty_port *port, bool val) in tty_port_set_active()
191 static inline bool tty_port_check_carrier(const struct tty_port *port) in tty_port_check_carrier()
196 static inline void tty_port_set_check_carrier(struct tty_port *port, bool val) in tty_port_set_check_carrier()
201 static inline bool tty_port_suspended(const struct tty_port *port) in tty_port_suspended()
206 static inline void tty_port_set_suspended(struct tty_port *port, bool val) in tty_port_set_suspended()
211 static inline bool tty_port_initialized(const struct tty_port *port) in tty_port_initialized()
216 static inline void tty_port_set_initialized(struct tty_port *port, bool val) in tty_port_set_initialized()
221 static inline bool tty_port_kopened(const struct tty_port *port) in tty_port_kopened()
226 static inline void tty_port_set_kopened(struct tty_port *port, bool val) in tty_port_set_kopened()
231 struct tty_struct *tty_port_tty_get(struct tty_port *port);
232 void tty_port_tty_set(struct tty_port *port, struct tty_struct *tty);
233 int tty_port_carrier_raised(struct tty_port *port);
234 void tty_port_raise_dtr_rts(struct tty_port *port);
235 void tty_port_lower_dtr_rts(struct tty_port *port);
236 void tty_port_hangup(struct tty_port *port);
237 void tty_port_tty_hangup(struct tty_port *port, bool check_clocal);
238 void tty_port_tty_wakeup(struct tty_port *port);
239 int tty_port_block_til_ready(struct tty_port *port, struct tty_struct *tty,
241 int tty_port_close_start(struct tty_port *port, struct tty_struct *tty,
243 void tty_port_close_end(struct tty_port *port, struct tty_struct *tty);
244 void tty_port_close(struct tty_port *port, struct tty_struct *tty,
246 int tty_port_install(struct tty_port *port, struct tty_driver *driver,
248 int tty_port_open(struct tty_port *port, struct tty_struct *tty,
251 static inline int tty_port_users(struct tty_port *port) in tty_port_users()