Lines Matching defs:sensor
3 * System Control and Management Interface(SCMI) based hwmon sensor driver
38 static int scmi_hwmon_scale(const struct scmi_sensor_info *sensor, u64 *value)
40 int scale = sensor->scale;
43 switch (sensor->type) {
73 const struct scmi_sensor_info *sensor,
79 ret = sensor_ops->reading_get(ph, sensor->id, &value);
83 ret = scmi_hwmon_scale(sensor, &value);
93 const struct scmi_sensor_info *sensor;
96 sensor = *(scmi_sensors->info[type] + channel);
98 return scmi_hwmon_read_scaled_value(scmi_sensors->ph, sensor, val);
105 const struct scmi_sensor_info *sensor;
108 sensor = *(scmi_sensors->info[type] + channel);
109 *str = sensor->name;
118 const struct scmi_sensor_info *sensor;
121 sensor = *(scmi_sensors->info[type] + channel);
122 if (sensor)
194 const struct scmi_sensor_info *sensor)
204 th_sensor->info = sensor;
207 * Try to register a temperature sensor with the Thermal Framework:
220 sensor->name);
223 sensor->name, thermal_zone_device_id(tzd));
235 const struct scmi_sensor_info *sensor;
262 sensor = sensor_ops->info_get(ph, i);
263 if (!sensor)
266 switch (sensor->type) {
272 type = scmi_types[sensor->type];
312 sensor = sensor_ops->info_get(ph, i);
313 if (!sensor)
316 switch (sensor->type) {
322 type = scmi_types[sensor->type];
324 *(scmi_sensors->info[type] + idx) = sensor;
338 sensor = *(scmi_sensors->info[hwmon_temp] + i);
339 if (!sensor)
346 ret = scmi_thermal_sensor_register(dev, ph, sensor);
352 sensor->name, ret);