Lines Matching defs:tty
16 #include <linux/tty.h>
282 static void spcp8x5_init_termios(struct tty_struct *tty)
284 tty_encode_baud_rate(tty, 115200, 115200);
287 static void spcp8x5_set_termios(struct tty_struct *tty,
293 unsigned int cflag = tty->termios.c_cflag;
301 if (old_termios && !tty_termios_hw_change(&tty->termios, old_termios))
321 baud = tty_get_baud_rate(tty);
391 static int spcp8x5_open(struct tty_struct *tty, struct usb_serial_port *port)
408 if (tty)
409 spcp8x5_set_termios(tty, port, NULL);
411 return usb_serial_generic_open(tty, port);
414 static int spcp8x5_tiocmset(struct tty_struct *tty,
417 struct usb_serial_port *port = tty->driver_data;
437 static int spcp8x5_tiocmget(struct tty_struct *tty)
439 struct usb_serial_port *port = tty->driver_data;