Lines Matching refs:tz_device
207 if (mvm->tz_device.tzone) { in iwl_mvm_temp_notif()
208 struct iwl_mvm_thermal_device *tz_dev = &mvm->tz_device; in iwl_mvm_temp_notif()
579 if (!mvm->tz_device.tzone) in iwl_mvm_send_temp_report_ths_cmd()
588 if (mvm->tz_device.temp_trips[i] != S16_MIN) { in iwl_mvm_send_temp_report_ths_cmd()
590 cpu_to_le16(mvm->tz_device.temp_trips[i]); in iwl_mvm_send_temp_report_ths_cmd()
607 mvm->tz_device.temp_trips[j]) in iwl_mvm_send_temp_report_ths_cmd()
608 mvm->tz_device.fw_trips_index[i] = j; in iwl_mvm_send_temp_report_ths_cmd()
657 *temp = mvm->tz_device.temp_trips[trip] * 1000; in iwl_mvm_tzone_get_trip_temp()
700 tzone = &mvm->tz_device; in iwl_mvm_tzone_set_trip_temp()
745 mvm->tz_device.tzone = NULL; in iwl_mvm_thermal_zone_register()
752 mvm->tz_device.tzone = thermal_zone_device_register(name, in iwl_mvm_thermal_zone_register()
757 if (IS_ERR(mvm->tz_device.tzone)) { in iwl_mvm_thermal_zone_register()
760 PTR_ERR(mvm->tz_device.tzone)); in iwl_mvm_thermal_zone_register()
761 mvm->tz_device.tzone = NULL; in iwl_mvm_thermal_zone_register()
769 mvm->tz_device.temp_trips[i] = S16_MIN; in iwl_mvm_thermal_zone_register()
848 if (!iwl_mvm_is_tt_in_fw(mvm) || !mvm->tz_device.tzone) in iwl_mvm_thermal_zone_unregister()
852 if (mvm->tz_device.tzone) { in iwl_mvm_thermal_zone_unregister()
853 thermal_zone_device_unregister(mvm->tz_device.tzone); in iwl_mvm_thermal_zone_unregister()
854 mvm->tz_device.tzone = NULL; in iwl_mvm_thermal_zone_unregister()