Lines Matching refs:op_status
48 u32 op_status = TSI108_I2C_TIMEOUT_ERR; in i2c_read_byte() local
86 op_status = TSI108_I2C_SUCCESS; in i2c_read_byte()
95 op_status = TSI108_I2C_IF_ERROR; in i2c_read_byte()
104 op_status = TSI108_I2C_IF_BUSY; in i2c_read_byte()
109 DPRINT (("I2C read_byte() status: 0x%02x\n", op_status)); in i2c_read_byte()
110 return op_status; in i2c_read_byte()
133 u32 op_status = TSI108_I2C_PARAM_ERR; in i2c_read() local
144 op_status = i2c_read_byte(i2c_if, chip_addr, byte_addr++, buffer++); in i2c_read()
146 if (TSI108_I2C_SUCCESS != op_status) { in i2c_read()
147 DPRINT (("I2C read_byte() failed: 0x%02x (%d left)\n", op_status, len)); in i2c_read()
154 DPRINT (("I2C read() status: 0x%02x\n", op_status)); in i2c_read()
155 return op_status; in i2c_read()
167 u32 op_status = TSI108_I2C_TIMEOUT_ERR; in i2c_write_byte() local
191 op_status = TSI108_I2C_TIMEOUT_ERR; in i2c_write_byte()
202 op_status = TSI108_I2C_SUCCESS; in i2c_write_byte()
205 op_status = TSI108_I2C_IF_ERROR; in i2c_write_byte()
215 op_status = TSI108_I2C_IF_BUSY; in i2c_write_byte()
220 return op_status; in i2c_write_byte()
239 u32 op_status = TSI108_I2C_PARAM_ERR; in i2c_write() local
244 op_status = in i2c_write()
247 if (TSI108_I2C_SUCCESS != op_status) { in i2c_write()
248 DPRINT (("I2C write_byte() failed: 0x%02x (%d left)\n", op_status, len)); in i2c_write()
255 return op_status; in i2c_write()