Lines Matching refs:tzone
146 if (mvm->tz_device.tzone) { in iwl_mvm_temp_notif()
149 thermal_zone_device_update(tz_dev->tzone, in iwl_mvm_temp_notif()
569 if (!mvm->tz_device.tzone) in iwl_mvm_send_temp_report_ths_cmd()
669 struct iwl_mvm_thermal_device *tzone; in iwl_mvm_tzone_set_trip_temp() local
692 tzone = &mvm->tz_device; in iwl_mvm_tzone_set_trip_temp()
694 if (!tzone) { in iwl_mvm_tzone_set_trip_temp()
700 if (tzone->temp_trips[trip] == temperature) { in iwl_mvm_tzone_set_trip_temp()
707 if (tzone->temp_trips[i] == temperature) { in iwl_mvm_tzone_set_trip_temp()
713 tzone->temp_trips[trip] = temperature; in iwl_mvm_tzone_set_trip_temp()
738 mvm->tz_device.tzone = NULL; in iwl_mvm_thermal_zone_register()
746 mvm->tz_device.tzone = thermal_zone_device_register(name, in iwl_mvm_thermal_zone_register()
751 if (IS_ERR(mvm->tz_device.tzone)) { in iwl_mvm_thermal_zone_register()
754 PTR_ERR(mvm->tz_device.tzone)); in iwl_mvm_thermal_zone_register()
755 mvm->tz_device.tzone = NULL; in iwl_mvm_thermal_zone_register()
759 ret = thermal_zone_device_enable(mvm->tz_device.tzone); in iwl_mvm_thermal_zone_register()
762 thermal_zone_device_unregister(mvm->tz_device.tzone); in iwl_mvm_thermal_zone_register()
849 if (!iwl_mvm_is_tt_in_fw(mvm) || !mvm->tz_device.tzone) in iwl_mvm_thermal_zone_unregister()
853 if (mvm->tz_device.tzone) { in iwl_mvm_thermal_zone_unregister()
854 thermal_zone_device_unregister(mvm->tz_device.tzone); in iwl_mvm_thermal_zone_unregister()
855 mvm->tz_device.tzone = NULL; in iwl_mvm_thermal_zone_unregister()