Lines Matching refs:msgs
194 struct i2c_msg msgs[2]; in elants_i2c_execute_command() local
213 msgs[0].addr = client->addr; in elants_i2c_execute_command()
214 msgs[0].flags = client->flags & I2C_M_TEN; in elants_i2c_execute_command()
215 msgs[0].len = cmd_size; in elants_i2c_execute_command()
216 msgs[0].buf = (u8 *)cmd; in elants_i2c_execute_command()
218 msgs[1].addr = client->addr; in elants_i2c_execute_command()
219 msgs[1].flags = client->flags & I2C_M_TEN; in elants_i2c_execute_command()
220 msgs[1].flags |= I2C_M_RD; in elants_i2c_execute_command()
221 msgs[1].len = resp_size; in elants_i2c_execute_command()
222 msgs[1].buf = resp; in elants_i2c_execute_command()
224 ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); in elants_i2c_execute_command()
228 if (ret != ARRAY_SIZE(msgs) || resp[FW_HDR_TYPE] != expected_response) in elants_i2c_execute_command()