Home
last modified time | relevance | path

Searched refs:uport (Results 1 – 11 of 11) sorted by relevance

/Linux-v4.19/drivers/tty/serial/
Dqcom_geni_serial.c98 struct uart_port uport; member
109 int (*handle_rx)(struct uart_port *uport, u32 bytes, bool drop);
122 static int handle_rx_console(struct uart_port *uport, u32 bytes, bool drop);
123 static int handle_rx_uart(struct uart_port *uport, u32 bytes, bool drop);
125 static void qcom_geni_serial_stop_rx(struct uart_port *uport);
137 .uport = {
145 .uport = {
153 .uport = {
189 .uport = {
197 static int qcom_geni_serial_request_port(struct uart_port *uport) in qcom_geni_serial_request_port() argument
[all …]
Dserial_core.c50 static int uart_dcd_enabled(struct uart_port *uport) in uart_dcd_enabled() argument
52 return !!(uport->status & UPSTAT_DCD_ENABLE); in uart_dcd_enabled()
62 static inline void uart_port_deref(struct uart_port *uport) in uart_port_deref() argument
64 if (atomic_dec_and_test(&uport->state->refcount)) in uart_port_deref()
65 wake_up(&uport->state->remove_wait); in uart_port_deref()
76 #define uart_port_unlock(uport, flags) \ argument
78 struct uart_port *__uport = uport; \
155 static void uart_port_dtr_rts(struct uart_port *uport, int raise) in uart_port_dtr_rts() argument
157 int rs485_on = uport->rs485_config && in uart_port_dtr_rts()
158 (uport->rs485.flags & SER_RS485_ENABLED); in uart_port_dtr_rts()
[all …]
Dsb1250-duart.c105 #define to_sport(uport) container_of(uport, struct sbd_port, port) argument
237 static unsigned int sbd_tx_empty(struct uart_port *uport) in sbd_tx_empty() argument
239 struct sbd_port *sport = to_sport(uport); in sbd_tx_empty()
244 static unsigned int sbd_get_mctrl(struct uart_port *uport) in sbd_get_mctrl() argument
246 struct sbd_port *sport = to_sport(uport); in sbd_get_mctrl()
250 status >>= (uport->line) % 2; in sbd_get_mctrl()
258 static void sbd_set_mctrl(struct uart_port *uport, unsigned int mctrl) in sbd_set_mctrl() argument
260 struct sbd_port *sport = to_sport(uport); in sbd_set_mctrl()
271 clr <<= (uport->line) % 2; in sbd_set_mctrl()
272 set <<= (uport->line) % 2; in sbd_set_mctrl()
[all …]
Ddz.c89 static inline struct dz_port *to_dport(struct uart_port *uport) in to_dport() argument
91 return container_of(uport, struct dz_port, port); in to_dport()
127 static void dz_stop_tx(struct uart_port *uport) in dz_stop_tx() argument
129 struct dz_port *dport = to_dport(uport); in dz_stop_tx()
137 static void dz_start_tx(struct uart_port *uport) in dz_start_tx() argument
139 struct dz_port *dport = to_dport(uport); in dz_start_tx()
147 static void dz_stop_rx(struct uart_port *uport) in dz_stop_rx() argument
149 struct dz_port *dport = to_dport(uport); in dz_stop_rx()
184 struct uart_port *uport; in dz_receive_chars() local
194 uport = &dport->port; in dz_receive_chars()
[all …]
Dzs.c103 #define to_zport(uport) container_of(uport, struct zs_port, port) argument
308 static unsigned int zs_tx_empty(struct uart_port *uport) in zs_tx_empty() argument
310 struct zs_port *zport = to_zport(uport); in zs_tx_empty()
376 static unsigned int zs_get_mctrl(struct uart_port *uport) in zs_get_mctrl() argument
378 struct zs_port *zport = to_zport(uport); in zs_get_mctrl()
389 static void zs_set_mctrl(struct uart_port *uport, unsigned int mctrl) in zs_set_mctrl() argument
391 struct zs_port *zport = to_zport(uport); in zs_set_mctrl()
429 static void zs_stop_tx(struct uart_port *uport) in zs_stop_tx() argument
431 struct zs_port *zport = to_zport(uport); in zs_stop_tx()
441 static void zs_start_tx(struct uart_port *uport) in zs_start_tx() argument
[all …]
Dserial-tegra.c90 struct uart_port uport; member
133 return readl(tup->uport.membase + (reg << tup->uport.regshift)); in tegra_uart_read()
139 writel(val, tup->uport.membase + (reg << tup->uport.regshift)); in tegra_uart_write()
144 return container_of(u, struct tegra_uart_port, uport); in to_tegra_uport()
288 dev_err(tup->uport.dev, in tegra_set_baudrate()
327 tup->uport.icount.overrun++; in tegra_uart_decode_rx_error()
328 dev_err(tup->uport.dev, "Got overrun errors\n"); in tegra_uart_decode_rx_error()
332 tup->uport.icount.parity++; in tegra_uart_decode_rx_error()
333 dev_err(tup->uport.dev, "Got Parity errors\n"); in tegra_uart_decode_rx_error()
336 tup->uport.icount.frame++; in tegra_uart_decode_rx_error()
[all …]
Darc_uart.c104 #define to_arc_port(uport) container_of(uport, struct arc_uart_port, port) argument
Dpmac_zilog.c1928 struct uart_pmac_port *uport = &pmz_ports[i]; in exit_pmz() local
1930 if (uport->node != NULL) in exit_pmz()
1931 pmz_dispose_port(uport); in exit_pmz()
1933 if (uport->pdev != NULL) in exit_pmz()
1934 pmz_dispose_port(uport); in exit_pmz()
Dsamsung.c1614 struct uart_port *uport; in s3c24xx_serial_cpufreq_transition() local
1617 uport = &port->port; in s3c24xx_serial_cpufreq_transition()
1643 if (uport->state == NULL) in s3c24xx_serial_cpufreq_transition()
1646 tty = uport->state->port.tty; in s3c24xx_serial_cpufreq_transition()
1654 dev_warn(uport->dev, "%s: no termios?\n", __func__); in s3c24xx_serial_cpufreq_transition()
1658 s3c24xx_serial_set_termios(uport, termios, NULL); in s3c24xx_serial_cpufreq_transition()
/Linux-v4.19/include/linux/
Dserial_core.h447 static inline bool uart_cts_enabled(struct uart_port *uport) in uart_cts_enabled() argument
449 return !!(uport->status & UPSTAT_CTS_ENABLE); in uart_cts_enabled()
452 static inline bool uart_softcts_mode(struct uart_port *uport) in uart_softcts_mode() argument
456 return ((uport->status & mask) == UPSTAT_CTS_ENABLE); in uart_softcts_mode()
463 extern void uart_handle_dcd_change(struct uart_port *uport,
465 extern void uart_handle_cts_change(struct uart_port *uport,
/Linux-v4.19/drivers/tty/serial/8250/
D8250_port.c2963 struct uart_port *uport = state->uart_port; in do_get_rxtrig() local
2964 struct uart_8250_port *up = up_to_u8250p(uport); in do_get_rxtrig()
2966 if (!(up->capabilities & UART_CAP_FIFO) || uport->fifosize <= 1) in do_get_rxtrig()
2999 struct uart_port *uport = state->uart_port; in do_set_rxtrig() local
3000 struct uart_8250_port *up = up_to_u8250p(uport); in do_set_rxtrig()
3003 if (!(up->capabilities & UART_CAP_FIFO) || uport->fifosize <= 1 || in do_set_rxtrig()