Home
last modified time | relevance | path

Searched refs:sensor_id (Results 1 – 19 of 19) sorted by relevance

/drivers/firmware/arm_scmi/
Dsensors.c187 __le32 sensor_id; member
193 __le32 sensor_id; member
564 scmi_sensor_request_notify(const struct scmi_protocol_handle *ph, u32 sensor_id, in scmi_sensor_request_notify() argument
577 cfg->id = cpu_to_le32(sensor_id); in scmi_sensor_request_notify()
587 u32 sensor_id, bool enable) in scmi_sensor_trip_point_notify() argument
589 return scmi_sensor_request_notify(ph, sensor_id, in scmi_sensor_trip_point_notify()
596 u32 sensor_id, bool enable) in scmi_sensor_continuous_update_notify() argument
598 return scmi_sensor_request_notify(ph, sensor_id, in scmi_sensor_continuous_update_notify()
605 u32 sensor_id, u8 trip_id, u64 trip_value) in scmi_sensor_trip_point_config() argument
618 trip->id = cpu_to_le32(sensor_id); in scmi_sensor_trip_point_config()
[all …]
/drivers/platform/chrome/
Dcros_ec_sensorhub_ring.c43 int id = sample->sensor_id; in cros_sensorhub_send_sample()
361 const u8 sensor_id = sample->sensor_id; in cros_ec_sensor_ring_check_for_past_timestamp() local
364 if (sensorhub->batch_state[sensor_id].newest_sensor_event > in cros_ec_sensor_ring_check_for_past_timestamp()
368 sensorhub->batch_state[sensor_id].last_ts; in cros_ec_sensor_ring_check_for_past_timestamp()
370 sensorhub->batch_state[sensor_id].newest_sensor_event = in cros_ec_sensor_ring_check_for_past_timestamp()
454 out->sensor_id = in->sensor_num; in cros_ec_sensor_ring_process_event()
458 sensorhub->batch_state[out->sensor_id].last_len = 0; in cros_ec_sensor_ring_process_event()
471 out->sensor_id = in->sensor_num; in cros_ec_sensor_ring_process_event()
566 if (batch_start->sensor_id != id) { in cros_ec_sensor_ring_spread_add()
610 if (s->sensor_id != id) in cros_ec_sensor_ring_spread_add()
[all …]
/drivers/thermal/ti-soc-thermal/
Dti-thermal-common.c34 int sensor_id; member
80 s = &bgp->conf->sensors[data->sensor_id]; in __ti_thermal_get_temp()
82 ret = ti_bandgap_read_temperature(bgp, data->sensor_id, &tmp); in __ti_thermal_get_temp()
124 id = data->sensor_id; in __ti_thermal_get_trend()
155 data->sensor_id = id; in ti_thermal_build_data()
187 ti_bandgap_write_update_interval(bgp, data->sensor_id, in ti_thermal_expose_sensor()
/drivers/hwmon/occ/
Dcommon.c34 u16 sensor_id; member
39 u32 sensor_id; member
45 u16 sensor_id; member
50 u32 sensor_id; member
55 u16 sensor_id; member
62 u32 sensor_id; member
85 u32 sensor_id; member
117 u32 sensor_id; member
241 val = get_unaligned_be16(&temp->sensor_id); in occ_show_temp_1()
277 val = get_unaligned_be32(&temp->sensor_id); in occ_show_temp_2()
[all …]
/drivers/hwmon/
Dscpi-hwmon.c28 int sensor_id; member
70 struct sensor_data *sensor = &scpi_sensors->data[zone->sensor_id]; in scpi_read_temp()
74 ret = scpi_ops->sensor_get_value(sensor->info.sensor_id, &value); in scpi_read_temp()
96 ret = scpi_ops->sensor_get_value(sensor->info.sensor_id, &value); in scpi_show_sensor()
278 zone->sensor_id = i; in scpi_hwmon_probe()
281 sensor->info.sensor_id, in scpi_hwmon_probe()
Dibmpowernv.c572 u32 sensor_id; in create_device_attrs() local
584 if (of_property_read_u32(np, "sensor-id", &sensor_id) && in create_device_attrs()
585 of_property_read_u32(np, "sensor-data", &sensor_id)) { in create_device_attrs()
592 sdata[count].id = sensor_id; in create_device_attrs()
609 populate_sensor(&sdata[count], opal_index, hw_id, sensor_id, in create_device_attrs()
624 sensor_id, "label", type, pgroups[type], in create_device_attrs()
629 if (!of_property_read_u32(np, "sensor-data-max", &sensor_id)) { in create_device_attrs()
632 sensor_id, attr_name, type, in create_device_attrs()
638 if (!of_property_read_u32(np, "sensor-data-min", &sensor_id)) { in create_device_attrs()
641 sensor_id, attr_name, type, in create_device_attrs()
Dibmpex.c292 static int is_power_sensor(const char *sensor_id, int len) in is_power_sensor() argument
297 if (!memcmp(sensor_id, power_sensor_sig, PEX_SENSOR_TYPE_LEN)) in is_power_sensor()
302 static int is_temp_sensor(const char *sensor_id, int len) in is_temp_sensor() argument
307 if (!memcmp(sensor_id, temp_sensor_sig, PEX_SENSOR_TYPE_LEN)) in is_temp_sensor()
313 const char *sensor_id, int len) in power_sensor_multiplier() argument
321 if (!memcmp(&sensor_id[i], watt_sensor_sig, PEX_MULT_LEN)) in power_sensor_multiplier()
/drivers/media/usb/gspca/
Dov534_9.c1400 u16 sensor_id; in sd_init() local
1416 sensor_id = sccb_read(gspca_dev, 0x0a) << 8; in sd_init()
1418 sensor_id |= sccb_read(gspca_dev, 0x0b); in sd_init()
1419 gspca_dbg(gspca_dev, D_PROBE, "Sensor ID: %04x\n", sensor_id); in sd_init()
1422 if ((sensor_id & 0xfff0) == 0x9650) { in sd_init()
1440 } else if ((sensor_id & 0xfff0) == 0x9710) { in sd_init()
1472 } else if ((sensor_id & 0xfff0) == 0x5620) { in sd_init()
1482 } else if ((sensor_id & 0xfff0) == 0x3610) { in sd_init()
1490 pr_err("Unknown sensor %04x", sensor_id); in sd_init()
Dstk1135.c384 u16 sensor_id; in sd_init() local
413 sensor_id = sensor_read(gspca_dev, 0x000); in sd_init()
415 switch (sensor_id) { in sd_init()
422 pr_info("Detected sensor type %s (0x%x)\n", sensor_name, sensor_id); in sd_init()
Dt613.c571 u16 sensor_id; in sd_init() local
582 sensor_id = (reg_r(gspca_dev, 0x06) << 8) in sd_init()
584 switch (sensor_id & 0xff0f) { in sd_init()
602 pr_err("unknown sensor %04x\n", sensor_id); in sd_init()
Dov534.c1316 u16 sensor_id; in sd_init() local
1340 sensor_id = sccb_reg_read(gspca_dev, 0x0a) << 8; in sd_init()
1342 sensor_id |= sccb_reg_read(gspca_dev, 0x0b); in sd_init()
1343 gspca_dbg(gspca_dev, D_PROBE, "Sensor ID: %04x\n", sensor_id); in sd_init()
1345 if ((sensor_id & 0xfff0) == 0x7670) { in sd_init()
/drivers/thermal/
Darmada_thermal.c785 int sensor_id) in armada_configure_overheat_int() argument
802 ret = armada_select_channel(priv, sensor_id); in armada_configure_overheat_int()
810 priv->interrupt_source = sensor_id; in armada_configure_overheat_int()
824 int sensor_id, irq; in armada_thermal_probe() local
921 for (sensor_id = 0; sensor_id <= priv->data->cpu_nr; sensor_id++) { in armada_thermal_probe()
930 sensor->id = sensor_id; in armada_thermal_probe()
936 sensor_id); in armada_thermal_probe()
Dk3_bandgap.c86 int sensor_id; member
200 data[id].sensor_id = id; in k3_bandgap_probe()
Dthermal_of.c493 thermal_zone_of_sensor_register(struct device *dev, int sensor_id, void *data, in thermal_zone_of_sensor_register() argument
518 if (id == sensor_id) { in thermal_zone_of_sensor_register()
616 struct device *dev, int sensor_id, in devm_thermal_zone_of_sensor_register() argument
626 tzd = thermal_zone_of_sensor_register(dev, sensor_id, data, ops); in devm_thermal_zone_of_sensor_register()
Drockchip_thermal.c46 enum sensor_id { enum
/drivers/firmware/
Darm_scpi.c316 __le16 sensor_id; member
723 static int scpi_sensor_get_info(u16 sensor_id, struct scpi_sensor_info *info) in scpi_sensor_get_info() argument
725 __le16 id = cpu_to_le16(sensor_id); in scpi_sensor_get_info()
733 info->sensor_id = le16_to_cpu(_info.sensor_id); in scpi_sensor_get_info()
/drivers/input/touchscreen/
Dwacom_w8001.c77 u8 sensor_id; member
193 query->sensor_id = data[2] & 0x7; in parse_touchquery()
503 switch (touch.sensor_id) { in w8001_setup_touch()
/drivers/media/platform/exynos4-is/
Dfimc-is.h200 u32 sensor_id; member
/drivers/thermal/samsung/
Dexynos_tmu.c493 int sensor_id, cal_type; in exynos5433_tmu_initialize() local
499 sensor_id = (trim_info & EXYNOS5433_TRIMINFO_SENSOR_ID_MASK) in exynos5433_tmu_initialize()
501 dev_info(&pdev->dev, "Temperature sensor ID: 0x%x\n", sensor_id); in exynos5433_tmu_initialize()