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);
228 struct tty_port { struct
338 struct tty_port *port;
508 extern void tty_buffer_free_all(struct tty_port *port);
510 extern void tty_buffer_init(struct tty_port *port);
511 extern void tty_buffer_set_lock_subclass(struct tty_port *port);
512 extern bool tty_buffer_restart_work(struct tty_port *port);
513 extern bool tty_buffer_cancel_work(struct tty_port *port);
514 extern void tty_buffer_flush_work(struct tty_port *port);
574 extern void tty_port_init(struct tty_port *port);
575 extern void tty_port_link_device(struct tty_port *port,
577 extern struct device *tty_port_register_device(struct tty_port *port,
580 extern struct device *tty_port_register_device_attr(struct tty_port *port,
584 extern struct device *tty_port_register_device_serdev(struct tty_port *port,
587 extern struct device *tty_port_register_device_attr_serdev(struct tty_port *port,
591 extern void tty_port_unregister_device(struct tty_port *port,
593 extern int tty_port_alloc_xmit_buf(struct tty_port *port);
594 extern void tty_port_free_xmit_buf(struct tty_port *port);
595 extern void tty_port_destroy(struct tty_port *port);
596 extern void tty_port_put(struct tty_port *port);
598 static inline struct tty_port *tty_port_get(struct tty_port *port) in tty_port_get()
606 static inline bool tty_port_cts_enabled(struct tty_port *port) in tty_port_cts_enabled()
611 static inline void tty_port_set_cts_flow(struct tty_port *port, bool val) in tty_port_set_cts_flow()
619 static inline bool tty_port_active(struct tty_port *port) in tty_port_active()
624 static inline void tty_port_set_active(struct tty_port *port, bool val) in tty_port_set_active()
632 static inline bool tty_port_check_carrier(struct tty_port *port) in tty_port_check_carrier()
637 static inline void tty_port_set_check_carrier(struct tty_port *port, bool val) in tty_port_set_check_carrier()
645 static inline bool tty_port_suspended(struct tty_port *port) in tty_port_suspended()
650 static inline void tty_port_set_suspended(struct tty_port *port, bool val) in tty_port_set_suspended()
658 static inline bool tty_port_initialized(struct tty_port *port) in tty_port_initialized()
663 static inline void tty_port_set_initialized(struct tty_port *port, bool val) in tty_port_set_initialized()
671 static inline bool tty_port_kopened(struct tty_port *port) in tty_port_kopened()
676 static inline void tty_port_set_kopened(struct tty_port *port, bool val) in tty_port_set_kopened()
684 extern struct tty_struct *tty_port_tty_get(struct tty_port *port);
685 extern void tty_port_tty_set(struct tty_port *port, struct tty_struct *tty);
686 extern int tty_port_carrier_raised(struct tty_port *port);
687 extern void tty_port_raise_dtr_rts(struct tty_port *port);
688 extern void tty_port_lower_dtr_rts(struct tty_port *port);
689 extern void tty_port_hangup(struct tty_port *port);
690 extern void tty_port_tty_hangup(struct tty_port *port, bool check_clocal);
691 extern void tty_port_tty_wakeup(struct tty_port *port);
692 extern int tty_port_block_til_ready(struct tty_port *port,
694 extern int tty_port_close_start(struct tty_port *port,
696 extern void tty_port_close_end(struct tty_port *port, struct tty_struct *tty);
697 extern void tty_port_close(struct tty_port *port,
699 extern int tty_port_install(struct tty_port *port, struct tty_driver *driver,
701 extern int tty_port_open(struct tty_port *port,
703 static inline int tty_port_users(struct tty_port *port) in tty_port_users()