Lines Matching refs:cr2

446 	u8 cr2;  in lpuart_stop_tx()  local
448 cr2 = readb(port->membase + UARTCR2); in lpuart_stop_tx()
449 cr2 &= ~(UARTCR2_TIE | UARTCR2_TCIE); in lpuart_stop_tx()
450 writeb(cr2, port->membase + UARTCR2); in lpuart_stop_tx()
464 u8 cr2; in lpuart_stop_rx() local
466 cr2 = readb(port->membase + UARTCR2); in lpuart_stop_rx()
467 writeb(cr2 & ~UARTCR2_RE, port->membase + UARTCR2); in lpuart_stop_rx()
792 u8 cr2; in lpuart_start_tx() local
794 cr2 = readb(port->membase + UARTCR2); in lpuart_start_tx()
795 writeb(cr2 | UARTCR2_TIE, port->membase + UARTCR2); in lpuart_start_tx()
1131 u8 cr2; in lpuart_copy_rx_to_tty() local
1134 cr2 = readb(sport->port.membase + UARTCR2); in lpuart_copy_rx_to_tty()
1135 cr2 &= ~UARTCR2_RE; in lpuart_copy_rx_to_tty()
1136 writeb(cr2, sport->port.membase + UARTCR2); in lpuart_copy_rx_to_tty()
1162 cr2 |= UARTCR2_RE; in lpuart_copy_rx_to_tty()
1163 writeb(cr2, sport->port.membase + UARTCR2); in lpuart_copy_rx_to_tty()
1574 u8 cr2; in lpuart_break_ctl() local
1576 cr2 = readb(port->membase + UARTCR2) & ~UARTCR2_SBK; in lpuart_break_ctl()
1579 cr2 |= UARTCR2_SBK; in lpuart_break_ctl()
1581 writeb(cr2, port->membase + UARTCR2); in lpuart_break_ctl()
1620 u8 fifo, cr2, cr2_saved; in lpuart_setup_watermark() local
1622 cr2 = readb(sport->port.membase + UARTCR2); in lpuart_setup_watermark()
1623 cr2_saved = cr2; in lpuart_setup_watermark()
1624 cr2 &= ~(UARTCR2_TIE | UARTCR2_TCIE | UARTCR2_TE | in lpuart_setup_watermark()
1626 writeb(cr2, sport->port.membase + UARTCR2); in lpuart_setup_watermark()
1653 u8 cr2; in lpuart_setup_watermark_enable() local
1657 cr2 = readb(sport->port.membase + UARTCR2); in lpuart_setup_watermark_enable()
1658 cr2 |= UARTCR2_RIE | UARTCR2_RE | UARTCR2_TE; in lpuart_setup_watermark_enable()
1659 writeb(cr2, sport->port.membase + UARTCR2); in lpuart_setup_watermark_enable()
1937 u8 cr2; in lpuart_shutdown() local
1943 cr2 = readb(port->membase + UARTCR2); in lpuart_shutdown()
1944 cr2 &= ~(UARTCR2_TE | UARTCR2_RE | in lpuart_shutdown()
1946 writeb(cr2, port->membase + UARTCR2); in lpuart_shutdown()
2500 u8 old_cr2, cr2; in lpuart_console_write() local
2510 cr2 = old_cr2 = readb(sport->port.membase + UARTCR2); in lpuart_console_write()
2511 cr2 |= UARTCR2_TE | UARTCR2_RE; in lpuart_console_write()
2512 cr2 &= ~(UARTCR2_TIE | UARTCR2_TCIE | UARTCR2_RIE); in lpuart_console_write()
2513 writeb(cr2, sport->port.membase + UARTCR2); in lpuart_console_write()