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()
585 if (!mvm->tz_device.tzone) in iwl_mvm_send_temp_report_ths_cmd()
595 for_each_thermal_trip(mvm->tz_device.tzone, iwl_trip_temp_cb, &twd); in iwl_mvm_send_temp_report_ths_cmd()
670 mvm->tz_device.tzone = NULL; in iwl_mvm_thermal_zone_register()
683 mvm->tz_device.trips[i].temperature = THERMAL_TEMP_INVALID; in iwl_mvm_thermal_zone_register()
684 mvm->tz_device.trips[i].type = THERMAL_TRIP_PASSIVE; in iwl_mvm_thermal_zone_register()
685 mvm->tz_device.trips[i].flags = THERMAL_TRIP_FLAG_RW_TEMP; in iwl_mvm_thermal_zone_register()
687 mvm->tz_device.tzone = thermal_zone_device_register_with_trips(name, in iwl_mvm_thermal_zone_register()
688 mvm->tz_device.trips, in iwl_mvm_thermal_zone_register()
692 if (IS_ERR(mvm->tz_device.tzone)) { in iwl_mvm_thermal_zone_register()
695 PTR_ERR(mvm->tz_device.tzone)); in iwl_mvm_thermal_zone_register()
696 mvm->tz_device.tzone = NULL; in iwl_mvm_thermal_zone_register()
700 ret = thermal_zone_device_enable(mvm->tz_device.tzone); in iwl_mvm_thermal_zone_register()
703 thermal_zone_device_unregister(mvm->tz_device.tzone); in iwl_mvm_thermal_zone_register()
774 if (!iwl_mvm_is_tt_in_fw(mvm) || !mvm->tz_device.tzone) in iwl_mvm_thermal_zone_unregister()
778 if (mvm->tz_device.tzone) { in iwl_mvm_thermal_zone_unregister()
779 thermal_zone_device_unregister(mvm->tz_device.tzone); in iwl_mvm_thermal_zone_unregister()
780 mvm->tz_device.tzone = NULL; in iwl_mvm_thermal_zone_unregister()