Home
last modified time | relevance | path

Searched refs:n_rates (Results 1 – 18 of 18) sorted by relevance

/kernel/linux/linux-5.10/net/mac80211/
Drc80211_minstrel.c201 for (i = 0; i < mi->n_rates; i++) { in minstrel_update_stats()
316 if ((int) mi->sample_row >= mi->n_rates) { in minstrel_get_next_sample()
375 } else if (delta > mi->n_rates * 2) { in minstrel_get_rate()
385 mi->sample_packets += (delta - mi->n_rates * 2); in minstrel_get_rate()
447 memset(mi->sample_table, 0xff, SAMPLE_COLUMNS * mi->n_rates); in init_sample_table()
451 for (i = 0; i < mi->n_rates; i++) { in init_sample_table()
452 new_idx = (i + rnd[i & 7]) % mi->n_rates; in init_sample_table()
454 new_idx = (new_idx + 1) % mi->n_rates; in init_sample_table()
545 mi->n_rates = n; in minstrel_rate_init()
Drc80211_minstrel_debugfs.c77 for (i = 0; i < mi->n_rates; i++) { in minstrel_stats_open()
134 for (i = 0; i < mi->n_rates; i++) { in minstrel_stats_csv_open()
Drc80211_minstrel_ht.c559 minstrel_ht_find_probe_rates(struct minstrel_ht_sta *mi, u16 *rates, int *n_rates, in minstrel_ht_find_probe_rates() argument
596 rates[(*n_rates)++] = idx; in minstrel_ht_find_probe_rates()
608 int n_rates = 0; in minstrel_ht_rate_sample_switch() local
628 minstrel_ht_find_probe_rates(mi, rates, &n_rates, faster_rate); in minstrel_ht_rate_sample_switch()
629 if (!n_rates && faster_rate) in minstrel_ht_rate_sample_switch()
630 minstrel_ht_find_probe_rates(mi, rates, &n_rates, false); in minstrel_ht_rate_sample_switch()
633 if (!n_rates) { in minstrel_ht_rate_sample_switch()
650 if (n_rates > 1) { in minstrel_ht_rate_sample_switch()
652 i = random % n_rates; in minstrel_ht_rate_sample_switch()
Drc80211_minstrel.h133 int n_rates; member
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/
Dmac80211.c172 struct ieee80211_rate *rates, int n_rates, bool vht) in mt76_init_sband() argument
193 sband->n_bitrates = n_rates; in mt76_init_sband()
225 int n_rates) in mt76_init_sband_2g() argument
232 rates, n_rates, false); in mt76_init_sband_2g()
237 int n_rates, bool vht) in mt76_init_sband_5g() argument
244 rates, n_rates, vht); in mt76_init_sband_5g()
456 struct ieee80211_rate *rates, int n_rates) in mt76_register_device() argument
466 ret = mt76_init_sband_2g(dev, rates, n_rates); in mt76_register_device()
472 ret = mt76_init_sband_5g(dev, rates + 4, n_rates - 4, vht); in mt76_register_device()
Dmt76.h766 struct ieee80211_rate *rates, int n_rates);
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt7601u/
Dinit.c520 struct ieee80211_rate *rates, int n_rates) in mt76_init_sband() argument
534 sband->n_bitrates = n_rates; in mt76_init_sband()
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt7615/
Dmac.c835 int n_rates = sta->n_rates; in mt7615_mac_update_rate_desc() local
839 for (i = n_rates; i < 4; i++) in mt7615_mac_update_rate_desc()
840 rates[i] = rates[n_rates - 1]; in mt7615_mac_update_rate_desc()
968 int wcid = sta->wcid.idx, n_rates = sta->n_rates; in mt7615_mac_set_rates() local
1030 sta->rate_count = 2 * MT7615_RATE_RETRY * n_rates; in mt7615_mac_set_rates()
Dusb_sdio.c129 sta->rate_count = 2 * MT7615_RATE_RETRY * sta->n_rates; in mt7663_usb_sdio_set_rates()
Dmt7615.h148 u8 n_rates; member
Dmain.c685 msta->n_rates = i; in mt7615_sta_rate_tbl_update()
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt7603/
Dmt7603.h78 u8 n_rates; member
Dmac.c709 int n_rates = sta->n_rates; in mt7603_wtbl_set_rates() local
720 for (i = n_rates; i < 4; i++) in mt7603_wtbl_set_rates()
721 rates[i] = rates[n_rates - 1]; in mt7603_wtbl_set_rates()
827 sta->rate_count = 2 * MT7603_RATE_RETRY * n_rates; in mt7603_wtbl_set_rates()
Dmain.c630 msta->n_rates = i; in mt7603_sta_rate_tbl_update()
/kernel/linux/linux-5.10/net/wireless/
Dutil.c1950 const u8 *rates, unsigned int n_rates, in ieee80211_get_ratemask() argument
1958 if (n_rates == 0 || n_rates > NL80211_MAX_SUPP_RATES) in ieee80211_get_ratemask()
1963 for (i = 0; i < n_rates; i++) { in ieee80211_get_ratemask()
Dcore.h523 const u8 *rates, unsigned int n_rates,
Dnl80211.c10094 int n_rates = in nl80211_join_ibss() local
10099 err = ieee80211_get_ratemask(sband, rates, n_rates, in nl80211_join_ibss()
11685 int n_rates = in nl80211_join_mesh() local
11694 err = ieee80211_get_ratemask(sband, rates, n_rates, in nl80211_join_mesh()
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt7915/
Dmcu.c2048 int n_rates = hweight32(supp_rate); in mt7915_mcu_sta_rate_ctrl_tlv() local
2060 ra->rate_len = n_rates; in mt7915_mcu_sta_rate_ctrl_tlv()
2063 if (n_rates) { in mt7915_mcu_sta_rate_ctrl_tlv()
2069 if (n_rates > 4) { in mt7915_mcu_sta_rate_ctrl_tlv()