Lines Matching full:temp
325 unsigned int temp; in i2c_imx_clear_irq() local
332 temp = ~i2c_imx->hwdata->i2sr_clr_opcode ^ bits; in i2c_imx_clear_irq()
333 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2SR); in i2c_imx_clear_irq()
482 unsigned int temp; in i2c_imx_bus_busy() local
485 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2SR); in i2c_imx_bus_busy()
488 if (temp & I2SR_IAL) { in i2c_imx_bus_busy()
493 if (for_busy && (temp & I2SR_IBB)) { in i2c_imx_bus_busy()
497 if (!for_busy && !(temp & I2SR_IBB)) { in i2c_imx_bus_busy()
633 unsigned int temp = 0; in i2c_imx_start() local
648 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_start()
649 temp |= I2CR_MSTA; in i2c_imx_start()
650 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_start()
655 temp |= I2CR_IIEN | I2CR_MTX | I2CR_TXAK; in i2c_imx_start()
657 temp &= ~I2CR_IIEN; /* Disable interrupt */ in i2c_imx_start()
659 temp &= ~I2CR_DMAEN; in i2c_imx_start()
660 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_start()
666 unsigned int temp = 0; in i2c_imx_stop() local
670 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_stop()
671 if (!(temp & I2CR_MSTA)) in i2c_imx_stop()
673 temp &= ~(I2CR_MSTA | I2CR_MTX); in i2c_imx_stop()
675 temp &= ~I2CR_DMAEN; in i2c_imx_stop()
676 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_stop()
690 temp = i2c_imx->hwdata->i2cr_ien_opcode ^ I2CR_IEN; in i2c_imx_stop()
691 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_stop()
702 unsigned int temp; in i2c_imx_enable_bus_idle() local
704 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_IBIC); in i2c_imx_enable_bus_idle()
705 temp |= IBIC_BIIE; in i2c_imx_enable_bus_idle()
706 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_IBIC); in i2c_imx_enable_bus_idle()
842 int temp; in i2c_imx_slave_init() local
850 temp = i2c_imx->hwdata->i2cr_ien_opcode; in i2c_imx_slave_init()
851 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_slave_init()
854 temp |= I2CR_IIEN; in i2c_imx_slave_init()
855 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_slave_init()
952 unsigned int temp = 0; in i2c_imx_dma_write() local
965 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_dma_write()
966 temp |= I2CR_DMAEN; in i2c_imx_dma_write()
967 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_dma_write()
984 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2SR); in i2c_imx_dma_write()
985 if (temp & I2SR_ICF) in i2c_imx_dma_write()
995 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_dma_write()
996 temp &= ~I2CR_DMAEN; in i2c_imx_dma_write()
997 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_dma_write()
1014 unsigned int temp; in i2c_imx_dma_read() local
1039 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2SR); in i2c_imx_dma_read()
1040 if (temp & I2SR_ICF) in i2c_imx_dma_read()
1050 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_dma_read()
1051 temp &= ~I2CR_DMAEN; in i2c_imx_dma_read()
1052 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_dma_read()
1055 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_dma_read()
1056 temp |= I2CR_TXAK; in i2c_imx_dma_read()
1057 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_dma_read()
1071 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_dma_read()
1072 if (!(temp & I2CR_MSTA)) in i2c_imx_dma_read()
1074 temp &= ~(I2CR_MSTA | I2CR_MTX); in i2c_imx_dma_read()
1075 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_dma_read()
1086 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_dma_read()
1087 temp |= I2CR_MTX; in i2c_imx_dma_read()
1088 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_dma_read()
1133 unsigned int temp; in i2c_imx_read() local
1154 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_read()
1155 temp &= ~I2CR_MTX; in i2c_imx_read()
1162 temp &= ~I2CR_TXAK; in i2c_imx_read()
1164 temp |= I2CR_DMAEN; in i2c_imx_read()
1165 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_read()
1202 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_read()
1203 if (!(temp & I2CR_MSTA)) in i2c_imx_read()
1205 temp &= ~(I2CR_MSTA | I2CR_MTX); in i2c_imx_read()
1206 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_read()
1217 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_read()
1218 temp |= I2CR_MTX; in i2c_imx_read()
1219 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_read()
1224 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_read()
1225 temp |= I2CR_TXAK; in i2c_imx_read()
1226 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_read()
1242 unsigned int i, temp; in i2c_imx_xfer_common() local
1271 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_xfer_common()
1272 temp |= I2CR_RSTA; in i2c_imx_xfer_common()
1273 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_xfer_common()
1282 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_xfer_common()
1286 (temp & I2CR_IEN ? 1 : 0), (temp & I2CR_IIEN ? 1 : 0), in i2c_imx_xfer_common()
1287 (temp & I2CR_MSTA ? 1 : 0), (temp & I2CR_MTX ? 1 : 0), in i2c_imx_xfer_common()
1288 (temp & I2CR_TXAK ? 1 : 0), (temp & I2CR_RSTA ? 1 : 0)); in i2c_imx_xfer_common()
1289 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2SR); in i2c_imx_xfer_common()
1293 (temp & I2SR_ICF ? 1 : 0), (temp & I2SR_IAAS ? 1 : 0), in i2c_imx_xfer_common()
1294 (temp & I2SR_IBB ? 1 : 0), (temp & I2SR_IAL ? 1 : 0), in i2c_imx_xfer_common()
1295 (temp & I2SR_SRW ? 1 : 0), (temp & I2SR_IIF ? 1 : 0), in i2c_imx_xfer_common()
1296 (temp & I2SR_RXAK ? 1 : 0)); in i2c_imx_xfer_common()