Lines Matching defs:tty
16 #include <linux/tty.h>
113 static int iuu_tiocmset(struct tty_struct *tty,
116 struct usb_serial_port *port = tty->driver_data;
142 static int iuu_tiocmget(struct tty_struct *tty)
144 struct usb_serial_port *port = tty->driver_data;
698 static int iuu_uart_write(struct tty_struct *tty, struct usb_serial_port *port,
881 static void iuu_set_termios(struct tty_struct *tty,
887 unsigned int cflag = tty->termios.c_cflag;
896 baud = tty->termios.c_ospeed;
927 tty_termios_copy_hw(&tty->termios, old_termios);
931 tty_encode_baud_rate(tty, baud, baud);
932 tty->termios.c_cflag &= ~(supported_mask|CSIZE);
933 tty->termios.c_cflag |= newval | csize;
948 static void iuu_init_termios(struct tty_struct *tty)
950 tty->termios.c_cflag = B9600 | CS8 | CSTOPB | CREAD | PARENB | CLOCAL;
951 tty->termios.c_ispeed = 9600;
952 tty->termios.c_ospeed = 9600;
953 tty->termios.c_lflag = 0;
954 tty->termios.c_oflag = 0;
955 tty->termios.c_iflag = 0;
958 static int iuu_open(struct tty_struct *tty, struct usb_serial_port *port)
967 baud = tty->termios.c_ospeed;