Lines Matching refs:membase
67 writew(readw(port->membase + MLB_USIO_REG_FCR) & ~MLB_USIO_FCR_FTIE, in mlb_usio_stop_tx()
68 port->membase + MLB_USIO_REG_FCR); in mlb_usio_stop_tx()
69 writeb(readb(port->membase + MLB_USIO_REG_SCR) & ~MLB_USIO_SCR_TBIE, in mlb_usio_stop_tx()
70 port->membase + MLB_USIO_REG_SCR); in mlb_usio_stop_tx()
78 writew(readw(port->membase + MLB_USIO_REG_FCR) & ~MLB_USIO_FCR_FTIE, in mlb_usio_tx_chars()
79 port->membase + MLB_USIO_REG_FCR); in mlb_usio_tx_chars()
80 writeb(readb(port->membase + MLB_USIO_REG_SCR) & in mlb_usio_tx_chars()
82 port->membase + MLB_USIO_REG_SCR); in mlb_usio_tx_chars()
85 writew(port->x_char, port->membase + MLB_USIO_REG_DR); in mlb_usio_tx_chars()
96 (readw(port->membase + MLB_USIO_REG_FBYTE) & 0xff); in mlb_usio_tx_chars()
99 writew(xmit->buf[xmit->tail], port->membase + MLB_USIO_REG_DR); in mlb_usio_tx_chars()
108 writew(readw(port->membase + MLB_USIO_REG_FCR) & ~MLB_USIO_FCR_FDRQ, in mlb_usio_tx_chars()
109 port->membase + MLB_USIO_REG_FCR); in mlb_usio_tx_chars()
111 writeb(readb(port->membase + MLB_USIO_REG_SCR) | MLB_USIO_SCR_TBIE, in mlb_usio_tx_chars()
112 port->membase + MLB_USIO_REG_SCR); in mlb_usio_tx_chars()
123 u16 fcr = readw(port->membase + MLB_USIO_REG_FCR); in mlb_usio_start_tx()
125 writew(fcr | MLB_USIO_FCR_FTIE, port->membase + MLB_USIO_REG_FCR); in mlb_usio_start_tx()
129 writeb(readb(port->membase + MLB_USIO_REG_SCR) | MLB_USIO_SCR_TBIE, in mlb_usio_start_tx()
130 port->membase + MLB_USIO_REG_SCR); in mlb_usio_start_tx()
132 if (readb(port->membase + MLB_USIO_REG_SSR) & MLB_USIO_SSR_TBI) in mlb_usio_start_tx()
138 writeb(readb(port->membase + MLB_USIO_REG_SCR) & ~MLB_USIO_SCR_RIE, in mlb_usio_stop_rx()
139 port->membase + MLB_USIO_REG_SCR); in mlb_usio_stop_rx()
144 writeb(readb(port->membase + MLB_USIO_REG_SCR) | in mlb_usio_enable_ms()
146 port->membase + MLB_USIO_REG_SCR); in mlb_usio_enable_ms()
158 status = readb(port->membase + MLB_USIO_REG_SSR); in mlb_usio_rx_chars()
165 ch = readw(port->membase + MLB_USIO_REG_DR); in mlb_usio_rx_chars()
195 writeb(readb(port->membase + MLB_USIO_REG_SSR) | in mlb_usio_rx_chars()
197 port->membase + MLB_USIO_REG_SSR); in mlb_usio_rx_chars()
199 max_count = readw(port->membase + MLB_USIO_REG_FBYTE) >> 8; in mlb_usio_rx_chars()
200 writew(readw(port->membase + MLB_USIO_REG_FCR) | in mlb_usio_rx_chars()
202 port->membase + MLB_USIO_REG_FCR); in mlb_usio_rx_chars()
224 if (readb(port->membase + MLB_USIO_REG_SSR) & MLB_USIO_SSR_TBI) in mlb_usio_tx_irq()
233 return (readb(port->membase + MLB_USIO_REG_SSR) & MLB_USIO_SSR_TBI) ? in mlb_usio_tx_empty()
269 escr = readb(port->membase + MLB_USIO_REG_ESCR); in mlb_usio_startup()
273 writeb(0, port->membase + MLB_USIO_REG_SCR); in mlb_usio_startup()
274 writeb(escr, port->membase + MLB_USIO_REG_ESCR); in mlb_usio_startup()
275 writeb(MLB_USIO_SCR_UPCL, port->membase + MLB_USIO_REG_SCR); in mlb_usio_startup()
276 writeb(MLB_USIO_SSR_REC, port->membase + MLB_USIO_REG_SSR); in mlb_usio_startup()
277 writew(0, port->membase + MLB_USIO_REG_FCR); in mlb_usio_startup()
279 port->membase + MLB_USIO_REG_FCR); in mlb_usio_startup()
281 port->membase + MLB_USIO_REG_FCR); in mlb_usio_startup()
282 writew(0, port->membase + MLB_USIO_REG_FBYTE); in mlb_usio_startup()
283 writew(BIT(12), port->membase + MLB_USIO_REG_FBYTE); in mlb_usio_startup()
286 MLB_USIO_SCR_RXE, port->membase + MLB_USIO_REG_SCR); in mlb_usio_startup()
357 writeb(0, port->membase + MLB_USIO_REG_SCR); in mlb_usio_set_termios()
358 writeb(MLB_USIO_SCR_UPCL, port->membase + MLB_USIO_REG_SCR); in mlb_usio_set_termios()
359 writeb(MLB_USIO_SSR_REC, port->membase + MLB_USIO_REG_SSR); in mlb_usio_set_termios()
360 writew(0, port->membase + MLB_USIO_REG_FCR); in mlb_usio_set_termios()
361 writeb(smr, port->membase + MLB_USIO_REG_SMR); in mlb_usio_set_termios()
362 writeb(escr, port->membase + MLB_USIO_REG_ESCR); in mlb_usio_set_termios()
363 writew(quot, port->membase + MLB_USIO_REG_BGR); in mlb_usio_set_termios()
364 writew(0, port->membase + MLB_USIO_REG_FCR); in mlb_usio_set_termios()
367 port->membase + MLB_USIO_REG_FCR); in mlb_usio_set_termios()
368 writew(0, port->membase + MLB_USIO_REG_FBYTE); in mlb_usio_set_termios()
369 writew(BIT(12), port->membase + MLB_USIO_REG_FBYTE); in mlb_usio_set_termios()
371 MLB_USIO_SCR_TXE, port->membase + MLB_USIO_REG_SCR); in mlb_usio_set_termios()
406 while (!(readb(port->membase + MLB_USIO_REG_SSR) & MLB_USIO_SSR_TDRE)) in mlb_usio_console_putchar()
409 writew(c, port->membase + MLB_USIO_REG_DR); in mlb_usio_console_putchar()
432 if (!port->membase) in mlb_usio_console_setup()
476 if (!device->port.membase) in mlb_usio_early_console_setup()
525 port->membase = devm_ioremap(&pdev->dev, res->start, in mlb_usio_probe()