• Home
  • Raw
  • Download

Lines Matching refs:i

315 	u8 i;  in rc_send_low_basicrate()  local
331 for (i = rate->idx + 1; i <= sband->n_bitrates; i++) { in rc_send_low_basicrate()
332 if (basic_rates & (1 << i)) { in rc_send_low_basicrate()
333 rate->idx = i; in rc_send_low_basicrate()
347 int i; in __rate_control_send_low() local
362 for (i = 0; i < sband->n_bitrates; i++) { in __rate_control_send_low()
363 if (!(rate_mask & BIT(i))) in __rate_control_send_low()
366 if ((rate_flags & sband->bitrates[i].flags) != rate_flags) in __rate_control_send_low()
369 if (!rate_supported(sta, sband->band, i)) in __rate_control_send_low()
372 info->control.rates[0].idx = i; in __rate_control_send_low()
375 WARN_ONCE(i == sband->n_bitrates, in __rate_control_send_low()
452 int i, j; in rate_idx_match_mcs_mask() local
463 for (i = ridx; i >= 0; i--) { in rate_idx_match_mcs_mask()
465 if (mcs_mask[i] & BIT(j)) { in rate_idx_match_mcs_mask()
466 *rate_idx = i * 8 + j; in rate_idx_match_mcs_mask()
476 for (i = ridx; i < IEEE80211_HT_MCS_MASK_LEN; i++) { in rate_idx_match_mcs_mask()
478 if (mcs_mask[i] & BIT(j)) { in rate_idx_match_mcs_mask()
479 *rate_idx = i * 8 + j; in rate_idx_match_mcs_mask()
489 int i, j; in rate_idx_match_vht_mcs_mask() local
499 for (i = ridx; i >= 0; i--) { in rate_idx_match_vht_mcs_mask()
501 if (vht_mask[i] & BIT(j)) { in rate_idx_match_vht_mcs_mask()
502 *rate_idx = (i << 4) | j; in rate_idx_match_vht_mcs_mask()
513 for (i = ridx; i < NL80211_VHT_NSS_MAX; i++) { in rate_idx_match_vht_mcs_mask()
515 if (vht_mask[i] & BIT(j)) { in rate_idx_match_vht_mcs_mask()
516 *rate_idx = (i << 4) | j; in rate_idx_match_vht_mcs_mask()
618 int i; in rate_fixup_ratelist() local
635 for (i = 0; i < sband->n_bitrates; i++) { in rate_fixup_ratelist()
637 if (!(basic_rates & BIT(i))) in rate_fixup_ratelist()
640 if (sband->bitrates[i].bitrate > rate->bitrate) in rate_fixup_ratelist()
644 sband->bitrates[i].bitrate) in rate_fixup_ratelist()
645 baserate = i; in rate_fixup_ratelist()
651 for (i = 0; i < max_rates; i++) { in rate_fixup_ratelist()
658 rates[i].idx = -1; in rate_fixup_ratelist()
661 if (rates[i].idx < 0) { in rate_fixup_ratelist()
670 if (rates[i].flags & IEEE80211_TX_RC_MCS) { in rate_fixup_ratelist()
671 WARN_ON(rates[i].idx > 76); in rate_fixup_ratelist()
673 if (!(rates[i].flags & IEEE80211_TX_RC_USE_RTS_CTS) && in rate_fixup_ratelist()
675 rates[i].flags |= in rate_fixup_ratelist()
680 if (rates[i].flags & IEEE80211_TX_RC_VHT_MCS) { in rate_fixup_ratelist()
681 WARN_ON(ieee80211_rate_get_vht_mcs(&rates[i]) > 9); in rate_fixup_ratelist()
687 rates[i].flags |= IEEE80211_TX_RC_USE_RTS_CTS; in rate_fixup_ratelist()
692 if (WARN_ON_ONCE(rates[i].idx >= sband->n_bitrates)) { in rate_fixup_ratelist()
693 rates[i].idx = -1; in rate_fixup_ratelist()
697 rate = &sband->bitrates[rates[i].idx]; in rate_fixup_ratelist()
702 rates[i].flags |= IEEE80211_TX_RC_USE_SHORT_PREAMBLE; in rate_fixup_ratelist()
705 if (!(rates[i].flags & IEEE80211_TX_RC_USE_RTS_CTS) && in rate_fixup_ratelist()
708 rates[i].flags |= IEEE80211_TX_RC_USE_CTS_PROTECT; in rate_fixup_ratelist()
719 int i; in rate_control_fill_sta_table() local
726 for (i = 0; i < max_rates; i++) { in rate_control_fill_sta_table()
727 if (i < ARRAY_SIZE(info->control.rates) && in rate_control_fill_sta_table()
728 info->control.rates[i].idx >= 0 && in rate_control_fill_sta_table()
729 info->control.rates[i].count) { in rate_control_fill_sta_table()
731 rates[i] = info->control.rates[i]; in rate_control_fill_sta_table()
733 rates[i].idx = ratetbl->rate[i].idx; in rate_control_fill_sta_table()
734 rates[i].flags = ratetbl->rate[i].flags; in rate_control_fill_sta_table()
736 rates[i].count = ratetbl->rate[i].count_rts; in rate_control_fill_sta_table()
738 rates[i].count = ratetbl->rate[i].count_cts; in rate_control_fill_sta_table()
740 rates[i].count = ratetbl->rate[i].count; in rate_control_fill_sta_table()
742 rates[i].idx = -1; in rate_control_fill_sta_table()
743 rates[i].count = 0; in rate_control_fill_sta_table()
746 if (rates[i].idx < 0 || !rates[i].count) in rate_control_fill_sta_table()
757 u32 i, flags; in rate_control_cap_mask() local
761 for (i = 0; i < sband->n_bitrates; i++) { in rate_control_cap_mask()
762 if ((flags & sband->bitrates[i].flags) != flags) in rate_control_cap_mask()
763 *mask &= ~BIT(i); in rate_control_cap_mask()
789 for (i = 0; i < IEEE80211_HT_MCS_MASK_LEN; i++) in rate_control_cap_mask()
790 mcs_mask[i] &= sta->ht_cap.mcs.rx_mask[i]; in rate_control_cap_mask()
794 for (i = 0; i < NL80211_VHT_NSS_MAX; i++) in rate_control_cap_mask()
795 vht_mask[i] &= sta_vht_mask[i]; in rate_control_cap_mask()
806 int i; in rate_control_apply_mask_ratetbl() local
817 for (i = 0; i < IEEE80211_TX_RATE_TABLE_SIZE; i++) { in rate_control_apply_mask_ratetbl()
818 if (rates->rate[i].idx < 0) in rate_control_apply_mask_ratetbl()
821 rate_idx_match_mask(&rates->rate[i].idx, &rates->rate[i].flags, in rate_control_apply_mask_ratetbl()
837 int i; in rate_control_apply_mask() local
854 for (i = 0; i < max_rates; i++) { in rate_control_apply_mask()
856 if (rates[i].idx < 0) in rate_control_apply_mask()
859 rate_flags = rates[i].flags; in rate_control_apply_mask()
860 rate_idx_match_mask(&rates[i].idx, &rate_flags, sband, in rate_control_apply_mask()
862 rates[i].flags = rate_flags; in rate_control_apply_mask()
905 int i; in rate_control_get_rate() local
907 for (i = 0; i < IEEE80211_TX_MAX_RATES; i++) { in rate_control_get_rate()
908 info->control.rates[i].idx = -1; in rate_control_get_rate()
909 info->control.rates[i].flags = 0; in rate_control_get_rate()
910 info->control.rates[i].count = 0; in rate_control_get_rate()