Lines Matching defs:termios

1351 	struct ktermios *termios = &tty->termios;
1353 unsigned int bits = tty_get_frame_size(termios->c_cflag);
1453 static int lpuart_config_rs485(struct uart_port *port, struct ktermios *termios,
1483 static int lpuart32_config_rs485(struct uart_port *port, struct ktermios *termios,
1978 lpuart_set_termios(struct uart_port *port, struct ktermios *termios,
2002 while ((termios->c_cflag & CSIZE) != CS8 &&
2003 (termios->c_cflag & CSIZE) != CS7) {
2004 termios->c_cflag &= ~CSIZE;
2005 termios->c_cflag |= old_csize;
2009 if ((termios->c_cflag & CSIZE) == CS8 ||
2010 (termios->c_cflag & CSIZE) == CS7)
2013 if (termios->c_cflag & CMSPAR) {
2014 if ((termios->c_cflag & CSIZE) != CS8) {
2015 termios->c_cflag &= ~CSIZE;
2016 termios->c_cflag |= CS8;
2026 termios->c_cflag &= ~CRTSCTS;
2028 if (termios->c_cflag & CRTSCTS)
2033 termios->c_cflag &= ~CSTOPB;
2036 if ((termios->c_cflag & CSIZE) == CS7)
2037 termios->c_cflag |= PARENB;
2039 if (termios->c_cflag & PARENB) {
2040 if (termios->c_cflag & CMSPAR) {
2042 if (termios->c_cflag & PARODD)
2048 if ((termios->c_cflag & CSIZE) == CS8)
2050 if (termios->c_cflag & PARODD)
2060 baud = uart_get_baud_rate(port, termios, old, 50, port->uartclk / 16);
2075 if (termios->c_iflag & INPCK)
2077 if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK))
2082 if (termios->c_iflag & IGNPAR)
2084 if (termios->c_iflag & IGNBRK) {
2090 if (termios->c_iflag & IGNPAR)
2095 uart_update_timeout(port, termios->c_cflag, baud);
2216 lpuart32_set_termios(struct uart_port *port, struct ktermios *termios,
2237 while ((termios->c_cflag & CSIZE) != CS8 &&
2238 (termios->c_cflag & CSIZE) != CS7) {
2239 termios->c_cflag &= ~CSIZE;
2240 termios->c_cflag |= old_csize;
2244 if ((termios->c_cflag & CSIZE) == CS8 ||
2245 (termios->c_cflag & CSIZE) == CS7)
2248 if (termios->c_cflag & CMSPAR) {
2249 if ((termios->c_cflag & CSIZE) != CS8) {
2250 termios->c_cflag &= ~CSIZE;
2251 termios->c_cflag |= CS8;
2261 termios->c_cflag &= ~CRTSCTS;
2263 if (termios->c_cflag & CRTSCTS)
2268 if (termios->c_cflag & CSTOPB)
2274 if ((termios->c_cflag & CSIZE) == CS7)
2275 termios->c_cflag |= PARENB;
2277 if ((termios->c_cflag & PARENB)) {
2278 if (termios->c_cflag & CMSPAR) {
2283 if ((termios->c_cflag & CSIZE) == CS8)
2285 if (termios->c_cflag & PARODD)
2295 baud = uart_get_baud_rate(port, termios, old, 50, port->uartclk / 4);
2310 if (termios->c_iflag & INPCK)
2312 if (termios->c_iflag & (IGNBRK | BRKINT | PARMRK))
2317 if (termios->c_iflag & IGNPAR)
2319 if (termios->c_iflag & IGNBRK) {
2325 if (termios->c_iflag & IGNPAR)
2330 uart_update_timeout(port, termios->c_cflag, baud);
3157 struct ktermios termios;
3170 memset(&termios, 0, sizeof(struct ktermios));
3171 termios.c_cflag = uport->cons->cflag;
3172 if (port->tty && termios.c_cflag == 0)
3173 termios = port->tty->termios;
3174 uport->ops->set_termios(uport, &termios, NULL);