Lines Matching refs:temp
330 unsigned int temp; in i2c_imx_clear_irq() local
337 temp = ~i2c_imx->hwdata->i2sr_clr_opcode ^ bits; in i2c_imx_clear_irq()
338 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2SR); in i2c_imx_clear_irq()
487 unsigned int temp; in i2c_imx_bus_busy() local
490 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2SR); in i2c_imx_bus_busy()
493 if (temp & I2SR_IAL) { in i2c_imx_bus_busy()
498 if (for_busy && (temp & I2SR_IBB)) { in i2c_imx_bus_busy()
502 if (!for_busy && !(temp & I2SR_IBB)) { in i2c_imx_bus_busy()
638 unsigned int temp = 0; in i2c_imx_start() local
653 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_start()
654 temp |= I2CR_MSTA; in i2c_imx_start()
655 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_start()
660 temp |= I2CR_IIEN | I2CR_MTX | I2CR_TXAK; in i2c_imx_start()
662 temp &= ~I2CR_IIEN; /* Disable interrupt */ in i2c_imx_start()
664 temp &= ~I2CR_DMAEN; in i2c_imx_start()
665 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_start()
671 unsigned int temp = 0; in i2c_imx_stop() local
675 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_stop()
676 if (!(temp & I2CR_MSTA)) in i2c_imx_stop()
678 temp &= ~(I2CR_MSTA | I2CR_MTX); in i2c_imx_stop()
680 temp &= ~I2CR_DMAEN; in i2c_imx_stop()
681 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_stop()
695 temp = i2c_imx->hwdata->i2cr_ien_opcode ^ I2CR_IEN, in i2c_imx_stop()
696 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_stop()
707 unsigned int temp; in i2c_imx_enable_bus_idle() local
709 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_IBIC); in i2c_imx_enable_bus_idle()
710 temp |= IBIC_BIIE; in i2c_imx_enable_bus_idle()
711 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()