Lines Matching refs:membase

144 	u32 fstat = __raw_readl(port->membase + LTQ_ASC_FSTAT);  in lqasc_tx_ready()
164 __raw_writel(ASCWHBSTATE_CLRREN, port->membase + LTQ_ASC_WHBSTATE); in lqasc_stop_rx()
173 fifocnt = __raw_readl(port->membase + LTQ_ASC_FSTAT) & in lqasc_rx_chars()
177 ch = readb(port->membase + LTQ_ASC_RBUF); in lqasc_rx_chars()
178 rsr = (__raw_readl(port->membase + LTQ_ASC_STATE) in lqasc_rx_chars()
191 port->membase + LTQ_ASC_WHBSTATE); in lqasc_rx_chars()
195 port->membase + LTQ_ASC_WHBSTATE); in lqasc_rx_chars()
200 port->membase + LTQ_ASC_WHBSTATE); in lqasc_rx_chars()
240 writeb(port->x_char, port->membase + LTQ_ASC_TBUF); in lqasc_tx_chars()
250 port->membase + LTQ_ASC_TBUF); in lqasc_tx_chars()
267 __raw_writel(ASC_IRNCR_TIR, port->membase + LTQ_ASC_IRNCR); in lqasc_tx_int()
283 ASCWHBSTATE_CLRROE, port->membase + LTQ_ASC_WHBSTATE); in lqasc_err_int()
296 __raw_writel(ASC_IRNCR_RIR, port->membase + LTQ_ASC_IRNCR); in lqasc_rx_int()
310 stat = readl(port->membase + LTQ_ASC_IRNCR); in lqasc_irq()
331 status = __raw_readl(port->membase + LTQ_ASC_FSTAT) & in lqasc_tx_empty()
365 port->membase + LTQ_ASC_CLC); in lqasc_startup()
367 __raw_writel(0, port->membase + LTQ_ASC_PISEL); in lqasc_startup()
371 port->membase + LTQ_ASC_TXFCON); in lqasc_startup()
375 port->membase + LTQ_ASC_RXFCON); in lqasc_startup()
381 ASCCON_ROEN, port->membase + LTQ_ASC_CON); in lqasc_startup()
390 port->membase + LTQ_ASC_IRNREN); in lqasc_startup()
403 __raw_writel(0, port->membase + LTQ_ASC_CON); in lqasc_shutdown()
405 port->membase + LTQ_ASC_RXFCON); in lqasc_shutdown()
407 port->membase + LTQ_ASC_TXFCON); in lqasc_shutdown()
480 asc_update_bits(0, con, port->membase + LTQ_ASC_CON); in lqasc_set_termios()
488 asc_update_bits(ASCCON_R, 0, port->membase + LTQ_ASC_CON); in lqasc_set_termios()
491 asc_update_bits(ASCCON_FDE, 0, port->membase + LTQ_ASC_CON); in lqasc_set_termios()
494 asc_update_bits(ASCCON_BRS, 0, port->membase + LTQ_ASC_CON); in lqasc_set_termios()
497 __raw_writel(divisor, port->membase + LTQ_ASC_BG); in lqasc_set_termios()
500 asc_update_bits(0, ASCCON_R, port->membase + LTQ_ASC_CON); in lqasc_set_termios()
503 __raw_writel(ASCWHBSTATE_SETREN, port->membase + LTQ_ASC_WHBSTATE); in lqasc_set_termios()
529 devm_iounmap(&pdev->dev, port->membase); in lqasc_release_port()
530 port->membase = NULL; in lqasc_release_port()
556 port->membase = devm_ioremap(&pdev->dev, in lqasc_request_port()
558 if (port->membase == NULL) in lqasc_request_port()
609 if (!port->membase) in lqasc_console_putchar()
615 writeb(ch, port->membase + LTQ_ASC_TBUF); in lqasc_console_putchar()
702 if (!device->port.membase) in lqasc_serial_early_console_setup()