Lines Matching refs:temp
379 unsigned int temp; in i2c_imx_clear_irq() local
386 temp = ~i2c_imx->hwdata->i2sr_clr_opcode ^ bits; in i2c_imx_clear_irq()
387 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2SR); in i2c_imx_clear_irq()
536 unsigned int temp; in i2c_imx_bus_busy() local
542 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2SR); in i2c_imx_bus_busy()
545 if (temp & I2SR_IAL) { in i2c_imx_bus_busy()
550 if (for_busy && (temp & I2SR_IBB)) { in i2c_imx_bus_busy()
554 if (!for_busy && !(temp & I2SR_IBB)) { in i2c_imx_bus_busy()
690 unsigned int temp = 0; in i2c_imx_start() local
705 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_start()
706 temp |= I2CR_MSTA; in i2c_imx_start()
707 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_start()
712 temp |= I2CR_IIEN | I2CR_MTX | I2CR_TXAK; in i2c_imx_start()
714 temp &= ~I2CR_IIEN; /* Disable interrupt */ in i2c_imx_start()
716 temp &= ~I2CR_DMAEN; in i2c_imx_start()
717 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_start()
723 unsigned int temp = 0; in i2c_imx_stop() local
727 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_stop()
728 if (!(temp & I2CR_MSTA)) in i2c_imx_stop()
730 temp &= ~(I2CR_MSTA | I2CR_MTX); in i2c_imx_stop()
732 temp &= ~I2CR_DMAEN; in i2c_imx_stop()
733 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_stop()
747 temp = i2c_imx->hwdata->i2cr_ien_opcode ^ I2CR_IEN; in i2c_imx_stop()
748 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_stop()
759 unsigned int temp; in i2c_imx_enable_bus_idle() local
761 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_IBIC); in i2c_imx_enable_bus_idle()
762 temp |= IBIC_BIIE; in i2c_imx_enable_bus_idle()
763 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_IBIC); in i2c_imx_enable_bus_idle()
899 int temp; in i2c_imx_slave_init() local
907 temp = i2c_imx->hwdata->i2cr_ien_opcode; in i2c_imx_slave_init()
908 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_slave_init()
911 temp |= I2CR_IIEN; in i2c_imx_slave_init()
912 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_slave_init()
995 unsigned int temp; in i2c_imx_isr_read() local
1002 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_isr_read()
1003 temp &= ~I2CR_MTX; in i2c_imx_isr_read()
1005 temp &= ~I2CR_TXAK; in i2c_imx_isr_read()
1007 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_isr_read()
1015 unsigned int temp; in i2c_imx_isr_read_continue() local
1023 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_isr_read_continue()
1024 if (!(temp & I2CR_MSTA)) in i2c_imx_isr_read_continue()
1026 temp &= ~(I2CR_MSTA | I2CR_MTX); in i2c_imx_isr_read_continue()
1027 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_isr_read_continue()
1036 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_isr_read_continue()
1037 temp |= I2CR_MTX; in i2c_imx_isr_read_continue()
1038 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_isr_read_continue()
1041 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_isr_read_continue()
1042 temp |= I2CR_TXAK; in i2c_imx_isr_read_continue()
1043 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_isr_read_continue()
1154 unsigned int temp = 0; in i2c_imx_dma_write() local
1169 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_dma_write()
1170 temp |= I2CR_DMAEN; in i2c_imx_dma_write()
1171 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_dma_write()
1188 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2SR); in i2c_imx_dma_write()
1189 if (temp & I2SR_ICF) in i2c_imx_dma_write()
1199 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_dma_write()
1200 temp &= ~I2CR_DMAEN; in i2c_imx_dma_write()
1201 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_dma_write()
1217 unsigned int temp = 0; in i2c_imx_prepare_read() local
1231 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_prepare_read()
1232 temp &= ~I2CR_MTX; in i2c_imx_prepare_read()
1239 temp &= ~I2CR_TXAK; in i2c_imx_prepare_read()
1241 temp |= I2CR_DMAEN; in i2c_imx_prepare_read()
1243 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_prepare_read()
1254 unsigned int temp; in i2c_imx_dma_read() local
1286 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2SR); in i2c_imx_dma_read()
1287 if (temp & I2SR_ICF) in i2c_imx_dma_read()
1297 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_dma_read()
1298 temp &= ~I2CR_DMAEN; in i2c_imx_dma_read()
1299 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_dma_read()
1302 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_dma_read()
1303 temp |= I2CR_TXAK; in i2c_imx_dma_read()
1304 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_dma_read()
1318 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_dma_read()
1319 if (!(temp & I2CR_MSTA)) in i2c_imx_dma_read()
1321 temp &= ~(I2CR_MSTA | I2CR_MTX); in i2c_imx_dma_read()
1322 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_dma_read()
1333 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_dma_read()
1334 temp |= I2CR_MTX; in i2c_imx_dma_read()
1335 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_dma_read()
1410 unsigned int temp; in i2c_imx_atomic_read() local
1448 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_atomic_read()
1449 if (!(temp & I2CR_MSTA)) in i2c_imx_atomic_read()
1451 temp &= ~(I2CR_MSTA | I2CR_MTX); in i2c_imx_atomic_read()
1452 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_atomic_read()
1463 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_atomic_read()
1464 temp |= I2CR_MTX; in i2c_imx_atomic_read()
1465 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_atomic_read()
1470 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_atomic_read()
1471 temp |= I2CR_TXAK; in i2c_imx_atomic_read()
1472 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_atomic_read()
1530 unsigned int i, temp; in i2c_imx_xfer_common() local
1560 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_xfer_common()
1561 temp |= I2CR_RSTA; in i2c_imx_xfer_common()
1562 imx_i2c_write_reg(temp, i2c_imx, IMX_I2C_I2CR); in i2c_imx_xfer_common()
1571 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2CR); in i2c_imx_xfer_common()
1575 (temp & I2CR_IEN ? 1 : 0), (temp & I2CR_IIEN ? 1 : 0), in i2c_imx_xfer_common()
1576 (temp & I2CR_MSTA ? 1 : 0), (temp & I2CR_MTX ? 1 : 0), in i2c_imx_xfer_common()
1577 (temp & I2CR_TXAK ? 1 : 0), (temp & I2CR_RSTA ? 1 : 0)); in i2c_imx_xfer_common()
1578 temp = imx_i2c_read_reg(i2c_imx, IMX_I2C_I2SR); in i2c_imx_xfer_common()
1582 (temp & I2SR_ICF ? 1 : 0), (temp & I2SR_IAAS ? 1 : 0), in i2c_imx_xfer_common()
1583 (temp & I2SR_IBB ? 1 : 0), (temp & I2SR_IAL ? 1 : 0), in i2c_imx_xfer_common()
1584 (temp & I2SR_SRW ? 1 : 0), (temp & I2SR_IIF ? 1 : 0), in i2c_imx_xfer_common()
1585 (temp & I2SR_RXAK ? 1 : 0)); in i2c_imx_xfer_common()