Lines Matching refs: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);
344 struct tty_port *port; member
516 extern void tty_buffer_free_all(struct tty_port *port);
518 extern void tty_buffer_init(struct tty_port *port);
519 extern void tty_buffer_set_lock_subclass(struct tty_port *port);
520 extern bool tty_buffer_restart_work(struct tty_port *port);
521 extern bool tty_buffer_cancel_work(struct tty_port *port);
522 extern void tty_buffer_flush_work(struct tty_port *port);
582 extern void tty_port_init(struct tty_port *port);
583 extern void tty_port_link_device(struct tty_port *port,
585 extern struct device *tty_port_register_device(struct tty_port *port,
588 extern struct device *tty_port_register_device_attr(struct tty_port *port,
592 extern struct device *tty_port_register_device_serdev(struct tty_port *port,
595 extern struct device *tty_port_register_device_attr_serdev(struct tty_port *port,
599 extern void tty_port_unregister_device(struct tty_port *port,
601 extern int tty_port_alloc_xmit_buf(struct tty_port *port);
602 extern void tty_port_free_xmit_buf(struct tty_port *port);
603 extern void tty_port_destroy(struct tty_port *port);
604 extern void tty_port_put(struct tty_port *port);
606 static inline struct tty_port *tty_port_get(struct tty_port *port) in tty_port_get() argument
608 if (port && kref_get_unless_zero(&port->kref)) in tty_port_get()
609 return port; in tty_port_get()
614 static inline bool tty_port_cts_enabled(struct tty_port *port) in tty_port_cts_enabled() argument
616 return test_bit(TTY_PORT_CTS_FLOW, &port->iflags); in tty_port_cts_enabled()
619 static inline void tty_port_set_cts_flow(struct tty_port *port, bool val) in tty_port_set_cts_flow() argument
622 set_bit(TTY_PORT_CTS_FLOW, &port->iflags); in tty_port_set_cts_flow()
624 clear_bit(TTY_PORT_CTS_FLOW, &port->iflags); in tty_port_set_cts_flow()
627 static inline bool tty_port_active(struct tty_port *port) in tty_port_active() argument
629 return test_bit(TTY_PORT_ACTIVE, &port->iflags); in tty_port_active()
632 static inline void tty_port_set_active(struct tty_port *port, bool val) in tty_port_set_active() argument
635 set_bit(TTY_PORT_ACTIVE, &port->iflags); in tty_port_set_active()
637 clear_bit(TTY_PORT_ACTIVE, &port->iflags); in tty_port_set_active()
640 static inline bool tty_port_check_carrier(struct tty_port *port) in tty_port_check_carrier() argument
642 return test_bit(TTY_PORT_CHECK_CD, &port->iflags); in tty_port_check_carrier()
645 static inline void tty_port_set_check_carrier(struct tty_port *port, bool val) in tty_port_set_check_carrier() argument
648 set_bit(TTY_PORT_CHECK_CD, &port->iflags); in tty_port_set_check_carrier()
650 clear_bit(TTY_PORT_CHECK_CD, &port->iflags); in tty_port_set_check_carrier()
653 static inline bool tty_port_suspended(struct tty_port *port) in tty_port_suspended() argument
655 return test_bit(TTY_PORT_SUSPENDED, &port->iflags); in tty_port_suspended()
658 static inline void tty_port_set_suspended(struct tty_port *port, bool val) in tty_port_set_suspended() argument
661 set_bit(TTY_PORT_SUSPENDED, &port->iflags); in tty_port_set_suspended()
663 clear_bit(TTY_PORT_SUSPENDED, &port->iflags); in tty_port_set_suspended()
666 static inline bool tty_port_initialized(struct tty_port *port) in tty_port_initialized() argument
668 return test_bit(TTY_PORT_INITIALIZED, &port->iflags); in tty_port_initialized()
671 static inline void tty_port_set_initialized(struct tty_port *port, bool val) in tty_port_set_initialized() argument
674 set_bit(TTY_PORT_INITIALIZED, &port->iflags); in tty_port_set_initialized()
676 clear_bit(TTY_PORT_INITIALIZED, &port->iflags); in tty_port_set_initialized()
679 static inline bool tty_port_kopened(struct tty_port *port) in tty_port_kopened() argument
681 return test_bit(TTY_PORT_KOPENED, &port->iflags); in tty_port_kopened()
684 static inline void tty_port_set_kopened(struct tty_port *port, bool val) in tty_port_set_kopened() argument
687 set_bit(TTY_PORT_KOPENED, &port->iflags); in tty_port_set_kopened()
689 clear_bit(TTY_PORT_KOPENED, &port->iflags); in tty_port_set_kopened()
692 extern struct tty_struct *tty_port_tty_get(struct tty_port *port);
693 extern void tty_port_tty_set(struct tty_port *port, struct tty_struct *tty);
694 extern int tty_port_carrier_raised(struct tty_port *port);
695 extern void tty_port_raise_dtr_rts(struct tty_port *port);
696 extern void tty_port_lower_dtr_rts(struct tty_port *port);
697 extern void tty_port_hangup(struct tty_port *port);
698 extern void tty_port_tty_hangup(struct tty_port *port, bool check_clocal);
699 extern void tty_port_tty_wakeup(struct tty_port *port);
700 extern int tty_port_block_til_ready(struct tty_port *port,
702 extern int tty_port_close_start(struct tty_port *port,
704 extern void tty_port_close_end(struct tty_port *port, struct tty_struct *tty);
705 extern void tty_port_close(struct tty_port *port,
707 extern int tty_port_install(struct tty_port *port, struct tty_driver *driver,
709 extern int tty_port_open(struct tty_port *port,
711 static inline int tty_port_users(struct tty_port *port) in tty_port_users() argument
713 return port->count + port->blocked_open; in tty_port_users()