Lines Matching refs:wcid

59 	struct mt76_wcid *wcid;  in mt7996_rx_get_wcid()  local
61 if (idx >= ARRAY_SIZE(dev->mt76.wcid)) in mt7996_rx_get_wcid()
64 wcid = rcu_dereference(dev->mt76.wcid[idx]); in mt7996_rx_get_wcid()
65 if (unicast || !wcid) in mt7996_rx_get_wcid()
66 return wcid; in mt7996_rx_get_wcid()
68 if (!wcid->sta) in mt7996_rx_get_wcid()
71 sta = container_of(wcid, struct mt7996_sta, wcid); in mt7996_rx_get_wcid()
75 return &sta->vif->sta.wcid; in mt7996_rx_get_wcid()
87 u32 mt7996_mac_wtbl_lmac_addr(struct mt7996_dev *dev, u16 wcid, u8 dw) in mt7996_mac_wtbl_lmac_addr() argument
90 FIELD_PREP(MT_WTBLON_TOP_WDUCR_GROUP, (wcid >> 7))); in mt7996_mac_wtbl_lmac_addr()
92 return MT_WTBL_LMAC_OFFS(wcid, dw); in mt7996_mac_wtbl_lmac_addr()
129 struct mt7996_sta, wcid.poll_list); in mt7996_mac_sta_poll()
130 list_del_init(&msta->wcid.poll_list); in mt7996_mac_sta_poll()
133 idx = msta->wcid.idx; in mt7996_mac_sta_poll()
160 if (!msta->wcid.sta) in mt7996_mac_sta_poll()
182 rate = &msta->wcid.rate; in mt7996_mac_sta_poll()
244 addr = mt7996_mac_wtbl_lmac_addr(dev, mvif->sta.wcid.idx, 5); in mt7996_mac_enable_rtscts()
267 struct mt7996_sta *msta = (struct mt7996_sta *)status->wcid; in mt7996_reverse_frag0_hdr_trans()
502 status->wcid = mt7996_rx_get_wcid(dev, idx, unicast); in mt7996_mac_fill_rx()
504 if (status->wcid) { in mt7996_mac_fill_rx()
507 msta = container_of(status->wcid, struct mt7996_sta, wcid); in mt7996_mac_fill_rx()
509 if (list_empty(&msta->wcid.poll_list)) in mt7996_mac_fill_rx()
510 list_add_tail(&msta->wcid.poll_list, in mt7996_mac_fill_rx()
716 if (!status->wcid || !ieee80211_is_data_qos(fc)) in mt7996_mac_fill_rx()
729 struct sk_buff *skb, struct mt76_wcid *wcid) in mt7996_mac_write_txwi_8023() argument
737 if (wcid->sta) { in mt7996_mac_write_txwi_8023()
740 sta = container_of((void *)wcid, struct ieee80211_sta, drv_priv); in mt7996_mac_write_txwi_8023()
761 if (wcid->amsdu) in mt7996_mac_write_txwi_8023()
834 struct sk_buff *skb, struct mt76_wcid *wcid, in mt7996_mac_write_txwi() argument
878 val = FIELD_PREP(MT_TXD1_WLAN_IDX, wcid->idx) | in mt7996_mac_write_txwi()
908 mt7996_mac_write_txwi_8023(dev, txwi, skb, wcid); in mt7996_mac_write_txwi()
933 enum mt76_txq_id qid, struct mt76_wcid *wcid, in mt7996_tx_prepare_skb() argument
951 if (!wcid) in mt7996_tx_prepare_skb()
952 wcid = &dev->mt76.global_wcid; in mt7996_tx_prepare_skb()
970 pid = mt76_tx_status_skb_add(mdev, wcid, tx_info->skb); in mt7996_tx_prepare_skb()
971 mt7996_mac_write_txwi(dev, txwi_ptr, tx_info->skb, wcid, key, in mt7996_tx_prepare_skb()
997 txp->fw.rept_wds_wcid = cpu_to_le16(sta ? wcid->idx : 0xfff); in mt7996_tx_prepare_skb()
1030 if (!test_and_set_bit(tid, &msta->wcid.ampdu_state)) in mt7996_tx_check_aggr()
1039 struct mt76_wcid *wcid; in mt7996_txwi_free() local
1049 wcid = (struct mt76_wcid *)sta->drv_priv; in mt7996_txwi_free()
1050 wcid_idx = wcid->idx; in mt7996_txwi_free()
1108 struct mt76_wcid *wcid; in mt7996_mac_tx_free() local
1112 wcid = rcu_dereference(dev->mt76.wcid[idx]); in mt7996_mac_tx_free()
1113 sta = wcid_to_sta(wcid); in mt7996_mac_tx_free()
1117 msta = container_of(wcid, struct mt7996_sta, wcid); in mt7996_mac_tx_free()
1119 if (list_empty(&msta->wcid.poll_list)) in mt7996_mac_tx_free()
1120 list_add_tail(&msta->wcid.poll_list, in mt7996_mac_tx_free()
1157 mt7996_mac_add_txs_skb(struct mt7996_dev *dev, struct mt76_wcid *wcid, in mt7996_mac_add_txs_skb() argument
1160 struct mt76_sta_stats *stats = &wcid->stats; in mt7996_mac_add_txs_skb()
1172 skb = mt76_tx_status_skb_get(mdev, wcid, pid, &list); in mt7996_mac_add_txs_skb()
1208 mphy = mt76_dev_phy(mdev, wcid->phy_idx); in mt7996_mac_add_txs_skb()
1226 if (wcid->rate.flags & RATE_INFO_FLAGS_SHORT_GI) in mt7996_mac_add_txs_skb()
1242 rate.he_gi = wcid->rate.he_gi; in mt7996_mac_add_txs_skb()
1252 rate.eht_gi = wcid->rate.eht_gi; in mt7996_mac_add_txs_skb()
1283 wcid->rate = rate; in mt7996_mac_add_txs_skb()
1297 struct mt76_wcid *wcid; in mt7996_mac_add_txs() local
1316 wcid = rcu_dereference(dev->mt76.wcid[wcidx]); in mt7996_mac_add_txs()
1317 if (!wcid) in mt7996_mac_add_txs()
1320 msta = container_of(wcid, struct mt7996_sta, wcid); in mt7996_mac_add_txs()
1322 mt7996_mac_add_txs_skb(dev, wcid, pid, txs_data); in mt7996_mac_add_txs()
1324 if (!wcid->sta) in mt7996_mac_add_txs()
1328 if (list_empty(&msta->wcid.poll_list)) in mt7996_mac_add_txs()
1329 list_add_tail(&msta->wcid.poll_list, &dev->mt76.sta_poll_list); in mt7996_mac_add_txs()
2510 flow->wcid = msta->wcid.idx; in mt7996_mac_add_twt_setup()