Lines Matching refs:tty

11 #include <linux/tty.h>
22 /* Goldfish tty register's offsets */
30 /* Goldfish tty commands */
102 dev_err(qtty->dev, "tty: DMA mapping error.\n");
150 static int goldfish_tty_activate(struct tty_port *port, struct tty_struct *tty)
165 static int goldfish_tty_open(struct tty_struct *tty, struct file *filp)
167 struct goldfish_tty *qtty = &goldfish_ttys[tty->index];
168 return tty_port_open(&qtty->port, tty, filp);
171 static void goldfish_tty_close(struct tty_struct *tty, struct file *filp)
173 tty_port_close(tty->port, tty, filp);
176 static void goldfish_tty_hangup(struct tty_struct *tty)
178 tty_port_hangup(tty->port);
181 static ssize_t goldfish_tty_write(struct tty_struct *tty, const u8 *buf,
184 goldfish_tty_do_write(tty->index, buf, count);
188 static unsigned int goldfish_tty_write_room(struct tty_struct *tty)
193 static unsigned int goldfish_tty_chars_in_buffer(struct tty_struct *tty)
195 struct goldfish_tty *qtty = &goldfish_ttys[tty->index];
239 struct tty_driver *tty;
248 tty = tty_alloc_driver(goldfish_tty_line_count,
251 if (IS_ERR(tty)) {
252 ret = PTR_ERR(tty);
255 tty->driver_name = "goldfish";
256 tty->name = "ttyGF";
257 tty->type = TTY_DRIVER_TYPE_SERIAL;
258 tty->subtype = SERIAL_TYPE_NORMAL;
259 tty->init_termios = tty_std_termios;
260 tty_set_operations(tty, &goldfish_tty_ops);
261 ret = tty_register_driver(tty);
265 goldfish_tty_driver = tty;
269 tty_driver_kref_put(tty);
322 pr_err("goldfish_tty: Reached maximum tty number of %d.\n",
452 OF_EARLYCON_DECLARE(early_gf_tty, "google,goldfish-tty", gf_earlycon_setup);
456 { .compatible = "google,goldfish-tty", },