Lines Matching refs:temp
362 unsigned long temp; in imx_stop_tx() local
371 temp = readl(port->membase + UCR1); in imx_stop_tx()
372 writel(temp & ~UCR1_TXMPTYEN, port->membase + UCR1); in imx_stop_tx()
377 temp = readl(port->membase + UCR2); in imx_stop_tx()
379 temp &= ~UCR2_CTS; in imx_stop_tx()
381 temp |= UCR2_CTS; in imx_stop_tx()
382 writel(temp, port->membase + UCR2); in imx_stop_tx()
384 temp = readl(port->membase + UCR4); in imx_stop_tx()
385 temp &= ~UCR4_TCEN; in imx_stop_tx()
386 writel(temp, port->membase + UCR4); in imx_stop_tx()
396 unsigned long temp; in imx_stop_rx() local
407 temp = readl(sport->port.membase + UCR2); in imx_stop_rx()
408 writel(temp & ~UCR2_RXEN, sport->port.membase + UCR2); in imx_stop_rx()
411 temp = readl(sport->port.membase + UCR1); in imx_stop_rx()
412 writel(temp & ~UCR1_RRDYEN, sport->port.membase + UCR1); in imx_stop_rx()
429 unsigned long temp; in imx_transmit_buffer() local
449 temp = readl(sport->port.membase + UCR1); in imx_transmit_buffer()
450 temp &= ~UCR1_TXMPTYEN; in imx_transmit_buffer()
452 temp |= UCR1_TDMAEN; in imx_transmit_buffer()
453 writel(temp, sport->port.membase + UCR1); in imx_transmit_buffer()
455 writel(temp, sport->port.membase + UCR1); in imx_transmit_buffer()
482 unsigned long temp; in dma_tx_callback() local
488 temp = readl(sport->port.membase + UCR1); in dma_tx_callback()
489 temp &= ~UCR1_TDMAEN; in dma_tx_callback()
490 writel(temp, sport->port.membase + UCR1); in dma_tx_callback()
524 unsigned long temp; in imx_dma_tx() local
562 temp = readl(sport->port.membase + UCR1); in imx_dma_tx()
563 temp |= UCR1_TDMAEN; in imx_dma_tx()
564 writel(temp, sport->port.membase + UCR1); in imx_dma_tx()
579 unsigned long temp; in imx_start_tx() local
583 temp = readl(port->membase + UCR2); in imx_start_tx()
585 temp &= ~UCR2_CTS; in imx_start_tx()
587 temp |= UCR2_CTS; in imx_start_tx()
588 writel(temp, port->membase + UCR2); in imx_start_tx()
590 temp = readl(port->membase + UCR4); in imx_start_tx()
591 temp |= UCR4_TCEN; in imx_start_tx()
592 writel(temp, port->membase + UCR4); in imx_start_tx()
596 temp = readl(sport->port.membase + UCR1); in imx_start_tx()
597 writel(temp | UCR1_TXMPTYEN, sport->port.membase + UCR1); in imx_start_tx()
604 temp = readl(sport->port.membase + UCR1); in imx_start_tx()
605 temp &= ~UCR1_TDMAEN; in imx_start_tx()
606 temp |= UCR1_TXMPTYEN; in imx_start_tx()
607 writel(temp, sport->port.membase + UCR1); in imx_start_tx()
651 unsigned long flags, temp; in imx_rxint() local
661 temp = readl(sport->port.membase + USR2); in imx_rxint()
662 if (temp & USR2_BRCD) { in imx_rxint()
723 unsigned long temp; in imx_dma_rxint() local
728 temp = readl(sport->port.membase + USR2); in imx_dma_rxint()
729 if ((temp & USR2_RDR) && !sport->dma_is_rxing) { in imx_dma_rxint()
733 temp = readl(sport->port.membase + UCR1); in imx_dma_rxint()
734 temp &= ~(UCR1_RRDYEN); in imx_dma_rxint()
735 writel(temp, sport->port.membase + UCR1); in imx_dma_rxint()
737 temp = readl(sport->port.membase + UCR2); in imx_dma_rxint()
738 temp &= ~(UCR2_ATEN); in imx_dma_rxint()
739 writel(temp, sport->port.membase + UCR2); in imx_dma_rxint()
824 unsigned long temp; in imx_set_mctrl() local
827 temp = readl(sport->port.membase + UCR2); in imx_set_mctrl()
828 temp &= ~(UCR2_CTS | UCR2_CTSC); in imx_set_mctrl()
830 temp |= UCR2_CTS | UCR2_CTSC; in imx_set_mctrl()
831 writel(temp, sport->port.membase + UCR2); in imx_set_mctrl()
834 temp = readl(sport->port.membase + uts_reg(sport)) & ~UTS_LOOP; in imx_set_mctrl()
836 temp |= UTS_LOOP; in imx_set_mctrl()
837 writel(temp, sport->port.membase + uts_reg(sport)); in imx_set_mctrl()
846 unsigned long flags, temp; in imx_break_ctl() local
850 temp = readl(sport->port.membase + UCR1) & ~UCR1_SNDBRK; in imx_break_ctl()
853 temp |= UCR1_SNDBRK; in imx_break_ctl()
855 writel(temp, sport->port.membase + UCR1); in imx_break_ctl()
863 unsigned long temp; in imx_rx_dma_done() local
869 temp = readl(sport->port.membase + UCR1); in imx_rx_dma_done()
870 temp |= UCR1_RRDYEN; in imx_rx_dma_done()
871 writel(temp, sport->port.membase + UCR1); in imx_rx_dma_done()
873 temp = readl(sport->port.membase + UCR2); in imx_rx_dma_done()
874 temp |= UCR2_ATEN; in imx_rx_dma_done()
875 writel(temp, sport->port.membase + UCR2); in imx_rx_dma_done()
1061 unsigned long temp; in imx_enable_dma() local
1066 temp = readl(sport->port.membase + UCR1); in imx_enable_dma()
1067 temp |= UCR1_RDMAEN | UCR1_TDMAEN | UCR1_ATDMAEN; in imx_enable_dma()
1068 writel(temp, sport->port.membase + UCR1); in imx_enable_dma()
1070 temp = readl(sport->port.membase + UCR2); in imx_enable_dma()
1071 temp |= UCR2_ATEN; in imx_enable_dma()
1072 writel(temp, sport->port.membase + UCR2); in imx_enable_dma()
1081 unsigned long temp; in imx_disable_dma() local
1084 temp = readl(sport->port.membase + UCR1); in imx_disable_dma()
1085 temp &= ~(UCR1_RDMAEN | UCR1_TDMAEN | UCR1_ATDMAEN); in imx_disable_dma()
1086 writel(temp, sport->port.membase + UCR1); in imx_disable_dma()
1089 temp = readl(sport->port.membase + UCR2); in imx_disable_dma()
1090 temp &= ~(UCR2_CTSC | UCR2_CTS | UCR2_ATEN); in imx_disable_dma()
1091 writel(temp, sport->port.membase + UCR2); in imx_disable_dma()
1105 unsigned long flags, temp; in imx_startup() local
1121 temp = readl(sport->port.membase + UCR4); in imx_startup()
1124 temp &= ~(UCR4_CTSTL_MASK << UCR4_CTSTL_SHF); in imx_startup()
1125 temp |= CTSTL << UCR4_CTSTL_SHF; in imx_startup()
1127 writel(temp & ~UCR4_DREN, sport->port.membase + UCR4); in imx_startup()
1138 temp = readl(sport->port.membase + UCR2); in imx_startup()
1139 temp &= ~UCR2_SRST; in imx_startup()
1140 writel(temp, sport->port.membase + UCR2); in imx_startup()
1154 temp = readl(sport->port.membase + UCR1); in imx_startup()
1155 temp |= UCR1_RRDYEN | UCR1_RTSDEN | UCR1_UARTEN; in imx_startup()
1157 writel(temp, sport->port.membase + UCR1); in imx_startup()
1159 temp = readl(sport->port.membase + UCR4); in imx_startup()
1160 temp |= UCR4_OREN; in imx_startup()
1161 writel(temp, sport->port.membase + UCR4); in imx_startup()
1163 temp = readl(sport->port.membase + UCR2); in imx_startup()
1164 temp |= (UCR2_RXEN | UCR2_TXEN); in imx_startup()
1166 temp |= UCR2_IRTS; in imx_startup()
1167 writel(temp, sport->port.membase + UCR2); in imx_startup()
1170 temp = readl(sport->port.membase + UCR3); in imx_startup()
1171 temp |= IMX21_UCR3_RXDMUXSEL | UCR3_ADNIMP; in imx_startup()
1172 writel(temp, sport->port.membase + UCR3); in imx_startup()
1187 unsigned long temp; in imx_shutdown() local
1211 temp = readl(sport->port.membase + UCR2); in imx_shutdown()
1212 temp &= ~(UCR2_TXEN); in imx_shutdown()
1213 writel(temp, sport->port.membase + UCR2); in imx_shutdown()
1226 temp = readl(sport->port.membase + UCR1); in imx_shutdown()
1227 temp &= ~(UCR1_TXMPTYEN | UCR1_RRDYEN | UCR1_RTSDEN | UCR1_UARTEN); in imx_shutdown()
1229 writel(temp, sport->port.membase + UCR1); in imx_shutdown()
1240 unsigned long temp; in imx_flush_buffer() local
1251 temp = readl(sport->port.membase + UCR1); in imx_flush_buffer()
1252 temp &= ~UCR1_TDMAEN; in imx_flush_buffer()
1253 writel(temp, sport->port.membase + UCR1); in imx_flush_buffer()
1268 temp = readl(sport->port.membase + UCR2); in imx_flush_buffer()
1269 temp &= ~UCR2_SRST; in imx_flush_buffer()
1270 writel(temp, sport->port.membase + UCR2); in imx_flush_buffer()
1495 unsigned long temp; in imx_poll_init() local
1509 temp = readl(sport->port.membase + UCR1); in imx_poll_init()
1511 temp |= IMX1_UCR1_UARTCLKEN; in imx_poll_init()
1512 temp |= UCR1_UARTEN | UCR1_RRDYEN; in imx_poll_init()
1513 temp &= ~(UCR1_TXMPTYEN | UCR1_RTSDEN); in imx_poll_init()
1514 writel(temp, sport->port.membase + UCR1); in imx_poll_init()
1516 temp = readl(sport->port.membase + UCR2); in imx_poll_init()
1517 temp |= UCR2_RXEN; in imx_poll_init()
1518 writel(temp, sport->port.membase + UCR2); in imx_poll_init()
1567 unsigned long temp; in imx_rs485_config() local
1570 temp = readl(sport->port.membase + UCR2); in imx_rs485_config()
1571 temp &= ~UCR2_CTSC; in imx_rs485_config()
1573 temp &= ~UCR2_CTS; in imx_rs485_config()
1575 temp |= UCR2_CTS; in imx_rs485_config()
1576 writel(temp, sport->port.membase + UCR2); in imx_rs485_config()