Lines Matching full:tz

40 	struct thermal_zone_device *tz;  member
59 struct thermal_zone_device *tz = temp->tz; in temp_input_show() local
61 ret = thermal_zone_get_temp(tz, &temperature); in temp_input_show()
77 struct thermal_zone_device *tz = temp->tz; in temp_crit_show() local
81 guard(thermal_zone)(tz); in temp_crit_show()
83 ret = tz->ops.get_crit_temp(tz, &temperature); in temp_crit_show()
92 thermal_hwmon_lookup_by_type(const struct thermal_zone_device *tz) in thermal_hwmon_lookup_by_type() argument
99 strcpy(type, tz->type); in thermal_hwmon_lookup_by_type()
114 const struct thermal_zone_device *tz) in thermal_hwmon_lookup_temp() argument
120 if (temp->tz == tz) { in thermal_hwmon_lookup_temp()
129 static bool thermal_zone_crit_temp_valid(struct thermal_zone_device *tz) in thermal_zone_crit_temp_valid() argument
132 return tz->ops.get_crit_temp && !tz->ops.get_crit_temp(tz, &temp); in thermal_zone_crit_temp_valid()
135 int thermal_add_hwmon_sysfs(struct thermal_zone_device *tz) in thermal_add_hwmon_sysfs() argument
142 hwmon = thermal_hwmon_lookup_by_type(tz); in thermal_add_hwmon_sysfs()
153 strscpy(hwmon->type, tz->type, THERMAL_NAME_LENGTH); in thermal_add_hwmon_sysfs()
155 hwmon->device = hwmon_device_register_for_thermal(&tz->device, in thermal_add_hwmon_sysfs()
169 temp->tz = tz; in thermal_add_hwmon_sysfs()
182 if (thermal_zone_crit_temp_valid(tz)) { in thermal_add_hwmon_sysfs()
218 void thermal_remove_hwmon_sysfs(struct thermal_zone_device *tz) in thermal_remove_hwmon_sysfs() argument
223 hwmon = thermal_hwmon_lookup_by_type(tz); in thermal_remove_hwmon_sysfs()
226 dev_dbg(&tz->device, "hwmon device lookup failed!\n"); in thermal_remove_hwmon_sysfs()
230 temp = thermal_hwmon_lookup_temp(hwmon, tz); in thermal_remove_hwmon_sysfs()
233 dev_dbg(&tz->device, "temperature input lookup failed!\n"); in thermal_remove_hwmon_sysfs()
238 if (thermal_zone_crit_temp_valid(tz)) in thermal_remove_hwmon_sysfs()
261 int devm_thermal_add_hwmon_sysfs(struct device *dev, struct thermal_zone_device *tz) in devm_thermal_add_hwmon_sysfs() argument
273 ret = thermal_add_hwmon_sysfs(tz); in devm_thermal_add_hwmon_sysfs()
280 *ptr = tz; in devm_thermal_add_hwmon_sysfs()