Lines Matching refs:msg
53 struct cros_ec_command *msg = sensorhub->msg; in cros_ec_sensorhub_register() local
59 msg->version = 1; in cros_ec_sensorhub_register()
60 msg->insize = sizeof(struct ec_response_motion_sense); in cros_ec_sensorhub_register()
61 msg->outsize = sizeof(struct ec_params_motion_sense); in cros_ec_sensorhub_register()
67 ret = cros_ec_cmd_xfer_status(ec->ec_dev, msg); in cros_ec_sensorhub_register()
70 i, ret, msg->result); in cros_ec_sensorhub_register()
129 struct cros_ec_command *msg; in cros_ec_sensorhub_probe() local
132 msg = devm_kzalloc(dev, sizeof(struct cros_ec_command) + in cros_ec_sensorhub_probe()
135 if (!msg) in cros_ec_sensorhub_probe()
138 msg->command = EC_CMD_MOTION_SENSE_CMD + ec->cmd_offset; in cros_ec_sensorhub_probe()
148 data->msg = msg; in cros_ec_sensorhub_probe()
149 data->params = (struct ec_params_motion_sense *)msg->data; in cros_ec_sensorhub_probe()
150 data->resp = (struct ec_response_motion_sense *)msg->data; in cros_ec_sensorhub_probe()