Lines Matching refs:membase
147 ier = readl(port->membase + LINIER); in linflex_stop_tx()
149 writel(ier, port->membase + LINIER); in linflex_stop_tx()
156 ier = readl(port->membase + LINIER); in linflex_stop_rx()
157 writel(ier & ~LINFLEXD_LINIER_DRIE, port->membase + LINIER); in linflex_stop_rx()
164 writeb(c, sport->membase + BDRL); in linflex_put_char()
167 while (((status = readl(sport->membase + UARTSR)) & in linflex_put_char()
172 writel(status | LINFLEXD_UARTSR_DTFTFF, sport->membase + UARTSR); in linflex_put_char()
196 ier = readl(port->membase + LINIER); in linflex_start_tx()
197 writel(ier | LINFLEXD_LINIER_DTIE, port->membase + LINIER); in linflex_start_tx()
235 status = readl(sport->membase + UARTSR); in linflex_rxint()
237 rx = readb(sport->membase + BDRM); in linflex_rxint()
257 writel(status, sport->membase + UARTSR); in linflex_rxint()
258 status = readl(sport->membase + UARTSR); in linflex_rxint()
281 status = readl(sport->membase + UARTSR); in linflex_int()
296 status = readl(port->membase + UARTSR) & LINFLEXD_UARTSR_DTFTFF; in linflex_tx_empty()
319 ier = readl(sport->membase + LINIER); in linflex_setup_watermark()
321 writel(ier, sport->membase + LINIER); in linflex_setup_watermark()
323 cr = readl(sport->membase + UARTCR); in linflex_setup_watermark()
325 writel(cr, sport->membase + UARTCR); in linflex_setup_watermark()
332 writel(cr1, sport->membase + LINCR1); in linflex_setup_watermark()
335 while ((readl(sport->membase + LINSR) in linflex_setup_watermark()
349 writel(LINFLEXD_UARTCR_UART, sport->membase + UARTCR); in linflex_setup_watermark()
354 writel(cr, sport->membase + UARTCR); in linflex_setup_watermark()
358 writel(cr1, sport->membase + LINCR1); in linflex_setup_watermark()
360 ier = readl(sport->membase + LINIER); in linflex_setup_watermark()
364 writel(ier, sport->membase + LINIER); in linflex_setup_watermark()
392 ier = readl(port->membase + LINIER); in linflex_shutdown()
394 writel(ier, port->membase + LINIER); in linflex_shutdown()
409 cr = readl(port->membase + UARTCR); in linflex_set_termios()
413 cr1 = readl(port->membase + LINCR1); in linflex_set_termios()
415 writel(cr1, port->membase + LINCR1); in linflex_set_termios()
418 while ((readl(port->membase + LINSR) in linflex_set_termios()
504 writel(cr, port->membase + UARTCR); in linflex_set_termios()
508 writel(cr1, port->membase + LINCR1); in linflex_set_termios()
559 cr = readl(port->membase + UARTCR); in linflex_console_putchar()
561 writeb(ch, port->membase + BDRL); in linflex_console_putchar()
564 while ((readl(port->membase + UARTSR) & in linflex_console_putchar()
569 while (readl(port->membase + UARTSR) & in linflex_console_putchar()
574 writel((readl(port->membase + UARTSR) | in linflex_console_putchar()
576 port->membase + UARTSR); in linflex_console_putchar()
627 ier = readl(sport->membase + LINIER); in linflex_string_write()
630 cr = readl(sport->membase + UARTCR); in linflex_string_write()
632 writel(cr, sport->membase + UARTCR); in linflex_string_write()
636 writel(ier, sport->membase + LINIER); in linflex_string_write()
668 cr = readl(sport->membase + UARTCR); in linflex_console_get_options()
781 if (!device->port.membase) in linflex_early_console_setup()
830 sport->membase = devm_platform_get_and_ioremap_resource(pdev, 0, &res); in linflex_probe()
831 if (IS_ERR(sport->membase)) in linflex_probe()
832 return PTR_ERR(sport->membase); in linflex_probe()