Lines Matching refs:MCS_GROUP_RATES
238 static u8 sample_table[SAMPLE_COLUMNS][MCS_GROUP_RATES] __read_mostly;
332 return &mi->groups[index / MCS_GROUP_RATES].rates[index % MCS_GROUP_RATES]; in minstrel_get_ratestats()
391 cur_group = index / MCS_GROUP_RATES; in minstrel_ht_sort_best_tp_rates()
392 cur_idx = index % MCS_GROUP_RATES; in minstrel_ht_sort_best_tp_rates()
397 tmp_group = tp_list[j - 1] / MCS_GROUP_RATES; in minstrel_ht_sort_best_tp_rates()
398 tmp_idx = tp_list[j - 1] % MCS_GROUP_RATES; in minstrel_ht_sort_best_tp_rates()
429 cur_group = index / MCS_GROUP_RATES; in minstrel_ht_set_best_prob_rate()
430 cur_idx = index % MCS_GROUP_RATES; in minstrel_ht_set_best_prob_rate()
431 mg = &mi->groups[index / MCS_GROUP_RATES]; in minstrel_ht_set_best_prob_rate()
432 mrs = &mg->rates[index % MCS_GROUP_RATES]; in minstrel_ht_set_best_prob_rate()
434 tmp_group = mi->max_prob_rate / MCS_GROUP_RATES; in minstrel_ht_set_best_prob_rate()
435 tmp_idx = mi->max_prob_rate % MCS_GROUP_RATES; in minstrel_ht_set_best_prob_rate()
441 max_tp_group = mi->max_tp_rate[0] / MCS_GROUP_RATES; in minstrel_ht_set_best_prob_rate()
442 if((index / MCS_GROUP_RATES == MINSTREL_CCK_GROUP) && in minstrel_ht_set_best_prob_rate()
446 max_gpr_group = mg->max_group_prob_rate / MCS_GROUP_RATES; in minstrel_ht_set_best_prob_rate()
447 max_gpr_idx = mg->max_group_prob_rate % MCS_GROUP_RATES; in minstrel_ht_set_best_prob_rate()
484 tmp_group = tmp_cck_tp_rate[0] / MCS_GROUP_RATES; in minstrel_ht_assign_best_tp_rates()
485 tmp_idx = tmp_cck_tp_rate[0] % MCS_GROUP_RATES; in minstrel_ht_assign_best_tp_rates()
489 tmp_group = tmp_mcs_tp_rate[0] / MCS_GROUP_RATES; in minstrel_ht_assign_best_tp_rates()
490 tmp_idx = tmp_mcs_tp_rate[0] % MCS_GROUP_RATES; in minstrel_ht_assign_best_tp_rates()
515 MCS_GROUP_RATES].streams; in minstrel_ht_prob_rate_reduce_streams()
521 tmp_idx = mg->max_group_prob_rate % MCS_GROUP_RATES; in minstrel_ht_prob_rate_reduce_streams()
537 const struct mcs_group *group = &minstrel_mcs_groups[index / MCS_GROUP_RATES]; in minstrel_get_duration()
538 unsigned int duration = group->duration[index % MCS_GROUP_RATES]; in minstrel_get_duration()
566 tp_group = &minstrel_mcs_groups[mi->max_tp_rate[0] / MCS_GROUP_RATES]; in minstrel_ht_find_probe_rates()
567 tp_idx = mi->max_tp_rate[0] % MCS_GROUP_RATES; in minstrel_ht_find_probe_rates()
592 idx = g * MCS_GROUP_RATES + i; in minstrel_ht_find_probe_rates()
634 int g_idx = mi->max_tp_rate[0] / MCS_GROUP_RATES; in minstrel_ht_rate_sample_switch()
637 supported >>= mi->max_tp_rate[0] % MCS_GROUP_RATES; in minstrel_ht_rate_sample_switch()
710 tmp_cck_tp_rate[j] = MINSTREL_CCK_GROUP * MCS_GROUP_RATES; in minstrel_ht_update_stats()
713 index = MINSTREL_VHT_GROUP_0 * MCS_GROUP_RATES; in minstrel_ht_update_stats()
715 index = MINSTREL_HT_GROUP_0 * MCS_GROUP_RATES; in minstrel_ht_update_stats()
731 tmp_group_tp_rate[j] = MCS_GROUP_RATES * group; in minstrel_ht_update_stats()
733 for (i = 0; i < MCS_GROUP_RATES; i++) { in minstrel_ht_update_stats()
737 index = MCS_GROUP_RATES * group + i; in minstrel_ht_update_stats()
829 if (++mg->index >= MCS_GROUP_RATES) { in minstrel_set_next_sample_idx()
843 orig_group = group = *idx / MCS_GROUP_RATES; in minstrel_downgrade_rate()
1034 if (index / MCS_GROUP_RATES != MINSTREL_CCK_GROUP) { in minstrel_calc_retransmit()
1064 const struct mcs_group *group = &minstrel_mcs_groups[index / MCS_GROUP_RATES]; in minstrel_ht_set_rate()
1083 if (index / MCS_GROUP_RATES == MINSTREL_CCK_GROUP) in minstrel_ht_set_rate()
1087 ((index % MCS_GROUP_RATES) & 0xF); in minstrel_ht_set_rate()
1089 idx = index % MCS_GROUP_RATES + (group->streams - 1) * 8; in minstrel_ht_set_rate()
1109 int group = rate / MCS_GROUP_RATES; in minstrel_ht_get_prob_avg()
1110 rate %= MCS_GROUP_RATES; in minstrel_ht_get_prob_avg()
1117 int group = mi->max_prob_rate / MCS_GROUP_RATES; in minstrel_ht_get_max_amsdu_len()
1119 int rate = mi->max_prob_rate % MCS_GROUP_RATES; in minstrel_ht_get_max_amsdu_len()
1225 sample_idx += sample_group * MCS_GROUP_RATES; in minstrel_get_sample_rate()
1276 MCS_GROUP_RATES].streams; in minstrel_get_sample_rate()
1308 mi->max_prob_rate / MCS_GROUP_RATES != MINSTREL_CCK_GROUP) in minstrel_ht_get_rate()
1336 sample_group = &minstrel_mcs_groups[sample_idx / MCS_GROUP_RATES]; in minstrel_ht_get_rate()
1337 sample_idx %= MCS_GROUP_RATES; in minstrel_ht_get_rate()
1350 ieee80211_rate_set_vht(rate, sample_idx % MCS_GROUP_RATES, in minstrel_ht_get_rate()
1713 i = mi->max_tp_rate[0] / MCS_GROUP_RATES; in minstrel_ht_get_expected_throughput()
1714 j = mi->max_tp_rate[0] % MCS_GROUP_RATES; in minstrel_ht_get_expected_throughput()
1745 u8 rnd[MCS_GROUP_RATES]; in init_sample_table()
1750 for (i = 0; i < MCS_GROUP_RATES; i++) { in init_sample_table()
1751 new_idx = (i + rnd[i]) % MCS_GROUP_RATES; in init_sample_table()
1753 new_idx = (new_idx + 1) % MCS_GROUP_RATES; in init_sample_table()