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()
299 status->wcid = mt7615_rx_get_wcid(dev, idx, unicast); in mt7615_mac_fill_rx()
301 if (status->wcid) { in mt7615_mac_fill_rx()
304 msta = container_of(status->wcid, struct mt7615_sta, wcid); in mt7615_mac_fill_rx()
544 if (!status->wcid || !ieee80211_is_data_qos(fc)) in mt7615_mac_fill_rx()
618 struct sk_buff *skb, struct mt76_wcid *wcid, in mt7615_mac_write_txwi() argument
673 FIELD_PREP(MT_TXD1_WLAN_IDX, wcid->idx) | in mt7615_mac_write_txwi()
877 addr = mt7615_mac_wtbl_addr(dev, msta->wcid.idx) + 19 * 4; in mt7615_mac_sta_poll()
893 mt7615_mac_wtbl_update(dev, msta->wcid.idx, in mt7615_mac_sta_poll()
898 if (!msta->wcid.sta) in mt7615_mac_sta_poll()
1032 u32 mt7615_mac_get_sta_tid_sn(struct mt7615_dev *dev, int wcid, u8 tid) in mt7615_mac_get_sta_tid_sn() argument
1037 addr = mt7615_mac_wtbl_addr(dev, wcid) + 11 * 4; in mt7615_mac_get_sta_tid_sn()
1059 int wcid = sta->wcid.idx, n_rates = sta->n_rates; in mt7615_mac_set_rates() local
1076 addr = mt7615_mac_wtbl_addr(dev, wcid); in mt7615_mac_set_rates()
1109 FIELD_PREP(MT_WTBL_UPDATE_WLAN_IDX, wcid) | in mt7615_mac_set_rates()
1122 if (!(sta->wcid.tx_info & MT_WCID_TX_INFO_SET)) in mt7615_mac_set_rates()
1126 sta->wcid.tx_info |= MT_WCID_TX_INFO_SET; in mt7615_mac_set_rates()
1132 mt7615_mac_wtbl_update_key(struct mt7615_dev *dev, struct mt76_wcid *wcid, in mt7615_mac_wtbl_update_key() argument
1137 u32 addr = mt7615_mac_wtbl_addr(dev, wcid->idx) + 30 * 4; in mt7615_mac_wtbl_update_key()
1173 mt7615_mac_wtbl_update_pk(struct mt7615_dev *dev, struct mt76_wcid *wcid, in mt7615_mac_wtbl_update_pk() argument
1177 u32 addr = mt7615_mac_wtbl_addr(dev, wcid->idx), w0, w1; in mt7615_mac_wtbl_update_pk()
1204 if (!mt7615_mac_wtbl_update(dev, wcid->idx, in mt7615_mac_wtbl_update_pk()
1212 mt7615_mac_wtbl_update_cipher(struct mt7615_dev *dev, struct mt76_wcid *wcid, in mt7615_mac_wtbl_update_cipher() argument
1216 u32 addr = mt7615_mac_wtbl_addr(dev, wcid->idx); in mt7615_mac_wtbl_update_cipher()
1235 struct mt76_wcid *wcid, in __mt7615_mac_wtbl_set_key() argument
1240 u16 cipher_mask = wcid->cipher; in __mt7615_mac_wtbl_set_key()
1252 mt7615_mac_wtbl_update_cipher(dev, wcid, cipher, cipher_mask, cmd); in __mt7615_mac_wtbl_set_key()
1253 err = mt7615_mac_wtbl_update_key(dev, wcid, key, cipher, cipher_mask, in __mt7615_mac_wtbl_set_key()
1258 err = mt7615_mac_wtbl_update_pk(dev, wcid, cipher, cipher_mask, in __mt7615_mac_wtbl_set_key()
1263 wcid->cipher = cipher_mask; in __mt7615_mac_wtbl_set_key()
1269 struct mt76_wcid *wcid, in mt7615_mac_wtbl_set_key() argument
1276 err = __mt7615_mac_wtbl_set_key(dev, wcid, key, cmd); in mt7615_mac_wtbl_set_key()
1345 if (sta->wcid.ext_phy && dev->mt76.phy2) in mt7615_fill_txs()
1388 if (sta->wcid.ext_phy && dev->mt76.phy2) in mt7615_fill_txs()
1437 trace_mac_txdone(mdev, sta->wcid.idx, pid); in mt7615_mac_add_txs_skb()
1440 skb = mt76_tx_status_skb_get(mdev, &sta->wcid, pid, &list); in mt7615_mac_add_txs_skb()
1461 struct mt76_wcid *wcid; in mt7615_mac_add_txs() local
1481 wcid = rcu_dereference(dev->mt76.wcid[wcidx]); in mt7615_mac_add_txs()
1482 if (!wcid) in mt7615_mac_add_txs()
1485 msta = container_of(wcid, struct mt7615_sta, wcid); in mt7615_mac_add_txs()
1486 sta = wcid_to_sta(wcid); in mt7615_mac_add_txs()
1499 if (wcid->ext_phy && dev->mt76.phy2) in mt7615_mac_add_txs()
1518 u8 wcid; in mt7615_txwi_free() local
1526 wcid = FIELD_GET(MT_TXD1_WLAN_IDX, val); in mt7615_txwi_free()
1527 mt76_tx_complete_skb(mdev, wcid, txwi->skb); in mt7615_txwi_free()