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()
564 if (!mvm->tz_device.tzone) in iwl_mvm_send_temp_report_ths_cmd()
664 struct iwl_mvm_thermal_device *tzone; in iwl_mvm_tzone_set_trip_temp() local
687 tzone = &mvm->tz_device; in iwl_mvm_tzone_set_trip_temp()
689 if (!tzone) { in iwl_mvm_tzone_set_trip_temp()
695 if (tzone->temp_trips[trip] == temperature) { in iwl_mvm_tzone_set_trip_temp()
702 if (tzone->temp_trips[i] == temperature) { in iwl_mvm_tzone_set_trip_temp()
708 tzone->temp_trips[trip] = temperature; in iwl_mvm_tzone_set_trip_temp()
733 mvm->tz_device.tzone = NULL; in iwl_mvm_thermal_zone_register()
741 mvm->tz_device.tzone = thermal_zone_device_register(name, in iwl_mvm_thermal_zone_register()
746 if (IS_ERR(mvm->tz_device.tzone)) { in iwl_mvm_thermal_zone_register()
749 PTR_ERR(mvm->tz_device.tzone)); in iwl_mvm_thermal_zone_register()
750 mvm->tz_device.tzone = NULL; in iwl_mvm_thermal_zone_register()
754 ret = thermal_zone_device_enable(mvm->tz_device.tzone); in iwl_mvm_thermal_zone_register()
757 thermal_zone_device_unregister(mvm->tz_device.tzone); in iwl_mvm_thermal_zone_register()
844 if (!iwl_mvm_is_tt_in_fw(mvm) || !mvm->tz_device.tzone) in iwl_mvm_thermal_zone_unregister()
848 if (mvm->tz_device.tzone) { in iwl_mvm_thermal_zone_unregister()
849 thermal_zone_device_unregister(mvm->tz_device.tzone); in iwl_mvm_thermal_zone_unregister()
850 mvm->tz_device.tzone = NULL; in iwl_mvm_thermal_zone_unregister()