Home
last modified time | relevance | path

Searched refs:uart_port (Results 1 – 25 of 87) sorted by relevance

1234

/linux/drivers/tty/serial/
H A Dserial_base.h13 struct uart_port;
24 struct uart_port *port;
34 void serial_base_port_startup(struct uart_port *port);
35 void serial_base_port_shutdown(struct uart_port *port);
40 struct serial_ctrl_device *serial_base_ctrl_add(struct uart_port *port,
42 struct serial_port_device *serial_base_port_add(struct uart_port *port,
47 int serial_ctrl_register_port(struct uart_driver *drv, struct uart_port *port);
48 void serial_ctrl_unregister_port(struct uart_driver *drv, struct uart_port *port);
50 int serial_core_register_port(struct uart_driver *drv, struct uart_port *port);
51 void serial_core_unregister_port(struct uart_driver *drv, struct uart_port *port);
[all …]
H A Dsunhv.c42 static void transmit_chars_putchar(struct uart_port *port, in transmit_chars_putchar()
57 static void transmit_chars_write(struct uart_port *port, struct tty_port *tport) in transmit_chars_write()
74 static int receive_chars_getchar(struct uart_port *port) in receive_chars_getchar()
117 static int receive_chars_read(struct uart_port *port) in receive_chars_read()
173 void (*transmit_chars)(struct uart_port *port, struct tty_port *tport);
174 int (*receive_chars)(struct uart_port *port);
189 static struct tty_port *receive_chars(struct uart_port *port) in receive_chars()
202 static void transmit_chars(struct uart_port *port) in transmit_chars()
221 struct uart_port *port = dev_id; in sunhv_interrupt()
237 static unsigned int sunhv_tx_empty(struct uart_port *port) in sunhv_tx_empty()
[all …]
H A Daltera_jtaguart.c51 static unsigned int altera_jtaguart_tx_space(struct uart_port *port, u32 *ctlp) in altera_jtaguart_tx_space()
61 static unsigned int altera_jtaguart_tx_empty(struct uart_port *port) in altera_jtaguart_tx_empty()
66 static unsigned int altera_jtaguart_get_mctrl(struct uart_port *port) in altera_jtaguart_get_mctrl()
71 static void altera_jtaguart_set_mctrl(struct uart_port *port, unsigned int sigs) in altera_jtaguart_set_mctrl()
75 static void altera_jtaguart_start_tx(struct uart_port *port) in altera_jtaguart_start_tx()
82 static void altera_jtaguart_stop_tx(struct uart_port *port) in altera_jtaguart_stop_tx()
89 static void altera_jtaguart_stop_rx(struct uart_port *port) in altera_jtaguart_stop_rx()
96 static void altera_jtaguart_break_ctl(struct uart_port *port, int break_state) in altera_jtaguart_break_ctl()
100 static void altera_jtaguart_set_termios(struct uart_port *port, in altera_jtaguart_set_termios()
109 static void altera_jtaguart_rx_chars(struct uart_port *port) in altera_jtaguart_rx_chars()
[all …]
H A D21285.c51 static bool is_enabled(struct uart_port *port, int bit) in is_enabled()
60 static void enable(struct uart_port *port, int bit) in enable()
67 static void disable(struct uart_port *port, int bit) in disable()
93 static void serial21285_stop_tx(struct uart_port *port) in serial21285_stop_tx()
101 static void serial21285_start_tx(struct uart_port *port) in serial21285_start_tx()
109 static void serial21285_stop_rx(struct uart_port *port) in serial21285_stop_rx()
119 struct uart_port *port = dev_id; in serial21285_rx_chars()
157 struct uart_port *port = dev_id; in serial21285_tx_chars()
168 static unsigned int serial21285_tx_empty(struct uart_port *port) in serial21285_tx_empty()
174 static unsigned int serial21285_get_mctrl(struct uart_port *port) in serial21285_get_mctrl()
[all …]
H A Dst-asc.c36 struct uart_port port;
146 static inline struct asc_port *to_asc_port(struct uart_port *port) in to_asc_port()
151 static inline u32 asc_in(struct uart_port *port, u32 offset) in asc_in()
160 static inline void asc_out(struct uart_port *port, u32 offset, u32 value) in asc_out()
173 static inline void asc_disable_tx_interrupts(struct uart_port *port) in asc_disable_tx_interrupts()
180 static inline void asc_enable_tx_interrupts(struct uart_port *port) in asc_enable_tx_interrupts()
186 static inline void asc_disable_rx_interrupts(struct uart_port *port) in asc_disable_rx_interrupts()
193 static inline void asc_enable_rx_interrupts(struct uart_port *port) in asc_enable_rx_interrupts()
199 static inline u32 asc_txfifo_is_empty(struct uart_port *port) in asc_txfifo_is_empty()
204 static inline u32 asc_txfifo_is_half_empty(struct uart_port *port) in asc_txfifo_is_half_empty()
[all …]
H A Dmux.c47 struct uart_port port;
104 static unsigned int mux_tx_empty(struct uart_port *port) in mux_tx_empty()
117 static void mux_set_mctrl(struct uart_port *port, unsigned int mctrl) in mux_set_mctrl()
128 static unsigned int mux_get_mctrl(struct uart_port *port) in mux_get_mctrl()
139 static void mux_stop_tx(struct uart_port *port) in mux_stop_tx()
149 static void mux_start_tx(struct uart_port *port) in mux_start_tx()
159 static void mux_stop_rx(struct uart_port *port) in mux_stop_rx()
170 static void mux_break_ctl(struct uart_port *port, int break_state) in mux_break_ctl()
174 static void mux_tx_done(struct uart_port *port) in mux_tx_done()
188 static void mux_write(struct uart_port *port) in mux_write()
[all …]
H A Dliteuart.c46 struct uart_port port;
71 static void liteuart_update_irq_reg(struct uart_port *port, bool set, u8 mask) in liteuart_update_irq_reg()
84 static void liteuart_stop_tx(struct uart_port *port) in liteuart_stop_tx()
89 static void liteuart_start_tx(struct uart_port *port) in liteuart_start_tx()
94 static void liteuart_stop_rx(struct uart_port *port) in liteuart_stop_rx()
102 static void liteuart_rx_chars(struct uart_port *port) in liteuart_rx_chars()
122 static void liteuart_tx_chars(struct uart_port *port) in liteuart_tx_chars()
134 struct uart_port *port = &uart->port; in liteuart_interrupt()
156 struct uart_port *port = &uart->port; in liteuart_timer()
162 static unsigned int liteuart_tx_empty(struct uart_port *port) in liteuart_tx_empty()
[all …]
H A Duartlite.c66 static struct uart_port *console_port;
118 static inline u32 uart_in32(u32 offset, struct uart_port *port) in uart_in32()
125 static inline void uart_out32(u32 val, u32 offset, struct uart_port *port) in uart_out32()
132 static struct uart_port ulite_ports[ULITE_NR_UARTS];
140 static int ulite_receive(struct uart_port *port, int stat) in ulite_receive()
190 static int ulite_transmit(struct uart_port *port, int stat) in ulite_transmit()
222 struct uart_port *port = dev_id; in ulite_isr()
244 static unsigned int ulite_tx_empty(struct uart_port *port) in ulite_tx_empty()
256 static unsigned int ulite_get_mctrl(struct uart_port *port) in ulite_get_mctrl()
261 static void ulite_set_mctrl(struct uart_port *port, unsigned int mctrl) in ulite_set_mctrl()
[all …]
H A Daltera_uart.c77 struct uart_port port;
83 static u32 altera_uart_readl(struct uart_port *port, int reg) in altera_uart_readl()
88 static void altera_uart_writel(struct uart_port *port, u32 dat, int reg) in altera_uart_writel()
93 static unsigned int altera_uart_tx_empty(struct uart_port *port) in altera_uart_tx_empty()
99 static unsigned int altera_uart_get_mctrl(struct uart_port *port) in altera_uart_get_mctrl()
125 static void altera_uart_set_mctrl(struct uart_port *port, unsigned int sigs) in altera_uart_set_mctrl()
137 static void altera_uart_start_tx(struct uart_port *port) in altera_uart_start_tx()
145 static void altera_uart_stop_tx(struct uart_port *port) in altera_uart_stop_tx()
153 static void altera_uart_stop_rx(struct uart_port *port) in altera_uart_stop_rx()
161 static void altera_uart_break_ctl(struct uart_port *port, int break_state) in altera_uart_break_ctl()
[all …]
H A Dlantiq.c104 int (*request_irq)(struct uart_port *port);
105 void (*free_irq)(struct uart_port *port);
109 struct uart_port port;
131 ltq_uart_port *to_ltq_uart_port(struct uart_port *port) in to_ltq_uart_port()
137 lqasc_stop_tx(struct uart_port *port) in lqasc_stop_tx()
142 static bool lqasc_tx_ready(struct uart_port *port) in lqasc_tx_ready()
150 lqasc_start_tx(struct uart_port *port) in lqasc_start_tx()
165 lqasc_stop_rx(struct uart_port *port) in lqasc_stop_rx()
171 lqasc_rx_chars(struct uart_port *port) in lqasc_rx_chars()
236 struct uart_port *port = (struct uart_port *)_port; in lqasc_tx_int()
[all …]
H A Dmps2-uart.c71 struct uart_port port;
78 static inline struct mps2_uart_port *to_mps2_port(struct uart_port *port) in to_mps2_port()
83 static void mps2_uart_write8(struct uart_port *port, u8 val, unsigned int off) in mps2_uart_write8()
90 static u8 mps2_uart_read8(struct uart_port *port, unsigned int off) in mps2_uart_read8()
97 static void mps2_uart_write32(struct uart_port *port, u32 val, unsigned int off) in mps2_uart_write32()
104 static unsigned int mps2_uart_tx_empty(struct uart_port *port) in mps2_uart_tx_empty()
111 static void mps2_uart_set_mctrl(struct uart_port *port, unsigned int mctrl) in mps2_uart_set_mctrl()
115 static unsigned int mps2_uart_get_mctrl(struct uart_port *port) in mps2_uart_get_mctrl()
120 static void mps2_uart_stop_tx(struct uart_port *port) in mps2_uart_stop_tx()
129 static void mps2_uart_tx_chars(struct uart_port *port) in mps2_uart_tx_chars()
[all …]
H A Dvt8500_serial.c96 struct uart_port uart;
111 static inline void vt8500_write(struct uart_port *port, unsigned int val, in vt8500_write()
117 static inline unsigned int vt8500_read(struct uart_port *port, unsigned int off) in vt8500_read()
122 static void vt8500_stop_tx(struct uart_port *port) in vt8500_stop_tx()
132 static void vt8500_stop_rx(struct uart_port *port) in vt8500_stop_rx()
142 static void vt8500_enable_ms(struct uart_port *port) in vt8500_enable_ms()
152 static void handle_rx(struct uart_port *port) in handle_rx()
190 static unsigned int vt8500_tx_empty(struct uart_port *port) in vt8500_tx_empty()
197 static void handle_tx(struct uart_port *port) in handle_tx()
206 static void vt8500_start_tx(struct uart_port *port) in vt8500_start_tx()
[all …]
H A Ddigicolor-usart.c77 struct uart_port port;
81 static struct uart_port *digicolor_ports[DIGICOLOR_USART_NR];
83 static bool digicolor_uart_tx_full(struct uart_port *port) in digicolor_uart_tx_full()
89 static bool digicolor_uart_rx_empty(struct uart_port *port) in digicolor_uart_rx_empty()
95 static void digicolor_uart_stop_tx(struct uart_port *port) in digicolor_uart_stop_tx()
103 static void digicolor_uart_start_tx(struct uart_port *port) in digicolor_uart_start_tx()
111 static void digicolor_uart_stop_rx(struct uart_port *port) in digicolor_uart_stop_rx()
132 static void digicolor_uart_rx(struct uart_port *port) in digicolor_uart_rx()
180 static void digicolor_uart_tx(struct uart_port *port) in digicolor_uart_tx()
219 struct uart_port *port = dev_id; in digicolor_uart_int()
[all …]
H A Dtimbuart.c25 struct uart_port port;
35 static void timbuart_mctrl_check(struct uart_port *port, u32 isr, u32 *ier);
39 static void timbuart_stop_rx(struct uart_port *port) in timbuart_stop_rx()
46 static void timbuart_stop_tx(struct uart_port *port) in timbuart_stop_tx()
53 static void timbuart_start_tx(struct uart_port *port) in timbuart_start_tx()
62 static unsigned int timbuart_tx_empty(struct uart_port *port) in timbuart_tx_empty()
69 static void timbuart_flush_buffer(struct uart_port *port) in timbuart_flush_buffer()
80 static void timbuart_rx_chars(struct uart_port *port) in timbuart_rx_chars()
96 static void timbuart_tx_chars(struct uart_port *port) in timbuart_tx_chars()
113 static void timbuart_handle_tx_port(struct uart_port *port, u32 isr, u32 *ier) in timbuart_handle_tx_port()
[all …]
H A Dmcf.c53 struct uart_port port;
60 static unsigned int mcf_tx_empty(struct uart_port *port) in mcf_tx_empty()
68 static unsigned int mcf_get_mctrl(struct uart_port *port) in mcf_get_mctrl()
84 static void mcf_set_mctrl(struct uart_port *port, unsigned int sigs) in mcf_set_mctrl()
98 static void mcf_start_tx(struct uart_port *port) in mcf_start_tx()
114 static void mcf_stop_tx(struct uart_port *port) in mcf_stop_tx()
124 static void mcf_stop_rx(struct uart_port *port) in mcf_stop_rx()
134 static void mcf_break_ctl(struct uart_port *port, int break_state) in mcf_break_ctl()
148 static int mcf_startup(struct uart_port *port) in mcf_startup()
174 static void mcf_shutdown(struct uart_port *port) in mcf_shutdown()
[all …]
H A Dfsl_linflexuart.c132 static struct uart_port *earlycon_port;
143 static void linflex_stop_tx(struct uart_port *port) in linflex_stop_tx()
152 static void linflex_stop_rx(struct uart_port *port) in linflex_stop_rx()
160 static void linflex_put_char(struct uart_port *sport, unsigned char c) in linflex_put_char()
175 static inline void linflex_transmit_buffer(struct uart_port *sport) in linflex_transmit_buffer()
192 static void linflex_start_tx(struct uart_port *port) in linflex_start_tx()
203 struct uart_port *sport = dev_id; in linflex_txint()
227 struct uart_port *sport = dev_id; in linflex_rxint()
279 struct uart_port *sport = dev_id; in linflex_int()
293 static unsigned int linflex_tx_empty(struct uart_port *port) in linflex_tx_empty()
[all …]
H A Dsifive.c149 struct uart_port port;
173 static void sifive_serial_stop_tx(struct uart_port *port);
191 static void __ssp_early_writel(u32 v, u16 offs, struct uart_port *port) in __ssp_early_writel()
211 static u32 __ssp_early_readl(struct uart_port *port, u16 offs) in __ssp_early_readl()
501 static void sifive_serial_stop_tx(struct uart_port *port) in sifive_serial_stop_tx()
508 static void sifive_serial_stop_rx(struct uart_port *port) in sifive_serial_stop_rx()
515 static void sifive_serial_start_tx(struct uart_port *port) in sifive_serial_start_tx()
545 static unsigned int sifive_serial_tx_empty(struct uart_port *port) in sifive_serial_tx_empty()
550 static unsigned int sifive_serial_get_mctrl(struct uart_port *port) in sifive_serial_get_mctrl()
555 static void sifive_serial_set_mctrl(struct uart_port *port, unsigned int mctrl) in sifive_serial_set_mctrl()
[all …]
H A Dlpc32xx_hs.c88 struct uart_port port;
97 static void wait_for_xmit_empty(struct uart_port *port) in wait_for_xmit_empty()
111 static void wait_for_xmit_ready(struct uart_port *port) in wait_for_xmit_ready()
125 static void lpc32xx_hsuart_console_putchar(struct uart_port *port, unsigned char ch) in lpc32xx_hsuart_console_putchar()
154 struct uart_port *port; in lpc32xx_hsuart_console_setup()
236 static void __serial_uart_flush(struct uart_port *port) in __serial_uart_flush()
245 static void __serial_lpc32xx_rx(struct uart_port *port) in __serial_lpc32xx_rx()
274 static bool serial_lpc32xx_tx_ready(struct uart_port *port) in serial_lpc32xx_tx_ready()
281 static void __serial_lpc32xx_tx(struct uart_port *port) in __serial_lpc32xx_tx()
292 struct uart_port *port = dev_id; in serial_lpc32xx_interrupt()
[all …]
H A Dsunplus-uart.c75 struct uart_port port;
80 static void sp_uart_put_char(struct uart_port *port, unsigned int ch) in sp_uart_put_char()
85 static u32 sunplus_tx_buf_not_full(struct uart_port *port) in sunplus_tx_buf_not_full()
92 static unsigned int sunplus_tx_empty(struct uart_port *port) in sunplus_tx_empty()
99 static void sunplus_set_mctrl(struct uart_port *port, unsigned int mctrl) in sunplus_set_mctrl()
131 static unsigned int sunplus_get_mctrl(struct uart_port *port) in sunplus_get_mctrl()
155 static void sunplus_stop_tx(struct uart_port *port) in sunplus_stop_tx()
164 static void sunplus_start_tx(struct uart_port *port) in sunplus_start_tx()
173 static void sunplus_stop_rx(struct uart_port *port) in sunplus_stop_rx()
182 static void sunplus_break_ctl(struct uart_port *port, int ctl) in sunplus_break_ctl()
[all …]
H A Dserial_port.c24 static int __serial_port_busy(struct uart_port *port) in __serial_port_busy()
33 struct uart_port *port; in serial_port_runtime_resume()
60 struct uart_port *port = port_dev->port; in serial_port_runtime_suspend()
91 static void serial_base_port_set_tx(struct uart_port *port, in serial_base_port_set_tx()
102 void serial_base_port_startup(struct uart_port *port) in serial_base_port_startup()
109 void serial_base_port_shutdown(struct uart_port *port) in serial_base_port_shutdown()
141 int uart_add_one_port(struct uart_driver *drv, struct uart_port *port) in uart_add_one_port()
147 void uart_remove_one_port(struct uart_driver *drv, struct uart_port *port) in uart_remove_one_port()
199 static int __uart_read_properties(struct uart_port *port, bool use_defaults) in __uart_read_properties()
289 int uart_read_port_properties(struct uart_port *port) in uart_read_port_properties()
[all …]
H A Dclps711x.c55 struct uart_port port;
71 static void uart_clps711x_stop_tx(struct uart_port *port) in uart_clps711x_stop_tx()
81 static void uart_clps711x_start_tx(struct uart_port *port) in uart_clps711x_start_tx()
93 struct uart_port *port = dev_id; in uart_clps711x_int_rx()
147 struct uart_port *port = dev_id; in uart_clps711x_int_tx()
183 static unsigned int uart_clps711x_tx_empty(struct uart_port *port) in uart_clps711x_tx_empty()
193 static unsigned int uart_clps711x_get_mctrl(struct uart_port *port) in uart_clps711x_get_mctrl()
201 static void uart_clps711x_set_mctrl(struct uart_port *port, unsigned int mctrl) in uart_clps711x_set_mctrl()
208 static void uart_clps711x_break_ctl(struct uart_port *port, int break_state) in uart_clps711x_break_ctl()
220 static void uart_clps711x_set_ldisc(struct uart_port *port, in uart_clps711x_set_ldisc()
[all …]
H A Dmeson_uart.c82 static struct uart_port *meson_ports[AML_UART_PORT_NUM];
89 static void meson_uart_set_mctrl(struct uart_port *port, unsigned int mctrl) in meson_uart_set_mctrl()
93 static unsigned int meson_uart_get_mctrl(struct uart_port *port) in meson_uart_get_mctrl()
98 static unsigned int meson_uart_tx_empty(struct uart_port *port) in meson_uart_tx_empty()
107 static void meson_uart_stop_tx(struct uart_port *port) in meson_uart_stop_tx()
116 static void meson_uart_stop_rx(struct uart_port *port) in meson_uart_stop_rx()
125 static void meson_uart_shutdown(struct uart_port *port) in meson_uart_shutdown()
142 static void meson_uart_start_tx(struct uart_port *port) in meson_uart_start_tx()
177 static void meson_receive_chars(struct uart_port *port) in meson_receive_chars()
237 struct uart_port *port = (struct uart_port *)dev_id; in meson_uart_interrupt()
[all …]
H A Dmilbeaut_usio.c18 static struct uart_port mlb_usio_ports[CONFIG_SERIAL_MILBEAUT_USIO_PORTS];
65 static void mlb_usio_stop_tx(struct uart_port *port) in mlb_usio_stop_tx()
73 static void mlb_usio_tx_chars(struct uart_port *port) in mlb_usio_tx_chars()
121 static void mlb_usio_start_tx(struct uart_port *port) in mlb_usio_start_tx()
136 static void mlb_usio_stop_rx(struct uart_port *port) in mlb_usio_stop_rx()
142 static void mlb_usio_enable_ms(struct uart_port *port) in mlb_usio_enable_ms()
149 static void mlb_usio_rx_chars(struct uart_port *port) in mlb_usio_rx_chars()
209 struct uart_port *port = dev_id; in mlb_usio_rx_irq()
220 struct uart_port *port = dev_id; in mlb_usio_tx_irq()
230 static unsigned int mlb_usio_tx_empty(struct uart_port *port) in mlb_usio_tx_empty()
[all …]
/linux/drivers/tty/serial/jsm/
H A Djsm_tty.c55 static unsigned int jsm_tty_tx_empty(struct uart_port *port) in jsm_tty_tx_empty()
63 static unsigned int jsm_tty_get_mctrl(struct uart_port *port) in jsm_tty_get_mctrl()
67 container_of(port, struct jsm_channel, uart_port); in jsm_tty_get_mctrl()
86 static void jsm_tty_set_mctrl(struct uart_port *port, unsigned int mctrl) in jsm_tty_set_mctrl()
89 container_of(port, struct jsm_channel, uart_port); in jsm_tty_set_mctrl()
115 static void jsm_tty_write(struct uart_port *port) in jsm_tty_write()
119 channel = container_of(port, struct jsm_channel, uart_port); in jsm_tty_write()
123 static void jsm_tty_start_tx(struct uart_port *port) in jsm_tty_start_tx()
126 container_of(port, struct jsm_channel, uart_port); in jsm_tty_start_tx()
136 static void jsm_tty_stop_tx(struct uart_port *port) in jsm_tty_stop_tx()
[all …]
/linux/include/linux/platform_data/
H A Dsa11x0-serial.h12 struct uart_port;
19 void (*set_mctrl)(struct uart_port *, u_int);
20 u_int (*get_mctrl)(struct uart_port *);
21 void (*pm)(struct uart_port *, u_int, u_int);
22 int (*set_wake)(struct uart_port *, u_int);

1234