Lines Matching refs:temp
359 unsigned long temp; in imx_stop_tx() local
368 temp = readl(port->membase + UCR1); in imx_stop_tx()
369 writel(temp & ~UCR1_TXMPTYEN, port->membase + UCR1); in imx_stop_tx()
374 temp = readl(port->membase + UCR2); in imx_stop_tx()
376 temp &= ~UCR2_CTS; in imx_stop_tx()
378 temp |= UCR2_CTS; in imx_stop_tx()
379 writel(temp, port->membase + UCR2); in imx_stop_tx()
381 temp = readl(port->membase + UCR4); in imx_stop_tx()
382 temp &= ~UCR4_TCEN; in imx_stop_tx()
383 writel(temp, port->membase + UCR4); in imx_stop_tx()
393 unsigned long temp; in imx_stop_rx() local
404 temp = readl(sport->port.membase + UCR2); in imx_stop_rx()
405 writel(temp & ~UCR2_RXEN, sport->port.membase + UCR2); in imx_stop_rx()
408 temp = readl(sport->port.membase + UCR1); in imx_stop_rx()
409 writel(temp & ~UCR1_RRDYEN, sport->port.membase + UCR1); in imx_stop_rx()
426 unsigned long temp; in imx_transmit_buffer() local
446 temp = readl(sport->port.membase + UCR1); in imx_transmit_buffer()
447 temp &= ~UCR1_TXMPTYEN; in imx_transmit_buffer()
449 temp |= UCR1_TDMAEN; in imx_transmit_buffer()
450 writel(temp, sport->port.membase + UCR1); in imx_transmit_buffer()
452 writel(temp, sport->port.membase + UCR1); in imx_transmit_buffer()
479 unsigned long temp; in dma_tx_callback() local
485 temp = readl(sport->port.membase + UCR1); in dma_tx_callback()
486 temp &= ~UCR1_TDMAEN; in dma_tx_callback()
487 writel(temp, sport->port.membase + UCR1); in dma_tx_callback()
521 unsigned long temp; in imx_dma_tx() local
559 temp = readl(sport->port.membase + UCR1); in imx_dma_tx()
560 temp |= UCR1_TDMAEN; in imx_dma_tx()
561 writel(temp, sport->port.membase + UCR1); in imx_dma_tx()
576 unsigned long temp; in imx_start_tx() local
580 temp = readl(port->membase + UCR2); in imx_start_tx()
582 temp &= ~UCR2_CTS; in imx_start_tx()
584 temp |= UCR2_CTS; in imx_start_tx()
585 writel(temp, port->membase + UCR2); in imx_start_tx()
587 temp = readl(port->membase + UCR4); in imx_start_tx()
588 temp |= UCR4_TCEN; in imx_start_tx()
589 writel(temp, port->membase + UCR4); in imx_start_tx()
593 temp = readl(sport->port.membase + UCR1); in imx_start_tx()
594 writel(temp | UCR1_TXMPTYEN, sport->port.membase + UCR1); in imx_start_tx()
601 temp = readl(sport->port.membase + UCR1); in imx_start_tx()
602 temp &= ~UCR1_TDMAEN; in imx_start_tx()
603 temp |= UCR1_TXMPTYEN; in imx_start_tx()
604 writel(temp, sport->port.membase + UCR1); in imx_start_tx()
648 unsigned long flags, temp; in imx_rxint() local
658 temp = readl(sport->port.membase + USR2); in imx_rxint()
659 if (temp & USR2_BRCD) { in imx_rxint()
719 unsigned long temp; in imx_dma_rxint() local
724 temp = readl(sport->port.membase + USR2); in imx_dma_rxint()
725 if ((temp & USR2_RDR) && !sport->dma_is_rxing) { in imx_dma_rxint()
729 temp = readl(sport->port.membase + UCR1); in imx_dma_rxint()
730 temp &= ~(UCR1_RRDYEN); in imx_dma_rxint()
731 writel(temp, sport->port.membase + UCR1); in imx_dma_rxint()
817 unsigned long temp; in imx_set_mctrl() local
820 temp = readl(sport->port.membase + UCR2); in imx_set_mctrl()
821 temp &= ~(UCR2_CTS | UCR2_CTSC); in imx_set_mctrl()
823 temp |= UCR2_CTS | UCR2_CTSC; in imx_set_mctrl()
824 writel(temp, sport->port.membase + UCR2); in imx_set_mctrl()
827 temp = readl(sport->port.membase + uts_reg(sport)) & ~UTS_LOOP; in imx_set_mctrl()
829 temp |= UTS_LOOP; in imx_set_mctrl()
830 writel(temp, sport->port.membase + uts_reg(sport)); in imx_set_mctrl()
839 unsigned long flags, temp; in imx_break_ctl() local
843 temp = readl(sport->port.membase + UCR1) & ~UCR1_SNDBRK; in imx_break_ctl()
846 temp |= UCR1_SNDBRK; in imx_break_ctl()
848 writel(temp, sport->port.membase + UCR1); in imx_break_ctl()
870 unsigned long temp; in imx_rx_dma_done() local
876 temp = readl(sport->port.membase + UCR1); in imx_rx_dma_done()
877 temp |= UCR1_RRDYEN; in imx_rx_dma_done()
878 writel(temp, sport->port.membase + UCR1); in imx_rx_dma_done()
1053 unsigned long temp; in imx_enable_dma() local
1058 temp = readl(sport->port.membase + UCR1); in imx_enable_dma()
1059 temp |= UCR1_RDMAEN | UCR1_TDMAEN | UCR1_ATDMAEN | in imx_enable_dma()
1062 writel(temp, sport->port.membase + UCR1); in imx_enable_dma()
1065 temp = readl(sport->port.membase + UCR4); in imx_enable_dma()
1066 temp |= UCR4_IDDMAEN; in imx_enable_dma()
1067 writel(temp, sport->port.membase + UCR4); in imx_enable_dma()
1074 unsigned long temp; in imx_disable_dma() local
1077 temp = readl(sport->port.membase + UCR1); in imx_disable_dma()
1078 temp &= ~(UCR1_RDMAEN | UCR1_TDMAEN | UCR1_ATDMAEN); in imx_disable_dma()
1079 writel(temp, sport->port.membase + UCR1); in imx_disable_dma()
1082 temp = readl(sport->port.membase + UCR2); in imx_disable_dma()
1083 temp &= ~(UCR2_CTSC | UCR2_CTS); in imx_disable_dma()
1084 writel(temp, sport->port.membase + UCR2); in imx_disable_dma()
1087 temp = readl(sport->port.membase + UCR4); in imx_disable_dma()
1088 temp &= ~UCR4_IDDMAEN; in imx_disable_dma()
1089 writel(temp, sport->port.membase + UCR4); in imx_disable_dma()
1101 unsigned long flags, temp; in imx_startup() local
1117 temp = readl(sport->port.membase + UCR4); in imx_startup()
1120 temp &= ~(UCR4_CTSTL_MASK << UCR4_CTSTL_SHF); in imx_startup()
1121 temp |= CTSTL << UCR4_CTSTL_SHF; in imx_startup()
1123 writel(temp & ~UCR4_DREN, sport->port.membase + UCR4); in imx_startup()
1128 temp = readl(sport->port.membase + UCR2); in imx_startup()
1129 temp &= ~UCR2_SRST; in imx_startup()
1130 writel(temp, sport->port.membase + UCR2); in imx_startup()
1143 temp = readl(sport->port.membase + UCR1); in imx_startup()
1144 temp |= UCR1_RRDYEN | UCR1_RTSDEN | UCR1_UARTEN; in imx_startup()
1146 writel(temp, sport->port.membase + UCR1); in imx_startup()
1148 temp = readl(sport->port.membase + UCR4); in imx_startup()
1149 temp |= UCR4_OREN; in imx_startup()
1150 writel(temp, sport->port.membase + UCR4); in imx_startup()
1152 temp = readl(sport->port.membase + UCR2); in imx_startup()
1153 temp |= (UCR2_RXEN | UCR2_TXEN); in imx_startup()
1155 temp |= UCR2_IRTS; in imx_startup()
1156 writel(temp, sport->port.membase + UCR2); in imx_startup()
1159 temp = readl(sport->port.membase + UCR3); in imx_startup()
1160 temp |= IMX21_UCR3_RXDMUXSEL | UCR3_ADNIMP; in imx_startup()
1161 writel(temp, sport->port.membase + UCR3); in imx_startup()
1176 unsigned long temp; in imx_shutdown() local
1200 temp = readl(sport->port.membase + UCR2); in imx_shutdown()
1201 temp &= ~(UCR2_TXEN); in imx_shutdown()
1202 writel(temp, sport->port.membase + UCR2); in imx_shutdown()
1215 temp = readl(sport->port.membase + UCR1); in imx_shutdown()
1216 temp &= ~(UCR1_TXMPTYEN | UCR1_RRDYEN | UCR1_RTSDEN | UCR1_UARTEN); in imx_shutdown()
1218 writel(temp, sport->port.membase + UCR1); in imx_shutdown()
1229 unsigned long temp; in imx_flush_buffer() local
1240 temp = readl(sport->port.membase + UCR1); in imx_flush_buffer()
1241 temp &= ~UCR1_TDMAEN; in imx_flush_buffer()
1242 writel(temp, sport->port.membase + UCR1); in imx_flush_buffer()
1257 temp = readl(sport->port.membase + UCR2); in imx_flush_buffer()
1258 temp &= ~UCR2_SRST; in imx_flush_buffer()
1259 writel(temp, sport->port.membase + UCR2); in imx_flush_buffer()
1491 unsigned long temp; in imx_poll_init() local
1505 temp = readl(sport->port.membase + UCR1); in imx_poll_init()
1507 temp |= IMX1_UCR1_UARTCLKEN; in imx_poll_init()
1508 temp |= UCR1_UARTEN | UCR1_RRDYEN; in imx_poll_init()
1509 temp &= ~(UCR1_TXMPTYEN | UCR1_RTSDEN); in imx_poll_init()
1510 writel(temp, sport->port.membase + UCR1); in imx_poll_init()
1512 temp = readl(sport->port.membase + UCR2); in imx_poll_init()
1513 temp |= UCR2_RXEN; in imx_poll_init()
1514 writel(temp, sport->port.membase + UCR2); in imx_poll_init()
1563 unsigned long temp; in imx_rs485_config() local
1566 temp = readl(sport->port.membase + UCR2); in imx_rs485_config()
1567 temp &= ~UCR2_CTSC; in imx_rs485_config()
1569 temp &= ~UCR2_CTS; in imx_rs485_config()
1571 temp |= UCR2_CTS; in imx_rs485_config()
1572 writel(temp, sport->port.membase + UCR2); in imx_rs485_config()