• Home
  • Raw
  • Download

Lines Matching refs:temp

163 	unsigned int temp;  in i2c_imx_bus_busy()  local
168 temp = readb(i2c_imx->base + IMX_I2C_I2SR); in i2c_imx_bus_busy()
169 if (for_busy && (temp & I2SR_IBB)) in i2c_imx_bus_busy()
171 if (!for_busy && !(temp & I2SR_IBB)) in i2c_imx_bus_busy()
210 unsigned int temp = 0; in i2c_imx_start() local
225 temp = readb(i2c_imx->base + IMX_I2C_I2CR); in i2c_imx_start()
226 temp |= I2CR_MSTA; in i2c_imx_start()
227 writeb(temp, i2c_imx->base + IMX_I2C_I2CR); in i2c_imx_start()
233 temp |= I2CR_IIEN | I2CR_MTX | I2CR_TXAK; in i2c_imx_start()
234 writeb(temp, i2c_imx->base + IMX_I2C_I2CR); in i2c_imx_start()
240 unsigned int temp = 0; in i2c_imx_stop() local
245 temp = readb(i2c_imx->base + IMX_I2C_I2CR); in i2c_imx_stop()
246 temp &= ~(I2CR_MSTA | I2CR_MTX); in i2c_imx_stop()
247 writeb(temp, i2c_imx->base + IMX_I2C_I2CR); in i2c_imx_stop()
308 unsigned int temp; in i2c_imx_isr() local
310 temp = readb(i2c_imx->base + IMX_I2C_I2SR); in i2c_imx_isr()
311 if (temp & I2SR_IIF) { in i2c_imx_isr()
313 i2c_imx->i2csr = temp; in i2c_imx_isr()
314 temp &= ~I2SR_IIF; in i2c_imx_isr()
315 writeb(temp, i2c_imx->base + IMX_I2C_I2SR); in i2c_imx_isr()
359 unsigned int temp; in i2c_imx_read() local
377 temp = readb(i2c_imx->base + IMX_I2C_I2CR); in i2c_imx_read()
378 temp &= ~I2CR_MTX; in i2c_imx_read()
380 temp &= ~I2CR_TXAK; in i2c_imx_read()
381 writeb(temp, i2c_imx->base + IMX_I2C_I2CR); in i2c_imx_read()
396 temp = readb(i2c_imx->base + IMX_I2C_I2CR); in i2c_imx_read()
397 temp &= ~(I2CR_MSTA | I2CR_MTX); in i2c_imx_read()
398 writeb(temp, i2c_imx->base + IMX_I2C_I2CR); in i2c_imx_read()
404 temp = readb(i2c_imx->base + IMX_I2C_I2CR); in i2c_imx_read()
405 temp |= I2CR_TXAK; in i2c_imx_read()
406 writeb(temp, i2c_imx->base + IMX_I2C_I2CR); in i2c_imx_read()
419 unsigned int i, temp; in i2c_imx_xfer() local
435 temp = readb(i2c_imx->base + IMX_I2C_I2CR); in i2c_imx_xfer()
436 temp |= I2CR_RSTA; in i2c_imx_xfer()
437 writeb(temp, i2c_imx->base + IMX_I2C_I2CR); in i2c_imx_xfer()
446 temp = readb(i2c_imx->base + IMX_I2C_I2CR); in i2c_imx_xfer()
449 (temp & I2CR_IEN ? 1 : 0), (temp & I2CR_IIEN ? 1 : 0), in i2c_imx_xfer()
450 (temp & I2CR_MSTA ? 1 : 0), (temp & I2CR_MTX ? 1 : 0), in i2c_imx_xfer()
451 (temp & I2CR_TXAK ? 1 : 0), (temp & I2CR_RSTA ? 1 : 0)); in i2c_imx_xfer()
452 temp = readb(i2c_imx->base + IMX_I2C_I2SR); in i2c_imx_xfer()
456 (temp & I2SR_ICF ? 1 : 0), (temp & I2SR_IAAS ? 1 : 0), in i2c_imx_xfer()
457 (temp & I2SR_IBB ? 1 : 0), (temp & I2SR_IAL ? 1 : 0), in i2c_imx_xfer()
458 (temp & I2SR_SRW ? 1 : 0), (temp & I2SR_IIF ? 1 : 0), in i2c_imx_xfer()
459 (temp & I2SR_RXAK ? 1 : 0)); in i2c_imx_xfer()