/linux-4.1.27/drivers/tty/serial/ |
D | serial_core.c | 62 static int uart_dcd_enabled(struct uart_port *uport) in uart_dcd_enabled() argument 64 return !!(uport->status & UPSTAT_DCD_ENABLE); in uart_dcd_enabled() 137 struct uart_port *uport = state->uart_port; in uart_port_startup() local 141 if (uport->type == PORT_UNKNOWN) in uart_port_startup() 163 retval = uport->ops->startup(uport); in uart_port_startup() 165 if (uart_console(uport) && uport->cons->cflag) { in uart_port_startup() 166 tty->termios.c_cflag = uport->cons->cflag; in uart_port_startup() 167 uport->cons->cflag = 0; in uart_port_startup() 180 uart_set_mctrl(uport, TIOCM_RTS | TIOCM_DTR); in uart_port_startup() 227 struct uart_port *uport = state->uart_port; in uart_shutdown() local [all …]
|
D | sb1250-duart.c | 109 #define to_sport(uport) container_of(uport, struct sbd_port, port) argument 241 static unsigned int sbd_tx_empty(struct uart_port *uport) in sbd_tx_empty() argument 243 struct sbd_port *sport = to_sport(uport); in sbd_tx_empty() 248 static unsigned int sbd_get_mctrl(struct uart_port *uport) in sbd_get_mctrl() argument 250 struct sbd_port *sport = to_sport(uport); in sbd_get_mctrl() 254 status >>= (uport->line) % 2; in sbd_get_mctrl() 262 static void sbd_set_mctrl(struct uart_port *uport, unsigned int mctrl) in sbd_set_mctrl() argument 264 struct sbd_port *sport = to_sport(uport); in sbd_set_mctrl() 275 clr <<= (uport->line) % 2; in sbd_set_mctrl() 276 set <<= (uport->line) % 2; in sbd_set_mctrl() [all …]
|
D | dz.c | 88 static inline struct dz_port *to_dport(struct uart_port *uport) in to_dport() argument 90 return container_of(uport, struct dz_port, port); in to_dport() 126 static void dz_stop_tx(struct uart_port *uport) in dz_stop_tx() argument 128 struct dz_port *dport = to_dport(uport); in dz_stop_tx() 136 static void dz_start_tx(struct uart_port *uport) in dz_start_tx() argument 138 struct dz_port *dport = to_dport(uport); in dz_start_tx() 146 static void dz_stop_rx(struct uart_port *uport) in dz_stop_rx() argument 148 struct dz_port *dport = to_dport(uport); in dz_stop_rx() 183 struct uart_port *uport; in dz_receive_chars() local 193 uport = &dport->port; in dz_receive_chars() [all …]
|
D | zs.c | 102 #define to_zport(uport) container_of(uport, struct zs_port, port) argument 307 static unsigned int zs_tx_empty(struct uart_port *uport) in zs_tx_empty() argument 309 struct zs_port *zport = to_zport(uport); in zs_tx_empty() 375 static unsigned int zs_get_mctrl(struct uart_port *uport) in zs_get_mctrl() argument 377 struct zs_port *zport = to_zport(uport); in zs_get_mctrl() 388 static void zs_set_mctrl(struct uart_port *uport, unsigned int mctrl) in zs_set_mctrl() argument 390 struct zs_port *zport = to_zport(uport); in zs_set_mctrl() 428 static void zs_stop_tx(struct uart_port *uport) in zs_stop_tx() argument 430 struct zs_port *zport = to_zport(uport); in zs_stop_tx() 440 static void zs_start_tx(struct uart_port *uport) in zs_start_tx() argument [all …]
|
D | serial-tegra.c | 101 struct uart_port uport; member 144 return readl(tup->uport.membase + (reg << tup->uport.regshift)); in tegra_uart_read() 150 writel(val, tup->uport.membase + (reg << tup->uport.regshift)); in tegra_uart_write() 155 return container_of(u, struct tegra_uart_port, uport); in to_tegra_uport() 284 dev_err(tup->uport.dev, in tegra_set_baudrate() 323 tup->uport.icount.overrun++; in tegra_uart_decode_rx_error() 324 dev_err(tup->uport.dev, "Got overrun errors\n"); in tegra_uart_decode_rx_error() 328 tup->uport.icount.parity++; in tegra_uart_decode_rx_error() 329 dev_err(tup->uport.dev, "Got Parity errors\n"); in tegra_uart_decode_rx_error() 332 tup->uport.icount.frame++; in tegra_uart_decode_rx_error() [all …]
|
D | bfin_uart.c | 111 struct uart_port *uport = &uart->port; in bfin_serial_mctrl_cts_int() local 112 unsigned int status = bfin_serial_get_mctrl(uport); in bfin_serial_mctrl_cts_int() 116 if (uport->hw_stopped) { in bfin_serial_mctrl_cts_int() 118 uport->hw_stopped = 0; in bfin_serial_mctrl_cts_int() 119 uart_write_wakeup(uport); in bfin_serial_mctrl_cts_int() 123 uport->hw_stopped = 1; in bfin_serial_mctrl_cts_int() 126 uart_handle_cts_change(uport, status & TIOCM_CTS); in bfin_serial_mctrl_cts_int()
|
D | arc_uart.c | 107 #define to_arc_port(uport) container_of(uport, struct arc_uart_port, port) argument
|
D | pmac_zilog.c | 1941 struct uart_pmac_port *uport = &pmz_ports[i]; in exit_pmz() local 1943 if (uport->node != NULL) in exit_pmz() 1944 pmz_dispose_port(uport); in exit_pmz() 1946 if (uport->pdev != NULL) in exit_pmz() 1947 pmz_dispose_port(uport); in exit_pmz()
|
D | samsung.c | 1605 struct uart_port *uport; in s3c24xx_serial_cpufreq_transition() local 1608 uport = &port->port; in s3c24xx_serial_cpufreq_transition() 1634 if (uport->state == NULL) in s3c24xx_serial_cpufreq_transition() 1637 tty = uport->state->port.tty; in s3c24xx_serial_cpufreq_transition() 1645 dev_warn(uport->dev, "%s: no termios?\n", __func__); in s3c24xx_serial_cpufreq_transition() 1649 s3c24xx_serial_set_termios(uport, termios, NULL); in s3c24xx_serial_cpufreq_transition()
|
/linux-4.1.27/include/linux/ |
D | serial_core.h | 405 static inline bool uart_cts_enabled(struct uart_port *uport) in uart_cts_enabled() argument 407 return !!(uport->status & UPSTAT_CTS_ENABLE); in uart_cts_enabled() 410 static inline bool uart_softcts_mode(struct uart_port *uport) in uart_softcts_mode() argument 414 return ((uport->status & mask) == UPSTAT_CTS_ENABLE); in uart_softcts_mode() 421 extern void uart_handle_dcd_change(struct uart_port *uport, 423 extern void uart_handle_cts_change(struct uart_port *uport,
|
/linux-4.1.27/drivers/tty/serial/8250/ |
D | 8250_core.c | 2921 struct uart_port *uport = state->uart_port; in do_get_rxtrig() local 2923 container_of(uport, struct uart_8250_port, port); in do_get_rxtrig() 2925 if (!(up->capabilities & UART_CAP_FIFO) || uport->fifosize <= 1) in do_get_rxtrig() 2958 struct uart_port *uport = state->uart_port; in do_set_rxtrig() local 2960 container_of(uport, struct uart_8250_port, port); in do_set_rxtrig() 2963 if (!(up->capabilities & UART_CAP_FIFO) || uport->fifosize <= 1 || in do_set_rxtrig()
|