Lines Matching refs:membase

154 	ltq_w32(ASCWHBSTATE_CLRREN, port->membase + LTQ_ASC_WHBSTATE);  in lqasc_stop_rx()
163 fifocnt = ltq_r32(port->membase + LTQ_ASC_FSTAT) & ASCFSTAT_RXFFLMASK; in lqasc_rx_chars()
166 ch = ltq_r8(port->membase + LTQ_ASC_RBUF); in lqasc_rx_chars()
167 rsr = (ltq_r32(port->membase + LTQ_ASC_STATE) in lqasc_rx_chars()
180 port->membase + LTQ_ASC_WHBSTATE); in lqasc_rx_chars()
184 port->membase + LTQ_ASC_WHBSTATE); in lqasc_rx_chars()
189 port->membase + LTQ_ASC_WHBSTATE); in lqasc_rx_chars()
227 while (((ltq_r32(port->membase + LTQ_ASC_FSTAT) & in lqasc_tx_chars()
230 ltq_w8(port->x_char, port->membase + LTQ_ASC_TBUF); in lqasc_tx_chars()
240 port->membase + LTQ_ASC_TBUF); in lqasc_tx_chars()
255 ltq_w32(ASC_IRNCR_TIR, port->membase + LTQ_ASC_IRNCR); in lqasc_tx_int()
269 ASCWHBSTATE_CLRROE, port->membase + LTQ_ASC_WHBSTATE); in lqasc_err_int()
280 ltq_w32(ASC_IRNCR_RIR, port->membase + LTQ_ASC_IRNCR); in lqasc_rx_int()
290 status = ltq_r32(port->membase + LTQ_ASC_FSTAT) & ASCFSTAT_TXFFLMASK; in lqasc_tx_empty()
321 port->membase + LTQ_ASC_CLC); in lqasc_startup()
323 ltq_w32(0, port->membase + LTQ_ASC_PISEL); in lqasc_startup()
327 port->membase + LTQ_ASC_TXFCON); in lqasc_startup()
331 port->membase + LTQ_ASC_RXFCON); in lqasc_startup()
337 ASCCON_ROEN, port->membase + LTQ_ASC_CON); in lqasc_startup()
361 port->membase + LTQ_ASC_IRNREN); in lqasc_startup()
379 ltq_w32(0, port->membase + LTQ_ASC_CON); in lqasc_shutdown()
381 port->membase + LTQ_ASC_RXFCON); in lqasc_shutdown()
383 port->membase + LTQ_ASC_TXFCON); in lqasc_shutdown()
454 ltq_w32_mask(0, con, port->membase + LTQ_ASC_CON); in lqasc_set_termios()
462 ltq_w32_mask(ASCCON_R, 0, port->membase + LTQ_ASC_CON); in lqasc_set_termios()
465 ltq_w32_mask(ASCCON_FDE, 0, port->membase + LTQ_ASC_CON); in lqasc_set_termios()
468 ltq_w32_mask(ASCCON_BRS, 0, port->membase + LTQ_ASC_CON); in lqasc_set_termios()
471 ltq_w32(divisor, port->membase + LTQ_ASC_BG); in lqasc_set_termios()
474 ltq_w32_mask(0, ASCCON_R, port->membase + LTQ_ASC_CON); in lqasc_set_termios()
477 ltq_w32(ASCWHBSTATE_SETREN, port->membase + LTQ_ASC_WHBSTATE); in lqasc_set_termios()
503 devm_iounmap(&pdev->dev, port->membase); in lqasc_release_port()
504 port->membase = NULL; in lqasc_release_port()
530 port->membase = devm_ioremap_nocache(&pdev->dev, in lqasc_request_port()
532 if (port->membase == NULL) in lqasc_request_port()
584 if (!port->membase) in lqasc_console_putchar()
588 fifofree = (ltq_r32(port->membase + LTQ_ASC_FSTAT) in lqasc_console_putchar()
591 ltq_w8(ch, port->membase + LTQ_ASC_TBUF); in lqasc_console_putchar()