Lines Matching refs:termios
224 serial21285_set_termios(struct uart_port *port, struct ktermios *termios, in serial21285_set_termios() argument
233 termios->c_cflag &= ~(HUPCL | CRTSCTS | CMSPAR); in serial21285_set_termios()
234 termios->c_cflag |= CLOCAL; in serial21285_set_termios()
239 termios->c_iflag &= ~(IGNBRK | BRKINT); in serial21285_set_termios()
244 baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk/16); in serial21285_set_termios()
247 tty_termios_encode_baud_rate(termios, b, b); in serial21285_set_termios()
249 switch (termios->c_cflag & CSIZE) { in serial21285_set_termios()
264 if (termios->c_cflag & CSTOPB) in serial21285_set_termios()
266 if (termios->c_cflag & PARENB) { in serial21285_set_termios()
268 if (!(termios->c_cflag & PARODD)) in serial21285_set_termios()
280 uart_update_timeout(port, termios->c_cflag, baud); in serial21285_set_termios()
286 if (termios->c_iflag & INPCK) in serial21285_set_termios()
293 if (termios->c_iflag & IGNPAR) in serial21285_set_termios()
295 if (termios->c_iflag & IGNBRK && termios->c_iflag & IGNPAR) in serial21285_set_termios()
301 if ((termios->c_cflag & CREAD) == 0) in serial21285_set_termios()