Lines Matching refs:tz_device

146 	if (mvm->tz_device.tzone) {  in iwl_mvm_temp_notif()
147 struct iwl_mvm_thermal_device *tz_dev = &mvm->tz_device; in iwl_mvm_temp_notif()
569 if (!mvm->tz_device.tzone) in iwl_mvm_send_temp_report_ths_cmd()
578 if (mvm->tz_device.temp_trips[i] != S16_MIN) { in iwl_mvm_send_temp_report_ths_cmd()
580 cpu_to_le16(mvm->tz_device.temp_trips[i]); in iwl_mvm_send_temp_report_ths_cmd()
597 mvm->tz_device.temp_trips[j]) in iwl_mvm_send_temp_report_ths_cmd()
598 mvm->tz_device.fw_trips_index[i] = j; in iwl_mvm_send_temp_report_ths_cmd()
649 *temp = mvm->tz_device.temp_trips[trip] * 1000; in iwl_mvm_tzone_get_trip_temp()
692 tzone = &mvm->tz_device; 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()
770 mvm->tz_device.temp_trips[i] = S16_MIN; 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()