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()
104 writew(ch, 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()
157 status = readb(port->membase + MLB_USIO_REG_SSR); in mlb_usio_rx_chars()
164 ch = readw(port->membase + MLB_USIO_REG_DR); in mlb_usio_rx_chars()
194 writeb(readb(port->membase + MLB_USIO_REG_SSR) | in mlb_usio_rx_chars()
196 port->membase + MLB_USIO_REG_SSR); in mlb_usio_rx_chars()
198 max_count = readw(port->membase + MLB_USIO_REG_FBYTE) >> 8; in mlb_usio_rx_chars()
199 writew(readw(port->membase + MLB_USIO_REG_FCR) | in mlb_usio_rx_chars()
201 port->membase + MLB_USIO_REG_FCR); in mlb_usio_rx_chars()
223 if (readb(port->membase + MLB_USIO_REG_SSR) & MLB_USIO_SSR_TBI) in mlb_usio_tx_irq()
232 return (readb(port->membase + MLB_USIO_REG_SSR) & MLB_USIO_SSR_TBI) ? in mlb_usio_tx_empty()
268 escr = readb(port->membase + MLB_USIO_REG_ESCR); in mlb_usio_startup()
272 writeb(0, port->membase + MLB_USIO_REG_SCR); in mlb_usio_startup()
273 writeb(escr, port->membase + MLB_USIO_REG_ESCR); in mlb_usio_startup()
274 writeb(MLB_USIO_SCR_UPCL, port->membase + MLB_USIO_REG_SCR); in mlb_usio_startup()
275 writeb(MLB_USIO_SSR_REC, port->membase + MLB_USIO_REG_SSR); in mlb_usio_startup()
276 writew(0, port->membase + MLB_USIO_REG_FCR); in mlb_usio_startup()
278 port->membase + MLB_USIO_REG_FCR); in mlb_usio_startup()
280 port->membase + MLB_USIO_REG_FCR); in mlb_usio_startup()
281 writew(0, port->membase + MLB_USIO_REG_FBYTE); in mlb_usio_startup()
282 writew(BIT(12), port->membase + MLB_USIO_REG_FBYTE); in mlb_usio_startup()
285 MLB_USIO_SCR_RXE, port->membase + MLB_USIO_REG_SCR); in mlb_usio_startup()
356 writeb(0, port->membase + MLB_USIO_REG_SCR); in mlb_usio_set_termios()
357 writeb(MLB_USIO_SCR_UPCL, port->membase + MLB_USIO_REG_SCR); in mlb_usio_set_termios()
358 writeb(MLB_USIO_SSR_REC, port->membase + MLB_USIO_REG_SSR); in mlb_usio_set_termios()
359 writew(0, port->membase + MLB_USIO_REG_FCR); in mlb_usio_set_termios()
360 writeb(smr, port->membase + MLB_USIO_REG_SMR); in mlb_usio_set_termios()
361 writeb(escr, port->membase + MLB_USIO_REG_ESCR); in mlb_usio_set_termios()
362 writew(quot, port->membase + MLB_USIO_REG_BGR); in mlb_usio_set_termios()
363 writew(0, port->membase + MLB_USIO_REG_FCR); in mlb_usio_set_termios()
366 port->membase + MLB_USIO_REG_FCR); in mlb_usio_set_termios()
367 writew(0, port->membase + MLB_USIO_REG_FBYTE); in mlb_usio_set_termios()
368 writew(BIT(12), port->membase + MLB_USIO_REG_FBYTE); in mlb_usio_set_termios()
370 MLB_USIO_SCR_TXE, port->membase + MLB_USIO_REG_SCR); in mlb_usio_set_termios()
405 while (!(readb(port->membase + MLB_USIO_REG_SSR) & MLB_USIO_SSR_TDRE)) in mlb_usio_console_putchar()
408 writew(c, port->membase + MLB_USIO_REG_DR); in mlb_usio_console_putchar()
431 if (!port->membase) in mlb_usio_console_setup()
475 if (!device->port.membase) in mlb_usio_early_console_setup()
524 port->membase = devm_ioremap(&pdev->dev, res->start, in mlb_usio_probe()