Lines Matching defs:tty

17 #include <linux/tty.h>
687 static void pl2303_encode_baud_rate(struct tty_struct *tty,
696 baud = tty_get_baud_rate(tty);
720 tty_encode_baud_rate(tty, baud, baud);
777 static bool pl2303_enable_xonxoff(struct tty_struct *tty, const struct pl2303_type_data *type)
779 if (!I_IXON(tty) || I_IXANY(tty))
782 if (START_CHAR(tty) != 0x11 || STOP_CHAR(tty) != 0x13)
791 static void pl2303_set_termios(struct tty_struct *tty,
803 if (old_termios && !pl2303_termios_change(&tty->termios, old_termios))
810 tty->termios = *old_termios;
816 buf[6] = tty_get_char_size(tty->termios.c_cflag);
820 pl2303_encode_baud_rate(tty, port, &buf[0]);
825 if (C_CSTOPB(tty)) {
830 if (C_CSIZE(tty) == CS5) {
842 if (C_PARENB(tty)) {
848 if (C_PARODD(tty)) {
849 if (C_CMSPAR(tty)) {
857 if (C_CMSPAR(tty)) {
891 if (C_BAUD(tty) == B0)
903 if (C_CRTSCTS(tty)) {
913 } else if (pl2303_enable_xonxoff(tty, spriv->type)) {
958 static int pl2303_open(struct tty_struct *tty, struct usb_serial_port *port)
980 if (tty)
981 pl2303_set_termios(tty, port, NULL);
990 result = usb_serial_generic_open(tty, port);
999 static int pl2303_tiocmset(struct tty_struct *tty,
1002 struct usb_serial_port *port = tty->driver_data;
1027 static int pl2303_tiocmget(struct tty_struct *tty)
1029 struct usb_serial_port *port = tty->driver_data;
1088 static int pl2303_break_ctl(struct tty_struct *tty, int state)
1090 struct usb_serial_port *port = tty->driver_data;
1102 struct tty_struct *tty;
1134 tty = tty_port_tty_get(&port->port);
1135 if (tty) {
1136 usb_serial_handle_dcd_change(port, tty,
1138 tty_kref_put(tty);