Lines Matching refs:uart_port
29 struct uart_port;
39 unsigned int (*tx_empty)(struct uart_port *);
40 void (*set_mctrl)(struct uart_port *, unsigned int mctrl);
41 unsigned int (*get_mctrl)(struct uart_port *);
42 void (*stop_tx)(struct uart_port *);
43 void (*start_tx)(struct uart_port *);
44 void (*throttle)(struct uart_port *);
45 void (*unthrottle)(struct uart_port *);
46 void (*send_xchar)(struct uart_port *, char ch);
47 void (*stop_rx)(struct uart_port *);
48 void (*enable_ms)(struct uart_port *);
49 void (*break_ctl)(struct uart_port *, int ctl);
50 int (*startup)(struct uart_port *);
51 void (*shutdown)(struct uart_port *);
52 void (*flush_buffer)(struct uart_port *);
53 void (*set_termios)(struct uart_port *, struct ktermios *new,
55 void (*set_ldisc)(struct uart_port *, struct ktermios *);
56 void (*pm)(struct uart_port *, unsigned int state,
62 const char *(*type)(struct uart_port *);
68 void (*release_port)(struct uart_port *);
74 int (*request_port)(struct uart_port *);
75 void (*config_port)(struct uart_port *, int);
76 int (*verify_port)(struct uart_port *, struct serial_struct *);
77 int (*ioctl)(struct uart_port *, unsigned int, unsigned long);
79 int (*poll_init)(struct uart_port *);
80 void (*poll_put_char)(struct uart_port *, unsigned char);
81 int (*poll_get_char)(struct uart_port *);
106 struct uart_port { struct
110 unsigned int (*serial_in)(struct uart_port *, int); argument
111 void (*serial_out)(struct uart_port *, int, int); argument
112 void (*set_termios)(struct uart_port *, argument
115 void (*set_ldisc)(struct uart_port *, argument
117 unsigned int (*get_mctrl)(struct uart_port *); argument
118 void (*set_mctrl)(struct uart_port *, unsigned int); argument
119 unsigned int (*get_divisor)(struct uart_port *, argument
122 void (*set_divisor)(struct uart_port *, argument
126 int (*startup)(struct uart_port *port); argument
127 void (*shutdown)(struct uart_port *port); argument
128 void (*throttle)(struct uart_port *port); argument
129 void (*unthrottle)(struct uart_port *port); argument
130 int (*handle_irq)(struct uart_port *); argument
131 void (*pm)(struct uart_port *, unsigned int state, argument
133 void (*handle_break)(struct uart_port *); argument
134 int (*rs485_config)(struct uart_port *, argument
136 int (*iso7816_config)(struct uart_port *, argument
261 static inline int serial_port_in(struct uart_port *up, int offset) in serial_port_in() argument
266 static inline void serial_port_out(struct uart_port *up, int offset, int value) in serial_port_out()
294 struct uart_port *uart_port; member
323 void uart_write_wakeup(struct uart_port *port);
328 void uart_update_timeout(struct uart_port *port, unsigned int cflag,
330 unsigned int uart_get_baud_rate(struct uart_port *port, struct ktermios *termios,
333 unsigned int uart_get_divisor(struct uart_port *port, unsigned int baud);
336 static inline int uart_poll_timeout(struct uart_port *port) in uart_poll_timeout()
348 struct uart_port port;
397 struct uart_port *uart_get_console(struct uart_port *ports, int nr,
403 int uart_set_options(struct uart_port *port, struct console *co, int baud,
406 void uart_console_write(struct uart_port *port, const char *s,
408 void (*putchar)(struct uart_port *, int));
415 int uart_add_one_port(struct uart_driver *reg, struct uart_port *port);
416 int uart_remove_one_port(struct uart_driver *reg, struct uart_port *port);
417 int uart_match_port(struct uart_port *port1, struct uart_port *port2);
422 int uart_suspend_port(struct uart_driver *reg, struct uart_port *port);
423 int uart_resume_port(struct uart_driver *reg, struct uart_port *port);
434 static inline int uart_tx_stopped(struct uart_port *port) in uart_tx_stopped()
442 static inline bool uart_cts_enabled(struct uart_port *uport) in uart_cts_enabled()
447 static inline bool uart_softcts_mode(struct uart_port *uport) in uart_softcts_mode()
458 extern void uart_handle_dcd_change(struct uart_port *uport,
460 extern void uart_handle_cts_change(struct uart_port *uport,
463 extern void uart_insert_char(struct uart_port *port, unsigned int status,
469 bool uart_try_toggle_sysrq(struct uart_port *port, unsigned int ch);
471 static inline int uart_handle_sysrq_char(struct uart_port *port, unsigned int ch) in uart_handle_sysrq_char()
490 static inline int uart_prepare_sysrq_char(struct uart_port *port, unsigned int ch) in uart_prepare_sysrq_char()
509 static inline void uart_unlock_and_check_sysrq(struct uart_port *port, unsigned long irqflags) in uart_unlock_and_check_sysrq()
527 static inline int uart_handle_sysrq_char(struct uart_port *port, unsigned int ch) in uart_handle_sysrq_char()
531 static inline int uart_prepare_sysrq_char(struct uart_port *port, unsigned int ch) in uart_prepare_sysrq_char()
535 static inline void uart_unlock_and_check_sysrq(struct uart_port *port, unsigned long irqflags) in uart_unlock_and_check_sysrq()
544 static inline int uart_handle_break(struct uart_port *port) in uart_handle_break()
572 int uart_get_rs485_mode(struct uart_port *port);