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()
391 if (list_empty(&msta->wcid.poll_list)) in mt7615_mac_fill_rx()
392 list_add_tail(&msta->wcid.poll_list, in mt7615_mac_fill_rx()
648 if (!status->wcid || !ieee80211_is_data_qos(fc)) in mt7615_mac_fill_rx()
717 struct sk_buff *skb, struct mt76_wcid *wcid, in mt7615_mac_write_txwi() argument
773 FIELD_PREP(MT_TXD1_WLAN_IDX, wcid->idx) | in mt7615_mac_write_txwi()
917 wcid.poll_list); in mt7615_mac_sta_poll()
920 list_del_init(&msta->wcid.poll_list); in mt7615_mac_sta_poll()
923 addr = mt7615_mac_wtbl_addr(dev, msta->wcid.idx) + 19 * 4; in mt7615_mac_sta_poll()
939 mt7615_mac_wtbl_update(dev, msta->wcid.idx, in mt7615_mac_sta_poll()
944 if (!msta->wcid.sta) in mt7615_mac_sta_poll()
1078 u32 mt7615_mac_get_sta_tid_sn(struct mt7615_dev *dev, int wcid, u8 tid) in mt7615_mac_get_sta_tid_sn() argument
1083 addr = mt7615_mac_wtbl_addr(dev, wcid) + 11 * 4; in mt7615_mac_get_sta_tid_sn()
1105 int wcid = sta->wcid.idx, n_rates = sta->n_rates; in mt7615_mac_set_rates() local
1122 addr = mt7615_mac_wtbl_addr(dev, wcid); in mt7615_mac_set_rates()
1155 FIELD_PREP(MT_WTBL_UPDATE_WLAN_IDX, wcid) | in mt7615_mac_set_rates()
1168 if (!(sta->wcid.tx_info & MT_WCID_TX_INFO_SET)) in mt7615_mac_set_rates()
1172 sta->wcid.tx_info |= MT_WCID_TX_INFO_SET; in mt7615_mac_set_rates()
1183 addr = mt7615_mac_wtbl_addr(dev, mvif->sta.wcid.idx) + 3 * 4; in mt7615_mac_enable_rtscts()
1193 mt7615_mac_wtbl_update_key(struct mt7615_dev *dev, struct mt76_wcid *wcid, in mt7615_mac_wtbl_update_key() argument
1197 u32 addr = mt7615_mac_wtbl_addr(dev, wcid->idx) + 30 * 4; in mt7615_mac_wtbl_update_key()
1224 mt7615_mac_wtbl_update_pk(struct mt7615_dev *dev, struct mt76_wcid *wcid, in mt7615_mac_wtbl_update_pk() argument
1228 u32 addr = mt7615_mac_wtbl_addr(dev, wcid->idx), w0, w1; in mt7615_mac_wtbl_update_pk()
1253 if (!mt7615_mac_wtbl_update(dev, wcid->idx, in mt7615_mac_wtbl_update_pk()
1261 mt7615_mac_wtbl_update_cipher(struct mt7615_dev *dev, struct mt76_wcid *wcid, in mt7615_mac_wtbl_update_cipher() argument
1264 u32 addr = mt7615_mac_wtbl_addr(dev, wcid->idx); in mt7615_mac_wtbl_update_cipher()
1275 struct mt76_wcid *wcid, in __mt7615_mac_wtbl_set_key() argument
1279 u16 cipher_mask = wcid->cipher; in __mt7615_mac_wtbl_set_key()
1287 mt7615_mac_wtbl_update_cipher(dev, wcid, cipher, cipher_mask); in __mt7615_mac_wtbl_set_key()
1288 err = mt7615_mac_wtbl_update_key(dev, wcid, key, cipher, cipher_mask); in __mt7615_mac_wtbl_set_key()
1292 err = mt7615_mac_wtbl_update_pk(dev, wcid, cipher, cipher_mask, in __mt7615_mac_wtbl_set_key()
1297 wcid->cipher = cipher_mask; in __mt7615_mac_wtbl_set_key()
1303 struct mt76_wcid *wcid, in mt7615_mac_wtbl_set_key() argument
1309 err = __mt7615_mac_wtbl_set_key(dev, wcid, key); in mt7615_mac_wtbl_set_key()
1378 if (sta->wcid.phy_idx && dev->mt76.phys[MT_BAND1]) in mt7615_fill_txs()
1421 if (sta->wcid.phy_idx && dev->mt76.phys[MT_BAND1]) in mt7615_fill_txs()
1470 trace_mac_txdone(mdev, sta->wcid.idx, pid); in mt7615_mac_add_txs_skb()
1473 skb = mt76_tx_status_skb_get(mdev, &sta->wcid, pid, &list); in mt7615_mac_add_txs_skb()
1494 struct mt76_wcid *wcid; in mt7615_mac_add_txs() local
1511 wcid = rcu_dereference(dev->mt76.wcid[wcidx]); in mt7615_mac_add_txs()
1512 if (!wcid) in mt7615_mac_add_txs()
1515 msta = container_of(wcid, struct mt7615_sta, wcid); in mt7615_mac_add_txs()
1516 sta = wcid_to_sta(wcid); in mt7615_mac_add_txs()
1519 if (list_empty(&msta->wcid.poll_list)) in mt7615_mac_add_txs()
1520 list_add_tail(&msta->wcid.poll_list, &dev->mt76.sta_poll_list); in mt7615_mac_add_txs()
1529 if (wcid->phy_idx && dev->mt76.phys[MT_BAND1]) in mt7615_mac_add_txs()
1548 u8 wcid; in mt7615_txwi_free() local
1556 wcid = FIELD_GET(MT_TXD1_WLAN_IDX, val); in mt7615_txwi_free()
1557 mt76_tx_complete_skb(mdev, wcid, txwi->skb); in mt7615_txwi_free()