Lines Matching refs:ucr1

239 	unsigned int	ucr1;  member
301 ucr->ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_ucrs_save()
310 imx_uart_writel(sport, ucr->ucr1, UCR1); in imx_uart_ucrs_restore()
387 unsigned int ucr1, ucr2; in imx_uart_start_rx() local
389 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_start_rx()
395 ucr1 |= UCR1_RXDMAEN | UCR1_ATDMAEN; in imx_uart_start_rx()
397 ucr1 |= UCR1_RRDYEN; in imx_uart_start_rx()
403 imx_uart_writel(sport, ucr1, UCR1); in imx_uart_start_rx()
411 u32 ucr1, ucr4, usr2; in imx_uart_stop_tx() local
423 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_stop_tx()
424 imx_uart_writel(sport, ucr1 & ~UCR1_TRDYEN, UCR1); in imx_uart_stop_tx()
476 u32 ucr1, ucr2, ucr4, uts; in imx_uart_stop_rx_with_loopback_ctrl() local
478 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_stop_rx_with_loopback_ctrl()
483 ucr1 &= ~(UCR1_RXDMAEN | UCR1_ATDMAEN); in imx_uart_stop_rx_with_loopback_ctrl()
485 ucr1 &= ~UCR1_RRDYEN; in imx_uart_stop_rx_with_loopback_ctrl()
489 imx_uart_writel(sport, ucr1, UCR1); in imx_uart_stop_rx_with_loopback_ctrl()
550 u32 ucr1; in imx_uart_transmit_buffer() local
555 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_transmit_buffer()
556 ucr1 &= ~UCR1_TRDYEN; in imx_uart_transmit_buffer()
558 ucr1 |= UCR1_TXDMAEN; in imx_uart_transmit_buffer()
559 imx_uart_writel(sport, ucr1, UCR1); in imx_uart_transmit_buffer()
561 imx_uart_writel(sport, ucr1, UCR1); in imx_uart_transmit_buffer()
585 u32 ucr1; in imx_uart_dma_tx_callback() local
591 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_dma_tx_callback()
592 ucr1 &= ~UCR1_TXDMAEN; in imx_uart_dma_tx_callback()
593 imx_uart_writel(sport, ucr1, UCR1); in imx_uart_dma_tx_callback()
624 u32 ucr1, ucr4; in imx_uart_dma_tx() local
657 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_dma_tx()
658 ucr1 |= UCR1_TXDMAEN; in imx_uart_dma_tx()
659 imx_uart_writel(sport, ucr1, UCR1); in imx_uart_dma_tx()
673 u32 ucr1; in imx_uart_start_tx() local
736 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_start_tx()
737 imx_uart_writel(sport, ucr1 | UCR1_TRDYEN, UCR1); in imx_uart_start_tx()
744 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_start_tx()
745 ucr1 &= ~UCR1_TXDMAEN; in imx_uart_start_tx()
746 ucr1 |= UCR1_TRDYEN; in imx_uart_start_tx()
747 imx_uart_writel(sport, ucr1, UCR1); in imx_uart_start_tx()
984 unsigned int usr1, usr2, ucr1, ucr2, ucr3, ucr4; in imx_uart_int() local
991 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_int()
1004 if ((ucr1 & UCR1_RRDYEN) == 0) in imx_uart_int()
1008 if ((ucr1 & UCR1_TRDYEN) == 0) in imx_uart_int()
1014 if ((ucr1 & UCR1_RTSDEN) == 0) in imx_uart_int()
1138 u32 ucr1; in imx_uart_break_ctl() local
1142 ucr1 = imx_uart_readl(sport, UCR1) & ~UCR1_SNDBRK; in imx_uart_break_ctl()
1145 ucr1 |= UCR1_SNDBRK; in imx_uart_break_ctl()
1147 imx_uart_writel(sport, ucr1, UCR1); in imx_uart_break_ctl()
1427 u32 ucr1; in imx_uart_enable_dma() local
1432 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_enable_dma()
1433 ucr1 |= UCR1_RXDMAEN | UCR1_TXDMAEN | UCR1_ATDMAEN; in imx_uart_enable_dma()
1434 imx_uart_writel(sport, ucr1, UCR1); in imx_uart_enable_dma()
1441 u32 ucr1; in imx_uart_disable_dma() local
1444 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_disable_dma()
1445 ucr1 &= ~(UCR1_RXDMAEN | UCR1_TXDMAEN | UCR1_ATDMAEN); in imx_uart_disable_dma()
1446 imx_uart_writel(sport, ucr1, UCR1); in imx_uart_disable_dma()
1462 u32 ucr1, ucr2, ucr3, ucr4; in imx_uart_startup() local
1503 ucr1 = imx_uart_readl(sport, UCR1) & ~UCR1_RRDYEN; in imx_uart_startup()
1504 ucr1 |= UCR1_UARTEN; in imx_uart_startup()
1506 ucr1 |= UCR1_RTSDEN; in imx_uart_startup()
1508 imx_uart_writel(sport, ucr1, UCR1); in imx_uart_startup()
1554 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_startup()
1555 ucr1 |= UCR1_RRDYEN; in imx_uart_startup()
1556 imx_uart_writel(sport, ucr1, UCR1); in imx_uart_startup()
1574 u32 ucr1, ucr2, ucr4, uts; in imx_uart_shutdown() local
1618 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_shutdown()
1619 ucr1 &= ~(UCR1_TRDYEN | UCR1_RRDYEN | UCR1_RTSDEN | UCR1_RXDMAEN | in imx_uart_shutdown()
1628 ucr1 |= UCR1_UARTEN; in imx_uart_shutdown()
1630 ucr1 &= ~UCR1_UARTEN; in imx_uart_shutdown()
1632 imx_uart_writel(sport, ucr1, UCR1); in imx_uart_shutdown()
1706 u32 ucr1; in imx_uart_flush_buffer() local
1710 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_flush_buffer()
1711 ucr1 &= ~UCR1_TXDMAEN; in imx_uart_flush_buffer()
1712 imx_uart_writel(sport, ucr1, UCR1); in imx_uart_flush_buffer()
1929 u32 ucr1, ucr2; in imx_uart_poll_init() local
1950 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_poll_init()
1954 ucr1 |= IMX1_UCR1_UARTCLKEN; in imx_uart_poll_init()
1956 ucr1 |= UCR1_UARTEN; in imx_uart_poll_init()
1957 ucr1 &= ~(UCR1_TRDYEN | UCR1_RTSDEN | UCR1_RRDYEN); in imx_uart_poll_init()
1962 imx_uart_writel(sport, ucr1, UCR1); in imx_uart_poll_init()
1966 imx_uart_writel(sport, ucr1 | UCR1_RRDYEN, UCR1); in imx_uart_poll_init()
2083 unsigned int ucr1, usr2; in imx_uart_console_write() local
2097 ucr1 = old_ucr.ucr1; in imx_uart_console_write()
2100 ucr1 |= IMX1_UCR1_UARTCLKEN; in imx_uart_console_write()
2101 ucr1 |= UCR1_UARTEN; in imx_uart_console_write()
2102 ucr1 &= ~(UCR1_TRDYEN | UCR1_RRDYEN | UCR1_RTSDEN); in imx_uart_console_write()
2104 imx_uart_writel(sport, ucr1, UCR1); in imx_uart_console_write()
2316 u32 ucr1, ucr2, uts; in imx_uart_probe() local
2428 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_probe()
2429 ucr1 &= ~(UCR1_ADEN | UCR1_TRDYEN | UCR1_IDEN | UCR1_RRDYEN | UCR1_RTSDEN); in imx_uart_probe()
2430 imx_uart_writel(sport, ucr1, UCR1); in imx_uart_probe()
2453 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_probe()
2454 ucr1 |= UCR1_UARTEN; in imx_uart_probe()
2455 imx_uart_writel(sport, ucr1, UCR1); in imx_uart_probe()
2612 u32 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_enable_wakeup() local
2615 ucr1 |= UCR1_RTSDEN; in imx_uart_enable_wakeup()
2617 ucr1 &= ~UCR1_RTSDEN; in imx_uart_enable_wakeup()
2619 imx_uart_writel(sport, ucr1, UCR1); in imx_uart_enable_wakeup()