| /Linux-v5.4/drivers/tty/serial/ |
| D | qcom_geni_serial.c | 102 struct uart_port uport; member 109 int (*handle_rx)(struct uart_port *uport, u32 bytes, bool drop); 124 static int handle_rx_console(struct uart_port *uport, u32 bytes, bool drop); 125 static int handle_rx_uart(struct uart_port *uport, u32 bytes, bool drop); 127 static void qcom_geni_serial_stop_rx(struct uart_port *uport); 139 .uport = { 147 .uport = { 155 .uport = { 189 .uport = { 197 static int qcom_geni_serial_request_port(struct uart_port *uport) in qcom_geni_serial_request_port() argument [all …]
|
| D | serial_core.c | 51 static int uart_dcd_enabled(struct uart_port *uport) in uart_dcd_enabled() argument 53 return !!(uport->status & UPSTAT_DCD_ENABLE); in uart_dcd_enabled() 63 static inline void uart_port_deref(struct uart_port *uport) in uart_port_deref() argument 65 if (atomic_dec_and_test(&uport->state->refcount)) in uart_port_deref() 66 wake_up(&uport->state->remove_wait); in uart_port_deref() 77 #define uart_port_unlock(uport, flags) \ argument 79 struct uart_port *__uport = uport; \ 156 static void uart_port_dtr_rts(struct uart_port *uport, int raise) in uart_port_dtr_rts() argument 158 int rs485_on = uport->rs485_config && in uart_port_dtr_rts() 159 (uport->rs485.flags & SER_RS485_ENABLED); in uart_port_dtr_rts() [all …]
|
| D | sb1250-duart.c | 105 #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 …]
|
| D | dz.c | 89 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 …]
|
| D | zs.c | 103 #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 …]
|
| D | serial-tegra.c | 103 struct uart_port uport; member 154 return readl(tup->uport.membase + (reg << tup->uport.regshift)); in tegra_uart_read() 160 writel(val, tup->uport.membase + (reg << tup->uport.regshift)); in tegra_uart_write() 165 return container_of(u, struct tegra_uart_port, uport); in to_tegra_uport() 367 dev_err(tup->uport.dev, in tegra_check_rate_in_range() 395 dev_err(tup->uport.dev, in tegra_set_baudrate() 409 spin_lock_irqsave(&tup->uport.lock, flags); in tegra_set_baudrate() 422 spin_unlock_irqrestore(&tup->uport.lock, flags); in tegra_set_baudrate() 440 tup->uport.icount.overrun++; in tegra_uart_decode_rx_error() 441 dev_err(tup->uport.dev, "Got overrun errors\n"); in tegra_uart_decode_rx_error() [all …]
|
| D | sprd_serial.c | 1114 static bool sprd_uart_is_console(struct uart_port *uport) in sprd_uart_is_console() argument 1118 if (cons && cons->index >= 0 && cons->index == uport->line) in sprd_uart_is_console() 1124 static int sprd_clk_init(struct uart_port *uport) in sprd_clk_init() argument 1127 struct sprd_uart_port *u = sprd_port[uport->line]; in sprd_clk_init() 1129 clk_uart = devm_clk_get(uport->dev, "uart"); in sprd_clk_init() 1131 dev_warn(uport->dev, "uart%d can't get uart clock\n", in sprd_clk_init() 1132 uport->line); in sprd_clk_init() 1136 clk_parent = devm_clk_get(uport->dev, "source"); in sprd_clk_init() 1138 dev_warn(uport->dev, "uart%d can't get source clock\n", in sprd_clk_init() 1139 uport->line); in sprd_clk_init() [all …]
|
| D | arc_uart.c | 104 #define to_arc_port(uport) container_of(uport, struct arc_uart_port, port) argument
|
| D | pmac_zilog.c | 1926 struct uart_pmac_port *uport = &pmz_ports[i]; in exit_pmz() local 1928 if (uport->node != NULL) in exit_pmz() 1929 pmz_dispose_port(uport); in exit_pmz() 1931 if (uport->pdev != NULL) in exit_pmz() 1932 pmz_dispose_port(uport); in exit_pmz()
|
| D | samsung.c | 1617 struct uart_port *uport; in s3c24xx_serial_cpufreq_transition() local 1620 uport = &port->port; in s3c24xx_serial_cpufreq_transition() 1646 if (uport->state == NULL) in s3c24xx_serial_cpufreq_transition() 1649 tty = uport->state->port.tty; in s3c24xx_serial_cpufreq_transition() 1657 dev_warn(uport->dev, "%s: no termios?\n", __func__); in s3c24xx_serial_cpufreq_transition() 1661 s3c24xx_serial_set_termios(uport, termios, NULL); in s3c24xx_serial_cpufreq_transition()
|
| /Linux-v5.4/include/linux/ |
| D | serial_core.h | 439 static inline bool uart_cts_enabled(struct uart_port *uport) in uart_cts_enabled() argument 441 return !!(uport->status & UPSTAT_CTS_ENABLE); in uart_cts_enabled() 444 static inline bool uart_softcts_mode(struct uart_port *uport) in uart_softcts_mode() argument 448 return ((uport->status & mask) == UPSTAT_CTS_ENABLE); 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,
|
| /Linux-v5.4/drivers/tty/serial/8250/ |
| D | 8250_port.c | 2874 struct uart_port *uport = state->uart_port; in do_get_rxtrig() local 2875 struct uart_8250_port *up = up_to_u8250p(uport); in do_get_rxtrig() 2877 if (!(up->capabilities & UART_CAP_FIFO) || uport->fifosize <= 1) in do_get_rxtrig() 2910 struct uart_port *uport = state->uart_port; in do_set_rxtrig() local 2911 struct uart_8250_port *up = up_to_u8250p(uport); in do_set_rxtrig() 2914 if (!(up->capabilities & UART_CAP_FIFO) || uport->fifosize <= 1 || in do_set_rxtrig()
|