Lines Matching refs:tzd
84 struct thermal_zone_device *tzd; member
289 static int pch_thermal_get_temp(struct thermal_zone_device *tzd, int *temp) in pch_thermal_get_temp() argument
291 struct pch_thermal_device *ptd = tzd->devdata; in pch_thermal_get_temp()
296 static int pch_get_trip_type(struct thermal_zone_device *tzd, int trip, in pch_get_trip_type() argument
299 struct pch_thermal_device *ptd = tzd->devdata; in pch_get_trip_type()
313 static int pch_get_trip_temp(struct thermal_zone_device *tzd, int trip, int *temp) in pch_get_trip_temp() argument
315 struct pch_thermal_device *ptd = tzd->devdata; in pch_get_trip_temp()
329 static void pch_critical(struct thermal_zone_device *tzd) in pch_critical() argument
331 dev_dbg(&tzd->device, "%s: critical temperature reached\n", tzd->type); in pch_critical()
421 ptd->tzd = thermal_zone_device_register(bi->name, nr_trips, 0, ptd, in intel_pch_thermal_probe()
423 if (IS_ERR(ptd->tzd)) { in intel_pch_thermal_probe()
426 err = PTR_ERR(ptd->tzd); in intel_pch_thermal_probe()
429 err = thermal_zone_device_enable(ptd->tzd); in intel_pch_thermal_probe()
436 thermal_zone_device_unregister(ptd->tzd); in intel_pch_thermal_probe()
451 thermal_zone_device_unregister(ptd->tzd); in intel_pch_thermal_remove()