Lines Matching refs:tty

3  * xhci-dbgtty.c - tty glue for xHCI debug capability
11 #include <linux/tty.h>
70 if (do_tty_wake && port->port.tty)
71 tty_wakeup(port->port.tty);
85 if (!port->port.tty)
181 static int dbc_tty_install(struct tty_driver *driver, struct tty_struct *tty)
186 port = idr_find(&dbc_tty_minors, tty->index);
192 tty->driver_data = port;
194 return tty_port_install(&port->port, driver, tty);
197 static int dbc_tty_open(struct tty_struct *tty, struct file *file)
199 struct dbc_port *port = tty->driver_data;
201 return tty_port_open(&port->port, tty, file);
204 static void dbc_tty_close(struct tty_struct *tty, struct file *file)
206 struct dbc_port *port = tty->driver_data;
208 tty_port_close(&port->port, tty, file);
211 static ssize_t dbc_tty_write(struct tty_struct *tty, const u8 *buf,
214 struct dbc_port *port = tty->driver_data;
226 static int dbc_tty_put_char(struct tty_struct *tty, u8 ch)
228 struct dbc_port *port = tty->driver_data;
239 static void dbc_tty_flush_chars(struct tty_struct *tty)
241 struct dbc_port *port = tty->driver_data;
249 static unsigned int dbc_tty_write_room(struct tty_struct *tty)
251 struct dbc_port *port = tty->driver_data;
262 static unsigned int dbc_tty_chars_in_buffer(struct tty_struct *tty)
264 struct dbc_port *port = tty->driver_data;
275 static void dbc_tty_unthrottle(struct tty_struct *tty)
277 struct dbc_port *port = tty->driver_data;
300 struct tty_struct *tty;
308 tty = port->port.tty;
312 if (tty && tty_throttled(tty))
355 if (!list_empty(queue) && tty) {
356 if (!tty_throttled(tty)) {
370 static int dbc_port_activate(struct tty_port *_port, struct tty_struct *tty)
462 dev_err(dbc->dev, "can't register tty port, err %d\n", ret);
564 pr_err("Can't register dbc tty driver\n");