Lines Matching refs:termios
205 tty->termios.c_cflag = uport->cons->cflag; in uart_port_startup()
273 uport->cons->cflag = tty->termios.c_cflag; in uart_shutdown()
367 uart_get_baud_rate(struct uart_port *port, struct ktermios *termios, in uart_get_baud_rate() argument
395 baud = tty_termios_baud_rate(termios); in uart_get_baud_rate()
419 termios->c_cflag &= ~CBAUD; in uart_get_baud_rate()
423 tty_termios_encode_baud_rate(termios, in uart_get_baud_rate()
435 tty_termios_encode_baud_rate(termios, in uart_get_baud_rate()
438 tty_termios_encode_baud_rate(termios, in uart_get_baud_rate()
479 struct ktermios *termios; in uart_change_speed() local
489 termios = &tty->termios; in uart_change_speed()
490 uport->ops->set_termios(uport, termios, old_termios); in uart_change_speed()
496 if (termios->c_cflag & CRTSCTS) in uart_change_speed()
501 if (termios->c_cflag & CLOCAL) in uart_change_speed()
1401 uport->ops->set_ldisc(uport, &tty->termios); in uart_set_ldisc()
1410 unsigned int cflag = tty->termios.c_cflag; in uart_set_termios()
1426 tty->termios.c_cc[VSTART] != old_termios->c_cc[VSTART] || in uart_set_termios()
1427 tty->termios.c_cc[VSTOP] != old_termios->c_cc[VSTOP]; in uart_set_termios()
1437 tty->termios.c_ospeed == old_termios->c_ospeed && in uart_set_termios()
1438 tty->termios.c_ispeed == old_termios->c_ispeed && in uart_set_termios()
1439 ((tty->termios.c_iflag ^ old_termios->c_iflag) & iflag_mask) == 0 && in uart_set_termios()
1446 cflag = tty->termios.c_cflag; in uart_set_termios()
1988 struct ktermios termios; in uart_set_options() local
2002 memset(&termios, 0, sizeof(struct ktermios)); in uart_set_options()
2004 termios.c_cflag |= CREAD | HUPCL | CLOCAL; in uart_set_options()
2005 tty_termios_encode_baud_rate(&termios, baud, baud); in uart_set_options()
2008 termios.c_cflag |= CS7; in uart_set_options()
2010 termios.c_cflag |= CS8; in uart_set_options()
2014 termios.c_cflag |= PARODD; in uart_set_options()
2017 termios.c_cflag |= PARENB; in uart_set_options()
2022 termios.c_cflag |= CRTSCTS; in uart_set_options()
2030 port->ops->set_termios(port, &termios, &dummy); in uart_set_options()
2036 co->cflag = termios.c_cflag; in uart_set_options()
2148 struct ktermios termios; in uart_resume_port() local
2172 memset(&termios, 0, sizeof(struct ktermios)); in uart_resume_port()
2173 termios.c_cflag = uport->cons->cflag; in uart_resume_port()
2178 if (port->tty && termios.c_cflag == 0) in uart_resume_port()
2179 termios = port->tty->termios; in uart_resume_port()
2183 uport->ops->set_termios(uport, &termios, NULL); in uart_resume_port()