Lines Matching refs:uart_port
29 struct uart_port;
38 unsigned int (*tx_empty)(struct uart_port *);
39 void (*set_mctrl)(struct uart_port *, unsigned int mctrl);
40 unsigned int (*get_mctrl)(struct uart_port *);
41 void (*stop_tx)(struct uart_port *);
42 void (*start_tx)(struct uart_port *);
43 void (*throttle)(struct uart_port *);
44 void (*unthrottle)(struct uart_port *);
45 void (*send_xchar)(struct uart_port *, char ch);
46 void (*stop_rx)(struct uart_port *);
47 void (*enable_ms)(struct uart_port *);
48 void (*break_ctl)(struct uart_port *, int ctl);
49 int (*startup)(struct uart_port *);
50 void (*shutdown)(struct uart_port *);
51 void (*flush_buffer)(struct uart_port *);
52 void (*set_termios)(struct uart_port *, struct ktermios *new,
54 void (*set_ldisc)(struct uart_port *, struct ktermios *);
55 void (*pm)(struct uart_port *, unsigned int state,
61 const char *(*type)(struct uart_port *);
67 void (*release_port)(struct uart_port *);
73 int (*request_port)(struct uart_port *);
74 void (*config_port)(struct uart_port *, int);
75 int (*verify_port)(struct uart_port *, struct serial_struct *);
76 int (*ioctl)(struct uart_port *, unsigned int, unsigned long);
78 int (*poll_init)(struct uart_port *);
79 void (*poll_put_char)(struct uart_port *, unsigned char);
80 int (*poll_get_char)(struct uart_port *);
105 struct uart_port { struct
109 unsigned int (*serial_in)(struct uart_port *, int); argument
110 void (*serial_out)(struct uart_port *, int, int); argument
111 void (*set_termios)(struct uart_port *, argument
114 void (*set_ldisc)(struct uart_port *, argument
116 unsigned int (*get_mctrl)(struct uart_port *); argument
117 void (*set_mctrl)(struct uart_port *, unsigned int); argument
118 unsigned int (*get_divisor)(struct uart_port *, argument
121 void (*set_divisor)(struct uart_port *, argument
125 int (*startup)(struct uart_port *port); argument
126 void (*shutdown)(struct uart_port *port); argument
127 void (*throttle)(struct uart_port *port); argument
128 void (*unthrottle)(struct uart_port *port); argument
129 int (*handle_irq)(struct uart_port *); argument
130 void (*pm)(struct uart_port *, unsigned int state, argument
132 void (*handle_break)(struct uart_port *); argument
133 int (*rs485_config)(struct uart_port *, argument
135 int (*iso7816_config)(struct uart_port *, argument
258 static inline int serial_port_in(struct uart_port *up, int offset) in serial_port_in() argument
263 static inline void serial_port_out(struct uart_port *up, int offset, int value) in serial_port_out()
291 struct uart_port *uart_port; member
320 void uart_write_wakeup(struct uart_port *port);
325 void uart_update_timeout(struct uart_port *port, unsigned int cflag,
327 unsigned int uart_get_baud_rate(struct uart_port *port, struct ktermios *termios,
330 unsigned int uart_get_divisor(struct uart_port *port, unsigned int baud);
333 static inline int uart_poll_timeout(struct uart_port *port) in uart_poll_timeout()
345 struct uart_port port;
394 struct uart_port *uart_get_console(struct uart_port *ports, int nr,
400 int uart_set_options(struct uart_port *port, struct console *co, int baud,
403 void uart_console_write(struct uart_port *port, const char *s,
405 void (*putchar)(struct uart_port *, int));
412 int uart_add_one_port(struct uart_driver *reg, struct uart_port *port);
413 int uart_remove_one_port(struct uart_driver *reg, struct uart_port *port);
414 int uart_match_port(struct uart_port *port1, struct uart_port *port2);
419 int uart_suspend_port(struct uart_driver *reg, struct uart_port *port);
420 int uart_resume_port(struct uart_driver *reg, struct uart_port *port);
431 static inline int uart_tx_stopped(struct uart_port *port) in uart_tx_stopped()
439 static inline bool uart_cts_enabled(struct uart_port *uport) in uart_cts_enabled()
444 static inline bool uart_softcts_mode(struct uart_port *uport) in uart_softcts_mode()
455 extern void uart_handle_dcd_change(struct uart_port *uport,
457 extern void uart_handle_cts_change(struct uart_port *uport,
460 extern void uart_insert_char(struct uart_port *port, unsigned int status,
465 uart_handle_sysrq_char(struct uart_port *port, unsigned int ch) in uart_handle_sysrq_char()
478 uart_prepare_sysrq_char(struct uart_port *port, unsigned int ch) in uart_prepare_sysrq_char()
491 uart_unlock_and_check_sysrq(struct uart_port *port, unsigned long irqflags) in uart_unlock_and_check_sysrq()
505 uart_handle_sysrq_char(struct uart_port *port, unsigned int ch) { return 0; } in uart_handle_sysrq_char()
507 uart_prepare_sysrq_char(struct uart_port *port, unsigned int ch) { return 0; } in uart_prepare_sysrq_char()
509 uart_unlock_and_check_sysrq(struct uart_port *port, unsigned long irqflags) in uart_unlock_and_check_sysrq()
518 static inline int uart_handle_break(struct uart_port *port) in uart_handle_break()