Home
last modified time | relevance | path

Searched refs:msta (Results 1 – 25 of 27) sorted by relevance

12

/Linux-v5.15/drivers/net/wireless/mediatek/mt76/mt7603/
Dmain.c90 struct mt7603_sta *msta = &mvif->sta; in mt7603_remove_interface() local
92 int idx = msta->wcid.idx; in mt7603_remove_interface()
103 if (!list_empty(&msta->poll_list)) in mt7603_remove_interface()
104 list_del_init(&msta->poll_list); in mt7603_remove_interface()
324 struct mt7603_sta *msta = (struct mt7603_sta *)sta->drv_priv; in mt7603_sta_add() local
333 INIT_LIST_HEAD(&msta->poll_list); in mt7603_sta_add()
334 __skb_queue_head_init(&msta->psq); in mt7603_sta_add()
335 msta->ps = ~0; in mt7603_sta_add()
336 msta->smps = ~0; in mt7603_sta_add()
337 msta->wcid.sta = 1; in mt7603_sta_add()
[all …]
Dmac.c320 struct mt7603_sta *msta = (struct mt7603_sta *)sta->drv_priv; in mt7603_wtbl_update_cap() local
321 int idx = msta->wcid.idx; in mt7603_wtbl_update_cap()
401 struct mt7603_sta *msta; in mt7603_mac_sta_poll() local
418 msta = list_first_entry(&dev->sta_poll_list, struct mt7603_sta, in mt7603_mac_sta_poll()
420 list_del_init(&msta->poll_list); in mt7603_mac_sta_poll()
423 addr = mt7603_wtbl4_addr(msta->wcid.idx); in mt7603_mac_sta_poll()
425 u32 airtime_last = msta->tx_airtime_ac[i]; in mt7603_mac_sta_poll()
427 msta->tx_airtime_ac[i] = mt76_rr(dev, addr + i * 8); in mt7603_mac_sta_poll()
428 airtime[i] = msta->tx_airtime_ac[i] - airtime_last; in mt7603_mac_sta_poll()
432 if (msta->tx_airtime_ac[i] & BIT(22)) in mt7603_mac_sta_poll()
[all …]
Ddma.c23 struct mt7603_sta *msta; in mt7603_rx_loopback_skb() local
44 priv = msta = container_of(wcid, struct mt7603_sta, wcid); in mt7603_rx_loopback_skb()
59 __skb_queue_tail(&msta->psq, skb); in mt7603_rx_loopback_skb()
60 if (skb_queue_len(&msta->psq) >= 64) { in mt7603_rx_loopback_skb()
61 skb = __skb_dequeue(&msta->psq); in mt7603_rx_loopback_skb()
/Linux-v5.15/drivers/net/wireless/mediatek/mt7601u/
Dmain.c213 struct mt76_sta *msta = (struct mt76_sta *) sta->drv_priv; in mt7601u_sta_add() local
226 msta->wcid.idx = idx; in mt7601u_sta_add()
227 msta->wcid.hw_key_idx = -1; in mt7601u_sta_add()
230 rcu_assign_pointer(dev->wcid[idx], &msta->wcid); in mt7601u_sta_add()
244 struct mt76_sta *msta = (struct mt76_sta *) sta->drv_priv; in mt7601u_sta_remove() local
245 int idx = msta->wcid.idx; in mt7601u_sta_remove()
298 struct mt76_sta *msta = sta ? (struct mt76_sta *) sta->drv_priv : NULL; in mt7601u_set_key() local
299 struct mt76_wcid *wcid = msta ? &msta->wcid : &mvif->group_wcid; in mt7601u_set_key()
324 if (!msta) { in mt7601u_set_key()
334 return mt76_mac_wcid_set_key(dev, msta->wcid.idx, key); in mt7601u_set_key()
[all …]
Dtx.c197 struct mt76_sta *msta = NULL; in mt7601u_tx() local
212 msta = (struct mt76_sta *) sta->drv_priv; in mt7601u_tx()
213 wcid = &msta->wcid; in mt7601u_tx()
225 trace_mt_tx(dev, skb, msta, txwi); in mt7601u_tx()
Dmac.c179 void *msta; in mt76_send_tx_status() local
186 msta = container_of(wcid, struct mt76_sta, wcid); in mt76_send_tx_status()
187 sta = container_of(msta, struct ieee80211_sta, in mt76_send_tx_status()
375 void *msta; in mt7601u_mac_set_ampdu_factor() local
385 msta = container_of(wcid, struct mt76_sta, wcid); in mt7601u_mac_set_ampdu_factor()
386 sta = container_of(msta, struct ieee80211_sta, drv_priv); in mt7601u_mac_set_ampdu_factor()
/Linux-v5.15/drivers/net/wireless/mediatek/mt76/mt7915/
Dmain.c266 struct mt7915_sta *msta = &mvif->sta; in mt7915_remove_interface() local
269 int idx = msta->wcid.idx; in mt7915_remove_interface()
291 if (!list_empty(&msta->poll_list)) in mt7915_remove_interface()
292 list_del_init(&msta->poll_list); in mt7915_remove_interface()
365 struct mt7915_sta *msta = sta ? (struct mt7915_sta *)sta->drv_priv : in mt7915_set_key() local
367 struct mt76_wcid *wcid = &msta->wcid; in mt7915_set_key()
413 err = mt7915_mcu_add_key(dev, vif, msta, key, cmd); in mt7915_set_key()
612 struct mt7915_sta *msta = (struct mt7915_sta *)sta->drv_priv; in mt7915_mac_sta_add() local
620 INIT_LIST_HEAD(&msta->rc_list); in mt7915_mac_sta_add()
621 INIT_LIST_HEAD(&msta->stats_list); in mt7915_mac_sta_add()
[all …]
Dmac.c109 struct mt7915_sta *msta; in mt7915_mac_sta_poll() local
130 msta = list_first_entry(&sta_poll_list, in mt7915_mac_sta_poll()
132 list_del_init(&msta->poll_list); in mt7915_mac_sta_poll()
135 idx = msta->wcid.idx; in mt7915_mac_sta_poll()
139 u32 tx_last = msta->airtime_ac[i]; in mt7915_mac_sta_poll()
140 u32 rx_last = msta->airtime_ac[i + 4]; in mt7915_mac_sta_poll()
142 msta->airtime_ac[i] = mt76_rr(dev, addr); in mt7915_mac_sta_poll()
143 msta->airtime_ac[i + 4] = mt76_rr(dev, addr + 4); in mt7915_mac_sta_poll()
145 tx_time[i] = msta->airtime_ac[i] - tx_last; in mt7915_mac_sta_poll()
146 rx_time[i] = msta->airtime_ac[i + 4] - rx_last; in mt7915_mac_sta_poll()
[all …]
Dmcu.c216 struct mt7915_sta *msta = (struct mt7915_sta *)sta->drv_priv; in mt7915_mcu_set_sta_he_mcs() local
217 struct cfg80211_chan_def *chandef = &msta->vif->phy->mt76->chandef; in mt7915_mcu_set_sta_he_mcs()
599 struct mt7915_sta *msta; in mt7915_mcu_tx_rate_report() local
609 msta = container_of(wcid, struct mt7915_sta, wcid); in mt7915_mcu_tx_rate_report()
610 stats = &msta->stats; in mt7915_mcu_tx_rate_report()
612 if (msta->wcid.ext_phy && dev->mt76.phy2) in mt7915_mcu_tx_rate_report()
718 struct mt7915_sta *msta, int len) in mt7915_mcu_alloc_sta_req() argument
722 .wlan_idx_lo = msta ? to_wcid_lo(msta->wcid.idx) : 0, in mt7915_mcu_alloc_sta_req()
723 .wlan_idx_hi = msta ? to_wcid_hi(msta->wcid.idx) : 0, in mt7915_mcu_alloc_sta_req()
724 .muar_idx = msta ? mvif->omac_idx : 0, in mt7915_mcu_alloc_sta_req()
[all …]
Ddebugfs.c372 struct mt7915_sta *msta = (struct mt7915_sta *)sta->drv_priv; in mt7915_sta_fixed_rate_set() local
374 return mt7915_mcu_set_fixed_rate(msta->vif->phy->dev, sta, rate); in mt7915_sta_fixed_rate_set()
384 struct mt7915_sta *msta = (struct mt7915_sta *)sta->drv_priv; in mt7915_sta_stats_show() local
385 struct mt7915_sta_stats *stats = &msta->stats; in mt7915_sta_stats_show()
Dmt7915.h328 struct mt7915_sta *msta, struct ieee80211_key_conf *key,
/Linux-v5.15/drivers/net/wireless/mediatek/mt76/mt7921/
Dmain.c304 struct mt7921_sta *msta = &mvif->sta; in mt7921_remove_interface() local
307 int idx = msta->wcid.idx; in mt7921_remove_interface()
313 mt76_connac_free_pending_tx_skbs(&dev->pm, &msta->wcid); in mt7921_remove_interface()
323 if (!list_empty(&msta->poll_list)) in mt7921_remove_interface()
324 list_del_init(&msta->poll_list); in mt7921_remove_interface()
366 struct mt7921_sta *msta = sta ? (struct mt7921_sta *)sta->drv_priv : in mt7921_set_key() local
368 struct mt76_wcid *wcid = &msta->wcid; in mt7921_set_key()
416 err = mt7921_mcu_add_key(dev, vif, msta, key, cmd); in mt7921_set_key()
612 struct mt7921_sta *msta = (struct mt7921_sta *)sta->drv_priv; in mt7921_mac_sta_add() local
620 INIT_LIST_HEAD(&msta->stats_list); in mt7921_mac_sta_add()
[all …]
Dmac.c61 struct mt7921_sta *msta; in mt7921_mac_sta_poll() local
82 msta = list_first_entry(&sta_poll_list, in mt7921_mac_sta_poll()
84 list_del_init(&msta->poll_list); in mt7921_mac_sta_poll()
87 idx = msta->wcid.idx; in mt7921_mac_sta_poll()
91 u32 tx_last = msta->airtime_ac[i]; in mt7921_mac_sta_poll()
92 u32 rx_last = msta->airtime_ac[i + 4]; in mt7921_mac_sta_poll()
94 msta->airtime_ac[i] = mt76_rr(dev, addr); in mt7921_mac_sta_poll()
95 msta->airtime_ac[i + 4] = mt76_rr(dev, addr + 4); in mt7921_mac_sta_poll()
97 tx_time[i] = msta->airtime_ac[i] - tx_last; in mt7921_mac_sta_poll()
98 rx_time[i] = msta->airtime_ac[i + 4] - rx_last; in mt7921_mac_sta_poll()
[all …]
Dmcu.c504 struct mt7921_sta *msta; in mt7921_mcu_tx_done_event() local
517 msta = list_first_entry(&list, struct mt7921_sta, stats_list); in mt7921_mcu_tx_done_event()
518 list_del_init(&msta->stats_list); in mt7921_mcu_tx_done_event()
520 if (msta->wcid.idx != event->wlan_idx) in mt7921_mcu_tx_done_event()
525 sta = wcid_to_sta(&msta->wcid); in mt7921_mcu_tx_done_event()
535 &msta->stats.tx_rate, event->tx_rate); in mt7921_mcu_tx_done_event()
604 mt7921_mcu_sta_key_tlv(struct mt7921_sta *msta, struct sk_buff *skb, in mt7921_mcu_sta_key_tlv() argument
607 struct mt7921_sta_key_conf *bip = &msta->bip; in mt7921_mcu_sta_key_tlv()
672 struct mt7921_sta *msta, struct ieee80211_key_conf *key, in mt7921_mcu_add_key() argument
680 &msta->wcid); in mt7921_mcu_add_key()
[all …]
Dmt7921.h263 struct mt7921_sta *msta, struct ieee80211_key_conf *key,
/Linux-v5.15/drivers/net/wireless/mediatek/mt76/mt7615/
Dmain.c254 struct mt7615_sta *msta = &mvif->sta; in mt7615_remove_interface() local
257 int idx = msta->wcid.idx; in mt7615_remove_interface()
268 mt76_connac_free_pending_tx_skbs(&dev->pm, &msta->wcid); in mt7615_remove_interface()
281 if (!list_empty(&msta->poll_list)) in mt7615_remove_interface()
282 list_del_init(&msta->poll_list); in mt7615_remove_interface()
370 struct mt7615_sta *msta = sta ? (struct mt7615_sta *)sta->drv_priv : in mt7615_set_key() local
372 struct mt76_wcid *wcid = &msta->wcid; in mt7615_set_key()
611 struct mt7615_sta *msta = (struct mt7615_sta *)sta->drv_priv; in mt7615_mac_sta_add() local
620 INIT_LIST_HEAD(&msta->poll_list); in mt7615_mac_sta_add()
621 msta->vif = mvif; in mt7615_mac_sta_add()
[all …]
Dusb_sdio.c197 struct mt7615_sta *msta; in mt7663_usb_sdio_tx_prepare_skb() local
200 msta = wcid ? container_of(wcid, struct mt7615_sta, wcid) : NULL; in mt7663_usb_sdio_tx_prepare_skb()
202 msta && !msta->rate_probe) { in mt7663_usb_sdio_tx_prepare_skb()
205 mt7615_mac_set_rates(&dev->phy, msta, &info->control.rates[0], in mt7663_usb_sdio_tx_prepare_skb()
206 msta->rates); in mt7663_usb_sdio_tx_prepare_skb()
Dmcu.c828 struct mt7615_sta *msta; in mt7615_mcu_bss_basic_tlv() local
830 msta = (struct mt7615_sta *)sta->drv_priv; in mt7615_mcu_bss_basic_tlv()
831 wlan_idx = msta->wcid.idx; in mt7615_mcu_bss_basic_tlv()
947 struct mt7615_sta *msta = (struct mt7615_sta *)params->sta->drv_priv; in mt7615_mcu_wtbl_tx_ba() local
948 struct mt7615_vif *mvif = msta->vif; in mt7615_mcu_wtbl_tx_ba()
953 wtbl_hdr = mt76_connac_mcu_alloc_wtbl_req(&dev->mt76, &msta->wcid, in mt7615_mcu_wtbl_tx_ba()
967 &msta->wcid); in mt7615_mcu_wtbl_tx_ba()
982 struct mt7615_sta *msta = (struct mt7615_sta *)params->sta->drv_priv; in mt7615_mcu_wtbl_rx_ba() local
983 struct mt7615_vif *mvif = msta->vif; in mt7615_mcu_wtbl_rx_ba()
989 &msta->wcid); in mt7615_mcu_wtbl_rx_ba()
[all …]
Dmac.c295 struct mt7615_sta *msta; in mt7615_mac_fill_rx() local
297 msta = container_of(status->wcid, struct mt7615_sta, wcid); in mt7615_mac_fill_rx()
299 if (list_empty(&msta->poll_list)) in mt7615_mac_fill_rx()
300 list_add_tail(&msta->poll_list, &dev->sta_poll_list); in mt7615_mac_fill_rx()
637 struct mt7615_sta *msta = (struct mt7615_sta *)sta->drv_priv; in mt7615_mac_write_txwi() local
639 tx_count = msta->rate_count; in mt7615_mac_write_txwi()
847 struct mt7615_sta *msta; in mt7615_mac_sta_poll() local
860 msta = list_first_entry(&sta_poll_list, struct mt7615_sta, in mt7615_mac_sta_poll()
862 list_del_init(&msta->poll_list); in mt7615_mac_sta_poll()
864 addr = mt7615_mac_wtbl_addr(dev, msta->wcid.idx) + 19 * 4; in mt7615_mac_sta_poll()
[all …]
Dpci_mac.c139 struct mt7615_sta *msta; in mt7615_tx_prepare_skb() local
142 msta = wcid ? container_of(wcid, struct mt7615_sta, wcid) : NULL; in mt7615_tx_prepare_skb()
148 if ((info->flags & IEEE80211_TX_CTL_RATE_CTRL_PROBE) && msta) { in mt7615_tx_prepare_skb()
155 mt7615_mac_set_rates(phy, msta, &info->control.rates[0], in mt7615_tx_prepare_skb()
156 msta->rates); in mt7615_tx_prepare_skb()
/Linux-v5.15/drivers/net/wireless/mediatek/mt76/
Dmt76x02_util.c241 struct mt76x02_sta *msta = (struct mt76x02_sta *)sta->drv_priv; in mt76x02_sta_add() local
245 memset(msta, 0, sizeof(*msta)); in mt76x02_sta_add()
251 msta->vif = mvif; in mt76x02_sta_add()
252 msta->wcid.sta = 1; in mt76x02_sta_add()
253 msta->wcid.idx = idx; in mt76x02_sta_add()
254 msta->wcid.hw_key_idx = -1; in mt76x02_sta_add()
257 ewma_pktlen_init(&msta->pktlen); in mt76x02_sta_add()
260 set_bit(MT_WCID_FLAG_CHECK_PS, &msta->wcid.flags); in mt76x02_sta_add()
353 struct mt76x02_sta *msta = (struct mt76x02_sta *)sta->drv_priv; in mt76x02_ampdu_action() local
368 mt76_rx_aggr_start(&dev->mt76, &msta->wcid, tid, in mt76x02_ampdu_action()
[all …]
Dmt76x02_txrx.c20 struct mt76x02_sta *msta; in mt76x02_tx() local
22 msta = (struct mt76x02_sta *)control->sta->drv_priv; in mt76x02_tx()
23 wcid = &msta->wcid; in mt76x02_tx()
176 struct mt76x02_sta *msta = (struct mt76x02_sta *)sta->drv_priv; in mt76x02_tx_prepare_skb() local
178 ewma_pktlen_add(&msta->pktlen, tx_info->skb->len); in mt76x02_tx_prepare_skb()
Dmt76x02_mac.c475 mt76x02_mac_fill_tx_status(struct mt76x02_dev *dev, struct mt76x02_sta *msta, in mt76x02_mac_fill_tx_status() argument
498 if (!msta) in mt76x02_mac_fill_tx_status()
501 mt76x02_mac_process_tx_rate(&rate[0], msta->wcid.tx_info, in mt76x02_mac_fill_tx_status()
553 struct mt76x02_sta *msta = NULL; in mt76x02_send_tx_status() local
572 priv = msta = container_of(wcid, struct mt76x02_sta, wcid); in mt76x02_send_tx_status()
593 if (msta && stat->aggr && !status.skb) { in mt76x02_send_tx_status()
598 stat_cache = msta->status.rate; in mt76x02_send_tx_status()
599 stat_cache |= ((u32)msta->status.retry) << 16; in mt76x02_send_tx_status()
602 stat->wcid == msta->status.wcid && msta->n_frames < 32) { in mt76x02_send_tx_status()
603 msta->n_frames++; in mt76x02_send_tx_status()
[all …]
Dmt76x02_mmio.c398 struct mt76x02_sta *msta; in mt76x02_reset_state() local
409 priv = msta = container_of(wcid, struct mt76x02_sta, wcid); in mt76x02_reset_state()
412 priv = msta->vif; in mt76x02_reset_state()
416 memset(msta, 0, sizeof(*msta)); in mt76x02_reset_state()
Dmt76x02_usb_core.c104 struct mt76x02_sta *msta = (struct mt76x02_sta *)sta->drv_priv; in mt76x02u_tx_prepare_skb() local
106 ewma_pktlen_add(&msta->pktlen, tx_info->skb->len); in mt76x02u_tx_prepare_skb()

12