Lines Matching refs:membase
153 ltq_w32(ASCWHBSTATE_CLRREN, port->membase + LTQ_ASC_WHBSTATE); in lqasc_stop_rx()
162 fifocnt = ltq_r32(port->membase + LTQ_ASC_FSTAT) & ASCFSTAT_RXFFLMASK; in lqasc_rx_chars()
165 ch = ltq_r8(port->membase + LTQ_ASC_RBUF); in lqasc_rx_chars()
166 rsr = (ltq_r32(port->membase + LTQ_ASC_STATE) in lqasc_rx_chars()
179 port->membase + LTQ_ASC_WHBSTATE); in lqasc_rx_chars()
183 port->membase + LTQ_ASC_WHBSTATE); in lqasc_rx_chars()
188 port->membase + LTQ_ASC_WHBSTATE); in lqasc_rx_chars()
226 while (((ltq_r32(port->membase + LTQ_ASC_FSTAT) & in lqasc_tx_chars()
229 ltq_w8(port->x_char, port->membase + LTQ_ASC_TBUF); in lqasc_tx_chars()
239 port->membase + LTQ_ASC_TBUF); in lqasc_tx_chars()
254 ltq_w32(ASC_IRNCR_TIR, port->membase + LTQ_ASC_IRNCR); in lqasc_tx_int()
268 ASCWHBSTATE_CLRROE, port->membase + LTQ_ASC_WHBSTATE); in lqasc_err_int()
279 ltq_w32(ASC_IRNCR_RIR, port->membase + LTQ_ASC_IRNCR); in lqasc_rx_int()
289 status = ltq_r32(port->membase + LTQ_ASC_FSTAT) & ASCFSTAT_TXFFLMASK; in lqasc_tx_empty()
320 port->membase + LTQ_ASC_CLC); in lqasc_startup()
322 ltq_w32(0, port->membase + LTQ_ASC_PISEL); in lqasc_startup()
326 port->membase + LTQ_ASC_TXFCON); in lqasc_startup()
330 port->membase + LTQ_ASC_RXFCON); in lqasc_startup()
336 ASCCON_ROEN, port->membase + LTQ_ASC_CON); in lqasc_startup()
360 port->membase + LTQ_ASC_IRNREN); in lqasc_startup()
378 ltq_w32(0, port->membase + LTQ_ASC_CON); in lqasc_shutdown()
380 port->membase + LTQ_ASC_RXFCON); in lqasc_shutdown()
382 port->membase + LTQ_ASC_TXFCON); in lqasc_shutdown()
453 ltq_w32_mask(0, con, port->membase + LTQ_ASC_CON); in lqasc_set_termios()
461 ltq_w32_mask(ASCCON_R, 0, port->membase + LTQ_ASC_CON); in lqasc_set_termios()
464 ltq_w32_mask(ASCCON_FDE, 0, port->membase + LTQ_ASC_CON); in lqasc_set_termios()
467 ltq_w32_mask(ASCCON_BRS, 0, port->membase + LTQ_ASC_CON); in lqasc_set_termios()
470 ltq_w32(divisor, port->membase + LTQ_ASC_BG); in lqasc_set_termios()
473 ltq_w32_mask(0, ASCCON_R, port->membase + LTQ_ASC_CON); in lqasc_set_termios()
476 ltq_w32(ASCWHBSTATE_SETREN, port->membase + LTQ_ASC_WHBSTATE); in lqasc_set_termios()
502 devm_iounmap(&pdev->dev, port->membase); in lqasc_release_port()
503 port->membase = NULL; in lqasc_release_port()
529 port->membase = devm_ioremap_nocache(&pdev->dev, in lqasc_request_port()
531 if (port->membase == NULL) in lqasc_request_port()
583 if (!port->membase) in lqasc_console_putchar()
587 fifofree = (ltq_r32(port->membase + LTQ_ASC_FSTAT) in lqasc_console_putchar()
590 ltq_w8(ch, port->membase + LTQ_ASC_TBUF); in lqasc_console_putchar()