Lines Matching refs:mg
422 struct minstrel_mcs_group_data *mg; in minstrel_ht_set_best_prob_rate() local
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()
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()
460 mg->max_group_prob_rate = index; in minstrel_ht_set_best_prob_rate()
465 mg->max_group_prob_rate = index; in minstrel_ht_set_best_prob_rate()
510 struct minstrel_mcs_group_data *mg; in minstrel_ht_prob_rate_reduce_streams() local
517 mg = &mi->groups[group]; 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()
526 mi->max_prob_rate = mg->max_group_prob_rate; in minstrel_ht_prob_rate_reduce_streams()
674 struct minstrel_mcs_group_data *mg; in minstrel_ht_update_stats() local
723 mg = &mi->groups[group]; in minstrel_ht_update_stats()
739 mrs = &mg->rates[i]; in minstrel_ht_update_stats()
764 memcpy(mg->max_group_tp_rate, tmp_group_tp_rate, in minstrel_ht_update_stats()
765 sizeof(mg->max_group_tp_rate)); in minstrel_ht_update_stats()
819 struct minstrel_mcs_group_data *mg; in minstrel_set_next_sample_idx() local
824 mg = &mi->groups[mi->sample_group]; in minstrel_set_next_sample_idx()
829 if (++mg->index >= MCS_GROUP_RATES) { in minstrel_set_next_sample_idx()
830 mg->index = 0; in minstrel_set_next_sample_idx()
831 if (++mg->column >= ARRAY_SIZE(sample_table)) in minstrel_set_next_sample_idx()
832 mg->column = 0; in minstrel_set_next_sample_idx()
1198 struct minstrel_mcs_group_data *mg; in minstrel_get_sample_rate() local
1217 mg = &mi->groups[sample_group]; in minstrel_get_sample_rate()
1218 sample_idx = sample_table[mg->column][mg->index]; in minstrel_get_sample_rate()
1224 mrs = &mg->rates[sample_idx]; in minstrel_get_sample_rate()
1262 (minstrel_get_duration(mg->max_group_tp_rate[0]) < sample_dur || in minstrel_get_sample_rate()