Lines Matching refs:membase

141 	ltq_w32(ASCWHBSTATE_CLRREN, port->membase + LTQ_ASC_WHBSTATE);  in lqasc_stop_rx()
150 fifocnt = ltq_r32(port->membase + LTQ_ASC_FSTAT) & ASCFSTAT_RXFFLMASK; in lqasc_rx_chars()
153 ch = ltq_r8(port->membase + LTQ_ASC_RBUF); in lqasc_rx_chars()
154 rsr = (ltq_r32(port->membase + LTQ_ASC_STATE) in lqasc_rx_chars()
167 port->membase + LTQ_ASC_WHBSTATE); in lqasc_rx_chars()
171 port->membase + LTQ_ASC_WHBSTATE); in lqasc_rx_chars()
176 port->membase + LTQ_ASC_WHBSTATE); in lqasc_rx_chars()
214 while (((ltq_r32(port->membase + LTQ_ASC_FSTAT) & in lqasc_tx_chars()
217 ltq_w8(port->x_char, port->membase + LTQ_ASC_TBUF); in lqasc_tx_chars()
227 port->membase + LTQ_ASC_TBUF); in lqasc_tx_chars()
242 ltq_w32(ASC_IRNCR_TIR, port->membase + LTQ_ASC_IRNCR); in lqasc_tx_int()
256 ASCWHBSTATE_CLRROE, port->membase + LTQ_ASC_WHBSTATE); in lqasc_err_int()
267 ltq_w32(ASC_IRNCR_RIR, port->membase + LTQ_ASC_IRNCR); in lqasc_rx_int()
277 status = ltq_r32(port->membase + LTQ_ASC_FSTAT) & ASCFSTAT_TXFFLMASK; in lqasc_tx_empty()
308 port->membase + LTQ_ASC_CLC); in lqasc_startup()
310 ltq_w32(0, port->membase + LTQ_ASC_PISEL); in lqasc_startup()
314 port->membase + LTQ_ASC_TXFCON); in lqasc_startup()
318 port->membase + LTQ_ASC_RXFCON); in lqasc_startup()
324 ASCCON_ROEN, port->membase + LTQ_ASC_CON); in lqasc_startup()
348 port->membase + LTQ_ASC_IRNREN); in lqasc_startup()
366 ltq_w32(0, port->membase + LTQ_ASC_CON); in lqasc_shutdown()
368 port->membase + LTQ_ASC_RXFCON); in lqasc_shutdown()
370 port->membase + LTQ_ASC_TXFCON); in lqasc_shutdown()
441 ltq_w32_mask(0, con, port->membase + LTQ_ASC_CON); in lqasc_set_termios()
449 ltq_w32_mask(ASCCON_R, 0, port->membase + LTQ_ASC_CON); in lqasc_set_termios()
452 ltq_w32_mask(ASCCON_FDE, 0, port->membase + LTQ_ASC_CON); in lqasc_set_termios()
455 ltq_w32_mask(ASCCON_BRS, 0, port->membase + LTQ_ASC_CON); in lqasc_set_termios()
458 ltq_w32(divisor, port->membase + LTQ_ASC_BG); in lqasc_set_termios()
461 ltq_w32_mask(0, ASCCON_R, port->membase + LTQ_ASC_CON); in lqasc_set_termios()
464 ltq_w32(ASCWHBSTATE_SETREN, port->membase + LTQ_ASC_WHBSTATE); in lqasc_set_termios()
490 devm_iounmap(&pdev->dev, port->membase); in lqasc_release_port()
491 port->membase = NULL; in lqasc_release_port()
517 port->membase = devm_ioremap_nocache(&pdev->dev, in lqasc_request_port()
519 if (port->membase == NULL) in lqasc_request_port()
571 if (!port->membase) in lqasc_console_putchar()
575 fifofree = (ltq_r32(port->membase + LTQ_ASC_FSTAT) in lqasc_console_putchar()
578 ltq_w8(ch, port->membase + LTQ_ASC_TBUF); in lqasc_console_putchar()
666 if (!device->port.membase) in lqasc_serial_early_console_setup()