Lines Matching refs:sensorhub
53 struct cros_ec_sensorhub *sensorhub) in cros_ec_sensorhub_register() argument
56 struct cros_ec_command *msg = sensorhub->msg; in cros_ec_sensorhub_register()
57 struct cros_ec_dev *ec = sensorhub->ec; in cros_ec_sensorhub_register()
66 for (i = 0; i < sensorhub->sensor_num; i++) { in cros_ec_sensorhub_register()
67 sensorhub->params->cmd = MOTIONSENSE_CMD_INFO; in cros_ec_sensorhub_register()
68 sensorhub->params->info.sensor_num = i; in cros_ec_sensorhub_register()
90 switch (sensorhub->resp->info.type) { in cros_ec_sensorhub_register()
114 sensorhub->resp->info.type); in cros_ec_sensorhub_register()
122 sensor_type[sensorhub->resp->info.type]++; in cros_ec_sensorhub_register()
243 struct cros_ec_sensorhub *sensorhub = dev_get_drvdata(dev); in cros_ec_sensorhub_suspend() local
244 struct cros_ec_dev *ec = sensorhub->ec; in cros_ec_sensorhub_suspend()
247 return cros_ec_sensorhub_ring_fifo_enable(sensorhub, false); in cros_ec_sensorhub_suspend()
253 struct cros_ec_sensorhub *sensorhub = dev_get_drvdata(dev); in cros_ec_sensorhub_resume() local
254 struct cros_ec_dev *ec = sensorhub->ec; in cros_ec_sensorhub_resume()
257 return cros_ec_sensorhub_ring_fifo_enable(sensorhub, true); in cros_ec_sensorhub_resume()