Lines Matching refs:temp

329 	unsigned int temp;  in i2c_imx_clear_irq()  local
336 temp = ~i2c_imx->hwdata->i2sr_clr_opcode ^ bits; in i2c_imx_clear_irq()
337 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2SR); in i2c_imx_clear_irq()
486 unsigned int temp; in i2c_imx_bus_busy() local
489 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2SR); in i2c_imx_bus_busy()
492 if (temp & I2SR_IAL) { in i2c_imx_bus_busy()
497 if (for_busy && (temp & I2SR_IBB)) { in i2c_imx_bus_busy()
501 if (!for_busy && !(temp & I2SR_IBB)) { in i2c_imx_bus_busy()
637 unsigned int temp = 0; in i2c_imx_start() local
652 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_start()
653 temp |= I2CR_MSTA; in i2c_imx_start()
654 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_start()
659 temp |= I2CR_IIEN | I2CR_MTX | I2CR_TXAK; in i2c_imx_start()
661 temp &= ~I2CR_IIEN; /* Disable interrupt */ in i2c_imx_start()
663 temp &= ~I2CR_DMAEN; in i2c_imx_start()
664 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_start()
670 unsigned int temp = 0; in i2c_imx_stop() local
674 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_stop()
675 if (!(temp & I2CR_MSTA)) in i2c_imx_stop()
677 temp &= ~(I2CR_MSTA | I2CR_MTX); in i2c_imx_stop()
679 temp &= ~I2CR_DMAEN; in i2c_imx_stop()
680 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_stop()
694 temp = i2c_imx->hwdata->i2cr_ien_opcode ^ I2CR_IEN, in i2c_imx_stop()
695 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_stop()
706 unsigned int temp; in i2c_imx_enable_bus_idle() local
708 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_IBIC); in i2c_imx_enable_bus_idle()
709 temp |= IBIC_BIIE; in i2c_imx_enable_bus_idle()
710 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_IBIC); in i2c_imx_enable_bus_idle()
841 int temp; in i2c_imx_slave_init() local
849 temp = i2c_imx->hwdata->i2cr_ien_opcode; in i2c_imx_slave_init()
850 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_slave_init()
853 temp |= I2CR_IIEN; in i2c_imx_slave_init()
854 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_slave_init()
951 unsigned int temp = 0; in i2c_imx_dma_write() local
964 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_dma_write()
965 temp |= I2CR_DMAEN; in i2c_imx_dma_write()
966 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_dma_write()
983 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2SR); in i2c_imx_dma_write()
984 if (temp & I2SR_ICF) in i2c_imx_dma_write()
994 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_dma_write()
995 temp &= ~I2CR_DMAEN; in i2c_imx_dma_write()
996 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_dma_write()
1013 unsigned int temp; in i2c_imx_dma_read() local
1038 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2SR); in i2c_imx_dma_read()
1039 if (temp & I2SR_ICF) in i2c_imx_dma_read()
1049 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_dma_read()
1050 temp &= ~I2CR_DMAEN; in i2c_imx_dma_read()
1051 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_dma_read()
1054 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_dma_read()
1055 temp |= I2CR_TXAK; in i2c_imx_dma_read()
1056 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_dma_read()
1070 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_dma_read()
1071 if (!(temp & I2CR_MSTA)) in i2c_imx_dma_read()
1073 temp &= ~(I2CR_MSTA | I2CR_MTX); in i2c_imx_dma_read()
1074 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_dma_read()
1085 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_dma_read()
1086 temp |= I2CR_MTX; in i2c_imx_dma_read()
1087 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_dma_read()
1132 unsigned int temp; in i2c_imx_read() local
1153 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_read()
1154 temp &= ~I2CR_MTX; in i2c_imx_read()
1161 temp &= ~I2CR_TXAK; in i2c_imx_read()
1163 temp |= I2CR_DMAEN; in i2c_imx_read()
1164 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_read()
1201 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_read()
1202 if (!(temp & I2CR_MSTA)) in i2c_imx_read()
1204 temp &= ~(I2CR_MSTA | I2CR_MTX); in i2c_imx_read()
1205 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_read()
1216 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_read()
1217 temp |= I2CR_MTX; in i2c_imx_read()
1218 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_read()
1223 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_read()
1224 temp |= I2CR_TXAK; in i2c_imx_read()
1225 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_read()
1241 unsigned int i, temp; in i2c_imx_xfer_common() local
1270 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_xfer_common()
1271 temp |= I2CR_RSTA; in i2c_imx_xfer_common()
1272 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_xfer_common()
1281 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_xfer_common()
1285 (temp & I2CR_IEN ? 1 : 0), (temp & I2CR_IIEN ? 1 : 0), in i2c_imx_xfer_common()
1286 (temp & I2CR_MSTA ? 1 : 0), (temp & I2CR_MTX ? 1 : 0), in i2c_imx_xfer_common()
1287 (temp & I2CR_TXAK ? 1 : 0), (temp & I2CR_RSTA ? 1 : 0)); in i2c_imx_xfer_common()
1288 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2SR); in i2c_imx_xfer_common()
1292 (temp & I2SR_ICF ? 1 : 0), (temp & I2SR_IAAS ? 1 : 0), in i2c_imx_xfer_common()
1293 (temp & I2SR_IBB ? 1 : 0), (temp & I2SR_IAL ? 1 : 0), in i2c_imx_xfer_common()
1294 (temp & I2SR_SRW ? 1 : 0), (temp & I2SR_IIF ? 1 : 0), in i2c_imx_xfer_common()
1295 (temp & I2SR_RXAK ? 1 : 0)); in i2c_imx_xfer_common()