Lines Matching refs:tty

842 static int mos7720_open(struct tty_struct *tty, struct usb_serial_port *port)  in mos7720_open()  argument
949 static unsigned int mos7720_chars_in_buffer(struct tty_struct *tty) in mos7720_chars_in_buffer() argument
951 struct usb_serial_port *port = tty->driver_data; in mos7720_chars_in_buffer()
999 static int mos7720_break(struct tty_struct *tty, int break_state) in mos7720_break() argument
1001 struct usb_serial_port *port = tty->driver_data; in mos7720_break()
1028 static unsigned int mos7720_write_room(struct tty_struct *tty) in mos7720_write_room() argument
1030 struct usb_serial_port *port = tty->driver_data; in mos7720_write_room()
1046 static int mos7720_write(struct tty_struct *tty, struct usb_serial_port *port, in mos7720_write() argument
1117 static void mos7720_throttle(struct tty_struct *tty) in mos7720_throttle() argument
1119 struct usb_serial_port *port = tty->driver_data; in mos7720_throttle()
1134 if (I_IXOFF(tty)) { in mos7720_throttle()
1135 unsigned char stop_char = STOP_CHAR(tty); in mos7720_throttle()
1136 status = mos7720_write(tty, port, &stop_char, 1); in mos7720_throttle()
1142 if (C_CRTSCTS(tty)) { in mos7720_throttle()
1149 static void mos7720_unthrottle(struct tty_struct *tty) in mos7720_unthrottle() argument
1151 struct usb_serial_port *port = tty->driver_data; in mos7720_unthrottle()
1164 if (I_IXOFF(tty)) { in mos7720_unthrottle()
1165 unsigned char start_char = START_CHAR(tty); in mos7720_unthrottle()
1166 status = mos7720_write(tty, port, &start_char, 1); in mos7720_unthrottle()
1172 if (C_CRTSCTS(tty)) { in mos7720_unthrottle()
1358 static void change_port_settings(struct tty_struct *tty, in change_port_settings() argument
1387 cflag = tty->termios.c_cflag; in change_port_settings()
1462 baud = tty_get_baud_rate(tty); in change_port_settings()
1481 tty_encode_baud_rate(tty, baud, baud); in change_port_settings()
1497 static void mos7720_set_termios(struct tty_struct *tty, in mos7720_set_termios() argument
1515 change_port_settings(tty, mos7720_port, old_termios); in mos7720_set_termios()
1534 static int get_lsr_info(struct tty_struct *tty, in get_lsr_info() argument
1537 struct usb_serial_port *port = tty->driver_data; in get_lsr_info()
1543 count = mos7720_chars_in_buffer(tty); in get_lsr_info()
1557 static int mos7720_tiocmget(struct tty_struct *tty) in mos7720_tiocmget() argument
1559 struct usb_serial_port *port = tty->driver_data; in mos7720_tiocmget()
1578 static int mos7720_tiocmset(struct tty_struct *tty, in mos7720_tiocmset() argument
1581 struct usb_serial_port *port = tty->driver_data; in mos7720_tiocmset()
1608 static int mos7720_ioctl(struct tty_struct *tty, in mos7720_ioctl() argument
1611 struct usb_serial_port *port = tty->driver_data; in mos7720_ioctl()
1621 return get_lsr_info(tty, mos7720_port, in mos7720_ioctl()