Lines Matching full: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()
107 writew(readw(port->membase + MLB_USIO_REG_FCR) & ~MLB_USIO_FCR_FDRQ, in mlb_usio_tx_chars()
108 port->membase + MLB_USIO_REG_FCR); in mlb_usio_tx_chars()
110 writeb(readb(port->membase + MLB_USIO_REG_SCR) | MLB_USIO_SCR_TBIE, in mlb_usio_tx_chars()
111 port->membase + MLB_USIO_REG_SCR); in mlb_usio_tx_chars()
122 u16 fcr = readw(port->membase + MLB_USIO_REG_FCR); in mlb_usio_start_tx()
124 writew(fcr | MLB_USIO_FCR_FTIE, port->membase + MLB_USIO_REG_FCR); in mlb_usio_start_tx()
128 writeb(readb(port->membase + MLB_USIO_REG_SCR) | MLB_USIO_SCR_TBIE, in mlb_usio_start_tx()
129 port->membase + MLB_USIO_REG_SCR); in mlb_usio_start_tx()
131 if (readb(port->membase + MLB_USIO_REG_SSR) & MLB_USIO_SSR_TBI) in mlb_usio_start_tx()
137 writeb(readb(port->membase + MLB_USIO_REG_SCR) & ~MLB_USIO_SCR_RIE, in mlb_usio_stop_rx()
138 port->membase + MLB_USIO_REG_SCR); in mlb_usio_stop_rx()
143 writeb(readb(port->membase + MLB_USIO_REG_SCR) | in mlb_usio_enable_ms()
145 port->membase + MLB_USIO_REG_SCR); in mlb_usio_enable_ms()
156 status = readb(port->membase + MLB_USIO_REG_SSR); in mlb_usio_rx_chars()
163 ch = readw(port->membase + MLB_USIO_REG_DR); in mlb_usio_rx_chars()
193 writeb(readb(port->membase + MLB_USIO_REG_SSR) | in mlb_usio_rx_chars()
195 port->membase + MLB_USIO_REG_SSR); in mlb_usio_rx_chars()
197 max_count = readw(port->membase + MLB_USIO_REG_FBYTE) >> 8; in mlb_usio_rx_chars()
198 writew(readw(port->membase + MLB_USIO_REG_FCR) | in mlb_usio_rx_chars()
200 port->membase + MLB_USIO_REG_FCR); in mlb_usio_rx_chars()
222 if (readb(port->membase + MLB_USIO_REG_SSR) & MLB_USIO_SSR_TBI) in mlb_usio_tx_irq()
231 return (readb(port->membase + MLB_USIO_REG_SSR) & MLB_USIO_SSR_TBI) ? in mlb_usio_tx_empty()
267 escr = readb(port->membase + MLB_USIO_REG_ESCR); in mlb_usio_startup()
271 writeb(0, port->membase + MLB_USIO_REG_SCR); in mlb_usio_startup()
272 writeb(escr, port->membase + MLB_USIO_REG_ESCR); in mlb_usio_startup()
273 writeb(MLB_USIO_SCR_UPCL, port->membase + MLB_USIO_REG_SCR); in mlb_usio_startup()
274 writeb(MLB_USIO_SSR_REC, port->membase + MLB_USIO_REG_SSR); in mlb_usio_startup()
275 writew(0, port->membase + MLB_USIO_REG_FCR); in mlb_usio_startup()
277 port->membase + MLB_USIO_REG_FCR); in mlb_usio_startup()
279 port->membase + MLB_USIO_REG_FCR); in mlb_usio_startup()
280 writew(0, port->membase + MLB_USIO_REG_FBYTE); in mlb_usio_startup()
281 writew(BIT(12), port->membase + MLB_USIO_REG_FBYTE); in mlb_usio_startup()
284 MLB_USIO_SCR_RXE, port->membase + MLB_USIO_REG_SCR); in mlb_usio_startup()
355 writeb(0, port->membase + MLB_USIO_REG_SCR); in mlb_usio_set_termios()
356 writeb(MLB_USIO_SCR_UPCL, port->membase + MLB_USIO_REG_SCR); in mlb_usio_set_termios()
357 writeb(MLB_USIO_SSR_REC, port->membase + MLB_USIO_REG_SSR); in mlb_usio_set_termios()
358 writew(0, port->membase + MLB_USIO_REG_FCR); in mlb_usio_set_termios()
359 writeb(smr, port->membase + MLB_USIO_REG_SMR); in mlb_usio_set_termios()
360 writeb(escr, port->membase + MLB_USIO_REG_ESCR); in mlb_usio_set_termios()
361 writew(quot, port->membase + MLB_USIO_REG_BGR); in mlb_usio_set_termios()
362 writew(0, port->membase + MLB_USIO_REG_FCR); in mlb_usio_set_termios()
365 port->membase + MLB_USIO_REG_FCR); in mlb_usio_set_termios()
366 writew(0, port->membase + MLB_USIO_REG_FBYTE); in mlb_usio_set_termios()
367 writew(BIT(12), port->membase + MLB_USIO_REG_FBYTE); in mlb_usio_set_termios()
369 MLB_USIO_SCR_TXE, port->membase + MLB_USIO_REG_SCR); in mlb_usio_set_termios()
404 while (!(readb(port->membase + MLB_USIO_REG_SSR) & MLB_USIO_SSR_TDRE)) in mlb_usio_console_putchar()
407 writew(c, port->membase + MLB_USIO_REG_DR); in mlb_usio_console_putchar()
430 if (!port->membase) in mlb_usio_console_setup()
474 if (!device->port.membase) in mlb_usio_early_console_setup()
523 port->membase = devm_ioremap(&pdev->dev, res->start, in mlb_usio_probe()