Lines Matching refs:tz
52 struct thermal_zone_device *tz; member
79 struct thermal_zone_device *tz = temp->tz; in temp_input_show() local
81 ret = thermal_zone_get_temp(tz, &temperature); in temp_input_show()
97 struct thermal_zone_device *tz = temp->tz; in temp_crit_show() local
101 ret = tz->ops->get_trip_temp(tz, 0, &temperature); in temp_crit_show()
110 thermal_hwmon_lookup_by_type(const struct thermal_zone_device *tz) in thermal_hwmon_lookup_by_type() argument
116 if (!strcmp(hwmon->type, tz->type)) { in thermal_hwmon_lookup_by_type()
128 const struct thermal_zone_device *tz) in thermal_hwmon_lookup_temp() argument
134 if (temp->tz == tz) { in thermal_hwmon_lookup_temp()
143 static bool thermal_zone_crit_temp_valid(struct thermal_zone_device *tz) in thermal_zone_crit_temp_valid() argument
146 return tz->ops->get_crit_temp && !tz->ops->get_crit_temp(tz, &temp); in thermal_zone_crit_temp_valid()
149 int thermal_add_hwmon_sysfs(struct thermal_zone_device *tz) in thermal_add_hwmon_sysfs() argument
156 hwmon = thermal_hwmon_lookup_by_type(tz); in thermal_add_hwmon_sysfs()
167 strlcpy(hwmon->type, tz->type, THERMAL_NAME_LENGTH); in thermal_add_hwmon_sysfs()
185 temp->tz = tz; in thermal_add_hwmon_sysfs()
198 if (thermal_zone_crit_temp_valid(tz)) { in thermal_add_hwmon_sysfs()
236 void thermal_remove_hwmon_sysfs(struct thermal_zone_device *tz) in thermal_remove_hwmon_sysfs() argument
241 hwmon = thermal_hwmon_lookup_by_type(tz); in thermal_remove_hwmon_sysfs()
244 dev_dbg(&tz->device, "hwmon device lookup failed!\n"); in thermal_remove_hwmon_sysfs()
248 temp = thermal_hwmon_lookup_temp(hwmon, tz); in thermal_remove_hwmon_sysfs()
251 dev_dbg(&tz->device, "temperature input lookup failed!\n"); in thermal_remove_hwmon_sysfs()
256 if (thermal_zone_crit_temp_valid(tz)) in thermal_remove_hwmon_sysfs()