Home
last modified time | relevance | path

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

1234

/linux-6.3-rc2/drivers/net/wireless/mediatek/mt76/
A Dtx.c65 struct mt76_wcid *wcid; in mt76_tx_status_unlock() local
67 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()
128 if (!wcid || !rcu_access_pointer(dev->wcid[wcid->idx])) in mt76_tx_status_skb_add()
147 cb->wcid = wcid->idx; in mt76_tx_status_skb_add()
245 wcid = rcu_dereference(dev->wcid[wcid_idx]); in __mt76_tx_complete_skb()
298 q->entry[idx].wcid = wcid->idx; in __mt76_tx_queue_skb()
337 if (wcid && !(wcid->tx_info & MT_WCID_TX_INFO_SET)) in mt76_tx()
528 wcid = rcu_dereference(dev->wcid[mtxq->wcid]); in mt76_txq_schedule_list()
[all …]
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 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 Dmac80211.c1094 struct mt76_wcid *wcid = status->wcid; in mt76_check_ccmp_pn() local
1105 if (!wcid || !wcid->rx_check_pn) in mt76_check_ccmp_pn()
1152 struct mt76_wcid *wcid = status->wcid; in mt76_airtime_report() local
1170 if (!wcid || !wcid->sta) in mt76_airtime_report()
1191 dev->rx_ampdu_status.wcid = wcid; in mt76_airtime_flush_ampdu()
1203 struct mt76_wcid *wcid = status->wcid; in mt76_airtime_check() local
1208 if (!wcid || !wcid->sta) { in mt76_airtime_check()
1246 struct mt76_wcid *wcid = status->wcid; in mt76_check_sta() local
1260 if (!wcid || !wcid->sta) in mt76_check_sta()
1388 mtxq->wcid = wcid->idx; in mt76_sta_add()
[all …]
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 = idx; in mt76x02_set_key()
462 wcid->sw_iv = true; in mt76x02_set_key()
466 wcid->hw_key_idx = -1; in mt76x02_set_key()
467 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 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 Dmt76_connac_mac.c62 struct mt76_wcid *wcid) in mt76_connac_free_pending_tx_skbs() argument
68 if (wcid && pm->tx_q[i].wcid != wcid) in mt76_connac_free_pending_tx_skbs()
80 struct mt76_wcid *wcid, in mt76_connac_pm_queue_skb() argument
89 pm->tx_q[qid].wcid = wcid; in mt76_connac_pm_queue_skb()
106 struct mt76_wcid *wcid = pm->tx_q[i].wcid; in mt76_connac_pm_dequeue_skbs() local
112 if (wcid && wcid->sta) in mt76_connac_pm_dequeue_skbs()
326 struct mt76_wcid *wcid) in mt76_connac2_mac_write_txwi_8023() argument
334 if (wcid->sta) { in mt76_connac2_mac_write_txwi_8023()
494 wcid->stats.tx_packets++; in mt76_connac2_mac_write_txwi()
643 rate.he_gi = wcid->rate.he_gi; in mt76_connac2_mac_fill_txs()
[all …]
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 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-6.3-rc2/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-6.3-rc2/drivers/net/wireless/mediatek/mt76/mt7603/
A Dmain.c70 mvif->sta.wcid.idx = idx; in mt7603_add_interface()
78 mtxq->wcid = idx; 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()
358 msta->wcid.sta = 1; in mt7603_sta_add()
359 msta->wcid.idx = idx; in mt7603_sta_add()
492 struct mt76_wcid *wcid = &msta->wcid; in mt7603_set_key() local
517 wcid->hw_key_idx = idx; in mt7603_set_key()
683 struct mt76_wcid *wcid = &dev->global_sta.wcid; in mt7603_tx() local
689 wcid = &msta->wcid; in mt7603_tx()
[all …]
A Dmac.c482 wcid = rcu_dereference(dev->mt76.wcid[idx]); in mt7603_rx_get_wcid()
484 return wcid; in mt7603_rx_get_wcid()
486 if (!wcid->sta) in mt7603_rx_get_wcid()
489 sta = container_of(wcid, struct mt7603_sta, wcid); in mt7603_rx_get_wcid()
724 int wcid = sta->wcid.idx; in mt7603_wtbl_set_rates() local
942 if (wcid) in mt7603_mac_write_txwi()
1047 if (!wcid) in mt7603_tx_prepare_skb()
1048 wcid = &dev->global_sta.wcid; in mt7603_tx_prepare_skb()
1263 wcid = rcu_dereference(dev->mt76.wcid[wcidx]); in mt7603_mac_add_txs()
1264 if (!wcid) in mt7603_mac_add_txs()
[all …]
/linux-6.3-rc2/drivers/net/wireless/mediatek/mt76/mt7921/
A Dmac.c21 wcid = rcu_dereference(dev->mt76.wcid[idx]); in mt7921_rx_get_wcid()
23 return wcid; in mt7921_rx_get_wcid()
25 if (!wcid->sta) in mt7921_rx_get_wcid()
28 sta = container_of(wcid, struct mt7921_sta, wcid); in mt7921_rx_get_wcid()
554 wcid = rcu_dereference(dev->mt76.wcid[wcidx]); in mt7921_mac_add_txs()
555 if (!wcid) in mt7921_mac_add_txs()
558 msta = container_of(wcid, struct mt7921_sta, wcid); in mt7921_mac_add_txs()
639 wcid = rcu_dereference(dev->mt76.wcid[idx]); in mt7921_mac_tx_free()
644 msta = container_of(wcid, struct mt7921_sta, wcid); in mt7921_mac_tx_free()
1177 if (!wcid) in mt7921_usb_sdio_tx_prepare_skb()
[all …]
A Dmain.c338 mvif->sta.wcid.idx = idx; in mt7921_add_interface()
340 mvif->sta.wcid.hw_key_idx = -1; in mt7921_add_interface()
349 rcu_assign_pointer(dev->mt76.wcid[idx], &mvif->sta.wcid); in mt7921_add_interface()
352 mtxq->wcid = idx; in mt7921_add_interface()
369 int idx = msta->wcid.idx; in mt7921_remove_interface()
534 struct mt76_wcid *wcid = &msta->wcid; in mt7921_set_key() local
584 &msta->wcid, cmd); in mt7921_set_key()
776 msta->wcid.sta = 1; in mt7921_mac_sta_add()
777 msta->wcid.idx = idx; in mt7921_mac_sta_add()
890 wcid = &sta->wcid; in mt7921_tx()
[all …]
/linux-6.3-rc2/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.c226 mvif->sta.wcid.idx = idx; in mt7615_add_interface()
228 mvif->sta.wcid.hw_key_idx = -1; 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
369 wcid_keyidx = &wcid->hw_key_idx2; in mt7615_set_key()
634 msta->wcid.sta = 1; in mt7615_mac_sta_add()
635 msta->wcid.idx = idx; in mt7615_mac_sta_add()
747 wcid = &msta->wcid; in mt7615_tx()
[all …]
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()
1106 int wcid = sta->wcid.idx, n_rates = sta->n_rates; in mt7615_mac_set_rates() 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()
[all …]
/linux-6.3-rc2/drivers/net/wireless/mediatek/mt76/mt7915/
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
425 &msta->wcid, cmd); in mt7915_set_key()
686 msta->wcid.sta = 1; in mt7915_mac_sta_add()
687 msta->wcid.idx = idx; in mt7915_mac_sta_add()
741 wcid = &sta->wcid; in mt7915_tx()
748 wcid = &mvif->sta.wcid; in mt7915_tx()
[all …]
A Dmac.c62 wcid = rcu_dereference(dev->mt76.wcid[idx]); in mt7915_rx_get_wcid()
64 return wcid; in mt7915_rx_get_wcid()
69 sta = container_of(wcid, struct mt7915_sta, wcid); in mt7915_rx_get_wcid()
763 if (!wcid) in mt7915_tx_prepare_skb()
893 wcid = rcu_dereference(dev->mt76.wcid[wcid_idx]); in mt7915_txwi_free()
895 if (wcid && wcid->sta) { in mt7915_txwi_free()
988 wcid = rcu_dereference(dev->mt76.wcid[idx]); in mt7915_mac_tx_free()
1074 wcid = rcu_dereference(dev->mt76.wcid[wcidx]); in mt7915_mac_add_txs()
1075 if (!wcid) in mt7915_mac_add_txs()
1078 msta = container_of(wcid, struct mt7915_sta, wcid); in mt7915_mac_add_txs()
[all …]
/linux-6.3-rc2/arch/arm/kernel/
A Dpj4-cp0.c78 u32 cp_access, wcid; in pj4_get_iwmmxt_version() local
90 __asm__ __volatile__ ("mrc p1, 0, %0, c0, c0, 0\n" : "=r" (wcid)); in pj4_get_iwmmxt_version()
95 if ((wcid & 0xffffff00) == 0x56051000) in pj4_get_iwmmxt_version()
98 if ((wcid & 0xffffff00) == 0x56052000) in pj4_get_iwmmxt_version()
/linux-6.3-rc2/drivers/net/wireless/mediatek/mt76/mt7996/
A Dmac.c67 wcid = rcu_dereference(dev->mt76.wcid[idx]); in mt7996_rx_get_wcid()
69 return wcid; in mt7996_rx_get_wcid()
71 if (!wcid->sta) in mt7996_rx_get_wcid()
74 sta = container_of(wcid, struct mt7996_sta, wcid); in mt7996_rx_get_wcid()
1100 if (!wcid) in mt7996_tx_prepare_skb()
1268 wcid = rcu_dereference(dev->mt76.wcid[idx]); in mt7996_mac_tx_free()
1273 msta = container_of(wcid, struct mt7996_sta, wcid); in mt7996_mac_tx_free()
1470 wcid = rcu_dereference(dev->mt76.wcid[wcidx]); in mt7996_mac_add_txs()
1471 if (!wcid) in mt7996_mac_add_txs()
1474 msta = container_of(wcid, struct mt7996_sta, wcid); in mt7996_mac_add_txs()
[all …]
A Dmain.c203 mvif->sta.wcid.idx = idx; in mt7996_add_interface()
205 mvif->sta.wcid.hw_key_idx = -1; in mt7996_add_interface()
214 mtxq->wcid = idx; in mt7996_add_interface()
227 rcu_assign_pointer(dev->mt76.wcid[idx], &mvif->sta.wcid); in mt7996_add_interface()
242 int idx = msta->wcid.idx; in mt7996_remove_interface()
313 struct mt76_wcid *wcid = &msta->wcid; in mt7996_set_key() local
366 &msta->wcid, cmd); in mt7996_set_key()
590 msta->wcid.sta = 1; in mt7996_mac_sta_add()
591 msta->wcid.idx = idx; in mt7996_mac_sta_add()
645 wcid = &sta->wcid; in mt7996_tx()
[all …]

Completed in 63 milliseconds

1234