Lines Matching refs:msgs
184 struct i2c_msg msgs[2]; in elants_i2c_execute_command() local
203 msgs[0].addr = client->addr; in elants_i2c_execute_command()
204 msgs[0].flags = client->flags & I2C_M_TEN; in elants_i2c_execute_command()
205 msgs[0].len = cmd_size; in elants_i2c_execute_command()
206 msgs[0].buf = (u8 *)cmd; in elants_i2c_execute_command()
208 msgs[1].addr = client->addr; in elants_i2c_execute_command()
209 msgs[1].flags = client->flags & I2C_M_TEN; in elants_i2c_execute_command()
210 msgs[1].flags |= I2C_M_RD; in elants_i2c_execute_command()
211 msgs[1].len = resp_size; in elants_i2c_execute_command()
212 msgs[1].buf = resp; in elants_i2c_execute_command()
214 ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); in elants_i2c_execute_command()
218 if (ret != ARRAY_SIZE(msgs) || resp[FW_HDR_TYPE] != expected_response) in elants_i2c_execute_command()