Lines Matching refs:wcid
91 struct mt76_wcid *wcid; in mt7615_rx_get_wcid() local
96 wcid = rcu_dereference(dev->mt76.wcid[idx]); in mt7615_rx_get_wcid()
97 if (unicast || !wcid) in mt7615_rx_get_wcid()
98 return wcid; in mt7615_rx_get_wcid()
100 if (!wcid->sta) in mt7615_rx_get_wcid()
103 sta = container_of(wcid, struct mt7615_sta, wcid); in mt7615_rx_get_wcid()
107 return &sta->vif->sta.wcid; in mt7615_rx_get_wcid()
256 struct mt7615_sta *msta = (struct mt7615_sta *)status->wcid; in mt7615_reverse_frag0_hdr_trans()
384 status->wcid = mt7615_rx_get_wcid(dev, idx, unicast); in mt7615_mac_fill_rx()
386 if (status->wcid) { in mt7615_mac_fill_rx()
389 msta = container_of(status->wcid, struct mt7615_sta, wcid); in mt7615_mac_fill_rx()
647 if (!status->wcid || !ieee80211_is_data_qos(fc)) in mt7615_mac_fill_rx()
721 struct sk_buff *skb, struct mt76_wcid *wcid, in mt7615_mac_write_txwi() argument
777 FIELD_PREP(MT_TXD1_WLAN_IDX, wcid->idx) | in mt7615_mac_write_txwi()
924 addr = mt7615_mac_wtbl_addr(dev, msta->wcid.idx) + 19 * 4; in mt7615_mac_sta_poll()
940 mt7615_mac_wtbl_update(dev, msta->wcid.idx, in mt7615_mac_sta_poll()
945 if (!msta->wcid.sta) in mt7615_mac_sta_poll()
1079 u32 mt7615_mac_get_sta_tid_sn(struct mt7615_dev *dev, int wcid, u8 tid) in mt7615_mac_get_sta_tid_sn() argument
1084 addr = mt7615_mac_wtbl_addr(dev, wcid) + 11 * 4; in mt7615_mac_get_sta_tid_sn()
1106 int wcid = sta->wcid.idx, n_rates = sta->n_rates; in mt7615_mac_set_rates() local
1123 addr = mt7615_mac_wtbl_addr(dev, wcid); in mt7615_mac_set_rates()
1156 FIELD_PREP(MT_WTBL_UPDATE_WLAN_IDX, wcid) | in mt7615_mac_set_rates()
1169 if (!(sta->wcid.tx_info & MT_WCID_TX_INFO_SET)) in mt7615_mac_set_rates()
1173 sta->wcid.tx_info |= MT_WCID_TX_INFO_SET; in mt7615_mac_set_rates()
1184 addr = mt7615_mac_wtbl_addr(dev, mvif->sta.wcid.idx) + 3 * 4; in mt7615_mac_enable_rtscts()
1194 mt7615_mac_wtbl_update_key(struct mt7615_dev *dev, struct mt76_wcid *wcid, in mt7615_mac_wtbl_update_key() argument
1199 u32 addr = mt7615_mac_wtbl_addr(dev, wcid->idx) + 30 * 4; in mt7615_mac_wtbl_update_key()
1235 mt7615_mac_wtbl_update_pk(struct mt7615_dev *dev, struct mt76_wcid *wcid, in mt7615_mac_wtbl_update_pk() argument
1239 u32 addr = mt7615_mac_wtbl_addr(dev, wcid->idx), w0, w1; in mt7615_mac_wtbl_update_pk()
1266 if (!mt7615_mac_wtbl_update(dev, wcid->idx, in mt7615_mac_wtbl_update_pk()
1274 mt7615_mac_wtbl_update_cipher(struct mt7615_dev *dev, struct mt76_wcid *wcid, in mt7615_mac_wtbl_update_cipher() argument
1278 u32 addr = mt7615_mac_wtbl_addr(dev, wcid->idx); in mt7615_mac_wtbl_update_cipher()
1297 struct mt76_wcid *wcid, in __mt7615_mac_wtbl_set_key() argument
1302 u16 cipher_mask = wcid->cipher; in __mt7615_mac_wtbl_set_key()
1314 mt7615_mac_wtbl_update_cipher(dev, wcid, cipher, cipher_mask, cmd); in __mt7615_mac_wtbl_set_key()
1315 err = mt7615_mac_wtbl_update_key(dev, wcid, key, cipher, cipher_mask, in __mt7615_mac_wtbl_set_key()
1320 err = mt7615_mac_wtbl_update_pk(dev, wcid, cipher, cipher_mask, in __mt7615_mac_wtbl_set_key()
1325 wcid->cipher = cipher_mask; in __mt7615_mac_wtbl_set_key()
1331 struct mt76_wcid *wcid, in mt7615_mac_wtbl_set_key() argument
1338 err = __mt7615_mac_wtbl_set_key(dev, wcid, key, cmd); in mt7615_mac_wtbl_set_key()
1407 if (sta->wcid.phy_idx && dev->mt76.phys[MT_BAND1]) in mt7615_fill_txs()
1450 if (sta->wcid.phy_idx && dev->mt76.phys[MT_BAND1]) in mt7615_fill_txs()
1499 trace_mac_txdone(mdev, sta->wcid.idx, pid); in mt7615_mac_add_txs_skb()
1502 skb = mt76_tx_status_skb_get(mdev, &sta->wcid, pid, &list); in mt7615_mac_add_txs_skb()
1523 struct mt76_wcid *wcid; in mt7615_mac_add_txs() local
1540 wcid = rcu_dereference(dev->mt76.wcid[wcidx]); in mt7615_mac_add_txs()
1541 if (!wcid) in mt7615_mac_add_txs()
1544 msta = container_of(wcid, struct mt7615_sta, wcid); in mt7615_mac_add_txs()
1545 sta = wcid_to_sta(wcid); in mt7615_mac_add_txs()
1558 if (wcid->phy_idx && dev->mt76.phys[MT_BAND1]) in mt7615_mac_add_txs()
1574 u8 wcid; in mt7615_txwi_free() local
1582 wcid = FIELD_GET(MT_TXD1_WLAN_IDX, val); in mt7615_txwi_free()
1583 mt76_tx_complete_skb(mdev, wcid, txwi->skb); in mt7615_txwi_free()