Home
last modified time | relevance | path

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

/drivers/firmware/arm_scmi/
Dsensors.c168 u32 sensor_id, bool enable) in scmi_sensor_trip_point_notify() argument
181 cfg->id = cpu_to_le32(sensor_id); in scmi_sensor_trip_point_notify()
191 scmi_sensor_trip_point_config(const struct scmi_handle *handle, u32 sensor_id, in scmi_sensor_trip_point_config() argument
205 trip->id = cpu_to_le32(sensor_id); in scmi_sensor_trip_point_config()
217 u32 sensor_id, u64 *value) in scmi_sensor_reading_get() argument
223 struct scmi_sensor_info *s = si->sensors + sensor_id; in scmi_sensor_reading_get()
232 sensor->id = cpu_to_le32(sensor_id); in scmi_sensor_reading_get()
252 scmi_sensor_info_get(const struct scmi_handle *handle, u32 sensor_id) in scmi_sensor_info_get() argument
256 return si->sensors + sensor_id; in scmi_sensor_info_get()
/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()
269 zone->sensor_id = i; in scpi_hwmon_probe()
272 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.c784 int sensor_id) in armada_configure_overheat_int() argument
801 ret = armada_select_channel(priv, sensor_id); in armada_configure_overheat_int()
809 priv->interrupt_source = sensor_id; in armada_configure_overheat_int()
823 int sensor_id, irq; in armada_thermal_probe() local
914 for (sensor_id = 0; sensor_id <= priv->data->cpu_nr; sensor_id++) { in armada_thermal_probe()
923 sensor->id = sensor_id; in armada_thermal_probe()
929 sensor_id); in armada_thermal_probe()
Dof-thermal.c484 thermal_zone_of_sensor_register(struct device *dev, int sensor_id, void *data, in thermal_zone_of_sensor_register() argument
521 if (sensor_specs.np == sensor_np && id == sensor_id) { in thermal_zone_of_sensor_register()
618 struct device *dev, int sensor_id, in devm_thermal_zone_of_sensor_register() argument
628 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
721 static int scpi_sensor_get_info(u16 sensor_id, struct scpi_sensor_info *info) in scpi_sensor_get_info() argument
723 __le16 id = cpu_to_le16(sensor_id); in scpi_sensor_get_info()
731 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.c490 int sensor_id, cal_type; in exynos5433_tmu_initialize() local
496 sensor_id = (trim_info & EXYNOS5433_TRIMINFO_SENSOR_ID_MASK) in exynos5433_tmu_initialize()
498 dev_info(&pdev->dev, "Temperature sensor ID: 0x%x\n", sensor_id); in exynos5433_tmu_initialize()