Lines Matching defs:sensor
3 * System Control and Management Interface(SCMI) based hwmon sensor driver
31 static int scmi_hwmon_scale(const struct scmi_sensor_info *sensor, u64 *value)
33 s8 scale = sensor->scale;
36 switch (sensor->type) {
70 const struct scmi_sensor_info *sensor;
74 sensor = *(scmi_sensors->info[type] + channel);
75 ret = h->sensor_ops->reading_get(h, sensor->id, &value);
79 ret = scmi_hwmon_scale(sensor, &value);
90 const struct scmi_sensor_info *sensor;
93 sensor = *(scmi_sensors->info[type] + channel);
94 *str = sensor->name;
103 const struct scmi_sensor_info *sensor;
106 sensor = *(scmi_sensors->info[type] + channel);
107 if (sensor)
165 const struct scmi_sensor_info *sensor;
187 sensor = handle->sensor_ops->info_get(handle, i);
188 if (!sensor)
191 switch (sensor->type) {
197 type = scmi_types[sensor->type];
239 sensor = handle->sensor_ops->info_get(handle, i);
240 if (!sensor)
243 switch (sensor->type) {
249 type = scmi_types[sensor->type];
251 *(scmi_sensors->info[type] + idx) = sensor;