Lines Matching refs:membase

354 		return readl(port->membase + off);  in lpuart32_read()
356 return ioread32be(port->membase + off); in lpuart32_read()
367 writel(val, port->membase + off); in lpuart32_write()
370 iowrite32be(val, port->membase + off); in lpuart32_write()
412 temp = readb(port->membase + UARTCR2); in lpuart_stop_tx()
414 writeb(temp, port->membase + UARTCR2); in lpuart_stop_tx()
430 temp = readb(port->membase + UARTCR2); in lpuart_stop_rx()
431 writeb(temp & ~UARTCR2_RE, port->membase + UARTCR2); in lpuart_stop_rx()
593 val = readb(sport->port.membase + UARTCFIFO); in lpuart_flush_buffer()
595 writeb(val, sport->port.membase + UARTCFIFO); in lpuart_flush_buffer()
602 while (!(readb(port->membase + offset) & bit)) in lpuart_wait_bit_set()
626 writeb(0, sport->port.membase + UARTCR2); in lpuart_poll_init()
628 temp = readb(sport->port.membase + UARTPFIFO); in lpuart_poll_init()
631 sport->port.membase + UARTPFIFO); in lpuart_poll_init()
635 sport->port.membase + UARTCFIFO); in lpuart_poll_init()
638 if (readb(sport->port.membase + UARTSR1) & UARTSR1_RDRF) { in lpuart_poll_init()
639 readb(sport->port.membase + UARTDR); in lpuart_poll_init()
640 writeb(UARTSFIFO_RXUF, sport->port.membase + UARTSFIFO); in lpuart_poll_init()
643 writeb(0, sport->port.membase + UARTTWFIFO); in lpuart_poll_init()
644 writeb(1, sport->port.membase + UARTRWFIFO); in lpuart_poll_init()
647 writeb(UARTCR2_RE | UARTCR2_TE, sport->port.membase + UARTCR2); in lpuart_poll_init()
657 writeb(c, port->membase + UARTDR); in lpuart_poll_put_char()
662 if (!(readb(port->membase + UARTSR1) & UARTSR1_RDRF)) in lpuart_poll_get_char()
665 return readb(port->membase + UARTDR); in lpuart_poll_get_char()
722 writeb(sport->port.x_char, sport->port.membase + UARTDR); in lpuart_transmit_buffer()
734 (readb(sport->port.membase + UARTTCFIFO) < sport->txfifo_size)) { in lpuart_transmit_buffer()
735 writeb(xmit->buf[xmit->tail], sport->port.membase + UARTDR); in lpuart_transmit_buffer()
789 temp = readb(port->membase + UARTCR2); in lpuart_start_tx()
790 writeb(temp | UARTCR2_TIE, port->membase + UARTCR2); in lpuart_start_tx()
796 if (readb(port->membase + UARTSR1) & UARTSR1_TDRE) in lpuart_start_tx()
823 unsigned char sr1 = readb(port->membase + UARTSR1); in lpuart_tx_empty()
824 unsigned char sfifo = readb(port->membase + UARTSFIFO); in lpuart_tx_empty()
866 while (!(readb(sport->port.membase + UARTSFIFO) & UARTSFIFO_RXEMPT)) { in lpuart_rxint()
873 sr = readb(sport->port.membase + UARTSR1); in lpuart_rxint()
874 rx = readb(sport->port.membase + UARTDR); in lpuart_rxint()
919 writeb(UARTCFIFO_RXFLUSH, sport->port.membase + UARTCFIFO); in lpuart_rxint()
920 writeb(UARTSFIFO_RXOF, sport->port.membase + UARTSFIFO); in lpuart_rxint()
1019 sts = readb(sport->port.membase + UARTSR1); in lpuart_int()
1023 readb(sport->port.membase + UARTDR); in lpuart_int()
1026 writeb(UARTCFIFO_RXFLUSH, sport->port.membase + UARTCFIFO); in lpuart_int()
1123 unsigned char sr = readb(sport->port.membase + UARTSR1); in lpuart_copy_rx_to_tty()
1129 cr2 = readb(sport->port.membase + UARTCR2); in lpuart_copy_rx_to_tty()
1131 writeb(cr2, sport->port.membase + UARTCR2); in lpuart_copy_rx_to_tty()
1134 readb(sport->port.membase + UARTDR); in lpuart_copy_rx_to_tty()
1149 if (readb(sport->port.membase + UARTSFIFO) & in lpuart_copy_rx_to_tty()
1152 sport->port.membase + UARTSFIFO); in lpuart_copy_rx_to_tty()
1154 sport->port.membase + UARTCFIFO); in lpuart_copy_rx_to_tty()
1158 writeb(cr2, sport->port.membase + UARTCR2); in lpuart_copy_rx_to_tty()
1323 writeb(readb(sport->port.membase + UARTCR5) | UARTCR5_RDMAS, in lpuart_start_rx_dma()
1324 sport->port.membase + UARTCR5); in lpuart_start_rx_dma()
1351 u8 modem = readb(sport->port.membase + UARTMODEM) & in lpuart_config_rs485()
1353 writeb(modem, sport->port.membase + UARTMODEM); in lpuart_config_rs485()
1371 writeb(modem, sport->port.membase + UARTMODEM); in lpuart_config_rs485()
1410 reg = readb(port->membase + UARTCR1); in lpuart_get_mctrl()
1433 reg = readb(port->membase + UARTCR1); in lpuart_set_mctrl()
1440 writeb(reg, port->membase + UARTCR1); in lpuart_set_mctrl()
1461 temp = readb(port->membase + UARTCR2) & ~UARTCR2_SBK; in lpuart_break_ctl()
1466 writeb(temp, port->membase + UARTCR2); in lpuart_break_ctl()
1486 cr2 = readb(sport->port.membase + UARTCR2); in lpuart_setup_watermark()
1490 writeb(cr2, sport->port.membase + UARTCR2); in lpuart_setup_watermark()
1492 val = readb(sport->port.membase + UARTPFIFO); in lpuart_setup_watermark()
1494 sport->port.membase + UARTPFIFO); in lpuart_setup_watermark()
1498 sport->port.membase + UARTCFIFO); in lpuart_setup_watermark()
1501 if (readb(sport->port.membase + UARTSR1) & UARTSR1_RDRF) { in lpuart_setup_watermark()
1502 readb(sport->port.membase + UARTDR); in lpuart_setup_watermark()
1503 writeb(UARTSFIFO_RXUF, sport->port.membase + UARTSFIFO); in lpuart_setup_watermark()
1506 writeb(0, sport->port.membase + UARTTWFIFO); in lpuart_setup_watermark()
1507 writeb(1, sport->port.membase + UARTRWFIFO); in lpuart_setup_watermark()
1510 writeb(cr2_saved, sport->port.membase + UARTCR2); in lpuart_setup_watermark()
1519 cr2 = readb(sport->port.membase + UARTCR2); in lpuart_setup_watermark_enable()
1521 writeb(cr2, sport->port.membase + UARTCR2); in lpuart_setup_watermark_enable()
1608 writeb(readb(sport->port.membase + UARTCR5) | in lpuart_tx_dma_startup()
1609 UARTCR5_TDMAS, sport->port.membase + UARTCR5); in lpuart_tx_dma_startup()
1642 cr3 = readb(sport->port.membase + UARTCR3); in lpuart_rx_dma_startup()
1644 writeb(cr3, sport->port.membase + UARTCR3); in lpuart_rx_dma_startup()
1660 temp = readb(sport->port.membase + UARTPFIFO); in lpuart_startup()
1775 temp = readb(port->membase + UARTCR2); in lpuart_shutdown()
1778 writeb(temp, port->membase + UARTCR2); in lpuart_shutdown()
1816 cr1 = old_cr1 = readb(sport->port.membase + UARTCR1); in lpuart_set_termios()
1817 old_cr2 = readb(sport->port.membase + UARTCR2); in lpuart_set_termios()
1818 cr3 = readb(sport->port.membase + UARTCR3); in lpuart_set_termios()
1819 cr4 = readb(sport->port.membase + UARTCR4); in lpuart_set_termios()
1820 bdh = readb(sport->port.membase + UARTBDH); in lpuart_set_termios()
1821 modem = readb(sport->port.membase + UARTMODEM); in lpuart_set_termios()
1932 sport->port.membase + UARTCR2); in lpuart_set_termios()
1940 writeb(cr4 | brfa, sport->port.membase + UARTCR4); in lpuart_set_termios()
1941 writeb(bdh, sport->port.membase + UARTBDH); in lpuart_set_termios()
1942 writeb(sbr & 0xFF, sport->port.membase + UARTBDL); in lpuart_set_termios()
1943 writeb(cr3, sport->port.membase + UARTCR3); in lpuart_set_termios()
1944 writeb(cr1, sport->port.membase + UARTCR1); in lpuart_set_termios()
1945 writeb(modem, sport->port.membase + UARTMODEM); in lpuart_set_termios()
1948 writeb(old_cr2, sport->port.membase + UARTCR2); in lpuart_set_termios()
2286 writeb(ch, port->membase + UARTDR); in lpuart_console_putchar()
2309 cr2 = old_cr2 = readb(sport->port.membase + UARTCR2); in lpuart_console_write()
2312 writeb(cr2, sport->port.membase + UARTCR2); in lpuart_console_write()
2319 writeb(old_cr2, sport->port.membase + UARTCR2); in lpuart_console_write()
2366 cr = readb(sport->port.membase + UARTCR2); in lpuart_console_get_options()
2373 cr = readb(sport->port.membase + UARTCR1); in lpuart_console_get_options()
2388 bdh = readb(sport->port.membase + UARTBDH); in lpuart_console_get_options()
2390 bdl = readb(sport->port.membase + UARTBDL); in lpuart_console_get_options()
2394 brfa = readb(sport->port.membase + UARTCR4); in lpuart_console_get_options()
2528 if (!device->port.membase) in lpuart_early_console_setup()
2538 if (!device->port.membase) in lpuart32_early_console_setup()
2553 if (!device->port.membase) in ls1028a_early_console_setup()
2575 if (!device->port.membase) in lpuart32_imx_early_console_setup()
2579 device->port.membase += IMX_REG_OFF; in lpuart32_imx_early_console_setup()
2644 global_addr = port->membase + UART_GLOBAL - IMX_REG_OFF; in lpuart_global_reset()
2675 sport->port.membase = devm_ioremap_resource(&pdev->dev, res); in lpuart_probe()
2676 if (IS_ERR(sport->port.membase)) in lpuart_probe()
2677 return PTR_ERR(sport->port.membase); in lpuart_probe()
2679 sport->port.membase += sdata->reg_off; in lpuart_probe()
2805 temp = readb(sport->port.membase + UARTCR2); in lpuart_suspend()
2807 writeb(temp, sport->port.membase + UARTCR2); in lpuart_suspend()
2834 writeb(readb(sport->port.membase + UARTCR5) & in lpuart_suspend()
2835 ~UARTCR5_RDMAS, sport->port.membase + UARTCR5); in lpuart_suspend()