Lines Matching refs:tty

1001 static int mos7720_open(struct tty_struct *tty, struct usb_serial_port *port)  in mos7720_open()  argument
1111 static int mos7720_chars_in_buffer(struct tty_struct *tty) in mos7720_chars_in_buffer() argument
1113 struct usb_serial_port *port = tty->driver_data; in mos7720_chars_in_buffer()
1165 static void mos7720_break(struct tty_struct *tty, int break_state) in mos7720_break() argument
1167 struct usb_serial_port *port = tty->driver_data; in mos7720_break()
1195 static int mos7720_write_room(struct tty_struct *tty) in mos7720_write_room() argument
1197 struct usb_serial_port *port = tty->driver_data; in mos7720_write_room()
1217 static int mos7720_write(struct tty_struct *tty, struct usb_serial_port *port, in mos7720_write() argument
1286 static void mos7720_throttle(struct tty_struct *tty) in mos7720_throttle() argument
1288 struct usb_serial_port *port = tty->driver_data; in mos7720_throttle()
1303 if (I_IXOFF(tty)) { in mos7720_throttle()
1304 unsigned char stop_char = STOP_CHAR(tty); in mos7720_throttle()
1305 status = mos7720_write(tty, port, &stop_char, 1); in mos7720_throttle()
1311 if (tty->termios.c_cflag & CRTSCTS) { in mos7720_throttle()
1318 static void mos7720_unthrottle(struct tty_struct *tty) in mos7720_unthrottle() argument
1320 struct usb_serial_port *port = tty->driver_data; in mos7720_unthrottle()
1333 if (I_IXOFF(tty)) { in mos7720_unthrottle()
1334 unsigned char start_char = START_CHAR(tty); in mos7720_unthrottle()
1335 status = mos7720_write(tty, port, &start_char, 1); in mos7720_unthrottle()
1341 if (tty->termios.c_cflag & CRTSCTS) { in mos7720_unthrottle()
1527 static void change_port_settings(struct tty_struct *tty, in change_port_settings() argument
1559 cflag = tty->termios.c_cflag; in change_port_settings()
1560 iflag = tty->termios.c_iflag; in change_port_settings()
1655 baud = tty_get_baud_rate(tty); in change_port_settings()
1674 tty_encode_baud_rate(tty, baud, baud); in change_port_settings()
1690 static void mos7720_set_termios(struct tty_struct *tty, in mos7720_set_termios() argument
1712 cflag = tty->termios.c_cflag; in mos7720_set_termios()
1715 tty->termios.c_cflag, RELEVANT_IFLAG(tty->termios.c_iflag)); in mos7720_set_termios()
1721 change_port_settings(tty, mos7720_port, old_termios); in mos7720_set_termios()
1740 static int get_lsr_info(struct tty_struct *tty, in get_lsr_info() argument
1743 struct usb_serial_port *port = tty->driver_data; in get_lsr_info()
1749 count = mos7720_chars_in_buffer(tty); in get_lsr_info()
1763 static int mos7720_tiocmget(struct tty_struct *tty) in mos7720_tiocmget() argument
1765 struct usb_serial_port *port = tty->driver_data; in mos7720_tiocmget()
1784 static int mos7720_tiocmset(struct tty_struct *tty, in mos7720_tiocmset() argument
1787 struct usb_serial_port *port = tty->driver_data; in mos7720_tiocmset()
1884 static int mos7720_ioctl(struct tty_struct *tty, in mos7720_ioctl() argument
1887 struct usb_serial_port *port = tty->driver_data; in mos7720_ioctl()
1897 return get_lsr_info(tty, mos7720_port, in mos7720_ioctl()