Lines Matching refs:tzone
55 struct thermal_zone_device *tzone; member
265 struct thermal_zone_device *tzone = NULL; in pkg_temp_thermal_threshold_work_fn() local
286 tzone = zonedev->tzone; in pkg_temp_thermal_threshold_work_fn()
296 if (tzone) in pkg_temp_thermal_threshold_work_fn()
297 thermal_zone_device_update(tzone, THERMAL_EVENT_UNSPECIFIED); in pkg_temp_thermal_threshold_work_fn()
359 zonedev->tzone = thermal_zone_device_register("x86_pkg_temp", in pkg_temp_thermal_device_add()
363 if (IS_ERR(zonedev->tzone)) { in pkg_temp_thermal_device_add()
364 err = PTR_ERR(zonedev->tzone); in pkg_temp_thermal_device_add()
368 err = thermal_zone_device_enable(zonedev->tzone); in pkg_temp_thermal_device_add()
370 thermal_zone_device_unregister(zonedev->tzone); in pkg_temp_thermal_device_add()
402 struct thermal_zone_device *tzone = zonedev->tzone; in pkg_thermal_cpu_offline() local
411 zonedev->tzone = NULL; in pkg_thermal_cpu_offline()
414 thermal_zone_device_unregister(tzone); in pkg_thermal_cpu_offline()