Lines Matching refs:tty_port

204 struct tty_port;
208 int (*carrier_raised)(struct tty_port *port);
210 void (*dtr_rts)(struct tty_port *port, int raise);
214 void (*shutdown)(struct tty_port *port);
219 int (*activate)(struct tty_port *port, struct tty_struct *tty);
221 void (*destruct)(struct tty_port *port);
227 int (*receive_buf)(struct tty_port *port, const unsigned char *, const unsigned char *, size_t);
228 void (*write_wakeup)(struct tty_port *port);
233 struct tty_port { struct
352 struct tty_port *port;
526 extern void tty_buffer_free_all(struct tty_port *port);
528 extern void tty_buffer_init(struct tty_port *port);
529 extern void tty_buffer_set_lock_subclass(struct tty_port *port);
530 extern bool tty_buffer_restart_work(struct tty_port *port);
531 extern bool tty_buffer_cancel_work(struct tty_port *port);
532 extern void tty_buffer_flush_work(struct tty_port *port);
592 extern void tty_port_init(struct tty_port *port);
593 extern void tty_port_link_device(struct tty_port *port,
595 extern struct device *tty_port_register_device(struct tty_port *port,
598 extern struct device *tty_port_register_device_attr(struct tty_port *port,
602 extern struct device *tty_port_register_device_serdev(struct tty_port *port,
605 extern struct device *tty_port_register_device_attr_serdev(struct tty_port *port,
609 extern void tty_port_unregister_device(struct tty_port *port,
611 extern int tty_port_alloc_xmit_buf(struct tty_port *port);
612 extern void tty_port_free_xmit_buf(struct tty_port *port);
613 extern void tty_port_destroy(struct tty_port *port);
614 extern void tty_port_put(struct tty_port *port);
616 static inline struct tty_port *tty_port_get(struct tty_port *port) in tty_port_get()
624 static inline bool tty_port_cts_enabled(struct tty_port *port) in tty_port_cts_enabled()
629 static inline void tty_port_set_cts_flow(struct tty_port *port, bool val) in tty_port_set_cts_flow()
637 static inline bool tty_port_active(struct tty_port *port) in tty_port_active()
642 static inline void tty_port_set_active(struct tty_port *port, bool val) in tty_port_set_active()
650 static inline bool tty_port_check_carrier(struct tty_port *port) in tty_port_check_carrier()
655 static inline void tty_port_set_check_carrier(struct tty_port *port, bool val) in tty_port_set_check_carrier()
663 static inline bool tty_port_suspended(struct tty_port *port) in tty_port_suspended()
668 static inline void tty_port_set_suspended(struct tty_port *port, bool val) in tty_port_set_suspended()
676 static inline bool tty_port_initialized(struct tty_port *port) in tty_port_initialized()
681 static inline void tty_port_set_initialized(struct tty_port *port, bool val) in tty_port_set_initialized()
689 static inline bool tty_port_kopened(struct tty_port *port) in tty_port_kopened()
694 static inline void tty_port_set_kopened(struct tty_port *port, bool val) in tty_port_set_kopened()
702 extern struct tty_struct *tty_port_tty_get(struct tty_port *port);
703 extern void tty_port_tty_set(struct tty_port *port, struct tty_struct *tty);
704 extern int tty_port_carrier_raised(struct tty_port *port);
705 extern void tty_port_raise_dtr_rts(struct tty_port *port);
706 extern void tty_port_lower_dtr_rts(struct tty_port *port);
707 extern void tty_port_hangup(struct tty_port *port);
708 extern void tty_port_tty_hangup(struct tty_port *port, bool check_clocal);
709 extern void tty_port_tty_wakeup(struct tty_port *port);
710 extern int tty_port_block_til_ready(struct tty_port *port,
712 extern int tty_port_close_start(struct tty_port *port,
714 extern void tty_port_close_end(struct tty_port *port, struct tty_struct *tty);
715 extern void tty_port_close(struct tty_port *port,
717 extern int tty_port_install(struct tty_port *port, struct tty_driver *driver,
719 extern int tty_port_open(struct tty_port *port,
721 static inline int tty_port_users(struct tty_port *port) in tty_port_users()