Lines Matching refs:termios
1209 struct ktermios *termios = &tty->termios;
1214 bits = (termios->c_cflag & CSIZE) == CS7 ? 9 : 10;
1215 if (termios->c_cflag & PARENB)
1814 lpuart_set_termios(struct uart_port *port, struct ktermios *termios,
1838 while ((termios->c_cflag & CSIZE) != CS8 &&
1839 (termios->c_cflag & CSIZE) != CS7) {
1840 termios->c_cflag &= ~CSIZE;
1841 termios->c_cflag |= old_csize;
1845 if ((termios->c_cflag & CSIZE) == CS8 ||
1846 (termios->c_cflag & CSIZE) == CS7)
1849 if (termios->c_cflag & CMSPAR) {
1850 if ((termios->c_cflag & CSIZE) != CS8) {
1851 termios->c_cflag &= ~CSIZE;
1852 termios->c_cflag |= CS8;
1862 termios->c_cflag &= ~CRTSCTS;
1864 if (termios->c_cflag & CRTSCTS)
1869 termios->c_cflag &= ~CSTOPB;
1872 if ((termios->c_cflag & CSIZE) == CS7)
1873 termios->c_cflag |= PARENB;
1875 if (termios->c_cflag & PARENB) {
1876 if (termios->c_cflag & CMSPAR) {
1878 if (termios->c_cflag & PARODD)
1884 if ((termios->c_cflag & CSIZE) == CS8)
1886 if (termios->c_cflag & PARODD)
1896 baud = uart_get_baud_rate(port, termios, old, 50, port->uartclk / 16);
1911 if (termios->c_iflag & INPCK)
1913 if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK))
1918 if (termios->c_iflag & IGNPAR)
1920 if (termios->c_iflag & IGNBRK) {
1926 if (termios->c_iflag & IGNPAR)
1931 uart_update_timeout(port, termios->c_cflag, baud);
2052 lpuart32_set_termios(struct uart_port *port, struct ktermios *termios,
2071 while ((termios->c_cflag & CSIZE) != CS8 &&
2072 (termios->c_cflag & CSIZE) != CS7) {
2073 termios->c_cflag &= ~CSIZE;
2074 termios->c_cflag |= old_csize;
2078 if ((termios->c_cflag & CSIZE) == CS8 ||
2079 (termios->c_cflag & CSIZE) == CS7)
2082 if (termios->c_cflag & CMSPAR) {
2083 if ((termios->c_cflag & CSIZE) != CS8) {
2084 termios->c_cflag &= ~CSIZE;
2085 termios->c_cflag |= CS8;
2095 termios->c_cflag &= ~CRTSCTS;
2097 if (termios->c_cflag & CRTSCTS) {
2100 termios->c_cflag &= ~CRTSCTS;
2104 if (termios->c_cflag & CSTOPB)
2105 termios->c_cflag &= ~CSTOPB;
2108 if ((termios->c_cflag & CSIZE) == CS7)
2109 termios->c_cflag |= PARENB;
2111 if ((termios->c_cflag & PARENB)) {
2112 if (termios->c_cflag & CMSPAR) {
2117 if ((termios->c_cflag & CSIZE) == CS8)
2119 if (termios->c_cflag & PARODD)
2129 baud = uart_get_baud_rate(port, termios, old, 50, port->uartclk / 4);
2144 if (termios->c_iflag & INPCK)
2146 if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK))
2151 if (termios->c_iflag & IGNPAR)
2153 if (termios->c_iflag & IGNBRK) {
2159 if (termios->c_iflag & IGNPAR)
2164 uart_update_timeout(port, termios->c_cflag, baud);