Lines Matching refs:termios
166 tty->termios.c_cflag = uport->cons->cflag; in uart_port_startup()
179 if (tty->termios.c_cflag & CBAUD) in uart_port_startup()
241 uport->cons->cflag = tty->termios.c_cflag; in uart_shutdown()
243 if (!tty || (tty->termios.c_cflag & HUPCL)) in uart_shutdown()
335 uart_get_baud_rate(struct uart_port *port, struct ktermios *termios, in uart_get_baud_rate() argument
363 baud = tty_termios_baud_rate(termios); in uart_get_baud_rate()
387 termios->c_cflag &= ~CBAUD; in uart_get_baud_rate()
391 tty_termios_encode_baud_rate(termios, in uart_get_baud_rate()
403 tty_termios_encode_baud_rate(termios, in uart_get_baud_rate()
406 tty_termios_encode_baud_rate(termios, in uart_get_baud_rate()
447 struct ktermios *termios; in uart_change_speed() local
457 termios = &tty->termios; in uart_change_speed()
458 uport->ops->set_termios(uport, termios, old_termios); in uart_change_speed()
464 if (termios->c_cflag & CRTSCTS) in uart_change_speed()
469 if (termios->c_cflag & CLOCAL) in uart_change_speed()
642 if (tty->termios.c_cflag & CRTSCTS) in uart_throttle()
665 if (tty->termios.c_cflag & CRTSCTS) in uart_unthrottle()
1312 uport->ops->set_ldisc(uport, &tty->termios); in uart_set_ldisc()
1322 unsigned int cflag = tty->termios.c_cflag; in uart_set_termios()
1333 tty->termios.c_cc[VSTART] != old_termios->c_cc[VSTART] || in uart_set_termios()
1334 tty->termios.c_cc[VSTOP] != old_termios->c_cc[VSTOP]; in uart_set_termios()
1344 tty->termios.c_ospeed == old_termios->c_ospeed && in uart_set_termios()
1345 tty->termios.c_ispeed == old_termios->c_ispeed && in uart_set_termios()
1346 ((tty->termios.c_iflag ^ old_termios->c_iflag) & iflag_mask) == 0 && in uart_set_termios()
1355 cflag = tty->termios.c_cflag; in uart_set_termios()
1928 struct ktermios termios; in uart_set_options() local
1943 memset(&termios, 0, sizeof(struct ktermios)); in uart_set_options()
1945 termios.c_cflag = CREAD | HUPCL | CLOCAL; in uart_set_options()
1954 termios.c_cflag |= baud_rates[i].cflag; in uart_set_options()
1957 termios.c_cflag |= CS7; in uart_set_options()
1959 termios.c_cflag |= CS8; in uart_set_options()
1963 termios.c_cflag |= PARODD; in uart_set_options()
1966 termios.c_cflag |= PARENB; in uart_set_options()
1971 termios.c_cflag |= CRTSCTS; in uart_set_options()
1979 port->ops->set_termios(port, &termios, &dummy); in uart_set_options()
1985 co->cflag = termios.c_cflag; in uart_set_options()
2097 struct ktermios termios; in uart_resume_port() local
2121 memset(&termios, 0, sizeof(struct ktermios)); in uart_resume_port()
2122 termios.c_cflag = uport->cons->cflag; in uart_resume_port()
2127 if (port->tty && termios.c_cflag == 0) in uart_resume_port()
2128 termios = port->tty->termios; in uart_resume_port()
2132 uport->ops->set_termios(uport, &termios, NULL); in uart_resume_port()