Home
last modified time | relevance | path

Searched refs:sensor_num (Results 1 – 8 of 8) sorted by relevance

/drivers/platform/chrome/
Dcros_ec_sensorhub.c30 int sensor_num) in cros_ec_sensorhub_allocate_sensor() argument
33 .sensor_num = sensor_num, in cros_ec_sensorhub_allocate_sensor()
63 for (i = 0; i < sensorhub->sensor_num; i++) { in cros_ec_sensorhub_register()
65 sensorhub->params->info.sensor_num = i; in cros_ec_sensorhub_register()
130 int ret, i, sensor_num; in cros_ec_sensorhub_probe() local
156 sensor_num = cros_ec_get_sensor_count(ec); in cros_ec_sensorhub_probe()
157 if (sensor_num < 0) { in cros_ec_sensorhub_probe()
160 sensor_num); in cros_ec_sensorhub_probe()
161 return sensor_num; in cros_ec_sensorhub_probe()
163 if (sensor_num == 0) { in cros_ec_sensorhub_probe()
[all …]
Dcros_ec_sensorhub_ring.c46 if (id >= sensorhub->sensor_num) in cros_sensorhub_send_sample()
76 u8 sensor_num, in cros_ec_sensorhub_register_push_data() argument
80 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()
93 u8 sensor_num) in cros_ec_sensorhub_unregister_push_data() argument
95 sensorhub->push_data[sensor_num].indio_dev = NULL; in cros_ec_sensorhub_unregister_push_data()
96 sensorhub->push_data[sensor_num].push_data_cb = NULL; in cros_ec_sensorhub_unregister_push_data()
117 for (i = 0; i < sensorhub->sensor_num; i++) in cros_ec_sensorhub_ring_fifo_enable()
[all …]
/drivers/thermal/
Dsun8i_thermal.c69 int sensor_num; member
155 for (i = 0; i < tmdev->chip->sensor_num; i++) { in sun8i_h3_irq_ack()
172 for (i = 0; i < tmdev->chip->sensor_num; i++) { in sun50i_h6_irq_ack()
190 for (i = 0; i < tmdev->chip->sensor_num; i++) { in sun8i_irq_thread()
204 if (!caldata[0] || callen < 2 * tmdev->chip->sensor_num) in sun8i_h3_ths_calibrate()
207 for (i = 0; i < tmdev->chip->sensor_num; i++) { in sun8i_h3_ths_calibrate()
225 if (!caldata[0] || callen < 2 + 2 * tmdev->chip->sensor_num) in sun50i_h6_ths_calibrate()
246 for (i = 0; i < tmdev->chip->sensor_num; i++) { in sun50i_h6_ths_calibrate()
393 val = GENMASK(7 + tmdev->chip->sensor_num, 8); in sun8i_h3_thermal_init()
405 val = GENMASK(tmdev->chip->sensor_num - 1, 0); in sun8i_h3_thermal_init()
[all …]
/drivers/iio/accel/
Dcros_ec_accel_legacy.c47 u8 sensor_num; in cros_ec_accel_legacy_read_cmd() local
53 sensor_num = st->param.info.sensor_num; in cros_ec_accel_legacy_read_cmd()
59 st->param.info.sensor_num = sensor_num; in cros_ec_accel_legacy_read_cmd()
66 *data = st->resp->dump.sensor[sensor_num].data[i] * in cros_ec_accel_legacy_read_cmd()
/drivers/iio/common/cros_ec_sensors/
Dcros_ec_sensors_core.c229 u8 sensor_num = st->param.info.sensor_num; in cros_ec_sensors_core_clean() local
231 cros_ec_sensorhub_unregister_push_data(sensor_hub, sensor_num); in cros_ec_sensors_core_clean()
292 state->param.info.sensor_num = sensor_platform->sensor_num; in cros_ec_sensors_core_init()
347 sensor_hub, sensor_platform->sensor_num, in cros_ec_sensors_core_init()
451 return snprintf(buf, PAGE_SIZE, "%d\n", st->param.info.sensor_num); in cros_ec_sensors_id()
500 (1 + idx + st->param.info.sensor_num * in cros_ec_sensors_idx_to_reg()
/drivers/staging/media/atomisp/include/linux/
Datomisp_platform.h155 int sensor_num; member
/drivers/staging/media/atomisp/pci/
Datomisp_v4l2.c1051 int sensor_num, i; in atomisp_subdev_probe() local
1112 sensor_num = isp->inputs[isp->input_cnt] in atomisp_subdev_probe()
1113 .camera_caps->sensor_num; in atomisp_subdev_probe()
1115 for (i = 1; i < sensor_num; i++) { in atomisp_subdev_probe()
Datomisp_gmin_platform.c142 .sensor_num = 1, in atomisp_get_default_camera_caps()