Lines Matching refs:membase

232 	while ((readl(port->membase + CDNS_UART_SR) &  in cdns_uart_handle_rx()
235 rxbs_status = readl(port->membase + CDNS_UART_RXBS); in cdns_uart_handle_rx()
236 data = readl(port->membase + CDNS_UART_FIFO); in cdns_uart_handle_rx()
320 writel(CDNS_UART_IXR_TXEMPTY, port->membase + CDNS_UART_IDR); in cdns_uart_handle_tx()
326 !(readl(port->membase + CDNS_UART_SR) & CDNS_UART_SR_TXFULL)) { in cdns_uart_handle_tx()
328 writel(xmit->buf[xmit->tail], port->membase + CDNS_UART_FIFO); in cdns_uart_handle_tx()
354 isrstatus = readl(port->membase + CDNS_UART_ISR); in cdns_uart_isr()
355 writel(isrstatus, port->membase + CDNS_UART_ISR); in cdns_uart_isr()
369 !(readl(port->membase + CDNS_UART_CR) & CDNS_UART_CR_RX_DIS)) in cdns_uart_isr()
458 mreg = readl(port->membase + CDNS_UART_MR); in cdns_uart_set_baud_rate()
463 writel(mreg, port->membase + CDNS_UART_MR); in cdns_uart_set_baud_rate()
464 writel(cd, port->membase + CDNS_UART_BAUDGEN); in cdns_uart_set_baud_rate()
465 writel(bdiv, port->membase + CDNS_UART_BAUDDIV); in cdns_uart_set_baud_rate()
512 ctrl_reg = readl(port->membase + CDNS_UART_CR); in cdns_uart_clk_notifier_cb()
514 writel(ctrl_reg, port->membase + CDNS_UART_CR); in cdns_uart_clk_notifier_cb()
539 ctrl_reg = readl(port->membase + CDNS_UART_CR); in cdns_uart_clk_notifier_cb()
541 writel(ctrl_reg, port->membase + CDNS_UART_CR); in cdns_uart_clk_notifier_cb()
543 while (readl(port->membase + CDNS_UART_CR) & in cdns_uart_clk_notifier_cb()
552 writel(rx_timeout, port->membase + CDNS_UART_RXTOUT); in cdns_uart_clk_notifier_cb()
553 ctrl_reg = readl(port->membase + CDNS_UART_CR); in cdns_uart_clk_notifier_cb()
556 writel(ctrl_reg, port->membase + CDNS_UART_CR); in cdns_uart_clk_notifier_cb()
582 status = readl(port->membase + CDNS_UART_CR); in cdns_uart_start_tx()
585 writel(status, port->membase + CDNS_UART_CR); in cdns_uart_start_tx()
590 writel(CDNS_UART_IXR_TXEMPTY, port->membase + CDNS_UART_ISR); in cdns_uart_start_tx()
595 writel(CDNS_UART_IXR_TXEMPTY, port->membase + CDNS_UART_IER); in cdns_uart_start_tx()
606 regval = readl(port->membase + CDNS_UART_CR); in cdns_uart_stop_tx()
609 writel(regval, port->membase + CDNS_UART_CR); in cdns_uart_stop_tx()
621 writel(CDNS_UART_RX_IRQS, port->membase + CDNS_UART_IDR); in cdns_uart_stop_rx()
624 regval = readl(port->membase + CDNS_UART_CR); in cdns_uart_stop_rx()
626 writel(regval, port->membase + CDNS_UART_CR); in cdns_uart_stop_rx()
639 status = readl(port->membase + CDNS_UART_SR) & in cdns_uart_tx_empty()
657 status = readl(port->membase + CDNS_UART_CR); in cdns_uart_break_ctl()
661 port->membase + CDNS_UART_CR); in cdns_uart_break_ctl()
665 port->membase + CDNS_UART_CR); in cdns_uart_break_ctl()
689 ctrl_reg = readl(port->membase + CDNS_UART_CR); in cdns_uart_set_termios()
691 writel(ctrl_reg, port->membase + CDNS_UART_CR); in cdns_uart_set_termios()
710 ctrl_reg = readl(port->membase + CDNS_UART_CR); in cdns_uart_set_termios()
712 writel(ctrl_reg, port->membase + CDNS_UART_CR); in cdns_uart_set_termios()
714 while (readl(port->membase + CDNS_UART_CR) & in cdns_uart_set_termios()
722 ctrl_reg = readl(port->membase + CDNS_UART_CR); in cdns_uart_set_termios()
725 writel(ctrl_reg, port->membase + CDNS_UART_CR); in cdns_uart_set_termios()
727 writel(rx_timeout, port->membase + CDNS_UART_RXTOUT); in cdns_uart_set_termios()
747 mode_reg = readl(port->membase + CDNS_UART_MR); in cdns_uart_set_termios()
788 writel(cval, port->membase + CDNS_UART_MR); in cdns_uart_set_termios()
790 cval = readl(port->membase + CDNS_UART_MODEMCR); in cdns_uart_set_termios()
795 writel(cval, port->membase + CDNS_UART_MODEMCR); in cdns_uart_set_termios()
820 port->membase + CDNS_UART_CR); in cdns_uart_startup()
826 port->membase + CDNS_UART_CR); in cdns_uart_startup()
828 while (readl(port->membase + CDNS_UART_CR) & in cdns_uart_startup()
836 status = readl(port->membase + CDNS_UART_CR); in cdns_uart_startup()
839 writel(status, port->membase + CDNS_UART_CR); in cdns_uart_startup()
846 port->membase + CDNS_UART_MR); in cdns_uart_startup()
852 writel(rx_trigger_level, port->membase + CDNS_UART_RXWM); in cdns_uart_startup()
858 writel(rx_timeout, port->membase + CDNS_UART_RXTOUT); in cdns_uart_startup()
861 writel(readl(port->membase + CDNS_UART_ISR), in cdns_uart_startup()
862 port->membase + CDNS_UART_ISR); in cdns_uart_startup()
876 port->membase + CDNS_UART_IER); in cdns_uart_startup()
878 writel(CDNS_UART_RX_IRQS, port->membase + CDNS_UART_IER); in cdns_uart_startup()
895 status = readl(port->membase + CDNS_UART_IMR); in cdns_uart_shutdown()
896 writel(status, port->membase + CDNS_UART_IDR); in cdns_uart_shutdown()
897 writel(0xffffffff, port->membase + CDNS_UART_ISR); in cdns_uart_shutdown()
901 port->membase + CDNS_UART_CR); in cdns_uart_shutdown()
957 port->membase = ioremap(port->mapbase, CDNS_UART_REGISTER_SPACE); in cdns_uart_request_port()
958 if (!port->membase) { in cdns_uart_request_port()
976 iounmap(port->membase); in cdns_uart_release_port()
977 port->membase = NULL; in cdns_uart_release_port()
1006 val = readl(port->membase + CDNS_UART_MODEMSR); in cdns_uart_get_mctrl()
1028 val = readl(port->membase + CDNS_UART_MODEMCR); in cdns_uart_set_mctrl()
1029 mode_reg = readl(port->membase + CDNS_UART_MR); in cdns_uart_set_mctrl()
1043 writel(val, port->membase + CDNS_UART_MODEMCR); in cdns_uart_set_mctrl()
1044 writel(mode_reg, port->membase + CDNS_UART_MR); in cdns_uart_set_mctrl()
1056 if (readl(port->membase + CDNS_UART_SR) & CDNS_UART_SR_RXEMPTY) in cdns_uart_poll_get_char()
1059 c = (unsigned char) readl(port->membase + CDNS_UART_FIFO); in cdns_uart_poll_get_char()
1073 while (!(readl(port->membase + CDNS_UART_SR) & CDNS_UART_SR_TXEMPTY)) in cdns_uart_poll_put_char()
1077 writel(c, port->membase + CDNS_UART_FIFO); in cdns_uart_poll_put_char()
1080 while (!(readl(port->membase + CDNS_UART_SR) & CDNS_UART_SR_TXEMPTY)) in cdns_uart_poll_put_char()
1139 ctrl_reg = readl(port->membase + CDNS_UART_CR); in cdns_uart_console_putchar()
1152 ctrl_reg = readl(port->membase + CDNS_UART_SR); in cdns_uart_console_putchar()
1163 writel(ch, port->membase + CDNS_UART_FIFO); in cdns_uart_console_putchar()
1179 if (!port->membase) in cdns_early_console_setup()
1184 port->membase + CDNS_UART_CR); in cdns_early_console_setup()
1200 writel(mr, port->membase + CDNS_UART_MR); in cdns_early_console_setup()
1201 writel(cd, port->membase + CDNS_UART_BAUDGEN); in cdns_early_console_setup()
1202 writel(bdiv, port->membase + CDNS_UART_BAUDDIV); in cdns_early_console_setup()
1240 imr = readl(port->membase + CDNS_UART_IMR); in cdns_uart_console_write()
1241 writel(imr, port->membase + CDNS_UART_IDR); in cdns_uart_console_write()
1247 ctrl = readl(port->membase + CDNS_UART_CR); in cdns_uart_console_write()
1250 writel(ctrl, port->membase + CDNS_UART_CR); in cdns_uart_console_write()
1257 writel(imr, port->membase + CDNS_UART_IER); in cdns_uart_console_write()
1280 if (!port->membase) { in cdns_uart_console_setup()
1330 while (!(readl(port->membase + CDNS_UART_SR) & in cdns_uart_suspend()
1332 readl(port->membase + CDNS_UART_FIFO); in cdns_uart_suspend()
1334 writel(1, port->membase + CDNS_UART_RXWM); in cdns_uart_suspend()
1336 writel(CDNS_UART_IXR_TOUT, port->membase + CDNS_UART_IDR); in cdns_uart_suspend()
1378 ctrl_reg = readl(port->membase + CDNS_UART_CR); in cdns_uart_resume()
1380 writel(ctrl_reg, port->membase + CDNS_UART_CR); in cdns_uart_resume()
1381 while (readl(port->membase + CDNS_UART_CR) & in cdns_uart_resume()
1386 writel(rx_timeout, port->membase + CDNS_UART_RXTOUT); in cdns_uart_resume()
1388 ctrl_reg = readl(port->membase + CDNS_UART_CR); in cdns_uart_resume()
1391 writel(ctrl_reg, port->membase + CDNS_UART_CR); in cdns_uart_resume()
1399 writel(rx_trigger_level, port->membase + CDNS_UART_RXWM); in cdns_uart_resume()
1401 writel(CDNS_UART_IXR_TOUT, port->membase + CDNS_UART_IER); in cdns_uart_resume()