• Home
  • Raw
  • Download

Lines Matching refs:tbl

584 					    struct iwl_scale_tbl_info *tbl)  in rs_rate_scale_clear_tbl_windows()  argument
590 rs_rate_scale_clear_window(&tbl->win[i]); in rs_rate_scale_clear_tbl_windows()
592 for (i = 0; i < ARRAY_SIZE(tbl->tpc_win); i++) in rs_rate_scale_clear_tbl_windows()
593 rs_rate_scale_clear_window(&tbl->tpc_win[i]); in rs_rate_scale_clear_tbl_windows()
665 static s32 get_expected_tpt(struct iwl_scale_tbl_info *tbl, int rs_index) in get_expected_tpt() argument
667 if (tbl->expected_tpt) in get_expected_tpt()
668 return tbl->expected_tpt[rs_index]; in get_expected_tpt()
680 struct iwl_scale_tbl_info *tbl, in _rs_collect_tx_data() argument
688 tpt = get_expected_tpt(tbl, scale_index); in _rs_collect_tx_data()
746 struct iwl_scale_tbl_info *tbl, in rs_collect_tpc_data() argument
755 window = &tbl->tpc_win[reduced_txp]; in rs_collect_tpc_data()
756 return _rs_collect_tx_data(mvm, tbl, scale_index, attempts, successes, in rs_collect_tpc_data()
792 struct iwl_scale_tbl_info *tbl, in rs_collect_tlc_data() argument
800 if (tbl->column != RS_COLUMN_INVALID) { in rs_collect_tlc_data()
803 pers->tx_stats[tbl->column][scale_index].total += attempts; in rs_collect_tlc_data()
804 pers->tx_stats[tbl->column][scale_index].success += successes; in rs_collect_tlc_data()
810 window = &(tbl->win[scale_index]); in rs_collect_tlc_data()
811 return _rs_collect_tx_data(mvm, tbl, scale_index, attempts, successes, in rs_collect_tlc_data()
1351 struct iwl_scale_tbl_info *tbl) in rs_set_expected_tpt_table() argument
1353 struct rs_rate *rate = &tbl->rate; in rs_set_expected_tpt_table()
1354 const struct rs_tx_column *column = &rs_tx_columns[tbl->column]; in rs_set_expected_tpt_table()
1356 tbl->expected_tpt = rs_get_expected_tpt_table(lq_sta, column, rate->bw); in rs_set_expected_tpt_table()
1373 struct iwl_scale_tbl_info *tbl, /* "search" */ in rs_get_best_rate() argument
1380 const u16 *tpt_tbl = tbl->expected_tpt; in rs_get_best_rate()
1404 tbl->rate.type); in rs_get_best_rate()
1460 struct iwl_scale_tbl_info *tbl; in rs_stay_in_table() local
1468 tbl = &(lq_sta->lq_info[active_tbl]); in rs_stay_in_table()
1506 lq_sta->visited_columns = BIT(tbl->column); in rs_stay_in_table()
1521 rs_rate_scale_clear_tbl_windows(mvm, tbl); in rs_stay_in_table()
1529 rs_rate_scale_clear_tbl_windows(mvm, tbl); in rs_stay_in_table()
1535 struct iwl_scale_tbl_info *tbl, in rs_set_amsdu_len() argument
1547 if ((!is_vht(&tbl->rate) && !is_ht(&tbl->rate)) || in rs_set_amsdu_len()
1548 tbl->rate.index < IWL_RATE_MCS_5_INDEX || in rs_set_amsdu_len()
1581 struct iwl_scale_tbl_info *tbl) in rs_update_rate_tbl() argument
1583 rs_fill_lq_cmd(mvm, sta, lq_sta, &tbl->rate); in rs_update_rate_tbl()
1590 struct iwl_scale_tbl_info *tbl, in rs_tweak_rate_tbl() argument
1596 if (!is_vht_siso(&tbl->rate)) in rs_tweak_rate_tbl()
1599 if ((tbl->rate.bw == RATE_MCS_CHAN_WIDTH_80) && in rs_tweak_rate_tbl()
1600 (tbl->rate.index == IWL_RATE_MCS_0_INDEX) && in rs_tweak_rate_tbl()
1602 tbl->rate.bw = RATE_MCS_CHAN_WIDTH_20; in rs_tweak_rate_tbl()
1603 tbl->rate.index = IWL_RATE_MCS_4_INDEX; in rs_tweak_rate_tbl()
1613 if ((tbl->rate.bw == RATE_MCS_CHAN_WIDTH_20) && in rs_tweak_rate_tbl()
1614 (((tbl->rate.index == IWL_RATE_MCS_5_INDEX) && in rs_tweak_rate_tbl()
1616 ((tbl->rate.index > IWL_RATE_MCS_5_INDEX) && in rs_tweak_rate_tbl()
1618 tbl->rate.bw = RATE_MCS_CHAN_WIDTH_80; in rs_tweak_rate_tbl()
1619 tbl->rate.index = IWL_RATE_MCS_1_INDEX; in rs_tweak_rate_tbl()
1627 rs_set_expected_tpt_table(lq_sta, tbl); in rs_tweak_rate_tbl()
1628 rs_rate_scale_clear_tbl_windows(mvm, tbl); in rs_tweak_rate_tbl()
1635 struct iwl_scale_tbl_info *tbl) in rs_get_next_column() argument
1639 const struct rs_tx_column *curr_col = &rs_tx_columns[tbl->column]; in rs_get_next_column()
1669 if (allow_func && !allow_func(mvm, sta, &tbl->rate, in rs_get_next_column()
1721 struct iwl_scale_tbl_info *tbl = &lq_sta->lq_info[lq_sta->active_tbl]; in rs_switch_to_column() local
1726 const struct rs_tx_column *curr_column = &rs_tx_columns[tbl->column]; in rs_switch_to_column()
1730 memcpy(search_tbl, tbl, offsetof(struct iwl_scale_tbl_info, win)); in rs_switch_to_column()
1795 struct iwl_scale_tbl_info *tbl, in rs_get_rate_action() argument
1866 } else if (current_tpt > (100 * tbl->expected_tpt[low])) { in rs_get_rate_action()
2005 struct iwl_scale_tbl_info *tbl) in rs_tpc_perform() argument
2012 struct rs_rate *rate = &tbl->rate; in rs_tpc_perform()
2047 window = tbl->tpc_win; in rs_tpc_perform()
2110 struct iwl_scale_tbl_info *tbl, *tbl1; in rs_rate_scale_perform() local
2131 tbl = &(lq_sta->lq_info[active_tbl]); in rs_rate_scale_perform()
2132 rate = &tbl->rate; in rs_rate_scale_perform()
2138 rs_set_expected_tpt_table(lq_sta, tbl); in rs_rate_scale_perform()
2139 rs_rate_scale_clear_tbl_windows(mvm, tbl); in rs_rate_scale_perform()
2154 tbl = &(lq_sta->lq_info[lq_sta->active_tbl]); in rs_rate_scale_perform()
2155 rs_update_rate_tbl(mvm, sta, lq_sta, tbl); in rs_rate_scale_perform()
2161 if (!tbl->expected_tpt) { in rs_rate_scale_perform()
2167 window = &(tbl->win[index]); in rs_rate_scale_perform()
2224 tbl = &(lq_sta->lq_info[active_tbl]); in rs_rate_scale_perform()
2227 index = tbl->rate.index; in rs_rate_scale_perform()
2254 low_tpt = tbl->win[low].average_tpt; in rs_rate_scale_perform()
2256 high_tpt = tbl->win[high].average_tpt; in rs_rate_scale_perform()
2263 scale_action = rs_get_rate_action(mvm, tbl, sr, low, high, in rs_rate_scale_perform()
2301 update_lq = rs_tpc_perform(mvm, sta, lq_sta, tbl); in rs_rate_scale_perform()
2310 tbl->rate.index = index; in rs_rate_scale_perform()
2312 rs_tweak_rate_tbl(mvm, sta, lq_sta, tbl, scale_action); in rs_rate_scale_perform()
2313 rs_set_amsdu_len(mvm, sta, tbl, scale_action); in rs_rate_scale_perform()
2314 rs_update_rate_tbl(mvm, sta, lq_sta, tbl); in rs_rate_scale_perform()
2338 next_column = rs_get_next_column(mvm, lq_sta, sta, tbl); in rs_rate_scale_perform()
2353 tbl = &lq_sta->lq_info[rs_search_tbl(lq_sta->active_tbl)]; in rs_rate_scale_perform()
2354 rs_rate_scale_clear_tbl_windows(mvm, tbl); in rs_rate_scale_perform()
2357 index = tbl->rate.index; in rs_rate_scale_perform()
2359 rs_dump_rate(mvm, &tbl->rate, in rs_rate_scale_perform()
2361 rs_update_rate_tbl(mvm, sta, lq_sta, tbl); in rs_rate_scale_perform()
2687 struct iwl_scale_tbl_info *tbl; in rs_initialize_lq() local
2699 tbl = &(lq_sta->lq_info[active_tbl]); in rs_initialize_lq()
2700 rate = &tbl->rate; in rs_initialize_lq()
2710 tbl->column = rs_get_column_from_rate(rate); in rs_initialize_lq()
2712 rs_set_expected_tpt_table(lq_sta, tbl); in rs_initialize_lq()
3817 struct iwl_scale_tbl_info *tbl = &(lq_sta->lq_info[lq_sta->active_tbl]); in rs_sta_dbgfs_scale_table_read() local
3818 struct rs_rate *rate = &tbl->rate; in rs_sta_dbgfs_scale_table_read()
3918 struct iwl_scale_tbl_info *tbl; in rs_sta_dbgfs_stats_table_read() local
3927 tbl = &(lq_sta->lq_info[i]); in rs_sta_dbgfs_stats_table_read()
3928 rate = &tbl->rate; in rs_sta_dbgfs_stats_table_read()
3943 tbl->win[j].counter, in rs_sta_dbgfs_stats_table_read()
3944 tbl->win[j].success_counter, in rs_sta_dbgfs_stats_table_read()
3945 tbl->win[j].success_ratio); in rs_sta_dbgfs_stats_table_read()