Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/
Dtx.c100 mt76_tx_status_skb_add(struct mt76_dev *dev, struct mt76_wcid *wcid, in mt76_tx_status_skb_add() argument
107 if (!wcid) in mt76_tx_status_skb_add()
120 wcid->packet_id = (wcid->packet_id + 1) & MT_PACKET_ID_MASK; in mt76_tx_status_skb_add()
121 if (wcid->packet_id == MT_PACKET_ID_NO_ACK || in mt76_tx_status_skb_add()
122 wcid->packet_id == MT_PACKET_ID_NO_SKB) in mt76_tx_status_skb_add()
123 wcid->packet_id = MT_PACKET_ID_FIRST; in mt76_tx_status_skb_add()
125 pid = wcid->packet_id; in mt76_tx_status_skb_add()
126 cb->wcid = wcid->idx; in mt76_tx_status_skb_add()
138 mt76_tx_status_skb_get(struct mt76_dev *dev, struct mt76_wcid *wcid, int pktid, in mt76_tx_status_skb_get() argument
146 if (wcid && cb->wcid != wcid->idx) in mt76_tx_status_skb_get()
[all …]
Dmac80211.c689 void mt76_wcid_key_setup(struct mt76_dev *dev, struct mt76_wcid *wcid, in mt76_wcid_key_setup() argument
695 wcid->rx_check_pn = false; in mt76_wcid_key_setup()
703 wcid->rx_check_pn = true; in mt76_wcid_key_setup()
706 memcpy(wcid->rx_key_pn[i], seq.ccmp.pn, sizeof(seq.ccmp.pn)); in mt76_wcid_key_setup()
743 *sta = wcid_to_sta(mstat.wcid); in mt76_rx_convert()
751 struct mt76_wcid *wcid = status->wcid; in mt76_check_ccmp_pn() local
758 if (!wcid || !wcid->rx_check_pn) in mt76_check_ccmp_pn()
772 BUILD_BUG_ON(sizeof(status->iv) != sizeof(wcid->rx_key_pn[0])); in mt76_check_ccmp_pn()
773 ret = memcmp(status->iv, wcid->rx_key_pn[status->tid], in mt76_check_ccmp_pn()
778 memcpy(wcid->rx_key_pn[status->tid], status->iv, sizeof(status->iv)); in mt76_check_ccmp_pn()
[all …]
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()
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)
Dmt76x02_util.c257 msta->wcid.sta = 1; in mt76x02_sta_add()
258 msta->wcid.idx = idx; in mt76x02_sta_add()
259 msta->wcid.hw_key_idx = -1; in mt76x02_sta_add()
265 set_bit(MT_WCID_FLAG_CHECK_PS, &msta->wcid.flags); in mt76x02_sta_add()
275 struct mt76_wcid *wcid = (struct mt76_wcid *)sta->drv_priv; in mt76x02_sta_remove() local
276 int idx = wcid->idx; in mt76x02_sta_remove()
296 mtxq->wcid = &mvif->group_wcid; in mt76x02_vif_init()
373 mt76_rx_aggr_start(&dev->mt76, &msta->wcid, tid, in mt76x02_ampdu_action()
375 mt76_set(dev, MT_WCID_ADDR(msta->wcid.idx) + 4, BIT(16 + tid)); in mt76x02_ampdu_action()
378 mt76_rx_aggr_stop(&dev->mt76, &msta->wcid, tid); in mt76x02_ampdu_action()
[all …]
Dagg-rx.c123 struct mt76_wcid *wcid = status->wcid; in mt76_rx_aggr_check_ctl() local
135 tid = rcu_dereference(wcid->aggr[status->tid]); in mt76_rx_aggr_check_ctl()
151 struct mt76_wcid *wcid = status->wcid; in mt76_rx_aggr_reorder() local
160 sta = wcid_to_sta(wcid); in mt76_rx_aggr_reorder()
175 tid = rcu_dereference(wcid->aggr[status->tid]); in mt76_rx_aggr_reorder()
241 int mt76_rx_aggr_start(struct mt76_dev *dev, struct mt76_wcid *wcid, u8 tidno, in mt76_rx_aggr_start() argument
246 mt76_rx_aggr_stop(dev, wcid, tidno); in mt76_rx_aggr_start()
259 rcu_assign_pointer(wcid->aggr[tidno], tid); in mt76_rx_aggr_start()
289 void mt76_rx_aggr_stop(struct mt76_dev *dev, struct mt76_wcid *wcid, u8 tidno) in mt76_rx_aggr_stop() argument
293 tid = rcu_replace_pointer(wcid->aggr[tidno], tid, in mt76_rx_aggr_stop()
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()
Dmt76x02_mac.c228 void mt76x02_mac_wcid_set_rate(struct mt76x02_dev *dev, struct mt76_wcid *wcid, in mt76x02_mac_wcid_set_rate() argument
241 wcid->tx_info = tx_info; in mt76x02_mac_wcid_set_rate()
267 stat->wcid = FIELD_GET(MT_TX_STAT_FIFO_WCID, stat1); in mt76x02_mac_load_tx_status()
336 struct sk_buff *skb, struct mt76_wcid *wcid, in mt76x02_mac_write_txwi() argument
354 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()
364 txwi->wcid = 0xff; in mt76x02_mac_write_txwi()
366 if (wcid && wcid->sw_iv && key) { in mt76x02_mac_write_txwi()
[all …]
Dmt76x02.h183 enum mt76_txq_id qid, struct mt76_wcid *wcid,
249 struct mt76_wcid *wcid; in mt76x02_rx_get_sta() local
254 wcid = rcu_dereference(dev->wcid[idx]); in mt76x02_rx_get_sta()
255 if (!wcid) in mt76x02_rx_get_sta()
258 return container_of(wcid, struct mt76x02_sta, wcid); in mt76x02_rx_get_sta()
268 return &sta->wcid; in mt76x02_rx_get_sta_wcid()
Dmt76x02_trace.h22 #define TXID_ENTRY __field(u8, wcid) __field(u8, pktid)
24 #define TXID_PR_ARG __entry->wcid, __entry->pktid
64 __entry->wcid = stat->wcid;
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
79 mt76x02_mac_write_txwi(dev, txwi, tx_info->skb, wcid, sta, len); in mt76x02u_tx_prepare_skb()
82 pid = mt76_tx_status_skb_add(mdev, wcid, tx_info->skb); in mt76x02u_tx_prepare_skb()
100 if (!wcid || wcid->hw_key_idx == 0xff || wcid->sw_iv) in mt76x02u_tx_prepare_skb()
Dmt76.h107 u16 wcid; member
168 struct sk_buff *skb, struct mt76_wcid *wcid,
229 struct mt76_wcid *wcid; member
276 u16 wcid; member
319 enum mt76_txq_id qid, struct mt76_wcid *wcid,
482 struct mt76_wcid *wcid; member
620 struct mt76_wcid __rcu *wcid[MT76_N_WCIDS]; member
715 mt76_wcid_hw(struct mt76_dev *dev, u16 wcid) in mt76_wcid_hw() argument
717 if (wcid <= MT76_N_WCIDS && in mt76_wcid_hw()
718 mt76_wcid_mask_test(dev->wcid_phy_mask, wcid)) in mt76_wcid_hw()
[all …]
Dmt76x02_mmio.c381 struct mt76_wcid *wcid; in mt76x02_key_sync() local
386 wcid = (struct mt76_wcid *)sta->drv_priv; in mt76x02_key_sync()
388 if (wcid->hw_key_idx != key->keyidx || wcid->sw_iv) in mt76x02_key_sync()
391 mt76x02_mac_wcid_sync_pn(dev, wcid->idx, key); in mt76x02_key_sync()
410 struct mt76_wcid *wcid; in mt76x02_reset_state() local
413 wcid = rcu_dereference_protected(dev->mt76.wcid[i], in mt76x02_reset_state()
415 if (!wcid) in mt76x02_reset_state()
418 rcu_assign_pointer(dev->mt76.wcid[i], NULL); in mt76x02_reset_state()
420 priv = msta = container_of(wcid, struct mt76x02_sta, wcid); in mt76x02_reset_state()
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt7601u/
Dmain.c50 unsigned int wcid = GROUP_WCID(idx); in mt7601u_add_interface() local
62 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()
76 unsigned int wcid = mvif->group_wcid.idx; in mt7601u_remove_interface() local
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()
[all …]
Dmac.c146 void mt76_mac_wcid_set_rate(struct mt7601u_dev *dev, struct mt76_wcid *wcid, in mt76_mac_wcid_set_rate() argument
152 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()
168 stat.wcid = FIELD_GET(MT_TX_STAT_FIFO_WCID, val); in mt7601u_mac_fetch_tx_status()
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
[all …]
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()
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt7615/
Dusb_sdio.c44 mt7663_usb_sdio_write_txwi(struct mt7615_dev *dev, struct mt76_wcid *wcid, in mt7663_usb_sdio_write_txwi() argument
53 if (!wcid) in mt7663_usb_sdio_write_txwi()
54 wcid = &dev->mt76.global_wcid; in mt7663_usb_sdio_write_txwi()
56 pid = mt76_tx_status_skb_add(&dev->mt76, wcid, skb); in mt7663_usb_sdio_write_txwi()
60 mt7615_mac_write_txwi(dev, txwi, skb, wcid, sta, pid, key, false); in mt7663_usb_sdio_write_txwi()
80 addr = mt7615_mac_wtbl_addr(dev, sta->wcid.idx); in mt7663_usb_sdio_set_rates()
114 FIELD_PREP(MT_WTBL_UPDATE_WLAN_IDX, sta->wcid.idx) | in mt7663_usb_sdio_set_rates()
126 if (!(sta->wcid.tx_info & MT_WCID_TX_INFO_SET)) in mt7663_usb_sdio_set_rates()
130 sta->wcid.tx_info |= MT_WCID_TX_INFO_SET; in mt7663_usb_sdio_set_rates()
142 struct mt76_wcid *wcid; in mt7663_usb_sdio_set_key() local
[all …]
Dmac.c62 struct mt76_wcid *wcid; in mt7615_rx_get_wcid() local
67 wcid = rcu_dereference(dev->mt76.wcid[idx]); in mt7615_rx_get_wcid()
68 if (unicast || !wcid) in mt7615_rx_get_wcid()
69 return wcid; in mt7615_rx_get_wcid()
71 if (!wcid->sta) in mt7615_rx_get_wcid()
74 sta = container_of(wcid, struct mt7615_sta, wcid); in mt7615_rx_get_wcid()
78 return &sta->vif->sta.wcid; in mt7615_rx_get_wcid()
257 status->wcid = mt7615_rx_get_wcid(dev, idx, unicast); in mt7615_mac_fill_rx()
259 if (status->wcid) { in mt7615_mac_fill_rx()
262 msta = container_of(status->wcid, struct mt7615_sta, wcid); in mt7615_mac_fill_rx()
[all …]
Dpci_mac.c47 mt76_tx_complete_skb(mdev, e->wcid, e->skb); in mt7615_tx_complete_skb()
131 enum mt76_txq_id qid, struct mt76_wcid *wcid, in mt7615_tx_prepare_skb() argument
144 msta = wcid ? container_of(wcid, struct mt7615_sta, wcid) : NULL; in mt7615_tx_prepare_skb()
145 if (!wcid) in mt7615_tx_prepare_skb()
146 wcid = &dev->mt76.global_wcid; in mt7615_tx_prepare_skb()
148 pid = mt76_tx_status_skb_add(mdev, wcid, tx_info->skb); in mt7615_tx_prepare_skb()
171 mt7615_mac_write_txwi(dev, txwi_ptr, tx_info->skb, wcid, sta, in mt7615_tx_prepare_skb()
Dmain.c198 mvif->sta.wcid.idx = idx; in mt7615_add_interface()
199 mvif->sta.wcid.ext_phy = mvif->band_idx; in mt7615_add_interface()
200 mvif->sta.wcid.hw_key_idx = -1; in mt7615_add_interface()
204 rcu_assign_pointer(dev->mt76.wcid[idx], &mvif->sta.wcid); in mt7615_add_interface()
207 mtxq->wcid = &mvif->sta.wcid; in mt7615_add_interface()
236 int idx = msta->wcid.idx; in mt7615_remove_interface()
257 rcu_assign_pointer(dev->mt76.wcid[idx], NULL); in mt7615_remove_interface()
378 struct mt76_wcid *wcid = &msta->wcid; in mt7615_set_key() local
412 key->hw_key_idx = wcid->idx; in mt7615_set_key()
413 wcid->hw_key_idx = idx; in mt7615_set_key()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt7603/
Dmain.c70 mvif->sta.wcid.idx = idx; in mt7603_add_interface()
71 mvif->sta.wcid.hw_key_idx = -1; in mt7603_add_interface()
77 mtxq->wcid = &mvif->sta.wcid; in mt7603_add_interface()
78 rcu_assign_pointer(dev->mt76.wcid[idx], &mvif->sta.wcid); in mt7603_add_interface()
92 int idx = msta->wcid.idx; in mt7603_remove_interface()
100 rcu_assign_pointer(dev->mt76.wcid[idx], NULL); in mt7603_remove_interface()
337 msta->wcid.sta = 1; in mt7603_sta_add()
338 msta->wcid.idx = idx; in mt7603_sta_add()
343 set_bit(MT_WCID_FLAG_CHECK_PS, &msta->wcid.flags); in mt7603_sta_add()
363 struct mt76_wcid *wcid = (struct mt76_wcid *)sta->drv_priv; in mt7603_sta_remove() local
[all …]
Dmac.c217 u32 addr = mt7603_wtbl1_addr(sta->wcid.idx); in mt7603_wtbl_set_smps()
229 int idx = sta->wcid.idx; in mt7603_wtbl_set_ps()
321 int idx = msta->wcid.idx; in mt7603_wtbl_update_cap()
365 void mt7603_mac_tx_ba_reset(struct mt7603_dev *dev, int wcid, int tid, in mt7603_mac_tx_ba_reset() argument
368 u32 addr = mt7603_wtbl2_addr(wcid); in mt7603_mac_tx_ba_reset()
423 addr = mt7603_wtbl4_addr(msta->wcid.idx); in mt7603_mac_sta_poll()
437 mt7603_wtbl_update(dev, msta->wcid.idx, in mt7603_mac_sta_poll()
443 if (!msta->wcid.sta) in mt7603_mac_sta_poll()
474 struct mt76_wcid *wcid; in mt7603_rx_get_wcid() local
479 wcid = rcu_dereference(dev->mt76.wcid[idx]); in mt7603_rx_get_wcid()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt7915/
Dmain.c161 mvif->sta.wcid.idx = idx; in mt7915_add_interface()
162 mvif->sta.wcid.ext_phy = mvif->band_idx; in mt7915_add_interface()
163 mvif->sta.wcid.hw_key_idx = -1; in mt7915_add_interface()
164 mvif->sta.wcid.tx_info |= MT_WCID_TX_INFO_SET; in mt7915_add_interface()
168 rcu_assign_pointer(dev->mt76.wcid[idx], &mvif->sta.wcid); in mt7915_add_interface()
171 mtxq->wcid = &mvif->sta.wcid; in mt7915_add_interface()
187 int idx = msta->wcid.idx; in mt7915_remove_interface()
193 rcu_assign_pointer(dev->mt76.wcid[idx], NULL); in mt7915_remove_interface()
268 struct mt76_wcid *wcid = &msta->wcid; in mt7915_set_key() local
300 key->hw_key_idx = wcid->idx; in mt7915_set_key()
[all …]
Dmac.c59 struct mt76_wcid *wcid; in mt7915_rx_get_wcid() local
61 if (idx >= ARRAY_SIZE(dev->mt76.wcid)) in mt7915_rx_get_wcid()
64 wcid = rcu_dereference(dev->mt76.wcid[idx]); in mt7915_rx_get_wcid()
65 if (unicast || !wcid) in mt7915_rx_get_wcid()
66 return wcid; in mt7915_rx_get_wcid()
68 if (!wcid->sta) in mt7915_rx_get_wcid()
71 sta = container_of(wcid, struct mt7915_sta, wcid); in mt7915_rx_get_wcid()
75 return &sta->vif->sta.wcid; in mt7915_rx_get_wcid()
91 static u32 mt7915_mac_wtbl_lmac_addr(struct mt7915_dev *dev, u16 wcid) in mt7915_mac_wtbl_lmac_addr() argument
94 FIELD_PREP(MT_WTBLON_TOP_WDUCR_GROUP, (wcid >> 7))); in mt7915_mac_wtbl_lmac_addr()
[all …]
/kernel/linux/linux-5.10/arch/arm/kernel/
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()

123