Lines Matching refs:tty
228 static void edge_set_termios(struct tty_struct *tty,
230 static void edge_send(struct usb_serial_port *port, struct tty_struct *tty);
1563 struct tty_struct *tty; in handle_new_msr() local
1586 tty = tty_port_tty_get(&edge_port->port->port); in handle_new_msr()
1588 if (tty && C_CRTSCTS(tty)) { in handle_new_msr()
1590 tty_wakeup(tty); in handle_new_msr()
1592 tty_kref_put(tty); in handle_new_msr()
1810 struct tty_struct *tty; in edge_bulk_out_callback() local
1831 tty = tty_port_tty_get(&port->port); in edge_bulk_out_callback()
1832 edge_send(port, tty); in edge_bulk_out_callback()
1833 tty_kref_put(tty); in edge_bulk_out_callback()
1836 static int edge_open(struct tty_struct *tty, struct usb_serial_port *port) in edge_open() argument
1864 if (tty) in edge_open()
1865 edge_set_termios(tty, port, &tty->termios); in edge_open()
2027 static int edge_write(struct tty_struct *tty, struct usb_serial_port *port, in edge_write() argument
2044 edge_send(port, tty); in edge_write()
2049 static void edge_send(struct usb_serial_port *port, struct tty_struct *tty) in edge_send() argument
2095 if (tty) in edge_send()
2096 tty_wakeup(tty); in edge_send()
2099 static int edge_write_room(struct tty_struct *tty) in edge_write_room() argument
2101 struct usb_serial_port *port = tty->driver_data; in edge_write_room()
2119 static int edge_chars_in_buffer(struct tty_struct *tty) in edge_chars_in_buffer() argument
2121 struct usb_serial_port *port = tty->driver_data; in edge_chars_in_buffer()
2148 static void edge_throttle(struct tty_struct *tty) in edge_throttle() argument
2150 struct usb_serial_port *port = tty->driver_data; in edge_throttle()
2158 if (I_IXOFF(tty)) { in edge_throttle()
2159 unsigned char stop_char = STOP_CHAR(tty); in edge_throttle()
2160 status = edge_write(tty, port, &stop_char, 1); in edge_throttle()
2170 if (C_CRTSCTS(tty)) in edge_throttle()
2175 static void edge_unthrottle(struct tty_struct *tty) in edge_unthrottle() argument
2177 struct usb_serial_port *port = tty->driver_data; in edge_unthrottle()
2185 if (I_IXOFF(tty)) { in edge_unthrottle()
2186 unsigned char start_char = START_CHAR(tty); in edge_unthrottle()
2187 status = edge_write(tty, port, &start_char, 1); in edge_unthrottle()
2196 if (C_CRTSCTS(tty)) { in edge_unthrottle()
2239 static void change_port_settings(struct tty_struct *tty, in change_port_settings() argument
2251 tty->termios = *old_termios; in change_port_settings()
2255 cflag = tty->termios.c_cflag; in change_port_settings()
2321 config->cXon = START_CHAR(tty); in change_port_settings()
2322 config->cXoff = STOP_CHAR(tty); in change_port_settings()
2325 if (I_IXOFF(tty)) { in change_port_settings()
2333 if (I_IXON(tty)) { in change_port_settings()
2340 tty->termios.c_cflag &= ~CMSPAR; in change_port_settings()
2343 baud = tty_get_baud_rate(tty); in change_port_settings()
2348 tty_encode_baud_rate(tty, baud, baud); in change_port_settings()
2379 static void edge_set_termios(struct tty_struct *tty, in edge_set_termios() argument
2385 cflag = tty->termios.c_cflag; in edge_set_termios()
2388 tty->termios.c_cflag, tty->termios.c_iflag); in edge_set_termios()
2395 change_port_settings(tty, edge_port, old_termios); in edge_set_termios()
2398 static int edge_tiocmset(struct tty_struct *tty, in edge_tiocmset() argument
2401 struct usb_serial_port *port = tty->driver_data; in edge_tiocmset()
2429 static int edge_tiocmget(struct tty_struct *tty) in edge_tiocmget() argument
2431 struct usb_serial_port *port = tty->driver_data; in edge_tiocmget()
2486 static int edge_ioctl(struct tty_struct *tty, in edge_ioctl() argument
2489 struct usb_serial_port *port = tty->driver_data; in edge_ioctl()
2501 static void edge_break(struct tty_struct *tty, int break_state) in edge_break() argument
2503 struct usb_serial_port *port = tty->driver_data; in edge_break()