Lines Matching refs:MCS_GROUP_RATES
220 static u8 sample_table[SAMPLE_COLUMNS][MCS_GROUP_RATES] __read_mostly;
313 return &mi->groups[index / MCS_GROUP_RATES].rates[index % MCS_GROUP_RATES]; in minstrel_get_ratestats()
362 cur_group = index / MCS_GROUP_RATES; in minstrel_ht_sort_best_tp_rates()
363 cur_idx = index % MCS_GROUP_RATES; in minstrel_ht_sort_best_tp_rates()
368 tmp_group = tp_list[j - 1] / MCS_GROUP_RATES; in minstrel_ht_sort_best_tp_rates()
369 tmp_idx = tp_list[j - 1] % MCS_GROUP_RATES; in minstrel_ht_sort_best_tp_rates()
400 cur_group = index / MCS_GROUP_RATES; in minstrel_ht_set_best_prob_rate()
401 cur_idx = index % MCS_GROUP_RATES; in minstrel_ht_set_best_prob_rate()
402 mg = &mi->groups[index / MCS_GROUP_RATES]; in minstrel_ht_set_best_prob_rate()
403 mrs = &mg->rates[index % MCS_GROUP_RATES]; in minstrel_ht_set_best_prob_rate()
405 tmp_group = mi->max_prob_rate / MCS_GROUP_RATES; in minstrel_ht_set_best_prob_rate()
406 tmp_idx = mi->max_prob_rate % MCS_GROUP_RATES; in minstrel_ht_set_best_prob_rate()
412 max_tp_group = mi->max_tp_rate[0] / MCS_GROUP_RATES; in minstrel_ht_set_best_prob_rate()
413 if((index / MCS_GROUP_RATES == MINSTREL_CCK_GROUP) && in minstrel_ht_set_best_prob_rate()
423 max_gpr_group = mg->max_group_prob_rate / MCS_GROUP_RATES; in minstrel_ht_set_best_prob_rate()
424 max_gpr_idx = mg->max_group_prob_rate % MCS_GROUP_RATES; in minstrel_ht_set_best_prob_rate()
454 tmp_group = tmp_cck_tp_rate[0] / MCS_GROUP_RATES; in minstrel_ht_assign_best_tp_rates()
455 tmp_idx = tmp_cck_tp_rate[0] % MCS_GROUP_RATES; in minstrel_ht_assign_best_tp_rates()
459 tmp_group = tmp_mcs_tp_rate[0] / MCS_GROUP_RATES; in minstrel_ht_assign_best_tp_rates()
460 tmp_idx = tmp_mcs_tp_rate[0] % MCS_GROUP_RATES; in minstrel_ht_assign_best_tp_rates()
485 MCS_GROUP_RATES].streams; in minstrel_ht_prob_rate_reduce_streams()
491 tmp_idx = mg->max_group_prob_rate % MCS_GROUP_RATES; in minstrel_ht_prob_rate_reduce_streams()
551 for (i = 0; i < MCS_GROUP_RATES; i++) { in minstrel_ht_update_stats()
555 index = MCS_GROUP_RATES * group + i; in minstrel_ht_update_stats()
641 if (++mg->index >= MCS_GROUP_RATES) { in minstrel_set_next_sample_idx()
655 orig_group = group = *idx / MCS_GROUP_RATES; in minstrel_downgrade_rate()
804 group = &minstrel_mcs_groups[index / MCS_GROUP_RATES]; in minstrel_calc_retransmit()
805 tx_time_data = group->duration[index % MCS_GROUP_RATES] * ampdu_len / 1000; in minstrel_calc_retransmit()
813 if (index / MCS_GROUP_RATES != MINSTREL_CCK_GROUP) { in minstrel_calc_retransmit()
843 const struct mcs_group *group = &minstrel_mcs_groups[index / MCS_GROUP_RATES]; in minstrel_ht_set_rate()
862 if (index / MCS_GROUP_RATES == MINSTREL_CCK_GROUP) in minstrel_ht_set_rate()
866 ((index % MCS_GROUP_RATES) & 0xF); in minstrel_ht_set_rate()
868 idx = index % MCS_GROUP_RATES + (group->streams - 1) * 8; in minstrel_ht_set_rate()
916 const struct mcs_group *group = &minstrel_mcs_groups[index / MCS_GROUP_RATES]; in minstrel_get_duration()
917 return group->duration[index % MCS_GROUP_RATES]; in minstrel_get_duration()
945 sample_idx += sample_group * MCS_GROUP_RATES; in minstrel_get_sample_rate()
970 MCS_GROUP_RATES].streams; in minstrel_get_sample_rate()
1022 mi->max_prob_rate / MCS_GROUP_RATES != MINSTREL_CCK_GROUP) in minstrel_ht_get_rate()
1051 sample_group = &minstrel_mcs_groups[sample_idx / MCS_GROUP_RATES]; in minstrel_ht_get_rate()
1055 if (sample_idx / MCS_GROUP_RATES == MINSTREL_CCK_GROUP) { in minstrel_ht_get_rate()
1059 ieee80211_rate_set_vht(rate, sample_idx % MCS_GROUP_RATES, in minstrel_ht_get_rate()
1062 rate->idx = sample_idx % MCS_GROUP_RATES + in minstrel_ht_get_rate()
1332 i = mi->max_tp_rate[0] / MCS_GROUP_RATES; in minstrel_ht_get_expected_throughput()
1333 j = mi->max_tp_rate[0] % MCS_GROUP_RATES; in minstrel_ht_get_expected_throughput()
1364 u8 rnd[MCS_GROUP_RATES]; in init_sample_table()
1369 for (i = 0; i < MCS_GROUP_RATES; i++) { in init_sample_table()
1370 new_idx = (i + rnd[i]) % MCS_GROUP_RATES; in init_sample_table()
1372 new_idx = (new_idx + 1) % MCS_GROUP_RATES; in init_sample_table()