Lines Matching defs:termios
1641 imx_uart_set_termios(struct uart_port *port, struct ktermios *termios,
1656 while ((termios->c_cflag & CSIZE) != CS7 &&
1657 (termios->c_cflag & CSIZE) != CS8) {
1658 termios->c_cflag &= ~CSIZE;
1659 termios->c_cflag |= old_csize;
1668 baud = uart_get_baud_rate(port, termios, old, 50, port->uartclk / 16);
1681 if ((termios->c_cflag & CSIZE) == CS8)
1685 termios->c_cflag &= ~CRTSCTS;
1698 } else if (termios->c_cflag & CRTSCTS) {
1707 if (termios->c_cflag & CRTSCTS)
1709 if (termios->c_cflag & CSTOPB)
1711 if (termios->c_cflag & PARENB) {
1713 if (termios->c_cflag & PARODD)
1718 if (termios->c_iflag & INPCK)
1720 if (termios->c_iflag & (BRKINT | PARMRK))
1727 if (termios->c_iflag & IGNPAR)
1729 if (termios->c_iflag & IGNBRK) {
1735 if (termios->c_iflag & IGNPAR)
1739 if ((termios->c_cflag & CREAD) == 0)
1745 uart_update_timeout(port, termios->c_cflag, baud);
1764 tty_termios_encode_baud_rate(termios,
1796 if (UART_ENABLE_MS(&sport->port, termios->c_cflag))
1924 static int imx_uart_rs485_config(struct uart_port *port, struct ktermios *termios,