Lines Matching refs:ucr1

214 	unsigned int ucr1;  member
243 unsigned int ucr1; member
280 sport->ucr1 = val; in imx_uart_writel()
304 return sport->ucr1; in imx_uart_readl()
363 ucr->ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_ucrs_save()
372 imx_uart_writel(sport, ucr->ucr1, UCR1); in imx_uart_ucrs_restore()
404 unsigned int ucr1, ucr2; in imx_uart_start_rx() local
406 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_start_rx()
412 ucr1 |= UCR1_RXDMAEN | UCR1_ATDMAEN; in imx_uart_start_rx()
414 ucr1 |= UCR1_RRDYEN; in imx_uart_start_rx()
420 imx_uart_writel(sport, ucr1, UCR1); in imx_uart_start_rx()
427 u32 ucr1, ucr4, usr2; in imx_uart_stop_tx() local
439 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_stop_tx()
440 imx_uart_writel(sport, ucr1 & ~UCR1_TRDYEN, UCR1); in imx_uart_stop_tx()
492 u32 ucr1, ucr2, ucr4; in imx_uart_stop_rx() local
494 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_stop_rx()
499 ucr1 &= ~(UCR1_RXDMAEN | UCR1_ATDMAEN); in imx_uart_stop_rx()
501 ucr1 &= ~UCR1_RRDYEN; in imx_uart_stop_rx()
505 imx_uart_writel(sport, ucr1, UCR1); in imx_uart_stop_rx()
543 u32 ucr1; in imx_uart_transmit_buffer() local
548 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_transmit_buffer()
549 ucr1 &= ~UCR1_TRDYEN; in imx_uart_transmit_buffer()
551 ucr1 |= UCR1_TXDMAEN; in imx_uart_transmit_buffer()
552 imx_uart_writel(sport, ucr1, UCR1); in imx_uart_transmit_buffer()
554 imx_uart_writel(sport, ucr1, UCR1); in imx_uart_transmit_buffer()
583 u32 ucr1; in imx_uart_dma_tx_callback() local
589 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_dma_tx_callback()
590 ucr1 &= ~UCR1_TXDMAEN; in imx_uart_dma_tx_callback()
591 imx_uart_writel(sport, ucr1, UCR1); in imx_uart_dma_tx_callback()
623 u32 ucr1, ucr4; in imx_uart_dma_tx() local
665 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_dma_tx()
666 ucr1 |= UCR1_TXDMAEN; in imx_uart_dma_tx()
667 imx_uart_writel(sport, ucr1, UCR1); in imx_uart_dma_tx()
680 u32 ucr1; in imx_uart_start_tx() local
737 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_start_tx()
738 imx_uart_writel(sport, ucr1 | UCR1_TRDYEN, UCR1); in imx_uart_start_tx()
745 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_start_tx()
746 ucr1 &= ~UCR1_TXDMAEN; in imx_uart_start_tx()
747 ucr1 |= UCR1_TRDYEN; in imx_uart_start_tx()
748 imx_uart_writel(sport, ucr1, UCR1); in imx_uart_start_tx()
932 unsigned int usr1, usr2, ucr1, ucr2, ucr3, ucr4; in imx_uart_int() local
939 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_int()
952 if ((ucr1 & UCR1_RRDYEN) == 0) in imx_uart_int()
956 if ((ucr1 & UCR1_TRDYEN) == 0) in imx_uart_int()
962 if ((ucr1 & UCR1_RTSDEN) == 0) in imx_uart_int()
1086 u32 ucr1; in imx_uart_break_ctl() local
1090 ucr1 = imx_uart_readl(sport, UCR1) & ~UCR1_SNDBRK; in imx_uart_break_ctl()
1093 ucr1 |= UCR1_SNDBRK; in imx_uart_break_ctl()
1095 imx_uart_writel(sport, ucr1, UCR1); in imx_uart_break_ctl()
1361 u32 ucr1; in imx_uart_enable_dma() local
1366 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_enable_dma()
1367 ucr1 |= UCR1_RXDMAEN | UCR1_TXDMAEN | UCR1_ATDMAEN; in imx_uart_enable_dma()
1368 imx_uart_writel(sport, ucr1, UCR1); in imx_uart_enable_dma()
1375 u32 ucr1; in imx_uart_disable_dma() local
1378 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_disable_dma()
1379 ucr1 &= ~(UCR1_RXDMAEN | UCR1_TXDMAEN | UCR1_ATDMAEN); in imx_uart_disable_dma()
1380 imx_uart_writel(sport, ucr1, UCR1); in imx_uart_disable_dma()
1396 u32 ucr1, ucr2, ucr3, ucr4; in imx_uart_startup() local
1441 ucr1 = imx_uart_readl(sport, UCR1) & ~UCR1_RRDYEN; in imx_uart_startup()
1442 ucr1 |= UCR1_UARTEN; in imx_uart_startup()
1444 ucr1 |= UCR1_RTSDEN; in imx_uart_startup()
1446 imx_uart_writel(sport, ucr1, UCR1); in imx_uart_startup()
1492 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_startup()
1493 ucr1 |= UCR1_RRDYEN; in imx_uart_startup()
1494 imx_uart_writel(sport, ucr1, UCR1); in imx_uart_startup()
1510 u32 ucr1, ucr2, ucr4; in imx_uart_shutdown() local
1553 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_shutdown()
1554 ucr1 &= ~(UCR1_TRDYEN | UCR1_RRDYEN | UCR1_RTSDEN | UCR1_UARTEN | UCR1_RXDMAEN | UCR1_ATDMAEN); in imx_uart_shutdown()
1555 imx_uart_writel(sport, ucr1, UCR1); in imx_uart_shutdown()
1581 u32 ucr1; in imx_uart_flush_buffer() local
1585 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_flush_buffer()
1586 ucr1 &= ~UCR1_TXDMAEN; in imx_uart_flush_buffer()
1587 imx_uart_writel(sport, ucr1, UCR1); in imx_uart_flush_buffer()
1833 u32 ucr1, ucr2; in imx_uart_poll_init() local
1854 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_poll_init()
1858 ucr1 |= IMX1_UCR1_UARTCLKEN; in imx_uart_poll_init()
1860 ucr1 |= UCR1_UARTEN; in imx_uart_poll_init()
1861 ucr1 &= ~(UCR1_TRDYEN | UCR1_RTSDEN | UCR1_RRDYEN); in imx_uart_poll_init()
1866 imx_uart_writel(sport, ucr1, UCR1); in imx_uart_poll_init()
1870 imx_uart_writel(sport, ucr1 | UCR1_RRDYEN, UCR1); in imx_uart_poll_init()
1982 unsigned int ucr1; in imx_uart_console_write() local
1996 ucr1 = old_ucr.ucr1; in imx_uart_console_write()
1999 ucr1 |= IMX1_UCR1_UARTCLKEN; in imx_uart_console_write()
2000 ucr1 |= UCR1_UARTEN; in imx_uart_console_write()
2001 ucr1 &= ~(UCR1_TRDYEN | UCR1_RRDYEN | UCR1_RTSDEN); in imx_uart_console_write()
2003 imx_uart_writel(sport, ucr1, UCR1); in imx_uart_console_write()
2216 u32 ucr1; in imx_uart_probe() local
2320 sport->ucr1 = readl(sport->port.membase + UCR1); in imx_uart_probe()
2349 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_probe()
2350 ucr1 &= ~(UCR1_ADEN | UCR1_TRDYEN | UCR1_IDEN | UCR1_RRDYEN | UCR1_RTSDEN); in imx_uart_probe()
2351 imx_uart_writel(sport, ucr1, UCR1); in imx_uart_probe()
2500 u32 ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_enable_wakeup() local
2503 ucr1 |= UCR1_RTSDEN; in imx_uart_enable_wakeup()
2505 ucr1 &= ~UCR1_RTSDEN; in imx_uart_enable_wakeup()
2507 imx_uart_writel(sport, ucr1, UCR1); in imx_uart_enable_wakeup()