Lines Matching refs:MCS_GROUP_RATES

201 static u8 sample_table[SAMPLE_COLUMNS][MCS_GROUP_RATES] __read_mostly;
294 return &mi->groups[index / MCS_GROUP_RATES].rates[index % MCS_GROUP_RATES]; in minstrel_get_ratestats()
343 cur_group = index / MCS_GROUP_RATES; in minstrel_ht_sort_best_tp_rates()
344 cur_idx = index % MCS_GROUP_RATES; in minstrel_ht_sort_best_tp_rates()
349 tmp_group = tp_list[j - 1] / MCS_GROUP_RATES; in minstrel_ht_sort_best_tp_rates()
350 tmp_idx = tp_list[j - 1] % MCS_GROUP_RATES; in minstrel_ht_sort_best_tp_rates()
381 cur_group = index / MCS_GROUP_RATES; in minstrel_ht_set_best_prob_rate()
382 cur_idx = index % MCS_GROUP_RATES; in minstrel_ht_set_best_prob_rate()
383 mg = &mi->groups[index / MCS_GROUP_RATES]; in minstrel_ht_set_best_prob_rate()
384 mrs = &mg->rates[index % MCS_GROUP_RATES]; in minstrel_ht_set_best_prob_rate()
386 tmp_group = mi->max_prob_rate / MCS_GROUP_RATES; in minstrel_ht_set_best_prob_rate()
387 tmp_idx = mi->max_prob_rate % MCS_GROUP_RATES; in minstrel_ht_set_best_prob_rate()
393 max_tp_group = mi->max_tp_rate[0] / MCS_GROUP_RATES; in minstrel_ht_set_best_prob_rate()
394 if((index / MCS_GROUP_RATES == MINSTREL_CCK_GROUP) && in minstrel_ht_set_best_prob_rate()
398 max_gpr_group = mg->max_group_prob_rate / MCS_GROUP_RATES; in minstrel_ht_set_best_prob_rate()
399 max_gpr_idx = mg->max_group_prob_rate % MCS_GROUP_RATES; in minstrel_ht_set_best_prob_rate()
436 tmp_group = tmp_cck_tp_rate[0] / MCS_GROUP_RATES; in minstrel_ht_assign_best_tp_rates()
437 tmp_idx = tmp_cck_tp_rate[0] % MCS_GROUP_RATES; in minstrel_ht_assign_best_tp_rates()
441 tmp_group = tmp_mcs_tp_rate[0] / MCS_GROUP_RATES; in minstrel_ht_assign_best_tp_rates()
442 tmp_idx = tmp_mcs_tp_rate[0] % MCS_GROUP_RATES; in minstrel_ht_assign_best_tp_rates()
467 MCS_GROUP_RATES].streams; in minstrel_ht_prob_rate_reduce_streams()
473 tmp_idx = mg->max_group_prob_rate % MCS_GROUP_RATES; in minstrel_ht_prob_rate_reduce_streams()
533 for (i = 0; i < MCS_GROUP_RATES; i++) { in minstrel_ht_update_stats()
537 index = MCS_GROUP_RATES * group + i; in minstrel_ht_update_stats()
623 if (++mg->index >= MCS_GROUP_RATES) { in minstrel_set_next_sample_idx()
637 orig_group = group = *idx / MCS_GROUP_RATES; in minstrel_downgrade_rate()
786 group = &minstrel_mcs_groups[index / MCS_GROUP_RATES]; in minstrel_calc_retransmit()
787 tx_time_data = group->duration[index % MCS_GROUP_RATES] * ampdu_len / 1000; in minstrel_calc_retransmit()
795 if (index / MCS_GROUP_RATES != MINSTREL_CCK_GROUP) { in minstrel_calc_retransmit()
825 const struct mcs_group *group = &minstrel_mcs_groups[index / MCS_GROUP_RATES]; in minstrel_ht_set_rate()
844 if (index / MCS_GROUP_RATES == MINSTREL_CCK_GROUP) in minstrel_ht_set_rate()
848 ((index % MCS_GROUP_RATES) & 0xF); in minstrel_ht_set_rate()
850 idx = index % MCS_GROUP_RATES + (group->streams - 1) * 8; in minstrel_ht_set_rate()
870 int group = rate / MCS_GROUP_RATES; in minstrel_ht_get_prob_ewma()
871 rate %= MCS_GROUP_RATES; in minstrel_ht_get_prob_ewma()
878 int group = mi->max_prob_rate / MCS_GROUP_RATES; in minstrel_ht_get_max_amsdu_len()
880 int rate = mi->max_prob_rate % MCS_GROUP_RATES; in minstrel_ht_get_max_amsdu_len()
952 const struct mcs_group *group = &minstrel_mcs_groups[index / MCS_GROUP_RATES]; in minstrel_get_duration()
953 return group->duration[index % MCS_GROUP_RATES]; in minstrel_get_duration()
982 sample_idx += sample_group * MCS_GROUP_RATES; in minstrel_get_sample_rate()
1015 MCS_GROUP_RATES].streams; in minstrel_get_sample_rate()
1051 mi->max_prob_rate / MCS_GROUP_RATES != MINSTREL_CCK_GROUP) in minstrel_ht_get_rate()
1079 sample_group = &minstrel_mcs_groups[sample_idx / MCS_GROUP_RATES]; in minstrel_ht_get_rate()
1083 if (sample_idx / MCS_GROUP_RATES == MINSTREL_CCK_GROUP) { in minstrel_ht_get_rate()
1087 ieee80211_rate_set_vht(rate, sample_idx % MCS_GROUP_RATES, in minstrel_ht_get_rate()
1090 rate->idx = sample_idx % MCS_GROUP_RATES + in minstrel_ht_get_rate()
1364 i = mi->max_tp_rate[0] / MCS_GROUP_RATES; in minstrel_ht_get_expected_throughput()
1365 j = mi->max_tp_rate[0] % MCS_GROUP_RATES; in minstrel_ht_get_expected_throughput()
1396 u8 rnd[MCS_GROUP_RATES]; in init_sample_table()
1401 for (i = 0; i < MCS_GROUP_RATES; i++) { in init_sample_table()
1402 new_idx = (i + rnd[i]) % MCS_GROUP_RATES; in init_sample_table()
1404 new_idx = (new_idx + 1) % MCS_GROUP_RATES; in init_sample_table()