Lines Matching refs:wcid
20 struct mt76_wcid *wcid; in mt7921_rx_get_wcid() local
22 if (idx >= ARRAY_SIZE(dev->mt76.wcid)) in mt7921_rx_get_wcid()
25 wcid = rcu_dereference(dev->mt76.wcid[idx]); in mt7921_rx_get_wcid()
26 if (unicast || !wcid) in mt7921_rx_get_wcid()
27 return wcid; in mt7921_rx_get_wcid()
29 if (!wcid->sta) in mt7921_rx_get_wcid()
32 sta = container_of(wcid, struct mt7921_sta, wcid); in mt7921_rx_get_wcid()
36 return &sta->vif->sta.wcid; in mt7921_rx_get_wcid()
87 idx = msta->wcid.idx; in mt7921_mac_sta_poll()
112 if (!msta->wcid.sta) in mt7921_mac_sta_poll()
397 status->wcid = mt7921_rx_get_wcid(dev, idx, unicast); in mt7921_mac_fill_rx()
399 if (status->wcid) { in mt7921_mac_fill_rx()
402 msta = container_of(status->wcid, struct mt7921_sta, wcid); in mt7921_mac_fill_rx()
668 if (!status->wcid || !ieee80211_is_data_qos(fc)) in mt7921_mac_fill_rx()
680 struct sk_buff *skb, struct mt76_wcid *wcid) in mt7921_mac_write_txwi_8023() argument
688 if (wcid->sta) { in mt7921_mac_write_txwi_8023()
691 sta = container_of((void *)wcid, struct ieee80211_sta, drv_priv); in mt7921_mac_write_txwi_8023()
793 static void mt7921_update_txs(struct mt76_wcid *wcid, __le32 *txwi) in mt7921_update_txs() argument
795 struct mt7921_sta *msta = container_of(wcid, struct mt7921_sta, wcid); in mt7921_update_txs()
806 pid = mt76_get_next_pkt_id(wcid); in mt7921_update_txs()
812 struct sk_buff *skb, struct mt76_wcid *wcid, in mt7921_mac_write_txwi() argument
848 FIELD_PREP(MT_TXD1_WLAN_IDX, wcid->idx) | in mt7921_mac_write_txwi()
864 txwi[7] = wcid->amsdu ? cpu_to_le32(MT_TXD7_HW_AMSDU) : 0; in mt7921_mac_write_txwi()
867 mt7921_mac_write_txwi_8023(dev, txwi, skb, wcid); in mt7921_mac_write_txwi()
888 mt7921_update_txs(wcid, txwi); in mt7921_mac_write_txwi()
923 enum mt76_txq_id qid, struct mt76_wcid *wcid, in mt7921_tx_prepare_skb() argument
939 if (!wcid) in mt7921_tx_prepare_skb()
940 wcid = &dev->mt76.global_wcid; in mt7921_tx_prepare_skb()
942 cb->wcid = wcid->idx; in mt7921_tx_prepare_skb()
951 mt7921_mac_write_txwi(dev, txwi_ptr, tx_info->skb, wcid, key, in mt7921_tx_prepare_skb()
1085 struct mt76_wcid *wcid; in mt7921_mac_tx_free() local
1090 wcid = rcu_dereference(dev->mt76.wcid[idx]); in mt7921_mac_tx_free()
1091 sta = wcid_to_sta(wcid); in mt7921_mac_tx_free()
1095 msta = container_of(wcid, struct mt7921_sta, wcid); in mt7921_mac_tx_free()
1122 struct mt76_wcid *wcid = (struct mt76_wcid *)sta->drv_priv; in mt7921_mac_tx_free() local
1125 pending = atomic_dec_return(&wcid->non_aql_packets); in mt7921_mac_tx_free()
1127 atomic_cmpxchg(&wcid->non_aql_packets, pending, 0); in mt7921_mac_tx_free()
1176 struct mt76_wcid *wcid; in mt7921_tx_complete_skb() local
1178 wcid = rcu_dereference(dev->mt76.wcid[cb->wcid]); in mt7921_tx_complete_skb()
1180 mt7921_tx_complete_status(mdev, e->skb, wcid_to_sta(wcid), 0, in mt7921_tx_complete_skb()
1336 mt76_connac_mcu_uni_add_dev(&dev->mphy, vif, &mvif->sta.wcid, true); in mt7921_vif_connect_iter()