Searched refs:sensorhub (Results 1 – 6 of 6) sorted by relevance
39 cros_sensorhub_send_sample(struct cros_ec_sensorhub *sensorhub, in cros_sensorhub_send_sample() argument46 if (id >= sensorhub->sensor_num) in cros_sensorhub_send_sample()49 cb = sensorhub->push_data[id].push_data_cb; in cros_sensorhub_send_sample()53 indio_dev = sensorhub->push_data[id].indio_dev; in cros_sensorhub_send_sample()75 int cros_ec_sensorhub_register_push_data(struct cros_ec_sensorhub *sensorhub, in cros_ec_sensorhub_register_push_data() argument80 if (sensor_num >= sensorhub->sensor_num) in cros_ec_sensorhub_register_push_data()82 if (sensorhub->push_data[sensor_num].indio_dev) in cros_ec_sensorhub_register_push_data()85 sensorhub->push_data[sensor_num].indio_dev = indio_dev; in cros_ec_sensorhub_register_push_data()86 sensorhub->push_data[sensor_num].push_data_cb = cb; in cros_ec_sensorhub_register_push_data()92 void cros_ec_sensorhub_unregister_push_data(struct cros_ec_sensorhub *sensorhub, in cros_ec_sensorhub_unregister_push_data() argument[all …]
51 struct cros_ec_sensorhub *sensorhub) in cros_ec_sensorhub_register() argument54 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[all …]
29 cros-ec-sensorhub-objs := cros_ec_sensorhub.o cros_ec_sensorhub_ring.o30 obj-$(CONFIG_CROS_EC_SENSORHUB) += cros-ec-sensorhub.o
180 int cros_ec_sensorhub_register_push_data(struct cros_ec_sensorhub *sensorhub,185 void cros_ec_sensorhub_unregister_push_data(struct cros_ec_sensorhub *sensorhub,188 int cros_ec_sensorhub_ring_allocate(struct cros_ec_sensorhub *sensorhub);189 int cros_ec_sensorhub_ring_add(struct cros_ec_sensorhub *sensorhub);191 int cros_ec_sensorhub_ring_fifo_enable(struct cros_ec_sensorhub *sensorhub,
22 SSP driver for sensorhub.23 If you say yes here you get ssp support for sensorhub.25 module will be called sensorhub.
6 sensorhub-objs := ssp_dev.o ssp_spi.o7 obj-$(CONFIG_IIO_SSP_SENSORHUB) += sensorhub.o