Lines Matching refs:tty
993 static int mos7720_open(struct tty_struct *tty, struct usb_serial_port *port) in mos7720_open() argument
1099 static int mos7720_chars_in_buffer(struct tty_struct *tty) in mos7720_chars_in_buffer() argument
1101 struct usb_serial_port *port = tty->driver_data; in mos7720_chars_in_buffer()
1153 static void mos7720_break(struct tty_struct *tty, int break_state) in mos7720_break() argument
1155 struct usb_serial_port *port = tty->driver_data; in mos7720_break()
1182 static int mos7720_write_room(struct tty_struct *tty) in mos7720_write_room() argument
1184 struct usb_serial_port *port = tty->driver_data; in mos7720_write_room()
1204 static int mos7720_write(struct tty_struct *tty, struct usb_serial_port *port, in mos7720_write() argument
1273 static void mos7720_throttle(struct tty_struct *tty) in mos7720_throttle() argument
1275 struct usb_serial_port *port = tty->driver_data; in mos7720_throttle()
1290 if (I_IXOFF(tty)) { in mos7720_throttle()
1291 unsigned char stop_char = STOP_CHAR(tty); in mos7720_throttle()
1292 status = mos7720_write(tty, port, &stop_char, 1); in mos7720_throttle()
1298 if (tty->termios.c_cflag & CRTSCTS) { in mos7720_throttle()
1305 static void mos7720_unthrottle(struct tty_struct *tty) in mos7720_unthrottle() argument
1307 struct usb_serial_port *port = tty->driver_data; in mos7720_unthrottle()
1320 if (I_IXOFF(tty)) { in mos7720_unthrottle()
1321 unsigned char start_char = START_CHAR(tty); in mos7720_unthrottle()
1322 status = mos7720_write(tty, port, &start_char, 1); in mos7720_unthrottle()
1328 if (tty->termios.c_cflag & CRTSCTS) { in mos7720_unthrottle()
1509 static void change_port_settings(struct tty_struct *tty, in change_port_settings() argument
1541 cflag = tty->termios.c_cflag; in change_port_settings()
1542 iflag = tty->termios.c_iflag; in change_port_settings()
1632 baud = tty_get_baud_rate(tty); in change_port_settings()
1651 tty_encode_baud_rate(tty, baud, baud); in change_port_settings()
1667 static void mos7720_set_termios(struct tty_struct *tty, in mos7720_set_termios() argument
1689 cflag = tty->termios.c_cflag; in mos7720_set_termios()
1692 tty->termios.c_cflag, RELEVANT_IFLAG(tty->termios.c_iflag)); in mos7720_set_termios()
1698 change_port_settings(tty, mos7720_port, old_termios); in mos7720_set_termios()
1717 static int get_lsr_info(struct tty_struct *tty, in get_lsr_info() argument
1720 struct usb_serial_port *port = tty->driver_data; in get_lsr_info()
1726 count = mos7720_chars_in_buffer(tty); in get_lsr_info()
1740 static int mos7720_tiocmget(struct tty_struct *tty) in mos7720_tiocmget() argument
1742 struct usb_serial_port *port = tty->driver_data; in mos7720_tiocmget()
1761 static int mos7720_tiocmset(struct tty_struct *tty, in mos7720_tiocmset() argument
1764 struct usb_serial_port *port = tty->driver_data; in mos7720_tiocmset()
1861 static int mos7720_ioctl(struct tty_struct *tty, in mos7720_ioctl() argument
1864 struct usb_serial_port *port = tty->driver_data; in mos7720_ioctl()
1874 return get_lsr_info(tty, mos7720_port, in mos7720_ioctl()