• Home
  • Raw
  • Download

Lines Matching refs:idx

332 	return GROUP_IDX((rate->idx / 8) + 1,  in minstrel_ht_get_group_idx()
373 int group, idx; in minstrel_ht_get_stats() local
377 idx = rate->idx % 8; in minstrel_ht_get_stats()
383 idx = ieee80211_rate_get_vht_mcs(rate); in minstrel_ht_get_stats()
388 for (idx = 0; idx < ARRAY_SIZE(mp->cck_rates); idx++) { in minstrel_ht_get_stats()
389 if (!(mi->supported[group] & BIT(idx))) in minstrel_ht_get_stats()
392 if (rate->idx != mp->cck_rates[idx]) in minstrel_ht_get_stats()
396 if ((mi->supported[group] & BIT(idx + 4)) && in minstrel_ht_get_stats()
398 idx += 4; in minstrel_ht_get_stats()
403 for (idx = 0; idx < ARRAY_SIZE(mp->ofdm_rates[0]); idx++) in minstrel_ht_get_stats()
404 if (rate->idx == mp->ofdm_rates[mi->band][idx]) in minstrel_ht_get_stats()
407 idx = 0; in minstrel_ht_get_stats()
409 return &mi->groups[group].rates[idx]; in minstrel_ht_get_stats()
419 int group, idx; in minstrel_ht_ri_get_stats() local
424 idx = rate->mcs % 8; in minstrel_ht_ri_get_stats()
430 idx = rate->mcs; in minstrel_ht_ri_get_stats()
435 for (idx = 0; idx < ARRAY_SIZE(mp->cck_rates); idx++) { in minstrel_ht_ri_get_stats()
436 if (rate->legacy != minstrel_cck_bitrates[ mp->cck_rates[idx] ]) in minstrel_ht_ri_get_stats()
440 if ((mi->supported[group] & BIT(idx + 4)) && in minstrel_ht_ri_get_stats()
442 idx += 4; in minstrel_ht_ri_get_stats()
447 for (idx = 0; idx < ARRAY_SIZE(mp->ofdm_rates[0]); idx++) in minstrel_ht_ri_get_stats()
448 if (rate->legacy == minstrel_ofdm_bitrates[ mp->ofdm_rates[mi->band][idx] ]) in minstrel_ht_ri_get_stats()
451 idx = 0; in minstrel_ht_ri_get_stats()
453 return &mi->groups[group].rates[idx]; in minstrel_ht_ri_get_stats()
786 minstrel_ht_find_sample_rate(struct minstrel_ht_sta *mi, int type, int idx) in minstrel_ht_find_sample_rate() argument
793 if (cur == idx) in minstrel_ht_find_sample_rate()
907 u16 idx; in minstrel_ht_next_group_sample_rate() local
911 idx = sample_table[mg->column][mg->index]; in minstrel_ht_next_group_sample_rate()
918 if (idx < offset) in minstrel_ht_next_group_sample_rate()
921 if (!(supported & BIT(idx))) in minstrel_ht_next_group_sample_rate()
924 return MI_RATE(group, idx); in minstrel_ht_next_group_sample_rate()
1202 if (rate->idx < 0) in minstrel_ht_txstat_valid()
1213 if (rate->idx == mp->cck_rates[i]) in minstrel_ht_txstat_valid()
1217 if (rate->idx == mp->ofdm_rates[mi->band][i]) in minstrel_ht_txstat_valid()
1258 minstrel_downgrade_rate(struct minstrel_ht_sta *mi, u16 *idx, bool primary) in minstrel_downgrade_rate() argument
1262 orig_group = group = MI_RATE_GROUP(*idx); in minstrel_downgrade_rate()
1274 *idx = mi->groups[group].max_group_tp_rate[0]; in minstrel_downgrade_rate()
1276 *idx = mi->groups[group].max_group_tp_rate[1]; in minstrel_downgrade_rate()
1448 u8 idx; in minstrel_ht_set_rate() local
1467 idx = mp->cck_rates[index % ARRAY_SIZE(mp->cck_rates)]; in minstrel_ht_set_rate()
1469 idx = mp->ofdm_rates[mi->band][index % in minstrel_ht_set_rate()
1472 idx = ((group->streams - 1) << 4) | in minstrel_ht_set_rate()
1475 idx = index + (group->streams - 1) * 8; in minstrel_ht_set_rate()
1488 ratetbl->rate[offset].idx = idx; in minstrel_ht_set_rate()
1571 rates->rate[i].idx = -1; in minstrel_ht_update_rates()
1636 int idx = sample_idx % ARRAY_SIZE(mp->cck_rates); in minstrel_ht_get_rate() local
1637 rate->idx = mp->cck_rates[idx]; in minstrel_ht_get_rate()
1639 int idx = sample_idx % ARRAY_SIZE(mp->ofdm_rates[0]); in minstrel_ht_get_rate() local
1640 rate->idx = mp->ofdm_rates[mi->band][idx]; in minstrel_ht_get_rate()
1645 rate->idx = sample_idx + (sample_group->streams - 1) * 8; in minstrel_ht_get_rate()