qtty 53 drivers/tty/goldfish.c static void do_rw_io(struct goldfish_tty *qtty, qtty 59 drivers/tty/goldfish.c void __iomem *base = qtty->base; qtty 61 drivers/tty/goldfish.c spin_lock_irqsave(&qtty->lock, irq_flags); qtty 73 drivers/tty/goldfish.c spin_unlock_irqrestore(&qtty->lock, irq_flags); qtty 76 drivers/tty/goldfish.c static void goldfish_tty_rw(struct goldfish_tty *qtty, qtty 85 drivers/tty/goldfish.c if (qtty->version > 0) { qtty 102 drivers/tty/goldfish.c dma_handle = dma_map_single(qtty->dev, (void *)addr, qtty 105 drivers/tty/goldfish.c if (dma_mapping_error(qtty->dev, dma_handle)) { qtty 106 drivers/tty/goldfish.c dev_err(qtty->dev, "tty: DMA mapping error.\n"); qtty 109 drivers/tty/goldfish.c do_rw_io(qtty, dma_handle, avail, is_write); qtty 115 drivers/tty/goldfish.c dma_unmap_single(qtty->dev, dma_handle, avail, dma_dir); qtty 124 drivers/tty/goldfish.c do_rw_io(qtty, addr, count, is_write); qtty 131 drivers/tty/goldfish.c struct goldfish_tty *qtty = &goldfish_ttys[line]; qtty 134 drivers/tty/goldfish.c goldfish_tty_rw(qtty, address, count, 1); qtty 139 drivers/tty/goldfish.c struct goldfish_tty *qtty = dev_id; qtty 140 drivers/tty/goldfish.c void __iomem *base = qtty->base; qtty 149 drivers/tty/goldfish.c count = tty_prepare_flip_string(&qtty->port, &buf, count); qtty 152 drivers/tty/goldfish.c goldfish_tty_rw(qtty, address, count, 0); qtty 154 drivers/tty/goldfish.c tty_schedule_flip(&qtty->port); qtty 160 drivers/tty/goldfish.c struct goldfish_tty *qtty = container_of(port, struct goldfish_tty, qtty 162 drivers/tty/goldfish.c writel(GOLDFISH_TTY_CMD_INT_ENABLE, qtty->base + GOLDFISH_TTY_REG_CMD); qtty 168 drivers/tty/goldfish.c struct goldfish_tty *qtty = container_of(port, struct goldfish_tty, qtty 170 drivers/tty/goldfish.c writel(GOLDFISH_TTY_CMD_INT_DISABLE, qtty->base + GOLDFISH_TTY_REG_CMD); qtty 175 drivers/tty/goldfish.c struct goldfish_tty *qtty = &goldfish_ttys[tty->index]; qtty 176 drivers/tty/goldfish.c return tty_port_open(&qtty->port, tty, filp); qtty 203 drivers/tty/goldfish.c struct goldfish_tty *qtty = &goldfish_ttys[tty->index]; qtty 204 drivers/tty/goldfish.c void __iomem *base = qtty->base; qtty 296 drivers/tty/goldfish.c struct goldfish_tty *qtty; qtty 345 drivers/tty/goldfish.c qtty = &goldfish_ttys[line]; qtty 346 drivers/tty/goldfish.c spin_lock_init(&qtty->lock); qtty 347 drivers/tty/goldfish.c tty_port_init(&qtty->port); qtty 348 drivers/tty/goldfish.c qtty->port.ops = &goldfish_port_ops; qtty 349 drivers/tty/goldfish.c qtty->base = base; qtty 350 drivers/tty/goldfish.c qtty->irq = irq; qtty 351 drivers/tty/goldfish.c qtty->dev = &pdev->dev; qtty 360 drivers/tty/goldfish.c qtty->version = readl(base + GOLDFISH_TTY_REG_VERSION); qtty 366 drivers/tty/goldfish.c if (qtty->version > 0) { qtty 382 drivers/tty/goldfish.c "goldfish_tty", qtty); qtty 388 drivers/tty/goldfish.c ttydev = tty_port_register_device(&qtty->port, goldfish_tty_driver, qtty 395 drivers/tty/goldfish.c strcpy(qtty->console.name, "ttyGF"); qtty 396 drivers/tty/goldfish.c qtty->console.write = goldfish_tty_console_write; qtty 397 drivers/tty/goldfish.c qtty->console.device = goldfish_tty_console_device; qtty 398 drivers/tty/goldfish.c qtty->console.setup = goldfish_tty_console_setup; qtty 399 drivers/tty/goldfish.c qtty->console.flags = CON_PRINTBUFFER; qtty 400 drivers/tty/goldfish.c qtty->console.index = line; qtty 401 drivers/tty/goldfish.c register_console(&qtty->console); qtty 402 drivers/tty/goldfish.c platform_set_drvdata(pdev, qtty); qtty 408 drivers/tty/goldfish.c free_irq(irq, qtty); qtty 422 drivers/tty/goldfish.c struct goldfish_tty *qtty = platform_get_drvdata(pdev); qtty 426 drivers/tty/goldfish.c unregister_console(&qtty->console); qtty 427 drivers/tty/goldfish.c tty_unregister_device(goldfish_tty_driver, qtty->console.index); qtty 428 drivers/tty/goldfish.c iounmap(qtty->base); qtty 429 drivers/tty/goldfish.c qtty->base = NULL; qtty 430 drivers/tty/goldfish.c free_irq(qtty->irq, pdev);