Lines Matching refs:uart_port

41 struct uart_port;
50 unsigned int (*tx_empty)(struct uart_port *);
51 void (*set_mctrl)(struct uart_port *, unsigned int mctrl);
52 unsigned int (*get_mctrl)(struct uart_port *);
53 void (*stop_tx)(struct uart_port *);
54 void (*start_tx)(struct uart_port *);
55 void (*throttle)(struct uart_port *);
56 void (*unthrottle)(struct uart_port *);
57 void (*send_xchar)(struct uart_port *, char ch);
58 void (*stop_rx)(struct uart_port *);
59 void (*enable_ms)(struct uart_port *);
60 void (*break_ctl)(struct uart_port *, int ctl);
61 int (*startup)(struct uart_port *);
62 void (*shutdown)(struct uart_port *);
63 void (*flush_buffer)(struct uart_port *);
64 void (*set_termios)(struct uart_port *, struct ktermios *new,
66 void (*set_ldisc)(struct uart_port *, struct ktermios *);
67 void (*pm)(struct uart_port *, unsigned int state,
73 const char *(*type)(struct uart_port *);
79 void (*release_port)(struct uart_port *);
85 int (*request_port)(struct uart_port *);
86 void (*config_port)(struct uart_port *, int);
87 int (*verify_port)(struct uart_port *, struct serial_struct *);
88 int (*ioctl)(struct uart_port *, unsigned int, unsigned long);
90 int (*poll_init)(struct uart_port *);
91 void (*poll_put_char)(struct uart_port *, unsigned char);
92 int (*poll_get_char)(struct uart_port *);
117 struct uart_port { struct
121 unsigned int (*serial_in)(struct uart_port *, int); argument
122 void (*serial_out)(struct uart_port *, int, int); argument
123 void (*set_termios)(struct uart_port *, argument
126 void (*set_mctrl)(struct uart_port *, unsigned int); argument
127 int (*startup)(struct uart_port *port); argument
128 void (*shutdown)(struct uart_port *port); argument
129 void (*throttle)(struct uart_port *port); argument
130 void (*unthrottle)(struct uart_port *port); argument
131 int (*handle_irq)(struct uart_port *); argument
132 void (*pm)(struct uart_port *, unsigned int state, argument
134 void (*handle_break)(struct uart_port *); argument
135 int (*rs485_config)(struct uart_port *, argument
252 static inline int serial_port_in(struct uart_port *up, int offset) in serial_port_in() argument
257 static inline void serial_port_out(struct uart_port *up, int offset, int value) in serial_port_out()
283 struct uart_port *uart_port; member
312 void uart_write_wakeup(struct uart_port *port);
317 void uart_update_timeout(struct uart_port *port, unsigned int cflag,
319 unsigned int uart_get_baud_rate(struct uart_port *port, struct ktermios *termios,
322 unsigned int uart_get_divisor(struct uart_port *port, unsigned int baud);
325 static inline int uart_poll_timeout(struct uart_port *port) in uart_poll_timeout()
337 struct uart_port port;
360 struct uart_port *uart_get_console(struct uart_port *ports, int nr,
366 int uart_set_options(struct uart_port *port, struct console *co, int baud,
369 void uart_console_write(struct uart_port *port, const char *s,
371 void (*putchar)(struct uart_port *, int));
378 int uart_add_one_port(struct uart_driver *reg, struct uart_port *port);
379 int uart_remove_one_port(struct uart_driver *reg, struct uart_port *port);
380 int uart_match_port(struct uart_port *port1, struct uart_port *port2);
385 int uart_suspend_port(struct uart_driver *reg, struct uart_port *port);
386 int uart_resume_port(struct uart_driver *reg, struct uart_port *port);
397 static inline int uart_tx_stopped(struct uart_port *port) in uart_tx_stopped()
405 static inline bool uart_cts_enabled(struct uart_port *uport) in uart_cts_enabled()
410 static inline bool uart_softcts_mode(struct uart_port *uport) in uart_softcts_mode()
421 extern void uart_handle_dcd_change(struct uart_port *uport,
423 extern void uart_handle_cts_change(struct uart_port *uport,
426 extern void uart_insert_char(struct uart_port *port, unsigned int status,
431 uart_handle_sysrq_char(struct uart_port *port, unsigned int ch) in uart_handle_sysrq_char()
450 static inline int uart_handle_break(struct uart_port *port) in uart_handle_break()