Lines Matching refs:wcid
61 struct mt76_wcid *wcid; in mt7915_rx_get_wcid() local
63 if (idx >= ARRAY_SIZE(dev->mt76.wcid)) in mt7915_rx_get_wcid()
66 wcid = rcu_dereference(dev->mt76.wcid[idx]); in mt7915_rx_get_wcid()
67 if (unicast || !wcid) in mt7915_rx_get_wcid()
68 return wcid; in mt7915_rx_get_wcid()
70 if (!wcid->sta) in mt7915_rx_get_wcid()
73 sta = container_of(wcid, struct mt7915_sta, wcid); in mt7915_rx_get_wcid()
77 return &sta->vif->sta.wcid; in mt7915_rx_get_wcid()
89 u32 mt7915_mac_wtbl_lmac_addr(struct mt7915_dev *dev, u16 wcid, u8 dw) in mt7915_mac_wtbl_lmac_addr() argument
92 FIELD_PREP(MT_WTBLON_TOP_WDUCR_GROUP, (wcid >> 7))); in mt7915_mac_wtbl_lmac_addr()
94 return MT_WTBL_LMAC_OFFS(wcid, dw); in mt7915_mac_wtbl_lmac_addr()
135 struct mt7915_sta, wcid.poll_list); in mt7915_mac_sta_poll()
136 list_del_init(&msta->wcid.poll_list); in mt7915_mac_sta_poll()
139 idx = msta->wcid.idx; in mt7915_mac_sta_poll()
173 if (!msta->wcid.sta) in mt7915_mac_sta_poll()
197 rate = &msta->wcid.rate; in mt7915_mac_sta_poll()
252 addr = mt7915_mac_wtbl_lmac_addr(dev, mvif->sta.wcid.idx, 5); in mt7915_mac_enable_rtscts()
340 status->wcid = mt7915_rx_get_wcid(dev, idx, unicast); in mt7915_mac_fill_rx()
342 if (status->wcid) { in mt7915_mac_fill_rx()
343 msta = container_of(status->wcid, struct mt7915_sta, wcid); in mt7915_mac_fill_rx()
344 mt76_wcid_add_poll(&dev->mt76, &msta->wcid); in mt7915_mac_fill_rx()
559 if (!status->wcid || !ieee80211_is_data_qos(fc)) in mt7915_mac_fill_rx()
735 struct sk_buff *skb, struct mt76_wcid *wcid, int pid, in mt7915_mac_write_txwi() argument
746 mt76_connac2_mac_write_txwi(dev, txwi, skb, wcid, key, pid, qid, changed); in mt7915_mac_write_txwi()
753 enum mt76_txq_id qid, struct mt76_wcid *wcid, in mt7915_tx_prepare_skb() argument
771 if (!wcid) in mt7915_tx_prepare_skb()
772 wcid = &dev->mt76.global_wcid; in mt7915_tx_prepare_skb()
792 pid = mt76_tx_status_skb_add(mdev, wcid, tx_info->skb); in mt7915_tx_prepare_skb()
793 mt7915_mac_write_txwi(mdev, txwi_ptr, tx_info->skb, wcid, pid, key, in mt7915_tx_prepare_skb()
819 if (test_bit(MT_WCID_FLAG_4ADDR, &wcid->flags)) in mt7915_tx_prepare_skb()
820 txp->rept_wds_wcid = cpu_to_le16(wcid->idx); in mt7915_tx_prepare_skb()
906 struct mt76_wcid *wcid = NULL; in mt7915_mac_tx_free() local
941 wcid = rcu_dereference(dev->mt76.wcid[idx]); in mt7915_mac_tx_free()
942 sta = wcid_to_sta(wcid); in mt7915_mac_tx_free()
946 msta = container_of(wcid, struct mt7915_sta, wcid); in mt7915_mac_tx_free()
947 mt76_wcid_add_poll(&dev->mt76, &msta->wcid); in mt7915_mac_tx_free()
951 if (!mtk_wed_device_active(&mdev->mmio.wed) && wcid) { in mt7915_mac_tx_free()
965 wcid->stats.tx_retries += tx_retries; in mt7915_mac_tx_free()
966 wcid->stats.tx_failed += tx_failed; in mt7915_mac_tx_free()
1035 struct mt76_wcid *wcid; in mt7915_mac_add_txs() local
1051 wcid = rcu_dereference(dev->mt76.wcid[wcidx]); in mt7915_mac_add_txs()
1052 if (!wcid) in mt7915_mac_add_txs()
1055 msta = container_of(wcid, struct mt7915_sta, wcid); in mt7915_mac_add_txs()
1058 mt76_connac2_mac_fill_txs(&dev->mt76, wcid, txs_data); in mt7915_mac_add_txs()
1060 mt76_connac2_mac_add_txs_skb(&dev->mt76, wcid, pid, txs_data); in mt7915_mac_add_txs()
1062 if (!wcid->sta) in mt7915_mac_add_txs()
1065 mt76_wcid_add_poll(&dev->mt76, &msta->wcid); in mt7915_mac_add_txs()
2396 flow->wcid = msta->wcid.idx; in mt7915_mac_add_twt_setup()