Lines Matching refs:termios
574 serial_txx9_set_termios(struct uart_port *up, struct ktermios *termios, in serial_txx9_set_termios() argument
584 termios->c_cflag &= ~(HUPCL | CMSPAR); in serial_txx9_set_termios()
585 termios->c_cflag |= CLOCAL; in serial_txx9_set_termios()
590 switch (termios->c_cflag & CSIZE) { in serial_txx9_set_termios()
599 termios->c_cflag &= ~CSIZE; in serial_txx9_set_termios()
600 termios->c_cflag |= CS8; in serial_txx9_set_termios()
605 if (termios->c_cflag & CSTOPB) in serial_txx9_set_termios()
610 if (termios->c_cflag & PARENB) in serial_txx9_set_termios()
612 if (!(termios->c_cflag & PARODD)) in serial_txx9_set_termios()
618 baud = uart_get_baud_rate(up, termios, old, 0, up->uartclk/16/2); in serial_txx9_set_termios()
634 uart_update_timeout(up, termios->c_cflag, baud); in serial_txx9_set_termios()
638 if (termios->c_iflag & INPCK) in serial_txx9_set_termios()
640 if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK)) in serial_txx9_set_termios()
647 if (termios->c_iflag & IGNPAR) in serial_txx9_set_termios()
649 if (termios->c_iflag & IGNBRK) { in serial_txx9_set_termios()
655 if (termios->c_iflag & IGNPAR) in serial_txx9_set_termios()
662 if ((termios->c_cflag & CREAD) == 0) in serial_txx9_set_termios()
666 if ((termios->c_cflag & CRTSCTS) && in serial_txx9_set_termios()