Lines Matching refs:tty
16 #include <linux/tty.h>
280 static void spcp8x5_init_termios(struct tty_struct *tty)
282 tty_encode_baud_rate(tty, 115200, 115200);
285 static void spcp8x5_set_termios(struct tty_struct *tty,
292 unsigned int cflag = tty->termios.c_cflag;
300 if (old_termios && !tty_termios_hw_change(&tty->termios, old_termios))
320 baud = tty_get_baud_rate(tty);
390 static int spcp8x5_open(struct tty_struct *tty, struct usb_serial_port *port)
407 if (tty)
408 spcp8x5_set_termios(tty, port, NULL);
410 return usb_serial_generic_open(tty, port);
413 static int spcp8x5_tiocmset(struct tty_struct *tty,
416 struct usb_serial_port *port = tty->driver_data;
436 static int spcp8x5_tiocmget(struct tty_struct *tty)
438 struct usb_serial_port *port = tty->driver_data;