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;
501 extern void tty_buffer_free_all(struct tty_port *port);
503 extern void tty_buffer_init(struct tty_port *port);
504 extern void tty_buffer_set_lock_subclass(struct tty_port *port);
505 extern bool tty_buffer_restart_work(struct tty_port *port);
506 extern bool tty_buffer_cancel_work(struct tty_port *port);
507 extern void tty_buffer_flush_work(struct tty_port *port);
566 extern void tty_port_init(struct tty_port *port);
567 extern void tty_port_link_device(struct tty_port *port,
569 extern struct device *tty_port_register_device(struct tty_port *port,
572 extern struct device *tty_port_register_device_attr(struct tty_port *port,
576 extern struct device *tty_port_register_device_serdev(struct tty_port *port,
579 extern struct device *tty_port_register_device_attr_serdev(struct tty_port *port,
583 extern void tty_port_unregister_device(struct tty_port *port,
585 extern int tty_port_alloc_xmit_buf(struct tty_port *port);
586 extern void tty_port_free_xmit_buf(struct tty_port *port);
587 extern void tty_port_destroy(struct tty_port *port);
588 extern void tty_port_put(struct tty_port *port);
590 static inline struct tty_port *tty_port_get(struct tty_port *port) in tty_port_get()
598 static inline bool tty_port_cts_enabled(struct tty_port *port) in tty_port_cts_enabled()
603 static inline void tty_port_set_cts_flow(struct tty_port *port, bool val) in tty_port_set_cts_flow()
611 static inline bool tty_port_active(struct tty_port *port) in tty_port_active()
616 static inline void tty_port_set_active(struct tty_port *port, bool val) in tty_port_set_active()
624 static inline bool tty_port_check_carrier(struct tty_port *port) in tty_port_check_carrier()
629 static inline void tty_port_set_check_carrier(struct tty_port *port, bool val) in tty_port_set_check_carrier()
637 static inline bool tty_port_suspended(struct tty_port *port) in tty_port_suspended()
642 static inline void tty_port_set_suspended(struct tty_port *port, bool val) in tty_port_set_suspended()
650 static inline bool tty_port_initialized(struct tty_port *port) in tty_port_initialized()
655 static inline void tty_port_set_initialized(struct tty_port *port, bool val) in tty_port_set_initialized()
663 static inline bool tty_port_kopened(struct tty_port *port) in tty_port_kopened()
668 static inline void tty_port_set_kopened(struct tty_port *port, bool val) in tty_port_set_kopened()
676 extern struct tty_struct *tty_port_tty_get(struct tty_port *port);
677 extern void tty_port_tty_set(struct tty_port *port, struct tty_struct *tty);
678 extern int tty_port_carrier_raised(struct tty_port *port);
679 extern void tty_port_raise_dtr_rts(struct tty_port *port);
680 extern void tty_port_lower_dtr_rts(struct tty_port *port);
681 extern void tty_port_hangup(struct tty_port *port);
682 extern void tty_port_tty_hangup(struct tty_port *port, bool check_clocal);
683 extern void tty_port_tty_wakeup(struct tty_port *port);
684 extern int tty_port_block_til_ready(struct tty_port *port,
686 extern int tty_port_close_start(struct tty_port *port,
688 extern void tty_port_close_end(struct tty_port *port, struct tty_struct *tty);
689 extern void tty_port_close(struct tty_port *port,
691 extern int tty_port_install(struct tty_port *port, struct tty_driver *driver,
693 extern int tty_port_open(struct tty_port *port,
695 static inline int tty_port_users(struct tty_port *port) in tty_port_users()