Home
last modified time | relevance | path

Searched refs:wcid (Results 1 – 25 of 84) sorted by relevance

1234

/linux/drivers/net/wireless/mediatek/mt76/
H A Dtx.c67 wcid = rcu_dereference(dev->wcid[cb->wcid]); in mt76_tx_status_unlock()
68 if (wcid) { in mt76_tx_status_unlock()
70 if (status.sta && (wcid->rate.flags || wcid->rate.legacy)) { in mt76_tx_status_unlock()
131 if (!wcid || !rcu_access_pointer(dev->wcid[wcid->idx])) in mt76_tx_status_skb_add()
156 cb->wcid = wcid->idx; in mt76_tx_status_skb_add()
254 wcid = rcu_dereference(dev->wcid[wcid_idx]); in __mt76_tx_complete_skb()
277 if (status.sta && (wcid->rate.flags || wcid->rate.legacy)) { in __mt76_tx_complete_skb()
316 q->entry[idx].wcid = wcid->idx; in __mt76_tx_queue_skb()
342 if (wcid && !(wcid->tx_info & MT_WCID_TX_INFO_SET)) in mt76_tx()
538 wcid = rcu_dereference(dev->wcid[mtxq->wcid]); in mt76_txq_schedule_list()
[all …]
H A Dmt76x02_txrx.c17 struct mt76_wcid *wcid = &dev->mt76.global_wcid; in mt76x02_tx() local
23 wcid = &msta->wcid; in mt76x02_tx()
28 wcid = &mvif->group_wcid; in mt76x02_tx()
31 mt76_tx(&dev->mphy, control->sta, wcid, skb); in mt76x02_tx()
138 enum mt76_txq_id qid, struct mt76_wcid *wcid, in mt76x02_tx_prepare_skb() argument
148 if (qid == MT_TXQ_PSD && wcid && wcid->idx < 128) in mt76x02_tx_prepare_skb()
149 mt76x02_mac_wcid_set_drop(dev, wcid->idx, false); in mt76x02_tx_prepare_skb()
153 mt76x02_mac_write_txwi(dev, txwi, tx_info->skb, wcid, sta, len); in mt76x02_tx_prepare_skb()
155 pid = mt76_tx_status_skb_add(mdev, wcid, tx_info->skb); in mt76x02_tx_prepare_skb()
172 if (!wcid || wcid->hw_key_idx == 0xff || wcid->sw_iv) in mt76x02_tx_prepare_skb()
H A Dmac80211.c1136 struct mt76_wcid *wcid = status->wcid; in mt76_check_ccmp_pn() local
1147 if (!wcid || !wcid->rx_check_pn) in mt76_check_ccmp_pn()
1194 struct mt76_wcid *wcid = status->wcid; in mt76_airtime_report() local
1212 if (!wcid || !wcid->sta) in mt76_airtime_report()
1233 dev->rx_ampdu_status.wcid = wcid; in mt76_airtime_flush_ampdu()
1245 struct mt76_wcid *wcid = status->wcid; in mt76_airtime_check() local
1250 if (!wcid || !wcid->sta) { in mt76_airtime_check()
1288 struct mt76_wcid *wcid = status->wcid; in mt76_check_sta() local
1302 if (!wcid || !wcid->sta) in mt76_check_sta()
1431 mtxq->wcid = wcid->idx; in mt76_sta_add()
[all …]
H A Dtrace.h27 #define TXID_ENTRY __field(u8, wcid) __field(u8, pktid)
28 #define TXID_ASSIGN __entry->wcid = wcid; __entry->pktid = pktid
30 #define TXID_PR_ARG __entry->wcid, __entry->pktid
83 TP_PROTO(struct mt76_dev *dev, u8 wcid, u8 pktid),
84 TP_ARGS(dev, wcid, pktid),
100 TP_PROTO(struct mt76_dev *dev, u8 wcid, u8 pktid),
101 TP_ARGS(dev, wcid, pktid)
H A Dmt76_connac_mac.c89 if (wcid && pm->tx_q[i].wcid != wcid) in mt76_connac_free_pending_tx_skbs()
110 pm->tx_q[qid].wcid = wcid; in mt76_connac_pm_queue_skb()
127 struct mt76_wcid *wcid = pm->tx_q[i].wcid; in mt76_connac_pm_dequeue_skbs() local
133 if (wcid && wcid->sta) in mt76_connac_pm_dequeue_skbs()
353 if (wcid->sta) { in mt76_connac2_mac_write_txwi_8023()
611 if (wcid->sta) { in mt76_connac2_mac_fill_txs()
707 wcid->rate = rate; in mt76_connac2_mac_fill_txs()
1110 struct mt76_wcid *wcid; in mt76_connac2_tx_check_aggr() local
1149 wcid_idx = wcid->idx; in mt76_connac2_txwi_free()
1152 wcid = rcu_dereference(dev->wcid[wcid_idx]); in mt76_connac2_txwi_free()
[all …]
H A Dmt76x02_util.c253 msta->wcid.sta = 1; in mt76x02_sta_add()
254 msta->wcid.idx = idx; in mt76x02_sta_add()
255 msta->wcid.hw_key_idx = -1; in mt76x02_sta_add()
272 int idx = wcid->idx; in mt76x02_sta_remove()
414 struct mt76_wcid *wcid; in mt76x02_set_key() local
455 wcid = msta ? &msta->wcid : &mvif->group_wcid; in mt76x02_set_key()
459 wcid->hw_key_idx = -1; in mt76x02_set_key()
460 wcid->sw_iv = false; in mt76x02_set_key()
467 wcid->hw_key_idx = idx; in mt76x02_set_key()
470 wcid->sw_iv = true; in mt76x02_set_key()
[all …]
H A Dagg-rx.c123 struct mt76_wcid *wcid = status->wcid; in mt76_rx_aggr_check_ctl() local
136 tid = rcu_dereference(wcid->aggr[tidno]); in mt76_rx_aggr_check_ctl()
151 struct mt76_wcid *wcid = status->wcid; in mt76_rx_aggr_reorder() local
161 sta = wcid_to_sta(wcid); in mt76_rx_aggr_reorder()
176 tid = rcu_dereference(wcid->aggr[tidno]); in mt76_rx_aggr_reorder()
242 int mt76_rx_aggr_start(struct mt76_dev *dev, struct mt76_wcid *wcid, u8 tidno, in mt76_rx_aggr_start() argument
247 mt76_rx_aggr_stop(dev, wcid, tidno); in mt76_rx_aggr_start()
260 rcu_assign_pointer(wcid->aggr[tidno], tid); in mt76_rx_aggr_start()
290 void mt76_rx_aggr_stop(struct mt76_dev *dev, struct mt76_wcid *wcid, u8 tidno) in mt76_rx_aggr_stop() argument
294 tid = rcu_replace_pointer(wcid->aggr[tidno], tid, in mt76_rx_aggr_stop()
H A Dutil.c69 struct mt76_wcid *wcid; in mt76_get_min_avg_rssi() local
90 wcid = rcu_dereference(dev->wcid[j]); in mt76_get_min_avg_rssi()
91 if (!wcid) in mt76_get_min_avg_rssi()
95 if (wcid->inactive_count++ < 5) in mt76_get_min_avg_rssi()
96 cur_rssi = -ewma_signal_read(&wcid->rssi); in mt76_get_min_avg_rssi()
H A Dmt76x02_mac.c354 if (!info->control.hw_key && wcid && wcid->hw_key_idx != 0xff && in mt76x02_mac_write_txwi()
356 wcid = NULL; in mt76x02_mac_write_txwi()
361 if (wcid) in mt76x02_mac_write_txwi()
362 txwi->wcid = wcid->idx; in mt76x02_mac_write_txwi()
366 if (wcid && wcid->sw_iv && key) { in mt76x02_mac_write_txwi()
568 wcid = rcu_dereference(dev->mt76.wcid[stat->wcid]); in mt76x02_send_tx_status()
570 if (wcid && wcid->sta) { in mt76x02_send_tx_status()
573 priv = msta = container_of(wcid, struct mt76x02_sta, wcid); in mt76x02_send_tx_status()
580 if (wcid) { in mt76x02_send_tx_status()
603 stat->wcid == msta->status.wcid && msta->n_frames < 32) { in mt76x02_send_tx_status()
[all …]
H A Dmt76x02_usb_core.c21 mt76_tx_complete_skb(mdev, e->wcid, e->skb); in mt76x02u_tx_complete_skb()
65 enum mt76_txq_id qid, struct mt76_wcid *wcid, in mt76x02u_tx_prepare_skb() argument
80 mt76x02_mac_write_txwi(dev, txwi, tx_info->skb, wcid, sta, len); in mt76x02u_tx_prepare_skb()
83 pid = mt76_tx_status_skb_add(mdev, wcid, tx_info->skb); in mt76x02u_tx_prepare_skb()
101 if (!wcid || wcid->hw_key_idx == 0xff || wcid->sw_iv) in mt76x02u_tx_prepare_skb()
111 if (err && wcid) in mt76x02u_tx_prepare_skb()
113 idr_remove(&wcid->pktid, pid); in mt76x02u_tx_prepare_skb()
/linux/drivers/net/wireless/mediatek/mt7601u/
H A Dmain.c62 if (dev->wcid_mask[wcid / BITS_PER_LONG] & BIT(wcid % BITS_PER_LONG)) in mt7601u_add_interface()
64 dev->wcid_mask[wcid / BITS_PER_LONG] |= BIT(wcid % BITS_PER_LONG); in mt7601u_add_interface()
65 mvif->group_wcid.idx = wcid; in mt7601u_add_interface()
78 dev->wcid_mask[wcid / BITS_PER_LONG] &= ~BIT(wcid % BITS_PER_LONG); in mt7601u_remove_interface()
226 msta->wcid.idx = idx; in mt7601u_sta_add()
227 msta->wcid.hw_key_idx = -1; in mt7601u_sta_add()
230 rcu_assign_pointer(dev->wcid[idx], &msta->wcid); in mt7601u_sta_add()
245 int idx = msta->wcid.idx; in mt7601u_sta_remove()
299 struct mt76_wcid *wcid = msta ? &msta->wcid : &mvif->group_wcid; in mt7601u_set_key() local
316 wcid->hw_key_idx = idx; in mt7601u_set_key()
[all …]
H A Dmac.c152 wcid->tx_rate = mt76_mac_tx_rate_val(dev, rate, &wcid->tx_rate_nss); in mt76_mac_wcid_set_rate()
153 wcid->tx_rate_set = true; in mt76_mac_wcid_set_rate()
178 struct mt76_wcid *wcid = NULL; in mt76_send_tx_status() local
182 if (stat->wcid < ARRAY_SIZE(dev->wcid)) in mt76_send_tx_status()
183 wcid = rcu_dereference(dev->wcid[stat->wcid]); in mt76_send_tx_status()
185 if (wcid) { in mt76_send_tx_status()
186 msta = container_of(wcid, struct mt76_sta, wcid); in mt76_send_tx_status()
374 struct mt76_wcid *wcid; in mt7601u_mac_set_ampdu_factor() local
381 wcid = rcu_dereference(dev->wcid[i]); in mt7601u_mac_set_ampdu_factor()
382 if (!wcid) in mt7601u_mac_set_ampdu_factor()
[all …]
H A Dtx.c131 struct ieee80211_sta *sta, struct mt76_wcid *wcid, in mt7601u_push_txwi() argument
146 if (!wcid->tx_rate_set) in mt7601u_push_txwi()
152 rate_ctl = wcid->tx_rate; in mt7601u_push_txwi()
180 txwi->wcid = wcid->idx; in mt7601u_push_txwi()
198 struct mt76_wcid *wcid = dev->mon_wcid; in mt7601u_tx() local
213 wcid = &msta->wcid; in mt7601u_tx()
217 wcid = &mvif->group_wcid; in mt7601u_tx()
220 txwi = mt7601u_push_txwi(dev, skb, sta, wcid, pkt_len); in mt7601u_tx()
222 if (mt7601u_dma_enqueue_tx(dev, skb, wcid, hw_q)) in mt7601u_tx()
/linux/drivers/net/wireless/mediatek/mt76/mt7921/
H A Dmac.c212 if (status->wcid) { in mt7921_mac_fill_rx()
213 msta = container_of(status->wcid, struct mt792x_sta, wcid); in mt7921_mac_fill_rx()
467 wcid = rcu_dereference(dev->mt76.wcid[wcidx]); in mt7921_mac_add_txs()
468 if (!wcid) in mt7921_mac_add_txs()
471 msta = container_of(wcid, struct mt792x_sta, wcid); in mt7921_mac_add_txs()
474 if (!wcid->sta) in mt7921_mac_add_txs()
521 wcid = rcu_dereference(dev->mt76.wcid[idx]); in mt7921_mac_tx_free()
526 msta = container_of(wcid, struct mt792x_sta, wcid); in mt7921_mac_tx_free()
538 if (wcid) { in mt7921_mac_tx_free()
783 if (!wcid) in mt7921_usb_sdio_tx_prepare_skb()
[all …]
H A Dmain.c320 mvif->sta.wcid.idx = idx; in mt7921_add_interface()
322 mvif->sta.wcid.hw_key_idx = -1; in mt7921_add_interface()
324 mt76_wcid_init(&mvif->sta.wcid); in mt7921_add_interface()
331 rcu_assign_pointer(dev->mt76.wcid[idx], &mvif->sta.wcid); in mt7921_add_interface()
334 mtxq->wcid = idx; in mt7921_add_interface()
497 struct mt76_wcid *wcid = &msta->wcid; in mt7921_set_key() local
515 wcid_keyidx = &wcid->hw_key_idx2; in mt7921_set_key()
546 &msta->wcid, cmd); in mt7921_set_key()
804 msta->wcid.sta = 1; in mt7921_mac_sta_add()
805 msta->wcid.idx = idx; in mt7921_mac_sta_add()
[all …]
/linux/drivers/net/wireless/mediatek/mt76/mt7603/
H A Dmain.c70 mvif->sta.wcid.idx = idx; in mt7603_add_interface()
79 mtxq->wcid = idx; in mt7603_add_interface()
80 rcu_assign_pointer(dev->mt76.wcid[idx], &mvif->sta.wcid); in mt7603_add_interface()
94 int idx = msta->wcid.idx; in mt7603_remove_interface()
359 msta->wcid.sta = 1; in mt7603_sta_add()
360 msta->wcid.idx = idx; in mt7603_sta_add()
495 struct mt76_wcid *wcid = &msta->wcid; in mt7603_set_key() local
526 wcid->hw_key_idx = idx; in mt7603_set_key()
686 struct mt76_wcid *wcid = &dev->global_sta.wcid; in mt7603_tx() local
692 wcid = &msta->wcid; in mt7603_tx()
[all …]
H A Dmac.c493 wcid = rcu_dereference(dev->mt76.wcid[idx]); in mt7603_rx_get_wcid()
495 return wcid; in mt7603_rx_get_wcid()
497 if (!wcid->sta) in mt7603_rx_get_wcid()
500 sta = container_of(wcid, struct mt7603_sta, wcid); in mt7603_rx_get_wcid()
735 int wcid = sta->wcid.idx; in mt7603_wtbl_set_rates() local
953 if (wcid) in mt7603_mac_write_txwi()
1058 if (!wcid) in mt7603_tx_prepare_skb()
1059 wcid = &dev->global_sta.wcid; in mt7603_tx_prepare_skb()
1274 wcid = rcu_dereference(dev->mt76.wcid[wcidx]); in mt7603_mac_add_txs()
1275 if (!wcid) in mt7603_mac_add_txs()
[all …]
/linux/drivers/net/wireless/mediatek/mt76/mt7925/
H A Dmac.c396 msta = container_of(status->wcid, struct mt792x_sta, wcid); in mt7925_mac_fill_rx()
633 if (wcid->sta) { in mt7925_mac_write_txwi_8023()
1014 wcid = rcu_dereference(dev->mt76.wcid[wcidx]); in mt7925_mac_add_txs()
1015 if (!wcid) in mt7925_mac_add_txs()
1018 msta = container_of(wcid, struct mt792x_sta, wcid); in mt7925_mac_add_txs()
1021 if (!wcid->sta) in mt7925_mac_add_txs()
1101 wcid = rcu_dereference(dev->mt76.wcid[idx]); in mt7925_mac_tx_free()
1106 msta = container_of(wcid, struct mt792x_sta, wcid); in mt7925_mac_tx_free()
1116 if (wcid) { in mt7925_mac_tx_free()
1377 if (!wcid) in mt7925_usb_sdio_tx_prepare_skb()
[all …]
/linux/drivers/net/wireless/mediatek/mt76/mt7615/
H A Dusb_sdio.c72 addr = mt7615_mac_wtbl_addr(dev, sta->wcid.idx); in mt7663_usb_sdio_set_rates()
106 FIELD_PREP(MT_WTBL_UPDATE_WLAN_IDX, sta->wcid.idx) | in mt7663_usb_sdio_set_rates()
122 if (!(sta->wcid.tx_info & MT_WCID_TX_INFO_SET)) in mt7663_usb_sdio_set_rates()
126 sta->wcid.tx_info |= MT_WCID_TX_INFO_SET; in mt7663_usb_sdio_set_rates()
177 mt76_tx_complete_skb(mdev, e->wcid, e->skb); in mt7663_usb_sdio_tx_complete_skb()
182 enum mt76_txq_id qid, struct mt76_wcid *wcid, in mt7663_usb_sdio_tx_prepare_skb() argument
193 msta = wcid ? container_of(wcid, struct mt7615_sta, wcid) : NULL; in mt7663_usb_sdio_tx_prepare_skb()
194 if (!wcid) in mt7663_usb_sdio_tx_prepare_skb()
195 wcid = &dev->mt76.global_wcid; in mt7663_usb_sdio_tx_prepare_skb()
206 pktid = mt76_tx_status_skb_add(&dev->mt76, wcid, skb); in mt7663_usb_sdio_tx_prepare_skb()
[all …]
H A Dmac.c96 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()
389 msta = container_of(status->wcid, struct mt7615_sta, wcid); in mt7615_mac_fill_rx()
1105 int wcid = sta->wcid.idx, n_rates = sta->n_rates; in mt7615_mac_set_rates() 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()
[all …]
H A Dmain.c226 mvif->sta.wcid.idx = idx; in mt7615_add_interface()
228 mvif->sta.wcid.hw_key_idx = -1; in mt7615_add_interface()
229 mt76_wcid_init(&mvif->sta.wcid); in mt7615_add_interface()
234 rcu_assign_pointer(dev->mt76.wcid[idx], &mvif->sta.wcid); in mt7615_add_interface()
237 mtxq->wcid = idx; in mt7615_add_interface()
254 int idx = msta->wcid.idx; in mt7615_remove_interface()
352 struct mt76_wcid *wcid = &msta->wcid; in mt7615_set_key() local
662 msta->wcid.sta = 1; in mt7615_mac_sta_add()
663 msta->wcid.idx = idx; in mt7615_mac_sta_add()
775 wcid = &msta->wcid; in mt7615_tx()
[all …]
/linux/drivers/net/wireless/mediatek/mt76/mt7996/
H A Dmain.c222 mvif->sta.wcid.idx = idx; in mt7996_add_interface()
233 mtxq->wcid = idx; in mt7996_add_interface()
254 rcu_assign_pointer(dev->mt76.wcid[idx], &mvif->sta.wcid); in mt7996_add_interface()
269 int idx = msta->wcid.idx; in mt7996_remove_interface()
338 struct mt76_wcid *wcid = &msta->wcid; in mt7996_set_key() local
400 &msta->wcid, cmd); in mt7996_set_key()
695 msta->wcid.sta = 1; in mt7996_mac_sta_add()
696 msta->wcid.idx = idx; in mt7996_mac_sta_add()
749 wcid = &sta->wcid; in mt7996_tx()
756 wcid = &mvif->sta.wcid; in mt7996_tx()
[all …]
H A Dmac.c64 wcid = rcu_dereference(dev->mt76.wcid[idx]); 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()
930 if (!wcid) in mt7996_tx_prepare_skb()
1126 wcid = rcu_dereference(dev->mt76.wcid[idx]); in mt7996_mac_tx_free()
1131 msta = container_of(wcid, struct mt7996_sta, wcid); in mt7996_mac_tx_free()
1351 wcid = rcu_dereference(dev->mt76.wcid[wcidx]); in mt7996_mac_add_txs()
1352 if (!wcid) in mt7996_mac_add_txs()
1355 msta = container_of(wcid, struct mt7996_sta, wcid); in mt7996_mac_add_txs()
[all …]
/linux/drivers/net/wireless/mediatek/mt76/mt7915/
H A Dmain.c252 mvif->sta.wcid.idx = idx; in mt7915_add_interface()
263 mtxq->wcid = idx; in mt7915_add_interface()
276 rcu_assign_pointer(dev->mt76.wcid[idx], &mvif->sta.wcid); in mt7915_add_interface()
291 int idx = msta->wcid.idx; in mt7915_remove_interface()
372 struct mt76_wcid *wcid = &msta->wcid; in mt7915_set_key() local
424 &msta->wcid, cmd); in mt7915_set_key()
756 msta->wcid.sta = 1; in mt7915_mac_sta_add()
757 msta->wcid.idx = idx; in mt7915_mac_sta_add()
814 wcid = &sta->wcid; in mt7915_tx()
821 wcid = &mvif->sta.wcid; in mt7915_tx()
[all …]
H A Dmac.c62 wcid = rcu_dereference(dev->mt76.wcid[idx]); in mt7915_rx_get_wcid()
64 return wcid; in mt7915_rx_get_wcid()
66 if (!wcid->sta) in mt7915_rx_get_wcid()
69 sta = container_of(wcid, struct mt7915_sta, wcid); in mt7915_rx_get_wcid()
767 if (!wcid) in mt7915_tx_prepare_skb()
924 wcid = rcu_dereference(dev->mt76.wcid[idx]); in mt7915_mac_tx_free()
929 msta = container_of(wcid, struct mt7915_sta, wcid); in mt7915_mac_tx_free()
1029 wcid = rcu_dereference(dev->mt76.wcid[wcidx]); in mt7915_mac_add_txs()
1030 if (!wcid) in mt7915_mac_add_txs()
1033 msta = container_of(wcid, struct mt7915_sta, wcid); in mt7915_mac_add_txs()
[all …]

1234