Lines Matching defs:tt

22 #include "tt.h"
66 struct iwl_tt_mgmt *tt = &priv->thermal_throttle;
68 if (tt->state >= IWL_TI_1)
75 struct iwl_tt_mgmt *tt = &priv->thermal_throttle;
77 return tt->tt_power_mode;
82 struct iwl_tt_mgmt *tt = &priv->thermal_throttle;
87 restriction = tt->restriction + tt->state;
118 struct iwl_tt_mgmt *tt = &priv->thermal_throttle;
123 restriction = tt->restriction + tt->state;
129 struct iwl_tt_mgmt *tt = &priv->thermal_throttle;
134 restriction = tt->restriction + tt->state;
153 struct iwl_tt_mgmt *tt = &priv->thermal_throttle;
158 if (tt->state == IWL_TI_CT_KILL) {
203 struct iwl_tt_mgmt *tt = &priv->thermal_throttle;
209 if (tt->state != IWL_TI_CT_KILL) {
212 tt->state = IWL_TI_CT_KILL;
243 struct iwl_tt_mgmt *tt = &priv->thermal_throttle;
247 if ((tt->tt_previous_temp) &&
248 (temp > tt->tt_previous_temp) &&
249 ((temp - tt->tt_previous_temp) >
253 (temp - tt->tt_previous_temp));
256 old_state = tt->state;
259 tt->state = IWL_TI_CT_KILL;
261 tt->state = IWL_TI_2;
263 tt->state = IWL_TI_1;
265 tt->state = IWL_TI_0;
268 tt->tt_previous_temp = temp;
272 if (tt->state != old_state) {
273 switch (tt->state) {
282 tt->tt_power_mode = IWL_POWER_INDEX_3;
285 tt->tt_power_mode = IWL_POWER_INDEX_4;
288 tt->tt_power_mode = IWL_POWER_INDEX_5;
294 if (tt->state != IWL_TI_CT_KILL &&
301 tt->state = old_state;
305 if (tt->state == IWL_TI_CT_KILL) {
311 tt->state = old_state;
317 tt->state);
319 tt->tt_power_mode);
348 struct iwl_tt_mgmt *tt = &priv->thermal_throttle;
354 old_state = tt->state;
359 * tt->transaction + ((old_state * (IWL_TI_STATE_MAX - 1))
366 transaction = tt->transaction +
371 if ((tt->tt_previous_temp) &&
372 (temp > tt->tt_previous_temp) &&
373 ((temp - tt->tt_previous_temp) >
378 (temp - tt->tt_previous_temp));
380 tt->tt_previous_temp = temp;
385 tt->state =
394 if (tt->state >= IWL_TI_1) {
396 tt->tt_power_mode = IWL_POWER_INDEX_5;
434 if (tt->state != IWL_TI_CT_KILL &&
443 tt->state = old_state;
447 tt->state);
449 tt->state == IWL_TI_CT_KILL) {
456 tt->state = old_state;
460 tt->state != IWL_TI_CT_KILL) {
482 struct iwl_tt_mgmt *tt = &priv->thermal_throttle;
490 if (tt->state != IWL_TI_CT_KILL) {
511 struct iwl_tt_mgmt *tt = &priv->thermal_throttle;
522 if (tt->state == IWL_TI_CT_KILL) {
589 struct iwl_tt_mgmt *tt = &priv->thermal_throttle;
595 memset(tt, 0, sizeof(struct iwl_tt_mgmt));
597 tt->state = IWL_TI_0;
609 tt->restriction = kcalloc(IWL_TI_STATE_MAX,
612 tt->transaction = kcalloc(IWL_TI_STATE_MAX *
616 if (!tt->restriction || !tt->transaction) {
619 kfree(tt->restriction);
620 tt->restriction = NULL;
621 kfree(tt->transaction);
622 tt->transaction = NULL;
624 transaction = tt->transaction +
627 transaction = tt->transaction +
630 transaction = tt->transaction +
633 transaction = tt->transaction +
638 memcpy(tt->restriction,
651 struct iwl_tt_mgmt *tt = &priv->thermal_throttle;
663 kfree(tt->restriction);
664 tt->restriction = NULL;
665 kfree(tt->transaction);
666 tt->transaction = NULL;