Lines Matching refs:qtty

59 	struct goldfish_tty *qtty = &goldfish_ttys[line];  in goldfish_tty_do_write()  local
60 void __iomem *base = qtty->base; in goldfish_tty_do_write()
61 spin_lock_irqsave(&qtty->lock, irq_flags); in goldfish_tty_do_write()
66 spin_unlock_irqrestore(&qtty->lock, irq_flags); in goldfish_tty_do_write()
72 struct goldfish_tty *qtty = &goldfish_ttys[pdev->id]; in goldfish_tty_interrupt() local
73 void __iomem *base = qtty->base; in goldfish_tty_interrupt()
82 count = tty_prepare_flip_string(&qtty->port, &buf, count); in goldfish_tty_interrupt()
83 spin_lock_irqsave(&qtty->lock, irq_flags); in goldfish_tty_interrupt()
88 spin_unlock_irqrestore(&qtty->lock, irq_flags); in goldfish_tty_interrupt()
89 tty_schedule_flip(&qtty->port); in goldfish_tty_interrupt()
95 struct goldfish_tty *qtty = container_of(port, struct goldfish_tty, in goldfish_tty_activate() local
97 writel(GOLDFISH_TTY_CMD_INT_ENABLE, qtty->base + GOLDFISH_TTY_CMD); in goldfish_tty_activate()
103 struct goldfish_tty *qtty = container_of(port, struct goldfish_tty, in goldfish_tty_shutdown() local
105 writel(GOLDFISH_TTY_CMD_INT_DISABLE, qtty->base + GOLDFISH_TTY_CMD); in goldfish_tty_shutdown()
110 struct goldfish_tty *qtty = &goldfish_ttys[tty->index]; in goldfish_tty_open() local
111 return tty_port_open(&qtty->port, tty, filp); in goldfish_tty_open()
138 struct goldfish_tty *qtty = &goldfish_ttys[tty->index]; in goldfish_tty_chars_in_buffer() local
139 void __iomem *base = qtty->base; in goldfish_tty_chars_in_buffer()
230 struct goldfish_tty *qtty; in goldfish_tty_probe() local
262 qtty = &goldfish_ttys[pdev->id]; in goldfish_tty_probe()
263 spin_lock_init(&qtty->lock); in goldfish_tty_probe()
264 tty_port_init(&qtty->port); in goldfish_tty_probe()
265 qtty->port.ops = &goldfish_port_ops; in goldfish_tty_probe()
266 qtty->base = base; in goldfish_tty_probe()
267 qtty->irq = irq; in goldfish_tty_probe()
277 ttydev = tty_port_register_device(&qtty->port, goldfish_tty_driver, in goldfish_tty_probe()
284 strcpy(qtty->console.name, "ttyGF"); in goldfish_tty_probe()
285 qtty->console.write = goldfish_tty_console_write; in goldfish_tty_probe()
286 qtty->console.device = goldfish_tty_console_device; in goldfish_tty_probe()
287 qtty->console.setup = goldfish_tty_console_setup; in goldfish_tty_probe()
288 qtty->console.flags = CON_PRINTBUFFER; in goldfish_tty_probe()
289 qtty->console.index = pdev->id; in goldfish_tty_probe()
290 register_console(&qtty->console); in goldfish_tty_probe()
310 struct goldfish_tty *qtty; in goldfish_tty_remove() local
314 qtty = &goldfish_ttys[pdev->id]; in goldfish_tty_remove()
315 unregister_console(&qtty->console); in goldfish_tty_remove()
317 iounmap(qtty->base); in goldfish_tty_remove()
318 qtty->base = NULL; in goldfish_tty_remove()
319 free_irq(qtty->irq, pdev); in goldfish_tty_remove()