Lines Matching refs:tty

23 #include <linux/tty.h>
842 static int mos7720_open(struct tty_struct *tty, struct usb_serial_port *port)
945 * this function is called by the tty driver when it wants to know how many
949 static unsigned int mos7720_chars_in_buffer(struct tty_struct *tty)
951 struct usb_serial_port *port = tty->driver_data;
999 static int mos7720_break(struct tty_struct *tty, int break_state)
1001 struct usb_serial_port *port = tty->driver_data;
1025 * this function is called by the tty driver when it wants to know how many
1028 static unsigned int mos7720_write_room(struct tty_struct *tty)
1030 struct usb_serial_port *port = tty->driver_data;
1046 static int mos7720_write(struct tty_struct *tty, struct usb_serial_port *port,
1117 static void mos7720_throttle(struct tty_struct *tty)
1119 struct usb_serial_port *port = tty->driver_data;
1134 if (I_IXOFF(tty)) {
1135 unsigned char stop_char = STOP_CHAR(tty);
1136 status = mos7720_write(tty, port, &stop_char, 1);
1142 if (C_CRTSCTS(tty)) {
1149 static void mos7720_unthrottle(struct tty_struct *tty)
1151 struct usb_serial_port *port = tty->driver_data;
1164 if (I_IXOFF(tty)) {
1165 unsigned char start_char = START_CHAR(tty);
1166 status = mos7720_write(tty, port, &start_char, 1);
1172 if (C_CRTSCTS(tty)) {
1358 static void change_port_settings(struct tty_struct *tty,
1387 cflag = tty->termios.c_cflag;
1462 baud = tty_get_baud_rate(tty);
1481 tty_encode_baud_rate(tty, baud, baud);
1494 * this function is called by the tty driver when it wants to change the
1497 static void mos7720_set_termios(struct tty_struct *tty,
1515 change_port_settings(tty, mos7720_port, old_termios);
1534 static int get_lsr_info(struct tty_struct *tty,
1537 struct usb_serial_port *port = tty->driver_data;
1543 count = mos7720_chars_in_buffer(tty);
1557 static int mos7720_tiocmget(struct tty_struct *tty)
1559 struct usb_serial_port *port = tty->driver_data;
1578 static int mos7720_tiocmset(struct tty_struct *tty,
1581 struct usb_serial_port *port = tty->driver_data;
1608 static int mos7720_ioctl(struct tty_struct *tty,
1611 struct usb_serial_port *port = tty->driver_data;
1621 return get_lsr_info(tty, mos7720_port,