Lines Matching defs:temperature
231 pos = scnprintf(buf, sizeof(buf), "%d\n", mvm->temperature);
238 * Cause the driver to ignore the actual NIC temperature reported by the FW
247 int temperature;
252 if (kstrtoint(buf, 10, &temperature))
254 /* not a legal temperature */
255 if ((temperature > IWL_MVM_DEBUG_SET_TEMPERATURE_MAX &&
256 temperature != IWL_MVM_DEBUG_SET_TEMPERATURE_DISABLE) ||
257 temperature < IWL_MVM_DEBUG_SET_TEMPERATURE_MIN)
261 if (temperature == IWL_MVM_DEBUG_SET_TEMPERATURE_DISABLE) {
270 mvm->temperature = 0;
273 mvm->temperature = temperature;
275 IWL_DEBUG_TEMP(mvm, "%sabling debug set temperature (temp = %d)\n",
277 mvm->temperature);
278 /* handle the temperature change */