Lines Matching refs:termios
439 pnx8xxx_set_termios(struct uart_port *port, struct ktermios *termios, in pnx8xxx_set_termios() argument
451 while ((termios->c_cflag & CSIZE) != CS7 && in pnx8xxx_set_termios()
452 (termios->c_cflag & CSIZE) != CS8) { in pnx8xxx_set_termios()
453 termios->c_cflag &= ~CSIZE; in pnx8xxx_set_termios()
454 termios->c_cflag |= old_csize; in pnx8xxx_set_termios()
458 if ((termios->c_cflag & CSIZE) == CS8) in pnx8xxx_set_termios()
463 if (termios->c_cflag & CSTOPB) in pnx8xxx_set_termios()
465 if (termios->c_cflag & PARENB) { in pnx8xxx_set_termios()
467 if (!(termios->c_cflag & PARODD)) in pnx8xxx_set_termios()
474 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16); in pnx8xxx_set_termios()
482 if (termios->c_iflag & INPCK) in pnx8xxx_set_termios()
486 if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK)) in pnx8xxx_set_termios()
494 if (termios->c_iflag & IGNPAR) in pnx8xxx_set_termios()
498 if (termios->c_iflag & IGNBRK) { in pnx8xxx_set_termios()
505 if (termios->c_iflag & IGNPAR) in pnx8xxx_set_termios()
513 if ((termios->c_cflag & CREAD) == 0) in pnx8xxx_set_termios()
522 uart_update_timeout(port, termios->c_cflag, baud); in pnx8xxx_set_termios()
552 if (UART_ENABLE_MS(&sport->port, termios->c_cflag)) in pnx8xxx_set_termios()