Lines Matching refs:termios

206 	struct ktermios *termios;
210 * If we have no tty, termios, or the port does not exist,
216 termios = &tty->termios;
217 uport->ops->set_termios(uport, termios, old_termios);
220 * Set modem status enables based on termios cflag
223 if (termios->c_cflag & CRTSCTS)
228 if (termios->c_cflag & CLOCAL)
326 tty->termios.c_cflag = uport->cons->cflag;
327 tty->termios.c_ispeed = uport->cons->ispeed;
328 tty->termios.c_ospeed = uport->cons->ospeed;
411 uport->cons->cflag = tty->termios.c_cflag;
412 uport->cons->ispeed = tty->termios.c_ispeed;
413 uport->cons->ospeed = tty->termios.c_ospeed;
435 * @cflag: termios cflag value
458 * @termios: desired termios settings
459 * @old: old termios (or %NULL)
463 * Decode the termios structure into a numeric baud rate, taking account of the
467 * If the new baud rate is invalid, try the @old termios setting. If it's still
470 * The @termios structure is updated to reflect the baud rate we're actually
477 uart_get_baud_rate(struct uart_port *port, struct ktermios *termios,
505 baud = tty_termios_baud_rate(termios);
529 termios->c_cflag &= ~CBAUD;
533 tty_termios_encode_baud_rate(termios,
545 tty_termios_encode_baud_rate(termios,
548 tty_termios_encode_baud_rate(termios,
1509 ret = port->rs485_config(port, &tty->termios, &rs485);
1691 uport->ops->set_ldisc(uport, &tty->termios);
1700 unsigned int cflag = tty->termios.c_cflag;
1716 tty->termios.c_cc[VSTART] != old_termios->c_cc[VSTART] ||
1717 tty->termios.c_cc[VSTOP] != old_termios->c_cc[VSTOP];
1727 tty->termios.c_ospeed == old_termios->c_ospeed &&
1728 tty->termios.c_ispeed == old_termios->c_ispeed &&
1729 ((tty->termios.c_iflag ^ old_termios->c_iflag) & iflag_mask) == 0 &&
1735 /* reload cflag from termios; port driver may have overridden flags */
1736 cflag = tty->termios.c_cflag;
2289 struct ktermios termios;
2302 memset(&termios, 0, sizeof(struct ktermios));
2304 termios.c_cflag |= CREAD | HUPCL | CLOCAL;
2305 tty_termios_encode_baud_rate(&termios, baud, baud);
2308 termios.c_cflag |= CS7;
2310 termios.c_cflag |= CS8;
2314 termios.c_cflag |= PARODD;
2317 termios.c_cflag |= PARENB;
2322 termios.c_cflag |= CRTSCTS;
2330 port->ops->set_termios(port, &termios, &dummy);
2336 co->cflag = termios.c_cflag;
2337 co->ispeed = termios.c_ispeed;
2338 co->ospeed = termios.c_ospeed;
2468 struct ktermios termios;
2490 memset(&termios, 0, sizeof(struct ktermios));
2491 termios.c_cflag = uport->cons->cflag;
2492 termios.c_ispeed = uport->cons->ispeed;
2493 termios.c_ospeed = uport->cons->ospeed;
2496 * If that's unset, use the tty termios setting.
2498 if (port->tty && termios.c_cflag == 0)
2499 termios = port->tty->termios;
2503 uport->ops->set_termios(uport, &termios, NULL);