Lines Matching refs:tty

197 static int edge_open(struct tty_struct *tty, struct usb_serial_port *port);
199 static int edge_write(struct tty_struct *tty, struct usb_serial_port *port,
201 static int edge_write_room(struct tty_struct *tty);
202 static int edge_chars_in_buffer(struct tty_struct *tty);
203 static void edge_throttle(struct tty_struct *tty);
204 static void edge_unthrottle(struct tty_struct *tty);
205 static void edge_set_termios(struct tty_struct *tty,
208 static int edge_ioctl(struct tty_struct *tty,
210 static void edge_break(struct tty_struct *tty, int break_state);
211 static int edge_tiocmget(struct tty_struct *tty);
212 static int edge_tiocmset(struct tty_struct *tty,
238 static void change_port_settings(struct tty_struct *tty,
796 static int edge_open(struct tty_struct *tty, struct usb_serial_port *port) in edge_open() argument
1097 static int edge_write(struct tty_struct *tty, struct usb_serial_port *port, in edge_write() argument
1310 static int edge_write_room(struct tty_struct *tty) in edge_write_room() argument
1312 struct usb_serial_port *port = tty->driver_data; in edge_write_room()
1346 static int edge_chars_in_buffer(struct tty_struct *tty) in edge_chars_in_buffer() argument
1348 struct usb_serial_port *port = tty->driver_data; in edge_chars_in_buffer()
1380 static void edge_throttle(struct tty_struct *tty) in edge_throttle() argument
1382 struct usb_serial_port *port = tty->driver_data; in edge_throttle()
1395 if (I_IXOFF(tty)) { in edge_throttle()
1396 unsigned char stop_char = STOP_CHAR(tty); in edge_throttle()
1397 status = edge_write(tty, port, &stop_char, 1); in edge_throttle()
1403 if (tty->termios.c_cflag & CRTSCTS) { in edge_throttle()
1418 static void edge_unthrottle(struct tty_struct *tty) in edge_unthrottle() argument
1420 struct usb_serial_port *port = tty->driver_data; in edge_unthrottle()
1433 if (I_IXOFF(tty)) { in edge_unthrottle()
1434 unsigned char start_char = START_CHAR(tty); in edge_unthrottle()
1435 status = edge_write(tty, port, &start_char, 1); in edge_unthrottle()
1440 if (tty->termios.c_cflag & CRTSCTS) { in edge_unthrottle()
1453 static void edge_set_termios(struct tty_struct *tty, in edge_set_termios() argument
1459 cflag = tty->termios.c_cflag; in edge_set_termios()
1460 …dev_dbg(&port->dev, "%s - clfag %08x iflag %08x\n", __func__, tty->termios.c_cflag, tty->termios.c… in edge_set_termios()
1472 change_port_settings(tty, edge_port, old_termios); in edge_set_termios()
1505 static int edge_tiocmset(struct tty_struct *tty, in edge_tiocmset() argument
1508 struct usb_serial_port *port = tty->driver_data; in edge_tiocmset()
1534 static int edge_tiocmget(struct tty_struct *tty) in edge_tiocmget() argument
1536 struct usb_serial_port *port = tty->driver_data; in edge_tiocmget()
1584 static int edge_ioctl(struct tty_struct *tty, in edge_ioctl() argument
1587 struct usb_serial_port *port = tty->driver_data; in edge_ioctl()
1608 static void edge_break(struct tty_struct *tty, int break_state) in edge_break() argument
1610 struct usb_serial_port *port = tty->driver_data; in edge_break()
1805 struct tty_struct *tty; in process_rcvd_status() local
1857 tty = tty_port_tty_get(&edge_port->port->port); in process_rcvd_status()
1858 if (tty) { in process_rcvd_status()
1859 change_port_settings(tty, in process_rcvd_status()
1860 edge_port, &tty->termios); in process_rcvd_status()
1861 tty_kref_put(tty); in process_rcvd_status()
2379 static void change_port_settings(struct tty_struct *tty, in change_port_settings() argument
2401 cflag = tty->termios.c_cflag; in change_port_settings()
2464 if (I_IXOFF(tty) || I_IXON(tty)) { in change_port_settings()
2465 unsigned char stop_char = STOP_CHAR(tty); in change_port_settings()
2466 unsigned char start_char = START_CHAR(tty); in change_port_settings()
2478 if (I_IXOFF(tty)) { in change_port_settings()
2487 if (I_IXON(tty)) { in change_port_settings()
2529 baud = tty_get_baud_rate(tty); in change_port_settings()
2540 tty_encode_baud_rate(tty, baud, baud); in change_port_settings()