Lines Matching refs:membase
159 __raw_writel(ASCWHBSTATE_CLRREN, port->membase + LTQ_ASC_WHBSTATE); in lqasc_stop_rx()
168 fifocnt = __raw_readl(port->membase + LTQ_ASC_FSTAT) & in lqasc_rx_chars()
172 ch = readb(port->membase + LTQ_ASC_RBUF); in lqasc_rx_chars()
173 rsr = (__raw_readl(port->membase + LTQ_ASC_STATE) in lqasc_rx_chars()
186 port->membase + LTQ_ASC_WHBSTATE); in lqasc_rx_chars()
190 port->membase + LTQ_ASC_WHBSTATE); in lqasc_rx_chars()
195 port->membase + LTQ_ASC_WHBSTATE); in lqasc_rx_chars()
233 while (((__raw_readl(port->membase + LTQ_ASC_FSTAT) & in lqasc_tx_chars()
236 writeb(port->x_char, port->membase + LTQ_ASC_TBUF); in lqasc_tx_chars()
246 port->membase + LTQ_ASC_TBUF); in lqasc_tx_chars()
263 __raw_writel(ASC_IRNCR_TIR, port->membase + LTQ_ASC_IRNCR); in lqasc_tx_int()
279 ASCWHBSTATE_CLRROE, port->membase + LTQ_ASC_WHBSTATE); in lqasc_err_int()
292 __raw_writel(ASC_IRNCR_RIR, port->membase + LTQ_ASC_IRNCR); in lqasc_rx_int()
306 stat = readl(port->membase + LTQ_ASC_IRNCR); in lqasc_irq()
327 status = __raw_readl(port->membase + LTQ_ASC_FSTAT) & in lqasc_tx_empty()
361 port->membase + LTQ_ASC_CLC); in lqasc_startup()
363 __raw_writel(0, port->membase + LTQ_ASC_PISEL); in lqasc_startup()
367 port->membase + LTQ_ASC_TXFCON); in lqasc_startup()
371 port->membase + LTQ_ASC_RXFCON); in lqasc_startup()
377 ASCCON_ROEN, port->membase + LTQ_ASC_CON); in lqasc_startup()
386 port->membase + LTQ_ASC_IRNREN); in lqasc_startup()
399 __raw_writel(0, port->membase + LTQ_ASC_CON); in lqasc_shutdown()
401 port->membase + LTQ_ASC_RXFCON); in lqasc_shutdown()
403 port->membase + LTQ_ASC_TXFCON); in lqasc_shutdown()
476 asc_update_bits(0, con, port->membase + LTQ_ASC_CON); in lqasc_set_termios()
484 asc_update_bits(ASCCON_R, 0, port->membase + LTQ_ASC_CON); in lqasc_set_termios()
487 asc_update_bits(ASCCON_FDE, 0, port->membase + LTQ_ASC_CON); in lqasc_set_termios()
490 asc_update_bits(ASCCON_BRS, 0, port->membase + LTQ_ASC_CON); in lqasc_set_termios()
493 __raw_writel(divisor, port->membase + LTQ_ASC_BG); in lqasc_set_termios()
496 asc_update_bits(0, ASCCON_R, port->membase + LTQ_ASC_CON); in lqasc_set_termios()
499 __raw_writel(ASCWHBSTATE_SETREN, port->membase + LTQ_ASC_WHBSTATE); in lqasc_set_termios()
525 devm_iounmap(&pdev->dev, port->membase); in lqasc_release_port()
526 port->membase = NULL; in lqasc_release_port()
552 port->membase = devm_ioremap(&pdev->dev, in lqasc_request_port()
554 if (port->membase == NULL) in lqasc_request_port()
607 if (!port->membase) in lqasc_console_putchar()
611 fifofree = (__raw_readl(port->membase + LTQ_ASC_FSTAT) in lqasc_console_putchar()
614 writeb(ch, port->membase + LTQ_ASC_TBUF); in lqasc_console_putchar()
701 if (!device->port.membase) in lqasc_serial_early_console_setup()