• Home
  • Raw
  • Download

Lines Matching refs:window

245 static void rs_rate_scale_clear_window(struct iwl_rate_scale_data *window)  in rs_rate_scale_clear_window()  argument
247 window->data = 0; in rs_rate_scale_clear_window()
248 window->success_counter = 0; in rs_rate_scale_clear_window()
249 window->success_ratio = IWL_INVALID_VALUE; in rs_rate_scale_clear_window()
250 window->counter = 0; in rs_rate_scale_clear_window()
251 window->average_tpt = IWL_INVALID_VALUE; in rs_rate_scale_clear_window()
252 window->stamp = 0; in rs_rate_scale_clear_window()
482 struct iwl_rate_scale_data *window = NULL; in rs_collect_tx_data() local
490 window = &(tbl->win[scale_index]); in rs_collect_tx_data()
504 if (window->counter >= IWL_RATE_MAX_WINDOW) { in rs_collect_tx_data()
507 window->counter = IWL_RATE_MAX_WINDOW - 1; in rs_collect_tx_data()
509 if (window->data & mask) { in rs_collect_tx_data()
510 window->data &= ~mask; in rs_collect_tx_data()
511 window->success_counter--; in rs_collect_tx_data()
516 window->counter++; in rs_collect_tx_data()
519 window->data <<= 1; in rs_collect_tx_data()
523 window->success_counter++; in rs_collect_tx_data()
524 window->data |= 0x1; in rs_collect_tx_data()
532 if (window->counter > 0) in rs_collect_tx_data()
533 window->success_ratio = 128 * (100 * window->success_counter) in rs_collect_tx_data()
534 / window->counter; in rs_collect_tx_data()
536 window->success_ratio = IWL_INVALID_VALUE; in rs_collect_tx_data()
538 fail_count = window->counter - window->success_counter; in rs_collect_tx_data()
542 (window->success_counter >= IWL_RATE_MIN_SUCCESS_TH)) in rs_collect_tx_data()
543 window->average_tpt = (window->success_ratio * tpt + 64) / 128; in rs_collect_tx_data()
545 window->average_tpt = IWL_INVALID_VALUE; in rs_collect_tx_data()
548 window->stamp = jiffies; in rs_collect_tx_data()
1446 struct iwl_rate_scale_data *window = &(tbl->win[index]); in rs_move_legacy_other() local
1510 if (window->success_ratio >= IWL_RS_GOOD_RATIO && in rs_move_legacy_other()
1621 struct iwl_rate_scale_data *window = &(tbl->win[index]); in rs_move_siso_to_other() local
1680 if (window->success_ratio >= IWL_RS_GOOD_RATIO && in rs_move_siso_to_other()
1793 struct iwl_rate_scale_data *window = &(tbl->win[index]); in rs_move_mimo2_to_other() local
1848 if (window->success_ratio >= IWL_RS_GOOD_RATIO) in rs_move_mimo2_to_other()
1963 struct iwl_rate_scale_data *window = &(tbl->win[index]); in rs_move_mimo3_to_other() local
2018 if (window->success_ratio >= IWL_RS_GOOD_RATIO) in rs_move_mimo3_to_other()
2243 struct iwl_rate_scale_data *window = NULL; in rs_rate_scale_perform() local
2354 window = &(tbl->win[index]); in rs_rate_scale_perform()
2358 window = &(tbl->win[index]); in rs_rate_scale_perform()
2367 fail_count = window->counter - window->success_counter; in rs_rate_scale_perform()
2369 (window->success_counter < IWL_RATE_MIN_SUCCESS_TH)) { in rs_rate_scale_perform()
2372 window->success_counter, window->counter, index); in rs_rate_scale_perform()
2375 window->average_tpt = IWL_INVALID_VALUE; in rs_rate_scale_perform()
2385 if (window->average_tpt != ((window->success_ratio * in rs_rate_scale_perform()
2388 window->average_tpt = ((window->success_ratio * in rs_rate_scale_perform()
2398 if (window->average_tpt > lq_sta->last_tpt) { in rs_rate_scale_perform()
2402 window->success_ratio, in rs_rate_scale_perform()
2403 window->average_tpt, in rs_rate_scale_perform()
2411 current_tpt = window->average_tpt; in rs_rate_scale_perform()
2418 window->success_ratio, in rs_rate_scale_perform()
2419 window->average_tpt, in rs_rate_scale_perform()
2456 sr = window->success_ratio; in rs_rate_scale_perform()
2459 current_tpt = window->average_tpt; in rs_rate_scale_perform()
2592 if (!update_lq && !done_search && !lq_sta->stay_in_tbl && window->counter) { in rs_rate_scale_perform()