Lines Matching refs:group
288 int group, idx; in minstrel_ht_get_stats() local
291 group = minstrel_ht_get_group_idx(rate); in minstrel_ht_get_stats()
294 group = minstrel_vht_get_group_idx(rate); in minstrel_ht_get_stats()
297 group = MINSTREL_CCK_GROUP; in minstrel_ht_get_stats()
304 if (!(mi->groups[group].supported & BIT(idx))) in minstrel_ht_get_stats()
307 return &mi->groups[group].rates[idx]; in minstrel_ht_get_stats()
321 minstrel_ht_get_tp_avg(struct minstrel_ht_sta *mi, int group, int rate, in minstrel_ht_get_tp_avg() argument
330 if (group != MINSTREL_CCK_GROUP) in minstrel_ht_get_tp_avg()
333 nsecs += minstrel_mcs_groups[group].duration[rate]; in minstrel_ht_get_tp_avg()
481 int tmp_max_streams, group, tmp_idx, tmp_prob; in minstrel_ht_prob_rate_reduce_streams() local
486 for (group = 0; group < ARRAY_SIZE(minstrel_mcs_groups); group++) { in minstrel_ht_prob_rate_reduce_streams()
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()
492 tmp_prob = mi->groups[group].rates[tmp_idx].prob_ewma; in minstrel_ht_prob_rate_reduce_streams()
494 if (tmp_tp < minstrel_ht_get_tp_avg(mi, group, tmp_idx, tmp_prob) && in minstrel_ht_prob_rate_reduce_streams()
495 (minstrel_mcs_groups[group].streams < tmp_max_streams)) { in minstrel_ht_prob_rate_reduce_streams()
497 tmp_tp = minstrel_ht_get_tp_avg(mi, group, in minstrel_ht_prob_rate_reduce_streams()
518 int group, i, j, cur_prob; in minstrel_ht_update_stats() local
539 for (group = 0; group < ARRAY_SIZE(minstrel_mcs_groups); group++) { in minstrel_ht_update_stats()
541 mg = &mi->groups[group]; in minstrel_ht_update_stats()
549 tmp_group_tp_rate[j] = group; in minstrel_ht_update_stats()
555 index = MCS_GROUP_RATES * group + i; in minstrel_ht_update_stats()
562 if (minstrel_ht_get_tp_avg(mi, group, i, cur_prob) == 0) in minstrel_ht_update_stats()
566 if (group != MINSTREL_CCK_GROUP) { in minstrel_ht_update_stats()
569 } else if (group == MINSTREL_CCK_GROUP) { in minstrel_ht_update_stats()
653 int group, orig_group; in minstrel_downgrade_rate() local
655 orig_group = group = *idx / MCS_GROUP_RATES; in minstrel_downgrade_rate()
656 while (group > 0) { in minstrel_downgrade_rate()
657 group--; in minstrel_downgrade_rate()
659 if (!mi->groups[group].supported) in minstrel_downgrade_rate()
662 if (minstrel_mcs_groups[group].streams > in minstrel_downgrade_rate()
667 *idx = mi->groups[group].max_group_tp_rate[0]; in minstrel_downgrade_rate()
669 *idx = mi->groups[group].max_group_tp_rate[1]; in minstrel_downgrade_rate()
785 const struct mcs_group *group; in minstrel_calc_retransmit() local
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()
843 const struct mcs_group *group = &minstrel_mcs_groups[index / MCS_GROUP_RATES]; in minstrel_ht_set_rate() local
846 u16 flags = group->flags; in minstrel_ht_set_rate()
865 idx = ((group->streams - 1) << 4) | in minstrel_ht_set_rate()
868 idx = index % MCS_GROUP_RATES + (group->streams - 1) * 8; in minstrel_ht_set_rate()
876 group->streams > 1)) { in minstrel_ht_set_rate()
916 const struct mcs_group *group = &minstrel_mcs_groups[index / MCS_GROUP_RATES]; in minstrel_get_duration() local
917 return group->duration[index % MCS_GROUP_RATES]; in minstrel_get_duration()