Lines Matching defs:termios
639 struct ktermios *termios, struct ktermios *old)
648 /* Mask termios capabilities we don't support */
649 termios->c_cflag &= ~CMSPAR;
659 switch (termios->c_cflag & CSIZE) {
676 if (termios->c_cflag & PARENB) {
677 if (termios->c_cflag & PARODD)
683 mr2 = (termios->c_cflag & CSTOPB) ? MR2_STOP2 : MR2_STOP1;
692 if (termios->c_iflag & INPCK)
694 if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK))
699 if (termios->c_iflag & IGNBRK)
701 if (termios->c_iflag & IGNPAR)
703 if (!(termios->c_cflag & CREAD))
707 baud = uart_get_baud_rate(port, termios, old, 50,
713 uart_update_timeout(port, termios->c_cflag, baud);
716 if (tty_termios_baud_rate(termios))
717 tty_termios_encode_baud_rate(termios, baud, baud);