Lines Matching refs:base
44 void __iomem *base; member
60 void __iomem *base = qtty->base; in goldfish_tty_do_write() local
62 gf_write64((u64)buf, base + GOLDFISH_TTY_DATA_PTR, in goldfish_tty_do_write()
63 base + GOLDFISH_TTY_DATA_PTR_HIGH); in goldfish_tty_do_write()
64 writel(count, base + GOLDFISH_TTY_DATA_LEN); in goldfish_tty_do_write()
65 writel(GOLDFISH_TTY_CMD_WRITE_BUFFER, base + GOLDFISH_TTY_CMD); in goldfish_tty_do_write()
73 void __iomem *base = qtty->base; in goldfish_tty_interrupt() local
78 count = readl(base + GOLDFISH_TTY_BYTES_READY); in goldfish_tty_interrupt()
84 gf_write64((u64)buf, base + GOLDFISH_TTY_DATA_PTR, in goldfish_tty_interrupt()
85 base + GOLDFISH_TTY_DATA_PTR_HIGH); in goldfish_tty_interrupt()
86 writel(count, base + GOLDFISH_TTY_DATA_LEN); in goldfish_tty_interrupt()
87 writel(GOLDFISH_TTY_CMD_READ_BUFFER, base + GOLDFISH_TTY_CMD); in goldfish_tty_interrupt()
97 writel(GOLDFISH_TTY_CMD_INT_ENABLE, qtty->base + GOLDFISH_TTY_CMD); in goldfish_tty_activate()
105 writel(GOLDFISH_TTY_CMD_INT_DISABLE, qtty->base + GOLDFISH_TTY_CMD); in goldfish_tty_shutdown()
139 void __iomem *base = qtty->base; in goldfish_tty_chars_in_buffer() local
140 return readl(base + GOLDFISH_TTY_BYTES_READY); in goldfish_tty_chars_in_buffer()
160 if (!goldfish_ttys[co->index].base) in goldfish_tty_console_setup()
234 void __iomem *base; in goldfish_tty_probe() local
241 base = ioremap(r->start, 0x1000); in goldfish_tty_probe()
242 if (base == NULL) in goldfish_tty_probe()
266 qtty->base = base; in goldfish_tty_probe()
269 writel(GOLDFISH_TTY_CMD_INT_DISABLE, base + GOLDFISH_TTY_CMD); in goldfish_tty_probe()
304 iounmap(base); in goldfish_tty_probe()
317 iounmap(qtty->base); in goldfish_tty_remove()
318 qtty->base = NULL; in goldfish_tty_remove()