Lines Matching refs:tty_port
203 struct tty_port;
207 int (*carrier_raised)(struct tty_port *port);
209 void (*dtr_rts)(struct tty_port *port, int raise);
213 void (*shutdown)(struct tty_port *port);
218 int (*activate)(struct tty_port *port, struct tty_struct *tty);
220 void (*destruct)(struct tty_port *port);
224 int (*receive_buf)(struct tty_port *port, const unsigned char *, const unsigned char *, size_t);
225 void (*write_wakeup)(struct tty_port *port);
230 struct tty_port { struct
344 struct tty_port *port;
514 extern void tty_buffer_free_all(struct tty_port *port);
516 extern void tty_buffer_init(struct tty_port *port);
517 extern void tty_buffer_set_lock_subclass(struct tty_port *port);
518 extern bool tty_buffer_restart_work(struct tty_port *port);
519 extern bool tty_buffer_cancel_work(struct tty_port *port);
520 extern void tty_buffer_flush_work(struct tty_port *port);
580 extern void tty_port_init(struct tty_port *port);
581 extern void tty_port_link_device(struct tty_port *port,
583 extern struct device *tty_port_register_device(struct tty_port *port,
586 extern struct device *tty_port_register_device_attr(struct tty_port *port,
590 extern struct device *tty_port_register_device_serdev(struct tty_port *port,
593 extern struct device *tty_port_register_device_attr_serdev(struct tty_port *port,
597 extern void tty_port_unregister_device(struct tty_port *port,
599 extern int tty_port_alloc_xmit_buf(struct tty_port *port);
600 extern void tty_port_free_xmit_buf(struct tty_port *port);
601 extern void tty_port_destroy(struct tty_port *port);
602 extern void tty_port_put(struct tty_port *port);
604 static inline struct tty_port *tty_port_get(struct tty_port *port) in tty_port_get()
612 static inline bool tty_port_cts_enabled(struct tty_port *port) in tty_port_cts_enabled()
617 static inline void tty_port_set_cts_flow(struct tty_port *port, bool val) in tty_port_set_cts_flow()
625 static inline bool tty_port_active(struct tty_port *port) in tty_port_active()
630 static inline void tty_port_set_active(struct tty_port *port, bool val) in tty_port_set_active()
638 static inline bool tty_port_check_carrier(struct tty_port *port) in tty_port_check_carrier()
643 static inline void tty_port_set_check_carrier(struct tty_port *port, bool val) in tty_port_set_check_carrier()
651 static inline bool tty_port_suspended(struct tty_port *port) in tty_port_suspended()
656 static inline void tty_port_set_suspended(struct tty_port *port, bool val) in tty_port_set_suspended()
664 static inline bool tty_port_initialized(struct tty_port *port) in tty_port_initialized()
669 static inline void tty_port_set_initialized(struct tty_port *port, bool val) in tty_port_set_initialized()
677 static inline bool tty_port_kopened(struct tty_port *port) in tty_port_kopened()
682 static inline void tty_port_set_kopened(struct tty_port *port, bool val) in tty_port_set_kopened()
690 extern struct tty_struct *tty_port_tty_get(struct tty_port *port);
691 extern void tty_port_tty_set(struct tty_port *port, struct tty_struct *tty);
692 extern int tty_port_carrier_raised(struct tty_port *port);
693 extern void tty_port_raise_dtr_rts(struct tty_port *port);
694 extern void tty_port_lower_dtr_rts(struct tty_port *port);
695 extern void tty_port_hangup(struct tty_port *port);
696 extern void tty_port_tty_hangup(struct tty_port *port, bool check_clocal);
697 extern void tty_port_tty_wakeup(struct tty_port *port);
698 extern int tty_port_block_til_ready(struct tty_port *port,
700 extern int tty_port_close_start(struct tty_port *port,
702 extern void tty_port_close_end(struct tty_port *port, struct tty_struct *tty);
703 extern void tty_port_close(struct tty_port *port,
705 extern int tty_port_install(struct tty_port *port, struct tty_driver *driver,
707 extern int tty_port_open(struct tty_port *port,
709 static inline int tty_port_users(struct tty_port *port) in tty_port_users()