Lines Matching refs:tty
845 static int mos7840_open(struct tty_struct *tty, struct usb_serial_port *port) in mos7840_open() argument
1124 static int mos7840_chars_in_buffer(struct tty_struct *tty) in mos7840_chars_in_buffer() argument
1126 struct usb_serial_port *port = tty->driver_data; in mos7840_chars_in_buffer()
1221 static void mos7840_break(struct tty_struct *tty, int break_state) in mos7840_break() argument
1223 struct usb_serial_port *port = tty->driver_data; in mos7840_break()
1260 static int mos7840_write_room(struct tty_struct *tty) in mos7840_write_room() argument
1262 struct usb_serial_port *port = tty->driver_data; in mos7840_write_room()
1296 static int mos7840_write(struct tty_struct *tty, struct usb_serial_port *port, in mos7840_write() argument
1401 static void mos7840_throttle(struct tty_struct *tty) in mos7840_throttle() argument
1403 struct usb_serial_port *port = tty->driver_data; in mos7840_throttle()
1421 if (I_IXOFF(tty)) { in mos7840_throttle()
1422 unsigned char stop_char = STOP_CHAR(tty); in mos7840_throttle()
1423 status = mos7840_write(tty, port, &stop_char, 1); in mos7840_throttle()
1428 if (tty->termios.c_cflag & CRTSCTS) { in mos7840_throttle()
1443 static void mos7840_unthrottle(struct tty_struct *tty) in mos7840_unthrottle() argument
1445 struct usb_serial_port *port = tty->driver_data; in mos7840_unthrottle()
1461 if (I_IXOFF(tty)) { in mos7840_unthrottle()
1462 unsigned char start_char = START_CHAR(tty); in mos7840_unthrottle()
1463 status = mos7840_write(tty, port, &start_char, 1); in mos7840_unthrottle()
1469 if (tty->termios.c_cflag & CRTSCTS) { in mos7840_unthrottle()
1478 static int mos7840_tiocmget(struct tty_struct *tty) in mos7840_tiocmget() argument
1480 struct usb_serial_port *port = tty->driver_data; in mos7840_tiocmget()
1510 static int mos7840_tiocmset(struct tty_struct *tty, in mos7840_tiocmset() argument
1513 struct usb_serial_port *port = tty->driver_data; in mos7840_tiocmset()
1702 static void mos7840_change_port_settings(struct tty_struct *tty, in mos7840_change_port_settings() argument
1738 cflag = tty->termios.c_cflag; in mos7840_change_port_settings()
1739 iflag = tty->termios.c_iflag; in mos7840_change_port_settings()
1830 baud = tty_get_baud_rate(tty); in mos7840_change_port_settings()
1864 static void mos7840_set_termios(struct tty_struct *tty, in mos7840_set_termios() argument
1893 cflag = tty->termios.c_cflag; in mos7840_set_termios()
1896 tty->termios.c_cflag, RELEVANT_IFLAG(tty->termios.c_iflag)); in mos7840_set_termios()
1902 mos7840_change_port_settings(tty, mos7840_port, old_termios); in mos7840_set_termios()
1931 static int mos7840_get_lsr_info(struct tty_struct *tty, in mos7840_get_lsr_info() argument
1937 count = mos7840_chars_in_buffer(tty); in mos7840_get_lsr_info()
1984 static int mos7840_ioctl(struct tty_struct *tty, in mos7840_ioctl() argument
1987 struct usb_serial_port *port = tty->driver_data; in mos7840_ioctl()
2004 return mos7840_get_lsr_info(tty, argp); in mos7840_ioctl()