Lines Matching refs:tz_device
146 if (mvm->tz_device.tzone) {
147 struct iwl_mvm_thermal_device *tz_dev = &mvm->tz_device;
585 if (!mvm->tz_device.tzone)
595 for_each_thermal_trip(mvm->tz_device.tzone, iwl_trip_temp_cb, &twd);
677 mvm->tz_device.tzone = NULL;
690 mvm->tz_device.trips[i].temperature = THERMAL_TEMP_INVALID;
691 mvm->tz_device.trips[i].type = THERMAL_TRIP_PASSIVE;
692 mvm->tz_device.trips[i].flags = THERMAL_TRIP_FLAG_RW_TEMP;
694 mvm->tz_device.tzone = thermal_zone_device_register_with_trips(name,
695 mvm->tz_device.trips,
699 if (IS_ERR(mvm->tz_device.tzone)) {
702 PTR_ERR(mvm->tz_device.tzone));
703 mvm->tz_device.tzone = NULL;
707 ret = thermal_zone_device_enable(mvm->tz_device.tzone);
710 thermal_zone_device_unregister(mvm->tz_device.tzone);
790 if (!iwl_mvm_is_tt_in_fw(mvm) || !mvm->tz_device.tzone)
794 if (mvm->tz_device.tzone) {
795 thermal_zone_device_unregister(mvm->tz_device.tzone);
796 mvm->tz_device.tzone = NULL;