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 (*write_wakeup)(struct tty_port *port);
98 struct tty_port { struct
137 void tty_port_init(struct tty_port *port);
138 void tty_port_link_device(struct tty_port *port, struct tty_driver *driver,
140 struct device *tty_port_register_device(struct tty_port *port,
143 struct device *tty_port_register_device_attr(struct tty_port *port,
147 struct device *tty_port_register_device_serdev(struct tty_port *port,
150 struct device *tty_port_register_device_attr_serdev(struct tty_port *port,
154 void tty_port_unregister_device(struct tty_port *port,
156 int tty_port_alloc_xmit_buf(struct tty_port *port);
157 void tty_port_free_xmit_buf(struct tty_port *port);
158 void tty_port_destroy(struct tty_port *port);
159 void tty_port_put(struct tty_port *port);
161 static inline struct tty_port *tty_port_get(struct tty_port *port) in tty_port_get()
169 static inline bool tty_port_cts_enabled(const struct tty_port *port) in tty_port_cts_enabled()
174 static inline void tty_port_set_cts_flow(struct tty_port *port, bool val) in tty_port_set_cts_flow()
179 static inline bool tty_port_active(const struct tty_port *port) in tty_port_active()
184 static inline void tty_port_set_active(struct tty_port *port, bool val) in tty_port_set_active()
189 static inline bool tty_port_check_carrier(const struct tty_port *port) in tty_port_check_carrier()
194 static inline void tty_port_set_check_carrier(struct tty_port *port, bool val) in tty_port_set_check_carrier()
199 static inline bool tty_port_suspended(const struct tty_port *port) in tty_port_suspended()
204 static inline void tty_port_set_suspended(struct tty_port *port, bool val) in tty_port_set_suspended()
209 static inline bool tty_port_initialized(const struct tty_port *port) in tty_port_initialized()
214 static inline void tty_port_set_initialized(struct tty_port *port, bool val) in tty_port_set_initialized()
219 static inline bool tty_port_kopened(const struct tty_port *port) in tty_port_kopened()
224 static inline void tty_port_set_kopened(struct tty_port *port, bool val) in tty_port_set_kopened()
229 struct tty_struct *tty_port_tty_get(struct tty_port *port);
230 void tty_port_tty_set(struct tty_port *port, struct tty_struct *tty);
231 int tty_port_carrier_raised(struct tty_port *port);
232 void tty_port_raise_dtr_rts(struct tty_port *port);
233 void tty_port_lower_dtr_rts(struct tty_port *port);
234 void tty_port_hangup(struct tty_port *port);
235 void tty_port_tty_hangup(struct tty_port *port, bool check_clocal);
236 void tty_port_tty_wakeup(struct tty_port *port);
237 int tty_port_block_til_ready(struct tty_port *port, struct tty_struct *tty,
239 int tty_port_close_start(struct tty_port *port, struct tty_struct *tty,
241 void tty_port_close_end(struct tty_port *port, struct tty_struct *tty);
242 void tty_port_close(struct tty_port *port, struct tty_struct *tty,
244 int tty_port_install(struct tty_port *port, struct tty_driver *driver,
246 int tty_port_open(struct tty_port *port, struct tty_struct *tty,
249 static inline int tty_port_users(struct tty_port *port) in tty_port_users()