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
352 baud = tty_termios_baud_rate(termios); in uart_get_baud_rate()
376 termios->c_cflag &= ~CBAUD; in uart_get_baud_rate()
380 tty_termios_encode_baud_rate(termios, in uart_get_baud_rate()
392 tty_termios_encode_baud_rate(termios, in uart_get_baud_rate()
395 tty_termios_encode_baud_rate(termios, in uart_get_baud_rate()
436 struct ktermios *termios; in uart_change_speed() local
446 termios = &tty->termios; in uart_change_speed()
447 uport->ops->set_termios(uport, termios, old_termios); in uart_change_speed()
453 if (termios->c_cflag & CRTSCTS) in uart_change_speed()
458 if (termios->c_cflag & CLOCAL) in uart_change_speed()
631 if (tty->termios.c_cflag & CRTSCTS) in uart_throttle()
654 if (tty->termios.c_cflag & CRTSCTS) in uart_unthrottle()
1303 uport->ops->set_ldisc(uport, &tty->termios); in uart_set_ldisc()
1313 unsigned int cflag = tty->termios.c_cflag; in uart_set_termios()
1324 tty->termios.c_cc[VSTART] != old_termios->c_cc[VSTART] || in uart_set_termios()
1325 tty->termios.c_cc[VSTOP] != old_termios->c_cc[VSTOP]; in uart_set_termios()
1335 tty->termios.c_ospeed == old_termios->c_ospeed && in uart_set_termios()
1336 tty->termios.c_ispeed == old_termios->c_ispeed && in uart_set_termios()
1337 ((tty->termios.c_iflag ^ old_termios->c_iflag) & iflag_mask) == 0 && in uart_set_termios()
1346 cflag = tty->termios.c_cflag; in uart_set_termios()
1920 struct ktermios termios; in uart_set_options() local
1935 memset(&termios, 0, sizeof(struct ktermios)); in uart_set_options()
1937 termios.c_cflag = CREAD | HUPCL | CLOCAL; in uart_set_options()
1946 termios.c_cflag |= baud_rates[i].cflag; in uart_set_options()
1949 termios.c_cflag |= CS7; in uart_set_options()
1951 termios.c_cflag |= CS8; in uart_set_options()
1955 termios.c_cflag |= PARODD; in uart_set_options()
1958 termios.c_cflag |= PARENB; in uart_set_options()
1963 termios.c_cflag |= CRTSCTS; in uart_set_options()
1971 port->ops->set_termios(port, &termios, &dummy); in uart_set_options()
1977 co->cflag = termios.c_cflag; in uart_set_options()
2089 struct ktermios termios; in uart_resume_port() local
2113 memset(&termios, 0, sizeof(struct ktermios)); in uart_resume_port()
2114 termios.c_cflag = uport->cons->cflag; in uart_resume_port()
2119 if (port->tty && termios.c_cflag == 0) in uart_resume_port()
2120 termios = port->tty->termios; in uart_resume_port()
2124 uport->ops->set_termios(uport, &termios, NULL); in uart_resume_port()