Lines Matching refs:tty
204 static void edge_set_termios(struct tty_struct *tty,
206 static void edge_send(struct usb_serial_port *port, struct tty_struct *tty);
1433 struct tty_struct *tty; in handle_new_msr() local
1456 tty = tty_port_tty_get(&edge_port->port->port); in handle_new_msr()
1458 if (tty && C_CRTSCTS(tty)) { in handle_new_msr()
1460 tty_wakeup(tty); in handle_new_msr()
1462 tty_kref_put(tty); in handle_new_msr()
1680 struct tty_struct *tty; in edge_bulk_out_callback() local
1701 tty = tty_port_tty_get(&port->port); in edge_bulk_out_callback()
1702 edge_send(port, tty); in edge_bulk_out_callback()
1703 tty_kref_put(tty); in edge_bulk_out_callback()
1706 static int edge_open(struct tty_struct *tty, struct usb_serial_port *port) in edge_open() argument
1734 if (tty) in edge_open()
1735 edge_set_termios(tty, port, &tty->termios); in edge_open()
1895 static int edge_write(struct tty_struct *tty, struct usb_serial_port *port, in edge_write() argument
1912 edge_send(port, tty); in edge_write()
1917 static void edge_send(struct usb_serial_port *port, struct tty_struct *tty) in edge_send() argument
1961 if (tty) in edge_send()
1962 tty_wakeup(tty); in edge_send()
1965 static int edge_write_room(struct tty_struct *tty) in edge_write_room() argument
1967 struct usb_serial_port *port = tty->driver_data; in edge_write_room()
1985 static int edge_chars_in_buffer(struct tty_struct *tty) in edge_chars_in_buffer() argument
1987 struct usb_serial_port *port = tty->driver_data; in edge_chars_in_buffer()
2014 static void edge_throttle(struct tty_struct *tty) in edge_throttle() argument
2016 struct usb_serial_port *port = tty->driver_data; in edge_throttle()
2024 if (I_IXOFF(tty)) { in edge_throttle()
2025 unsigned char stop_char = STOP_CHAR(tty); in edge_throttle()
2026 status = edge_write(tty, port, &stop_char, 1); in edge_throttle()
2034 if (C_CRTSCTS(tty)) in edge_throttle()
2039 static void edge_unthrottle(struct tty_struct *tty) in edge_unthrottle() argument
2041 struct usb_serial_port *port = tty->driver_data; in edge_unthrottle()
2049 if (I_IXOFF(tty)) { in edge_unthrottle()
2050 unsigned char start_char = START_CHAR(tty); in edge_unthrottle()
2051 status = edge_write(tty, port, &start_char, 1); in edge_unthrottle()
2058 if (C_CRTSCTS(tty)) { in edge_unthrottle()
2101 static void change_port_settings(struct tty_struct *tty, in change_port_settings() argument
2113 tty->termios = *old_termios; in change_port_settings()
2117 cflag = tty->termios.c_cflag; in change_port_settings()
2181 config->cXon = START_CHAR(tty); in change_port_settings()
2182 config->cXoff = STOP_CHAR(tty); in change_port_settings()
2185 if (I_IXOFF(tty)) { in change_port_settings()
2193 if (I_IXON(tty)) { in change_port_settings()
2200 tty->termios.c_cflag &= ~CMSPAR; in change_port_settings()
2203 baud = tty_get_baud_rate(tty); in change_port_settings()
2208 tty_encode_baud_rate(tty, baud, baud); in change_port_settings()
2239 static void edge_set_termios(struct tty_struct *tty, in edge_set_termios() argument
2245 cflag = tty->termios.c_cflag; in edge_set_termios()
2248 tty->termios.c_cflag, tty->termios.c_iflag); in edge_set_termios()
2255 change_port_settings(tty, edge_port, old_termios); in edge_set_termios()
2258 static int edge_tiocmset(struct tty_struct *tty, in edge_tiocmset() argument
2261 struct usb_serial_port *port = tty->driver_data; in edge_tiocmset()
2289 static int edge_tiocmget(struct tty_struct *tty) in edge_tiocmget() argument
2291 struct usb_serial_port *port = tty->driver_data; in edge_tiocmget()
2346 static int edge_ioctl(struct tty_struct *tty, in edge_ioctl() argument
2349 struct usb_serial_port *port = tty->driver_data; in edge_ioctl()
2361 static void edge_break(struct tty_struct *tty, int break_state) in edge_break() argument
2363 struct usb_serial_port *port = tty->driver_data; in edge_break()