Lines Matching refs:ec
54 struct cros_ec_dev *ec = sensorhub->ec; in cros_ec_sensorhub_register() local
67 ret = cros_ec_cmd_xfer_status(ec->ec_dev, msg); in cros_ec_sensorhub_register()
110 ec->has_kb_wake_angle = true; in cros_ec_sensorhub_register()
112 if (cros_ec_check_features(ec, in cros_ec_sensorhub_register()
127 struct cros_ec_dev *ec = dev_get_drvdata(dev->parent); in cros_ec_sensorhub_probe() local
134 ec->ec_dev->max_response), GFP_KERNEL); in cros_ec_sensorhub_probe()
138 msg->command = EC_CMD_MOTION_SENSE_CMD + ec->cmd_offset; in cros_ec_sensorhub_probe()
147 data->ec = ec; in cros_ec_sensorhub_probe()
155 if (cros_ec_check_features(ec, EC_FEATURE_MOTION_SENSE)) { in cros_ec_sensorhub_probe()
156 sensor_num = cros_ec_get_sensor_count(ec); in cros_ec_sensorhub_probe()
173 if (cros_ec_check_features(ec, EC_FEATURE_MOTION_SENSE_FIFO)) { in cros_ec_sensorhub_probe()
188 if (cros_ec_check_features(ec, EC_FEATURE_MOTION_SENSE_FIFO)) { in cros_ec_sensorhub_probe()
228 struct cros_ec_dev *ec = sensorhub->ec; in cros_ec_sensorhub_suspend() local
230 if (cros_ec_check_features(ec, EC_FEATURE_MOTION_SENSE_FIFO)) in cros_ec_sensorhub_suspend()
238 struct cros_ec_dev *ec = sensorhub->ec; in cros_ec_sensorhub_resume() local
240 if (cros_ec_check_features(ec, EC_FEATURE_MOTION_SENSE_FIFO)) in cros_ec_sensorhub_resume()