Lines Matching refs:temp
46 u32 temp; in i2c_read_byte() local
58 temp = *(u32 *) (CONFIG_SYS_TSI108_CSR_BASE + chan_offset + I2C_CNTRL2); in i2c_read_byte()
60 if (0 == (temp & (I2C_CNTRL2_RD_STATUS | I2C_CNTRL2_WR_STATUS | in i2c_read_byte()
63 temp = (byte_addr << 16) | ((chip_addr & 0x07) << 8) | in i2c_read_byte()
66 temp; in i2c_read_byte()
79 temp = *(u32 *) (CONFIG_SYS_TSI108_CSR_BASE + chan_offset + I2C_CNTRL2); in i2c_read_byte()
81 if (0 == (temp & (I2C_CNTRL2_RD_STATUS | I2C_CNTRL2_START))) { in i2c_read_byte()
82 if (0 == (temp & in i2c_read_byte()
88 temp = *(u32 *) (CONFIG_SYS_TSI108_CSR_BASE + in i2c_read_byte()
92 *buffer = (u8) (temp & 0xFF); in i2c_read_byte()
97 DPRINT (("I2C HW error reported: 0x%02x\n", temp)); in i2c_read_byte()
106 DPRINT (("I2C Transaction start failed: 0x%02x\n", temp)); in i2c_read_byte()
165 u32 temp; in i2c_write_byte() local
170 temp = *(u32 *) (CONFIG_SYS_TSI108_CSR_BASE + TSI108_I2C_OFFSET + I2C_CNTRL2); in i2c_write_byte()
172 if (0 == (temp & (I2C_CNTRL2_RD_STATUS | I2C_CNTRL2_WR_STATUS | I2C_CNTRL2_START))) { in i2c_write_byte()
178 temp = in i2c_write_byte()
182 I2C_CNTRL1) = temp; in i2c_write_byte()
196 temp = *(u32 *) (CONFIG_SYS_TSI108_CSR_BASE + TSI108_I2C_OFFSET + I2C_CNTRL2); in i2c_write_byte()
198 if (0 == (temp & (I2C_CNTRL2_WR_STATUS | I2C_CNTRL2_START))) { in i2c_write_byte()
199 if (0 == (temp & in i2c_write_byte()
207 DPRINT (("I2C HW error reported: 0x%02x\n", temp)); in i2c_write_byte()
217 DPRINT (("I2C Transaction start failed: 0x%02x\n", temp)); in i2c_write_byte()