Lines Matching refs:wcid

57 	struct mt76_wcid *wcid;  in mt7915_rx_get_wcid()  local
59 if (idx >= ARRAY_SIZE(dev->mt76.wcid)) in mt7915_rx_get_wcid()
62 wcid = rcu_dereference(dev->mt76.wcid[idx]); in mt7915_rx_get_wcid()
63 if (unicast || !wcid) in mt7915_rx_get_wcid()
64 return wcid; in mt7915_rx_get_wcid()
66 if (!wcid->sta) in mt7915_rx_get_wcid()
69 sta = container_of(wcid, struct mt7915_sta, wcid); in mt7915_rx_get_wcid()
73 return &sta->vif->sta.wcid; in mt7915_rx_get_wcid()
85 u32 mt7915_mac_wtbl_lmac_addr(struct mt7915_dev *dev, u16 wcid, u8 dw) in mt7915_mac_wtbl_lmac_addr() argument
88 FIELD_PREP(MT_WTBLON_TOP_WDUCR_GROUP, (wcid >> 7))); in mt7915_mac_wtbl_lmac_addr()
90 return MT_WTBL_LMAC_OFFS(wcid, dw); in mt7915_mac_wtbl_lmac_addr()
127 struct mt7915_sta, wcid.poll_list); in mt7915_mac_sta_poll()
128 list_del_init(&msta->wcid.poll_list); in mt7915_mac_sta_poll()
131 idx = msta->wcid.idx; in mt7915_mac_sta_poll()
158 if (!msta->wcid.sta) in mt7915_mac_sta_poll()
182 rate = &msta->wcid.rate; in mt7915_mac_sta_poll()
237 addr = mt7915_mac_wtbl_lmac_addr(dev, mvif->sta.wcid.idx, 5); in mt7915_mac_enable_rtscts()
325 status->wcid = mt7915_rx_get_wcid(dev, idx, unicast); in mt7915_mac_fill_rx()
327 if (status->wcid) { in mt7915_mac_fill_rx()
328 msta = container_of(status->wcid, struct mt7915_sta, wcid); in mt7915_mac_fill_rx()
330 if (list_empty(&msta->wcid.poll_list)) in mt7915_mac_fill_rx()
331 list_add_tail(&msta->wcid.poll_list, in mt7915_mac_fill_rx()
548 if (!status->wcid || !ieee80211_is_data_qos(fc)) in mt7915_mac_fill_rx()
724 struct sk_buff *skb, struct mt76_wcid *wcid, int pid, in mt7915_mac_write_txwi() argument
735 mt76_connac2_mac_write_txwi(dev, txwi, skb, wcid, key, pid, qid, changed); in mt7915_mac_write_txwi()
742 enum mt76_txq_id qid, struct mt76_wcid *wcid, in mt7915_tx_prepare_skb() argument
760 if (!wcid) in mt7915_tx_prepare_skb()
761 wcid = &dev->mt76.global_wcid; in mt7915_tx_prepare_skb()
781 pid = mt76_tx_status_skb_add(mdev, wcid, tx_info->skb); in mt7915_tx_prepare_skb()
782 mt7915_mac_write_txwi(mdev, txwi_ptr, tx_info->skb, wcid, pid, key, in mt7915_tx_prepare_skb()
808 if (test_bit(MT_WCID_FLAG_4ADDR, &wcid->flags)) in mt7915_tx_prepare_skb()
809 txp->rept_wds_wcid = cpu_to_le16(wcid->idx); in mt7915_tx_prepare_skb()
887 struct mt76_wcid *wcid = NULL; in mt7915_mac_tx_free() local
917 wcid = rcu_dereference(dev->mt76.wcid[idx]); in mt7915_mac_tx_free()
918 sta = wcid_to_sta(wcid); in mt7915_mac_tx_free()
922 msta = container_of(wcid, struct mt7915_sta, wcid); in mt7915_mac_tx_free()
924 if (list_empty(&msta->wcid.poll_list)) in mt7915_mac_tx_free()
925 list_add_tail(&msta->wcid.poll_list, in mt7915_mac_tx_free()
931 if (!mtk_wed_device_active(&mdev->mmio.wed) && wcid) { in mt7915_mac_tx_free()
945 wcid->stats.tx_retries += tx_retries; in mt7915_mac_tx_free()
946 wcid->stats.tx_failed += tx_failed; in mt7915_mac_tx_free()
1006 struct mt76_wcid *wcid; in mt7915_mac_add_txs() local
1022 wcid = rcu_dereference(dev->mt76.wcid[wcidx]); in mt7915_mac_add_txs()
1023 if (!wcid) in mt7915_mac_add_txs()
1026 msta = container_of(wcid, struct mt7915_sta, wcid); in mt7915_mac_add_txs()
1029 mt76_connac2_mac_fill_txs(&dev->mt76, wcid, txs_data); in mt7915_mac_add_txs()
1031 mt76_connac2_mac_add_txs_skb(&dev->mt76, wcid, pid, txs_data); in mt7915_mac_add_txs()
1033 if (!wcid->sta) in mt7915_mac_add_txs()
1037 if (list_empty(&msta->wcid.poll_list)) in mt7915_mac_add_txs()
1038 list_add_tail(&msta->wcid.poll_list, &dev->mt76.sta_poll_list); in mt7915_mac_add_txs()
2352 flow->wcid = msta->wcid.idx; in mt7915_mac_add_twt_setup()