Lines Matching refs:sensorhub
50 struct cros_ec_sensorhub *sensorhub) in cros_ec_sensorhub_register() argument
53 struct cros_ec_command *msg = sensorhub->msg; in cros_ec_sensorhub_register()
54 struct cros_ec_dev *ec = sensorhub->ec; in cros_ec_sensorhub_register()
63 for (i = 0; i < sensorhub->sensor_num; i++) { in cros_ec_sensorhub_register()
64 sensorhub->params->cmd = MOTIONSENSE_CMD_INFO; in cros_ec_sensorhub_register()
65 sensorhub->params->info.sensor_num = i; in cros_ec_sensorhub_register()
74 switch (sensorhub->resp->info.type) { in cros_ec_sensorhub_register()
98 sensorhub->resp->info.type); in cros_ec_sensorhub_register()
106 sensor_type[sensorhub->resp->info.type]++; in cros_ec_sensorhub_register()
227 struct cros_ec_sensorhub *sensorhub = dev_get_drvdata(dev); in cros_ec_sensorhub_suspend() local
228 struct cros_ec_dev *ec = sensorhub->ec; in cros_ec_sensorhub_suspend()
231 return cros_ec_sensorhub_ring_fifo_enable(sensorhub, false); in cros_ec_sensorhub_suspend()
237 struct cros_ec_sensorhub *sensorhub = dev_get_drvdata(dev); in cros_ec_sensorhub_resume() local
238 struct cros_ec_dev *ec = sensorhub->ec; in cros_ec_sensorhub_resume()
241 return cros_ec_sensorhub_ring_fifo_enable(sensorhub, true); in cros_ec_sensorhub_resume()