Lines Matching refs:sensorhub
51 struct cros_ec_sensorhub *sensorhub) in cros_ec_sensorhub_register() argument
54 struct cros_ec_command *msg = sensorhub->msg; in cros_ec_sensorhub_register()
55 struct cros_ec_dev *ec = sensorhub->ec; in cros_ec_sensorhub_register()
64 for (i = 0; i < sensorhub->sensor_num; i++) { in cros_ec_sensorhub_register()
65 sensorhub->params->cmd = MOTIONSENSE_CMD_INFO; in cros_ec_sensorhub_register()
66 sensorhub->params->info.sensor_num = i; in cros_ec_sensorhub_register()
75 switch (sensorhub->resp->info.type) { in cros_ec_sensorhub_register()
99 sensorhub->resp->info.type); in cros_ec_sensorhub_register()
107 sensor_type[sensorhub->resp->info.type]++; in cros_ec_sensorhub_register()
228 struct cros_ec_sensorhub *sensorhub = dev_get_drvdata(dev); in cros_ec_sensorhub_suspend() local
229 struct cros_ec_dev *ec = sensorhub->ec; in cros_ec_sensorhub_suspend()
232 return cros_ec_sensorhub_ring_fifo_enable(sensorhub, false); in cros_ec_sensorhub_suspend()
238 struct cros_ec_sensorhub *sensorhub = dev_get_drvdata(dev); in cros_ec_sensorhub_resume() local
239 struct cros_ec_dev *ec = sensorhub->ec; in cros_ec_sensorhub_resume()
242 return cros_ec_sensorhub_ring_fifo_enable(sensorhub, true); in cros_ec_sensorhub_resume()