• Home
  • Raw
  • Download

Lines Matching refs:idx

270 	return GROUP_IDX((rate->idx / 8) + 1,  in minstrel_ht_get_group_idx()
288 int group, idx; in minstrel_ht_get_stats() local
292 idx = rate->idx % 8; in minstrel_ht_get_stats()
295 idx = ieee80211_rate_get_vht_mcs(rate); in minstrel_ht_get_stats()
299 for (idx = 0; idx < ARRAY_SIZE(mp->cck_rates); idx++) in minstrel_ht_get_stats()
300 if (rate->idx == mp->cck_rates[idx]) in minstrel_ht_get_stats()
304 if (!(mi->groups[group].supported & BIT(idx))) in minstrel_ht_get_stats()
305 idx += 4; in minstrel_ht_get_stats()
307 return &mi->groups[group].rates[idx]; in minstrel_ht_get_stats()
612 if (rate->idx < 0) in minstrel_ht_txstat_valid()
622 return rate->idx == mp->cck_rates[0] || in minstrel_ht_txstat_valid()
623 rate->idx == mp->cck_rates[1] || in minstrel_ht_txstat_valid()
624 rate->idx == mp->cck_rates[2] || in minstrel_ht_txstat_valid()
625 rate->idx == mp->cck_rates[3]; in minstrel_ht_txstat_valid()
651 minstrel_downgrade_rate(struct minstrel_ht_sta *mi, u16 *idx, bool primary) in minstrel_downgrade_rate() argument
655 orig_group = group = *idx / MCS_GROUP_RATES; 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()
845 u8 idx; in minstrel_ht_set_rate() local
863 idx = mp->cck_rates[index % ARRAY_SIZE(mp->cck_rates)]; 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()
881 ratetbl->rate[offset].idx = idx; in minstrel_ht_set_rate()
909 rates->rate[i].idx = -1; in minstrel_ht_update_rates()
1056 int idx = sample_idx % ARRAY_SIZE(mp->cck_rates); in minstrel_ht_get_rate() local
1057 rate->idx = mp->cck_rates[idx]; in minstrel_ht_get_rate()
1062 rate->idx = sample_idx % MCS_GROUP_RATES + in minstrel_ht_get_rate()