Lines Matching refs:membase

143 	u32 fstat = __raw_readl(port->membase + LTQ_ASC_FSTAT);  in lqasc_tx_ready()
158 writeb(ch, port->membase + LTQ_ASC_TBUF)); in lqasc_start_tx()
166 __raw_writel(ASCWHBSTATE_CLRREN, port->membase + LTQ_ASC_WHBSTATE); in lqasc_stop_rx()
175 fifocnt = __raw_readl(port->membase + LTQ_ASC_FSTAT) & in lqasc_rx_chars()
179 ch = readb(port->membase + LTQ_ASC_RBUF); in lqasc_rx_chars()
180 rsr = (__raw_readl(port->membase + LTQ_ASC_STATE) in lqasc_rx_chars()
193 port->membase + LTQ_ASC_WHBSTATE); in lqasc_rx_chars()
197 port->membase + LTQ_ASC_WHBSTATE); in lqasc_rx_chars()
202 port->membase + LTQ_ASC_WHBSTATE); in lqasc_rx_chars()
239 __raw_writel(ASC_IRNCR_TIR, port->membase + LTQ_ASC_IRNCR); in lqasc_tx_int()
255 ASCWHBSTATE_CLRROE, port->membase + LTQ_ASC_WHBSTATE); in lqasc_err_int()
268 __raw_writel(ASC_IRNCR_RIR, port->membase + LTQ_ASC_IRNCR); in lqasc_rx_int()
282 stat = readl(port->membase + LTQ_ASC_IRNCR); in lqasc_irq()
303 status = __raw_readl(port->membase + LTQ_ASC_FSTAT) & in lqasc_tx_empty()
337 port->membase + LTQ_ASC_CLC); in lqasc_startup()
339 __raw_writel(0, port->membase + LTQ_ASC_PISEL); in lqasc_startup()
343 port->membase + LTQ_ASC_TXFCON); in lqasc_startup()
347 port->membase + LTQ_ASC_RXFCON); in lqasc_startup()
353 ASCCON_ROEN, port->membase + LTQ_ASC_CON); in lqasc_startup()
362 port->membase + LTQ_ASC_IRNREN); in lqasc_startup()
375 __raw_writel(0, port->membase + LTQ_ASC_CON); in lqasc_shutdown()
377 port->membase + LTQ_ASC_RXFCON); in lqasc_shutdown()
379 port->membase + LTQ_ASC_TXFCON); in lqasc_shutdown()
452 asc_update_bits(0, con, port->membase + LTQ_ASC_CON); in lqasc_set_termios()
460 asc_update_bits(ASCCON_R, 0, port->membase + LTQ_ASC_CON); in lqasc_set_termios()
463 asc_update_bits(ASCCON_FDE, 0, port->membase + LTQ_ASC_CON); in lqasc_set_termios()
466 asc_update_bits(ASCCON_BRS, 0, port->membase + LTQ_ASC_CON); in lqasc_set_termios()
469 __raw_writel(divisor, port->membase + LTQ_ASC_BG); in lqasc_set_termios()
472 asc_update_bits(0, ASCCON_R, port->membase + LTQ_ASC_CON); in lqasc_set_termios()
475 __raw_writel(ASCWHBSTATE_SETREN, port->membase + LTQ_ASC_WHBSTATE); in lqasc_set_termios()
501 devm_iounmap(&pdev->dev, port->membase); in lqasc_release_port()
502 port->membase = NULL; in lqasc_release_port()
528 port->membase = devm_ioremap(&pdev->dev, in lqasc_request_port()
530 if (port->membase == NULL) in lqasc_request_port()
581 if (!port->membase) in lqasc_console_putchar()
587 writeb(ch, port->membase + LTQ_ASC_TBUF); in lqasc_console_putchar()
674 if (!device->port.membase) in lqasc_serial_early_console_setup()