Home
last modified time | relevance | path

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

123

/linux/drivers/net/wireless/mediatek/mt76/
A Dtx.c64 struct mt76_wcid *wcid; in mt76_tx_status_unlock() local
66 wcid = rcu_dereference(dev->wcid[cb->wcid]); in mt76_tx_status_unlock()
67 if (wcid) { in mt76_tx_status_unlock()
123 if (!wcid) in mt76_tx_status_skb_add()
142 cb->wcid = wcid->idx; in mt76_tx_status_skb_add()
240 wcid = rcu_dereference(dev->wcid[wcid_idx]); in __mt76_tx_complete_skb()
293 q->entry[idx].wcid = wcid->idx; in __mt76_tx_queue_skb()
334 if (wcid && !(wcid->tx_info & MT_WCID_TX_INFO_SET)) in mt76_tx()
444 struct mt76_wcid *wcid = mtxq->wcid; in mt76_txq_send_burst() local
524 wcid = mtxq->wcid; in mt76_txq_schedule_list()
[all …]
A Dmt76_connac_mac.c59 struct mt76_wcid *wcid) in mt76_connac_free_pending_tx_skbs() argument
65 if (wcid && pm->tx_q[i].wcid != wcid) in mt76_connac_free_pending_tx_skbs()
77 struct mt76_wcid *wcid, in mt76_connac_pm_queue_skb() argument
86 pm->tx_q[qid].wcid = wcid; in mt76_connac_pm_queue_skb()
103 struct mt76_wcid *wcid = pm->tx_q[i].wcid; in mt76_connac_pm_dequeue_skbs() local
109 if (wcid && wcid->sta) in mt76_connac_pm_dequeue_skbs()
110 sta = container_of((void *)wcid, struct ieee80211_sta, in mt76_connac_pm_dequeue_skbs()
113 mt76_tx(phy, sta, wcid, pm->tx_q[i].skb); in mt76_connac_pm_dequeue_skbs()
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()
A Dmac80211.c966 struct mt76_wcid *wcid = status->wcid; in mt76_check_ccmp_pn() local
974 if (!wcid || !wcid->rx_check_pn) in mt76_check_ccmp_pn()
1021 struct mt76_wcid *wcid = status->wcid; in mt76_airtime_report() local
1039 if (!wcid || !wcid->sta) in mt76_airtime_report()
1060 dev->rx_ampdu_status.wcid = wcid; in mt76_airtime_flush_ampdu()
1072 struct mt76_wcid *wcid = status->wcid; in mt76_airtime_check() local
1077 if (!wcid || !wcid->sta) { in mt76_airtime_check()
1115 struct mt76_wcid *wcid = status->wcid; in mt76_check_sta() local
1129 if (!wcid || !wcid->sta) in mt76_check_sta()
1255 mtxq->wcid = wcid; in mt76_sta_add()
[all …]
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)
A Dmt76x02_util.c252 msta->wcid.sta = 1; in mt76x02_sta_add()
253 msta->wcid.idx = idx; in mt76x02_sta_add()
254 msta->wcid.hw_key_idx = -1; in mt76x02_sta_add()
271 int idx = wcid->idx; in mt76x02_sta_remove()
411 struct mt76_wcid *wcid; in mt76x02_set_key() local
452 wcid = msta ? &msta->wcid : &mvif->group_wcid; in mt76x02_set_key()
456 wcid->hw_key_idx = idx; in mt76x02_set_key()
459 wcid->sw_iv = true; in mt76x02_set_key()
463 wcid->hw_key_idx = -1; in mt76x02_set_key()
464 wcid->sw_iv = false; in mt76x02_set_key()
[all …]
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()
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 …]
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()
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()
A Dmt76.h132 u16 wcid; member
270 struct mt76_wcid *wcid; member
322 u16 wcid; member
531 struct mt76_wcid *wcid; member
851 if (wcid <= MT76_N_WCIDS && in mt76_wcid_hw()
1004 wcid_to_sta(struct mt76_wcid *wcid) in wcid_to_sta() argument
1006 void *ptr = wcid; in wcid_to_sta()
1008 if (!wcid || !wcid->sta) in wcid_to_sta()
1374 INIT_LIST_HEAD(&wcid->list); in mt76_packet_id_init()
1375 idr_init(&wcid->pktid); in mt76_packet_id_init()
[all …]
/linux/drivers/net/wireless/mediatek/mt7601u/
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 …]
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 …]
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/mt7603/
A Dmain.c70 mvif->sta.wcid.idx = idx; in mt7603_add_interface()
78 mtxq->wcid = &mvif->sta.wcid; in mt7603_add_interface()
79 rcu_assign_pointer(dev->mt76.wcid[idx], &mvif->sta.wcid); in mt7603_add_interface()
93 int idx = msta->wcid.idx; in mt7603_remove_interface()
340 msta->wcid.sta = 1; in mt7603_sta_add()
341 msta->wcid.idx = idx; in mt7603_sta_add()
474 struct mt76_wcid *wcid = &msta->wcid; in mt7603_set_key() local
499 wcid->hw_key_idx = idx; in mt7603_set_key()
661 struct mt76_wcid *wcid = &dev->global_sta.wcid; in mt7603_tx() local
667 wcid = &msta->wcid; in mt7603_tx()
[all …]
A Dmac.c479 wcid = rcu_dereference(dev->mt76.wcid[idx]); in mt7603_rx_get_wcid()
481 return wcid; in mt7603_rx_get_wcid()
483 if (!wcid->sta) in mt7603_rx_get_wcid()
486 sta = container_of(wcid, struct mt7603_sta, wcid); in mt7603_rx_get_wcid()
722 int wcid = sta->wcid.idx; in mt7603_wtbl_set_rates() local
940 if (wcid) in mt7603_mac_write_txwi()
1045 if (!wcid) in mt7603_tx_prepare_skb()
1046 wcid = &dev->global_sta.wcid; in mt7603_tx_prepare_skb()
1264 wcid = rcu_dereference(dev->mt76.wcid[wcidx]); in mt7603_mac_add_txs()
1265 if (!wcid) in mt7603_mac_add_txs()
[all …]
/linux/drivers/net/wireless/mediatek/mt76/mt7615/
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 …]
A Dmain.c231 mvif->sta.wcid.idx = idx; in mt7615_add_interface()
233 mvif->sta.wcid.hw_key_idx = -1; in mt7615_add_interface()
239 rcu_assign_pointer(dev->mt76.wcid[idx], &mvif->sta.wcid); in mt7615_add_interface()
242 mtxq->wcid = &mvif->sta.wcid; in mt7615_add_interface()
259 int idx = msta->wcid.idx; in mt7615_remove_interface()
376 struct mt76_wcid *wcid = &msta->wcid; in mt7615_set_key() local
393 wcid_keyidx = &wcid->hw_key_idx2; in mt7615_set_key()
626 msta->wcid.sta = 1; in mt7615_mac_sta_add()
627 msta->wcid.idx = idx; in mt7615_mac_sta_add()
736 wcid = &msta->wcid; in mt7615_tx()
[all …]
A Dmac.c96 wcid = rcu_dereference(dev->mt76.wcid[idx]); 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()
294 if (status->wcid) { in mt7615_mac_fill_rx()
297 msta = container_of(status->wcid, struct mt7615_sta, wcid); in mt7615_mac_fill_rx()
1049 int wcid = sta->wcid.idx, n_rates = sta->n_rates; in mt7615_mac_set_rates() local
1471 wcid = rcu_dereference(dev->mt76.wcid[wcidx]); in mt7615_mac_add_txs()
1472 if (!wcid) in mt7615_mac_add_txs()
1475 msta = container_of(wcid, struct mt7615_sta, wcid); in mt7615_mac_add_txs()
[all …]
/linux/drivers/net/wireless/mediatek/mt76/mt7921/
A Dsdio_mac.c151 mt7921_mac_write_txwi(dev, txwi, skb, wcid, key, pid, false); in mt7921s_write_txwi()
156 enum mt76_txq_id qid, struct mt76_wcid *wcid, in mt7921s_tx_prepare_skb() argument
169 if (!wcid) in mt7921s_tx_prepare_skb()
170 wcid = &dev->mt76.global_wcid; in mt7921s_tx_prepare_skb()
181 pktid = mt76_tx_status_skb_add(&dev->mt76, wcid, skb); in mt7921s_tx_prepare_skb()
182 mt7921s_write_txwi(dev, wcid, qid, sta, key, pktid, skb); in mt7921s_tx_prepare_skb()
190 idr_remove(&wcid->pktid, pktid); in mt7921s_tx_prepare_skb()
200 struct mt76_wcid *wcid; in mt7921s_tx_complete_skb() local
204 wcid = rcu_dereference(mdev->wcid[idx]); in mt7921s_tx_complete_skb()
205 sta = wcid_to_sta(wcid); in mt7921s_tx_complete_skb()
[all …]
A Dpci_mac.c40 enum mt76_txq_id qid, struct mt76_wcid *wcid, in mt7921e_tx_prepare_skb() argument
55 if (!wcid) in mt7921e_tx_prepare_skb()
56 wcid = &dev->mt76.global_wcid; in mt7921e_tx_prepare_skb()
74 pid = mt76_tx_status_skb_add(mdev, wcid, tx_info->skb); in mt7921e_tx_prepare_skb()
75 mt7921_mac_write_txwi(dev, txwi_ptr, tx_info->skb, wcid, key, in mt7921e_tx_prepare_skb()
138 wcid_idx = wcid->idx; in mt7921_txwi_free()
180 struct mt76_wcid *wcid; in mt7921_mac_tx_free() local
185 wcid = rcu_dereference(dev->mt76.wcid[idx]); in mt7921_mac_tx_free()
186 sta = wcid_to_sta(wcid); in mt7921_mac_tx_free()
190 msta = container_of(wcid, struct mt7921_sta, wcid); in mt7921_mac_tx_free()
[all …]
A Dmain.c304 mvif->sta.wcid.idx = idx; in mt7921_add_interface()
306 mvif->sta.wcid.hw_key_idx = -1; in mt7921_add_interface()
315 rcu_assign_pointer(dev->mt76.wcid[idx], &mvif->sta.wcid); in mt7921_add_interface()
318 mtxq->wcid = &mvif->sta.wcid; in mt7921_add_interface()
340 int idx = msta->wcid.idx; in mt7921_remove_interface()
400 struct mt76_wcid *wcid = &msta->wcid; in mt7921_set_key() local
625 msta->wcid.sta = 1; in mt7921_mac_sta_add()
626 msta->wcid.idx = idx; in mt7921_mac_sta_add()
694 &mvif->sta.wcid, false); in mt7921_mac_sta_remove()
735 wcid = &sta->wcid; in mt7921_tx()
[all …]
A Dmac.c25 wcid = rcu_dereference(dev->mt76.wcid[idx]); in mt7921_rx_get_wcid()
26 if (unicast || !wcid) in mt7921_rx_get_wcid()
27 return wcid; in mt7921_rx_get_wcid()
29 if (!wcid->sta) in mt7921_rx_get_wcid()
32 sta = container_of(wcid, struct mt7921_sta, wcid); in mt7921_rx_get_wcid()
440 msta = container_of(status->wcid, struct mt7921_sta, wcid); in mt7921_mac_fill_rx()
981 if (!wcid->sta) in mt7921_mac_add_txs_skb()
1095 wcid = rcu_dereference(dev->mt76.wcid[wcidx]); in mt7921_mac_add_txs()
1096 if (!wcid) in mt7921_mac_add_txs()
1101 if (!wcid->sta) in mt7921_mac_add_txs()
[all …]
/linux/drivers/net/wireless/mediatek/mt76/mt7915/
A Dmain.c238 mvif->sta.wcid.idx = idx; in mt7915_add_interface()
240 mvif->sta.wcid.hw_key_idx = -1; in mt7915_add_interface()
247 rcu_assign_pointer(dev->mt76.wcid[idx], &mvif->sta.wcid); in mt7915_add_interface()
250 mtxq->wcid = &mvif->sta.wcid; in mt7915_add_interface()
274 int idx = msta->wcid.idx; in mt7915_remove_interface()
374 struct mt76_wcid *wcid = &msta->wcid; in mt7915_set_key() local
392 wcid_keyidx = &wcid->hw_key_idx2; in mt7915_set_key()
656 msta->wcid.sta = 1; in mt7915_mac_sta_add()
657 msta->wcid.idx = idx; in mt7915_mac_sta_add()
709 wcid = &sta->wcid; in mt7915_tx()
[all …]
A Dmac.c65 wcid = rcu_dereference(dev->mt76.wcid[idx]); in mt7915_rx_get_wcid()
67 return wcid; in mt7915_rx_get_wcid()
69 if (!wcid->sta) in mt7915_rx_get_wcid()
72 sta = container_of(wcid, struct mt7915_sta, wcid); in mt7915_rx_get_wcid()
1140 if (!wcid) in mt7915_tx_prepare_skb()
1311 wcid = rcu_dereference(dev->mt76.wcid[idx]); in mt7915_mac_tx_free()
1316 msta = container_of(wcid, struct mt7915_sta, wcid); in mt7915_mac_tx_free()
1495 wcid = rcu_dereference(dev->mt76.wcid[wcidx]); in mt7915_mac_add_txs()
1496 if (!wcid) in mt7915_mac_add_txs()
1499 msta = container_of(wcid, struct mt7915_sta, wcid); in mt7915_mac_add_txs()
[all …]

Completed in 70 milliseconds

123