Lines Matching defs:tty
16 #include <linux/tty.h>
115 static int iuu_tiocmset(struct tty_struct *tty,
118 struct usb_serial_port *port = tty->driver_data;
144 static int iuu_tiocmget(struct tty_struct *tty)
146 struct usb_serial_port *port = tty->driver_data;
702 static int iuu_uart_write(struct tty_struct *tty, struct usb_serial_port *port,
887 static void iuu_set_termios(struct tty_struct *tty,
892 unsigned int cflag = tty->termios.c_cflag;
901 baud = tty->termios.c_ospeed;
932 tty_termios_copy_hw(&tty->termios, old_termios);
936 tty_encode_baud_rate(tty, baud, baud);
937 tty->termios.c_cflag &= ~(supported_mask|CSIZE);
938 tty->termios.c_cflag |= newval | csize;
953 static void iuu_init_termios(struct tty_struct *tty)
955 tty->termios.c_cflag = B9600 | CS8 | CSTOPB | CREAD | PARENB | CLOCAL;
956 tty->termios.c_ispeed = 9600;
957 tty->termios.c_ospeed = 9600;
958 tty->termios.c_lflag = 0;
959 tty->termios.c_oflag = 0;
960 tty->termios.c_iflag = 0;
963 static int iuu_open(struct tty_struct *tty, struct usb_serial_port *port)
972 baud = tty->termios.c_ospeed;