Lines Matching refs:tty

32 static int cp210x_open(struct tty_struct *tty, struct usb_serial_port *);
464 static int cp210x_open(struct tty_struct *tty, struct usb_serial_port *port) in cp210x_open() argument
476 cp210x_get_termios(tty, port); in cp210x_open()
479 if (tty) in cp210x_open()
480 cp210x_change_speed(tty, port, NULL); in cp210x_open()
482 return usb_serial_generic_open(tty, port); in cp210x_open()
497 static void cp210x_get_termios(struct tty_struct *tty, in cp210x_get_termios() argument
502 if (tty) { in cp210x_get_termios()
503 cp210x_get_termios_port(tty->driver_data, in cp210x_get_termios()
504 &tty->termios.c_cflag, &baud); in cp210x_get_termios()
505 tty_encode_baud_rate(tty, baud, baud); in cp210x_get_termios()
657 static void cp210x_change_speed(struct tty_struct *tty, in cp210x_change_speed() argument
662 baud = tty->termios.c_ospeed; in cp210x_change_speed()
681 tty_encode_baud_rate(tty, baud, baud); in cp210x_change_speed()
684 static void cp210x_set_termios(struct tty_struct *tty, in cp210x_set_termios() argument
692 cflag = tty->termios.c_cflag; in cp210x_set_termios()
695 if (tty->termios.c_ospeed != old_termios->c_ospeed) in cp210x_set_termios()
696 cp210x_change_speed(tty, port, old_termios); in cp210x_set_termios()
799 static int cp210x_tiocmset(struct tty_struct *tty, in cp210x_tiocmset() argument
802 struct usb_serial_port *port = tty->driver_data; in cp210x_tiocmset()
841 static int cp210x_tiocmget(struct tty_struct *tty) in cp210x_tiocmget() argument
843 struct usb_serial_port *port = tty->driver_data; in cp210x_tiocmget()
861 static void cp210x_break_ctl(struct tty_struct *tty, int break_state) in cp210x_break_ctl() argument
863 struct usb_serial_port *port = tty->driver_data; in cp210x_break_ctl()