Home
last modified time | relevance | path

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

12345

/drivers/tty/serial/
Dmpc52xx_uart.c65 static struct uart_port mpc52xx_uart_ports[MPC52xx_PSC_MAXNUM];
85 static irqreturn_t mpc5xxx_uart_process_int(struct uart_port *port);
92 void (*fifo_init)(struct uart_port *port);
93 int (*raw_rx_rdy)(struct uart_port *port);
94 int (*raw_tx_rdy)(struct uart_port *port);
95 int (*rx_rdy)(struct uart_port *port);
96 int (*tx_rdy)(struct uart_port *port);
97 int (*tx_empty)(struct uart_port *port);
98 void (*stop_rx)(struct uart_port *port);
99 void (*start_tx)(struct uart_port *port);
[all …]
Dsunhv.c45 static void transmit_chars_putchar(struct uart_port *port, struct circ_buf *xmit) in transmit_chars_putchar()
58 static void transmit_chars_write(struct uart_port *port, struct circ_buf *xmit) 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()
169 void (*transmit_chars)(struct uart_port *port, struct circ_buf *xmit);
170 int (*receive_chars)(struct uart_port *port);
185 static struct tty_port *receive_chars(struct uart_port *port) in receive_chars()
198 static void transmit_chars(struct uart_port *port) in transmit_chars()
217 struct uart_port *port = dev_id; in sunhv_interrupt()
233 static unsigned int sunhv_tx_empty(struct uart_port *port) in sunhv_tx_empty()
[all …]
Dapbuart.c42 static void apbuart_tx_chars(struct uart_port *port);
44 static void apbuart_stop_tx(struct uart_port *port) in apbuart_stop_tx()
53 static void apbuart_start_tx(struct uart_port *port) in apbuart_start_tx()
65 static void apbuart_stop_rx(struct uart_port *port) in apbuart_stop_rx()
74 static void apbuart_rx_chars(struct uart_port *port) in apbuart_rx_chars()
128 static void apbuart_tx_chars(struct uart_port *port) in apbuart_tx_chars()
164 struct uart_port *port = dev_id; in apbuart_int()
180 static unsigned int apbuart_tx_empty(struct uart_port *port) in apbuart_tx_empty()
186 static unsigned int apbuart_get_mctrl(struct uart_port *port) in apbuart_get_mctrl()
192 static void apbuart_set_mctrl(struct uart_port *port, unsigned int mctrl) in apbuart_set_mctrl()
[all …]
Dst-asc.c40 struct uart_port port;
147 static inline struct asc_port *to_asc_port(struct uart_port *port) in to_asc_port()
152 static inline u32 asc_in(struct uart_port *port, u32 offset) in asc_in()
161 static inline void asc_out(struct uart_port *port, u32 offset, u32 value) in asc_out()
174 static inline void asc_disable_tx_interrupts(struct uart_port *port) in asc_disable_tx_interrupts()
181 static inline void asc_enable_tx_interrupts(struct uart_port *port) in asc_enable_tx_interrupts()
187 static inline void asc_disable_rx_interrupts(struct uart_port *port) in asc_disable_rx_interrupts()
194 static inline void asc_enable_rx_interrupts(struct uart_port *port) in asc_enable_rx_interrupts()
200 static inline u32 asc_txfifo_is_empty(struct uart_port *port) in asc_txfifo_is_empty()
205 static inline u32 asc_txfifo_is_half_empty(struct uart_port *port) in asc_txfifo_is_half_empty()
[all …]
Daltera_jtaguart.c61 struct uart_port port;
66 static unsigned int altera_jtaguart_tx_empty(struct uart_port *port) in altera_jtaguart_tx_empty()
72 static unsigned int altera_jtaguart_get_mctrl(struct uart_port *port) in altera_jtaguart_get_mctrl()
77 static void altera_jtaguart_set_mctrl(struct uart_port *port, unsigned int sigs) in altera_jtaguart_set_mctrl()
81 static void altera_jtaguart_start_tx(struct uart_port *port) in altera_jtaguart_start_tx()
90 static void altera_jtaguart_stop_tx(struct uart_port *port) in altera_jtaguart_stop_tx()
99 static void altera_jtaguart_stop_rx(struct uart_port *port) in altera_jtaguart_stop_rx()
108 static void altera_jtaguart_break_ctl(struct uart_port *port, int break_state) in altera_jtaguart_break_ctl()
112 static void altera_jtaguart_set_termios(struct uart_port *port, in altera_jtaguart_set_termios()
123 struct uart_port *port = &pp->port; in altera_jtaguart_rx_chars()
[all …]
Dserial_ks8695.c65 static inline int tx_enabled(struct uart_port *port) in tx_enabled()
70 static inline int rx_enabled(struct uart_port *port) in rx_enabled()
75 static inline int ms_enabled(struct uart_port *port) in ms_enabled()
80 static inline void ms_enable(struct uart_port *port, int enabled) in ms_enable()
88 static inline void rx_enable(struct uart_port *port, int enabled) in rx_enable()
96 static inline void tx_enable(struct uart_port *port, int enabled) in tx_enable()
109 static void ks8695uart_stop_tx(struct uart_port *port) in ks8695uart_stop_tx()
121 static void ks8695uart_start_tx(struct uart_port *port) in ks8695uart_start_tx()
129 static void ks8695uart_stop_rx(struct uart_port *port) in ks8695uart_stop_rx()
137 static void ks8695uart_enable_ms(struct uart_port *port) in ks8695uart_enable_ms()
[all …]
Dmux.c55 struct uart_port port;
112 static unsigned int mux_tx_empty(struct uart_port *port) in mux_tx_empty()
125 static void mux_set_mctrl(struct uart_port *port, unsigned int mctrl) in mux_set_mctrl()
136 static unsigned int mux_get_mctrl(struct uart_port *port) in mux_get_mctrl()
147 static void mux_stop_tx(struct uart_port *port) in mux_stop_tx()
157 static void mux_start_tx(struct uart_port *port) in mux_start_tx()
167 static void mux_stop_rx(struct uart_port *port) in mux_stop_rx()
178 static void mux_break_ctl(struct uart_port *port, int break_state) in mux_break_ctl()
189 static void mux_write(struct uart_port *port) in mux_write()
233 static void mux_read(struct uart_port *port) in mux_read()
[all …]
Darc_uart.c103 struct uart_port port;
129 static void arc_serial_stop_rx(struct uart_port *port) in arc_serial_stop_rx()
134 static void arc_serial_stop_tx(struct uart_port *port) in arc_serial_stop_tx()
145 static unsigned int arc_serial_tx_empty(struct uart_port *port) in arc_serial_tx_empty()
163 static void arc_serial_tx_chars(struct uart_port *port) in arc_serial_tx_chars()
199 static void arc_serial_start_tx(struct uart_port *port) in arc_serial_start_tx()
204 static void arc_serial_rx_chars(struct uart_port *port, unsigned int status) in arc_serial_rx_chars()
282 struct uart_port *port = dev_id; in arc_serial_isr()
318 static unsigned int arc_serial_get_mctrl(struct uart_port *port) in arc_serial_get_mctrl()
330 static void arc_serial_set_mctrl(struct uart_port *port, unsigned int mctrl) in arc_serial_set_mctrl()
[all …]
Daltera_uart.c82 struct uart_port port;
88 static u32 altera_uart_readl(struct uart_port *port, int reg) in altera_uart_readl()
93 static void altera_uart_writel(struct uart_port *port, u32 dat, int reg) in altera_uart_writel()
98 static unsigned int altera_uart_tx_empty(struct uart_port *port) in altera_uart_tx_empty()
104 static unsigned int altera_uart_get_mctrl(struct uart_port *port) in altera_uart_get_mctrl()
116 static void altera_uart_set_mctrl(struct uart_port *port, unsigned int sigs) in altera_uart_set_mctrl()
128 static void altera_uart_start_tx(struct uart_port *port) in altera_uart_start_tx()
136 static void altera_uart_stop_tx(struct uart_port *port) in altera_uart_stop_tx()
144 static void altera_uart_stop_rx(struct uart_port *port) in altera_uart_stop_rx()
152 static void altera_uart_break_ctl(struct uart_port *port, int break_state) in altera_uart_break_ctl()
[all …]
Dvr41xx_siu.c61 static struct uart_port siu_uart_ports[SIU_PORTS_MAX] = {
77 struct uart_port *port; in vr41xx_select_siu_interface()
98 struct uart_port *port; in vr41xx_use_irda()
119 struct uart_port *port; in vr41xx_select_irda_module()
150 static inline void siu_clear_fifo(struct uart_port *port) in siu_clear_fifo()
158 static inline unsigned long siu_port_size(struct uart_port *port) in siu_port_size()
170 static inline unsigned int siu_check_type(struct uart_port *port) in siu_check_type()
180 static inline const char *siu_type_name(struct uart_port *port) in siu_type_name()
192 static unsigned int siu_tx_empty(struct uart_port *port) in siu_tx_empty()
203 static void siu_set_mctrl(struct uart_port *port, unsigned int mctrl) in siu_set_mctrl()
[all …]
D21285.c57 static void serial21285_stop_tx(struct uart_port *port) in serial21285_stop_tx()
65 static void serial21285_start_tx(struct uart_port *port) in serial21285_start_tx()
73 static void serial21285_stop_rx(struct uart_port *port) in serial21285_stop_rx()
83 struct uart_port *port = dev_id; in serial21285_rx_chars()
120 struct uart_port *port = dev_id; in serial21285_tx_chars()
153 static unsigned int serial21285_tx_empty(struct uart_port *port) in serial21285_tx_empty()
159 static unsigned int serial21285_get_mctrl(struct uart_port *port) in serial21285_get_mctrl()
164 static void serial21285_set_mctrl(struct uart_port *port, unsigned int mctrl) in serial21285_set_mctrl()
168 static void serial21285_break_ctl(struct uart_port *port, int break_state) in serial21285_break_ctl()
183 static int serial21285_startup(struct uart_port *port) in serial21285_startup()
[all …]
Dmvebu-uart.c94 static struct uart_port mvebu_uart_ports[MVEBU_NR_UARTS];
97 struct uart_port *port;
102 static unsigned int mvebu_uart_tx_empty(struct uart_port *port) in mvebu_uart_tx_empty()
114 static unsigned int mvebu_uart_get_mctrl(struct uart_port *port) in mvebu_uart_get_mctrl()
119 static void mvebu_uart_set_mctrl(struct uart_port *port, in mvebu_uart_set_mctrl()
128 static void mvebu_uart_stop_tx(struct uart_port *port) in mvebu_uart_stop_tx()
136 static void mvebu_uart_start_tx(struct uart_port *port) in mvebu_uart_start_tx()
144 static void mvebu_uart_stop_rx(struct uart_port *port) in mvebu_uart_stop_rx()
152 static void mvebu_uart_break_ctl(struct uart_port *port, int brk) in mvebu_uart_break_ctl()
167 static void mvebu_uart_rx_chars(struct uart_port *port, unsigned int status) in mvebu_uart_rx_chars()
[all …]
Duartlite.c95 static inline u32 uart_in32(u32 offset, struct uart_port *port) in uart_in32()
102 static inline void uart_out32(u32 val, u32 offset, struct uart_port *port) in uart_out32()
109 static struct uart_port ulite_ports[ULITE_NR_UARTS];
115 static int ulite_receive(struct uart_port *port, int stat) in ulite_receive()
165 static int ulite_transmit(struct uart_port *port, int stat) in ulite_transmit()
195 struct uart_port *port = dev_id; in ulite_isr()
217 static unsigned int ulite_tx_empty(struct uart_port *port) in ulite_tx_empty()
229 static unsigned int ulite_get_mctrl(struct uart_port *port) in ulite_get_mctrl()
234 static void ulite_set_mctrl(struct uart_port *port, unsigned int mctrl) in ulite_set_mctrl()
239 static void ulite_stop_tx(struct uart_port *port) in ulite_stop_tx()
[all …]
Dmps2-uart.c72 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 …]
Dlantiq.c112 static void lqasc_tx_chars(struct uart_port *port);
118 struct uart_port port;
129 ltq_uart_port *to_ltq_uart_port(struct uart_port *port) in to_ltq_uart_port()
135 lqasc_stop_tx(struct uart_port *port) in lqasc_stop_tx()
141 lqasc_start_tx(struct uart_port *port) in lqasc_start_tx()
151 lqasc_stop_rx(struct uart_port *port) in lqasc_stop_rx()
157 lqasc_rx_chars(struct uart_port *port) in lqasc_rx_chars()
218 lqasc_tx_chars(struct uart_port *port) in lqasc_tx_chars()
252 struct uart_port *port = (struct uart_port *)_port; in lqasc_tx_int()
264 struct uart_port *port = (struct uart_port *)_port; in lqasc_err_int()
[all …]
Ddigicolor-usart.c81 struct uart_port port;
85 static struct uart_port *digicolor_ports[DIGICOLOR_USART_NR];
87 static bool digicolor_uart_tx_full(struct uart_port *port) in digicolor_uart_tx_full()
93 static bool digicolor_uart_rx_empty(struct uart_port *port) in digicolor_uart_rx_empty()
99 static void digicolor_uart_stop_tx(struct uart_port *port) in digicolor_uart_stop_tx()
107 static void digicolor_uart_start_tx(struct uart_port *port) in digicolor_uart_start_tx()
115 static void digicolor_uart_stop_rx(struct uart_port *port) in digicolor_uart_stop_rx()
136 static void digicolor_uart_rx(struct uart_port *port) in digicolor_uart_rx()
185 static void digicolor_uart_tx(struct uart_port *port) in digicolor_uart_tx()
225 struct uart_port *port = dev_id; in digicolor_uart_int()
[all …]
Dtimbuart.c37 struct uart_port port;
47 static void timbuart_mctrl_check(struct uart_port *port, u32 isr, u32 *ier);
51 static void timbuart_stop_rx(struct uart_port *port) in timbuart_stop_rx()
58 static void timbuart_stop_tx(struct uart_port *port) in timbuart_stop_tx()
65 static void timbuart_start_tx(struct uart_port *port) in timbuart_start_tx()
74 static unsigned int timbuart_tx_empty(struct uart_port *port) in timbuart_tx_empty()
81 static void timbuart_flush_buffer(struct uart_port *port) in timbuart_flush_buffer()
92 static void timbuart_rx_chars(struct uart_port *port) in timbuart_rx_chars()
110 static void timbuart_tx_chars(struct uart_port *port) in timbuart_tx_chars()
131 static void timbuart_handle_tx_port(struct uart_port *port, u32 isr, u32 *ier) in timbuart_handle_tx_port()
[all …]
Dbcm63xx_uart.c38 static struct uart_port ports[BCM63XX_NR_UARTS];
80 static inline unsigned int bcm_uart_readl(struct uart_port *port, in bcm_uart_readl()
86 static inline void bcm_uart_writel(struct uart_port *port, in bcm_uart_writel()
95 static unsigned int bcm_uart_tx_empty(struct uart_port *port) in bcm_uart_tx_empty()
106 static void bcm_uart_set_mctrl(struct uart_port *port, unsigned int mctrl) in bcm_uart_set_mctrl()
130 static unsigned int bcm_uart_get_mctrl(struct uart_port *port) in bcm_uart_get_mctrl()
150 static void bcm_uart_stop_tx(struct uart_port *port) in bcm_uart_stop_tx()
166 static void bcm_uart_start_tx(struct uart_port *port) in bcm_uart_start_tx()
182 static void bcm_uart_stop_rx(struct uart_port *port) in bcm_uart_stop_rx()
194 static void bcm_uart_enable_ms(struct uart_port *port) in bcm_uart_enable_ms()
[all …]
Dvt8500_serial.c108 struct uart_port uart;
123 static inline void vt8500_write(struct uart_port *port, unsigned int val, in vt8500_write()
129 static inline unsigned int vt8500_read(struct uart_port *port, unsigned int off) in vt8500_read()
134 static void vt8500_stop_tx(struct uart_port *port) in vt8500_stop_tx()
144 static void vt8500_stop_rx(struct uart_port *port) in vt8500_stop_rx()
154 static void vt8500_enable_ms(struct uart_port *port) in vt8500_enable_ms()
164 static void handle_rx(struct uart_port *port) in handle_rx()
204 static void handle_tx(struct uart_port *port) in handle_tx()
235 static void vt8500_start_tx(struct uart_port *port) in vt8500_start_tx()
248 static void handle_delta_cts(struct uart_port *port) in handle_delta_cts()
[all …]
Dsprd_serial.c116 struct uart_port port;
124 static inline unsigned int serial_in(struct uart_port *port, int offset) in serial_in()
129 static inline void serial_out(struct uart_port *port, int offset, int value) in serial_out()
134 static unsigned int sprd_tx_empty(struct uart_port *port) in sprd_tx_empty()
142 static unsigned int sprd_get_mctrl(struct uart_port *port) in sprd_get_mctrl()
147 static void sprd_set_mctrl(struct uart_port *port, unsigned int mctrl) in sprd_set_mctrl()
152 static void sprd_stop_tx(struct uart_port *port) in sprd_stop_tx()
166 static void sprd_start_tx(struct uart_port *port) in sprd_start_tx()
177 static void sprd_stop_rx(struct uart_port *port) in sprd_stop_rx()
192 static void sprd_break_ctl(struct uart_port *port, int break_state) in sprd_break_ctl()
[all …]
Dmeson_uart.c89 static struct uart_port *meson_ports[AML_UART_PORT_NUM];
91 static void meson_uart_set_mctrl(struct uart_port *port, unsigned int mctrl) in meson_uart_set_mctrl()
95 static unsigned int meson_uart_get_mctrl(struct uart_port *port) in meson_uart_get_mctrl()
100 static unsigned int meson_uart_tx_empty(struct uart_port *port) in meson_uart_tx_empty()
109 static void meson_uart_stop_tx(struct uart_port *port) in meson_uart_stop_tx()
118 static void meson_uart_stop_rx(struct uart_port *port) in meson_uart_stop_rx()
127 static void meson_uart_shutdown(struct uart_port *port) in meson_uart_shutdown()
144 static void meson_uart_start_tx(struct uart_port *port) in meson_uart_start_tx()
182 static void meson_receive_chars(struct uart_port *port) in meson_receive_chars()
234 struct uart_port *port = (struct uart_port *)dev_id; in meson_uart_interrupt()
[all …]
Datmel_serial.c75 static void atmel_start_rx(struct uart_port *port);
76 static void atmel_stop_rx(struct uart_port *port);
129 struct uart_port uart; /* uart */
178 int (*prepare_rx)(struct uart_port *port);
179 int (*prepare_tx)(struct uart_port *port);
180 void (*schedule_rx)(struct uart_port *port);
181 void (*schedule_tx)(struct uart_port *port);
182 void (*release_rx)(struct uart_port *port);
183 void (*release_tx)(struct uart_port *port);
202 to_atmel_uart_port(struct uart_port *uart) in to_atmel_uart_port()
[all …]
Dtilegx.c46 struct uart_port uart;
135 struct uart_port *port; in handle_transmit()
181 struct uart_port *port = dev_id; in tilegx_interrupt()
207 static u_int tilegx_tx_empty(struct uart_port *port) in tilegx_tx_empty()
230 static void tilegx_set_mctrl(struct uart_port *port, u_int mctrl) in tilegx_set_mctrl()
239 static u_int tilegx_get_mctrl(struct uart_port *port) in tilegx_get_mctrl()
248 static void tilegx_stop_tx(struct uart_port *port) in tilegx_stop_tx()
257 static void tilegx_start_tx(struct uart_port *port) in tilegx_start_tx()
299 static void tilegx_stop_rx(struct uart_port *port) in tilegx_stop_rx()
320 static void tilegx_break_ctl(struct uart_port *port, int break_state) in tilegx_break_ctl()
[all …]
Dnetx-serial.c115 struct uart_port port;
118 static void netx_stop_tx(struct uart_port *port) in netx_stop_tx()
125 static void netx_stop_rx(struct uart_port *port) in netx_stop_rx()
132 static void netx_enable_ms(struct uart_port *port) in netx_enable_ms()
139 static inline void netx_transmit_buffer(struct uart_port *port) in netx_transmit_buffer()
170 static void netx_start_tx(struct uart_port *port) in netx_start_tx()
179 static unsigned int netx_tx_empty(struct uart_port *port) in netx_tx_empty()
184 static void netx_txint(struct uart_port *port) in netx_txint()
199 static void netx_rxint(struct uart_port *port, unsigned long *flags) in netx_rxint()
246 struct uart_port *port = dev_id; in netx_int()
[all …]
/drivers/tty/serial/jsm/
Djsm_tty.c64 static unsigned int jsm_tty_tx_empty(struct uart_port *port) in jsm_tty_tx_empty()
72 static unsigned int jsm_tty_get_mctrl(struct uart_port *port) in jsm_tty_get_mctrl()
76 container_of(port, struct jsm_channel, uart_port); in jsm_tty_get_mctrl()
95 static void jsm_tty_set_mctrl(struct uart_port *port, unsigned int mctrl) in jsm_tty_set_mctrl()
98 container_of(port, struct jsm_channel, uart_port); in jsm_tty_set_mctrl()
124 static void jsm_tty_write(struct uart_port *port) in jsm_tty_write()
127 channel = container_of(port, struct jsm_channel, uart_port); in jsm_tty_write()
131 static void jsm_tty_start_tx(struct uart_port *port) in jsm_tty_start_tx()
134 container_of(port, struct jsm_channel, uart_port); in jsm_tty_start_tx()
144 static void jsm_tty_stop_tx(struct uart_port *port) in jsm_tty_stop_tx()
[all …]

12345