Lines Matching refs:termios
433 pnx8xxx_set_termios(struct uart_port *port, struct ktermios *termios, in pnx8xxx_set_termios() argument
445 while ((termios->c_cflag & CSIZE) != CS7 && in pnx8xxx_set_termios()
446 (termios->c_cflag & CSIZE) != CS8) { in pnx8xxx_set_termios()
447 termios->c_cflag &= ~CSIZE; in pnx8xxx_set_termios()
448 termios->c_cflag |= old_csize; in pnx8xxx_set_termios()
452 if ((termios->c_cflag & CSIZE) == CS8) in pnx8xxx_set_termios()
457 if (termios->c_cflag & CSTOPB) in pnx8xxx_set_termios()
459 if (termios->c_cflag & PARENB) { in pnx8xxx_set_termios()
461 if (!(termios->c_cflag & PARODD)) in pnx8xxx_set_termios()
468 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16); in pnx8xxx_set_termios()
476 if (termios->c_iflag & INPCK) in pnx8xxx_set_termios()
480 if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK)) in pnx8xxx_set_termios()
488 if (termios->c_iflag & IGNPAR) in pnx8xxx_set_termios()
492 if (termios->c_iflag & IGNBRK) { in pnx8xxx_set_termios()
499 if (termios->c_iflag & IGNPAR) in pnx8xxx_set_termios()
507 if ((termios->c_cflag & CREAD) == 0) in pnx8xxx_set_termios()
516 uart_update_timeout(port, termios->c_cflag, baud); in pnx8xxx_set_termios()
546 if (UART_ENABLE_MS(&sport->port, termios->c_cflag)) in pnx8xxx_set_termios()