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()
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 idx = msta->wcid.idx; in mt7915_mac_sta_poll()
162 if (!msta->wcid.sta) in mt7915_mac_sta_poll()
186 rate = &msta->wcid.rate; in mt7915_mac_sta_poll()
241 addr = mt7915_mac_wtbl_lmac_addr(dev, mvif->sta.wcid.idx, 5); in mt7915_mac_enable_rtscts()
329 status->wcid = mt7915_rx_get_wcid(dev, idx, unicast); in mt7915_mac_fill_rx()
331 if (status->wcid) { in mt7915_mac_fill_rx()
332 msta = container_of(status->wcid, struct mt7915_sta, wcid); in mt7915_mac_fill_rx()
551 if (!status->wcid || !ieee80211_is_data_qos(fc)) in mt7915_mac_fill_rx()
727 struct sk_buff *skb, struct mt76_wcid *wcid, int pid, in mt7915_mac_write_txwi() argument
738 mt76_connac2_mac_write_txwi(dev, txwi, skb, wcid, key, pid, qid, changed); in mt7915_mac_write_txwi()
745 enum mt76_txq_id qid, struct mt76_wcid *wcid, in mt7915_tx_prepare_skb() argument
763 if (!wcid) in mt7915_tx_prepare_skb()
764 wcid = &dev->mt76.global_wcid; in mt7915_tx_prepare_skb()
784 pid = mt76_tx_status_skb_add(mdev, wcid, tx_info->skb); in mt7915_tx_prepare_skb()
785 mt7915_mac_write_txwi(mdev, txwi_ptr, tx_info->skb, wcid, pid, key, in mt7915_tx_prepare_skb()
811 if (test_bit(MT_WCID_FLAG_4ADDR, &wcid->flags)) in mt7915_tx_prepare_skb()
812 txp->rept_wds_wcid = cpu_to_le16(wcid->idx); in mt7915_tx_prepare_skb()
879 struct mt76_wcid *wcid; in mt7915_txwi_free() local
889 wcid = (struct mt76_wcid *)sta->drv_priv; in mt7915_txwi_free()
890 wcid_idx = wcid->idx; in mt7915_txwi_free()
893 wcid = rcu_dereference(dev->mt76.wcid[wcid_idx]); in mt7915_txwi_free()
895 if (wcid && wcid->sta) { in mt7915_txwi_free()
896 msta = container_of(wcid, struct mt7915_sta, wcid); in mt7915_txwi_free()
984 struct mt76_wcid *wcid; in mt7915_mac_tx_free() local
988 wcid = rcu_dereference(dev->mt76.wcid[idx]); in mt7915_mac_tx_free()
989 sta = wcid_to_sta(wcid); in mt7915_mac_tx_free()
993 msta = container_of(wcid, struct mt7915_sta, wcid); in mt7915_mac_tx_free()
1058 struct mt76_wcid *wcid; in mt7915_mac_add_txs() local
1074 wcid = rcu_dereference(dev->mt76.wcid[wcidx]); in mt7915_mac_add_txs()
1075 if (!wcid) in mt7915_mac_add_txs()
1078 msta = container_of(wcid, struct mt7915_sta, wcid); in mt7915_mac_add_txs()
1081 mt76_connac2_mac_fill_txs(&dev->mt76, wcid, txs_data); in mt7915_mac_add_txs()
1083 mt76_connac2_mac_add_txs_skb(&dev->mt76, wcid, pid, txs_data); in mt7915_mac_add_txs()
1085 if (!wcid->sta) in mt7915_mac_add_txs()
2394 flow->wcid = msta->wcid.idx; in mt7915_mac_add_twt_setup()