Lines Matching full:temp
52 static void iwl_mvm_tt_temp_changed(struct iwl_mvm *mvm, u32 temp) in iwl_mvm_tt_temp_changed() argument
58 if (mvm->temperature == temp) in iwl_mvm_tt_temp_changed()
61 mvm->temperature = temp; in iwl_mvm_tt_temp_changed()
70 int temp; in iwl_mvm_temp_notif_parse() local
82 temp = le32_to_cpu(notif_v1->temp); in iwl_mvm_temp_notif_parse()
85 if (WARN_ON_ONCE(temp < 0)) in iwl_mvm_temp_notif_parse()
86 temp = 0; in iwl_mvm_temp_notif_parse()
88 IWL_DEBUG_TEMP(mvm, "DTS_MEASUREMENT_NOTIFICATION - %d\n", temp); in iwl_mvm_temp_notif_parse()
90 return temp; in iwl_mvm_temp_notif_parse()
98 int *temp = data; in iwl_mvm_temp_notif_wait() local
105 *temp = ret; in iwl_mvm_temp_notif_wait()
115 int temp; in iwl_mvm_temp_notif() local
122 temp = iwl_mvm_temp_notif_parse(mvm, pkt); in iwl_mvm_temp_notif()
125 if (temp >= 0) in iwl_mvm_temp_notif()
126 iwl_mvm_tt_temp_changed(mvm, temp); in iwl_mvm_temp_notif()
144 IWL_DEBUG_TEMP(mvm, "Temp = %d Threshold crossed = %d\n", in iwl_mvm_temp_notif()
145 temp, ths_crossed); in iwl_mvm_temp_notif()
179 * response. If we get a response then the measurement is stored in 'temp'
181 static int iwl_mvm_send_temp_cmd(struct iwl_mvm *mvm, bool response, s32 *temp) in iwl_mvm_send_temp_cmd() argument
230 *temp = le32_to_cpu(resp->temp); in iwl_mvm_send_temp_cmd()
232 "Got temperature measurement response: temp=%d\n", in iwl_mvm_send_temp_cmd()
233 *temp); in iwl_mvm_send_temp_cmd()
240 int iwl_mvm_get_temp(struct iwl_mvm *mvm, s32 *temp) in iwl_mvm_get_temp() argument
257 return iwl_mvm_send_temp_cmd(mvm, true, temp); in iwl_mvm_get_temp()
263 iwl_mvm_temp_notif_wait, temp); in iwl_mvm_get_temp()
265 ret = iwl_mvm_send_temp_cmd(mvm, false, temp); in iwl_mvm_get_temp()
284 s32 temp; in check_exit_ctkill() local
305 ret = iwl_mvm_get_temp(mvm, &temp); in check_exit_ctkill()
312 IWL_DEBUG_TEMP(mvm, "NIC temperature: %d\n", temp); in check_exit_ctkill()
314 if (temp <= tt->params.ct_kill_exit) { in check_exit_ctkill()
609 int temp; in iwl_mvm_tzone_get_temp() local
623 ret = iwl_mvm_get_temp(mvm, &temp); in iwl_mvm_tzone_get_temp()
627 *temperature = temp * 1000; in iwl_mvm_tzone_get_temp()
632 const struct thermal_trip *trip, int temp) in iwl_mvm_tzone_set_trip_temp() argument
642 if ((temp / 1000) > S16_MAX) in iwl_mvm_tzone_set_trip_temp()