Lines Matching refs:mg
393 struct minstrel_mcs_group_data *mg; in minstrel_ht_set_best_prob_rate() local
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()
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()
430 mg->max_group_prob_rate = index; in minstrel_ht_set_best_prob_rate()
434 if (mrs->prob_ewma > mg->rates[mg->max_group_prob_rate].prob_ewma) in minstrel_ht_set_best_prob_rate()
435 mg->max_group_prob_rate = index; in minstrel_ht_set_best_prob_rate()
480 struct minstrel_mcs_group_data *mg; in minstrel_ht_prob_rate_reduce_streams() local
487 mg = &mi->groups[group]; in minstrel_ht_prob_rate_reduce_streams()
488 if (!mg->supported || group == MINSTREL_CCK_GROUP) 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()
496 mi->max_prob_rate = mg->max_group_prob_rate; in minstrel_ht_prob_rate_reduce_streams()
516 struct minstrel_mcs_group_data *mg; in minstrel_ht_update_stats() local
541 mg = &mi->groups[group]; in minstrel_ht_update_stats()
542 if (!mg->supported) in minstrel_ht_update_stats()
552 if (!(mg->supported & BIT(i))) in minstrel_ht_update_stats()
557 mrs = &mg->rates[i]; in minstrel_ht_update_stats()
582 memcpy(mg->max_group_tp_rate, tmp_group_tp_rate, in minstrel_ht_update_stats()
583 sizeof(mg->max_group_tp_rate)); in minstrel_ht_update_stats()
631 struct minstrel_mcs_group_data *mg; in minstrel_set_next_sample_idx() local
636 mg = &mi->groups[mi->sample_group]; in minstrel_set_next_sample_idx()
638 if (!mg->supported) in minstrel_set_next_sample_idx()
641 if (++mg->index >= MCS_GROUP_RATES) { in minstrel_set_next_sample_idx()
642 mg->index = 0; in minstrel_set_next_sample_idx()
643 if (++mg->column >= ARRAY_SIZE(sample_table)) in minstrel_set_next_sample_idx()
644 mg->column = 0; in minstrel_set_next_sample_idx()
918 struct minstrel_mcs_group_data *mg; in minstrel_get_sample_rate() local
931 mg = &mi->groups[sample_group]; in minstrel_get_sample_rate()
932 sample_idx = sample_table[mg->column][mg->index]; in minstrel_get_sample_rate()
935 if (!(mg->supported & BIT(sample_idx))) in minstrel_get_sample_rate()
938 mrs = &mg->rates[sample_idx]; in minstrel_get_sample_rate()