Home
last modified time | relevance | path

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

/linux/drivers/net/wireless/mediatek/mt7601u/
H A 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 …]
H A 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 …]
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()
H A Dmac.h16 u8 wcid; member
114 u8 wcid; member
159 void mt76_mac_wcid_set_rate(struct mt7601u_dev *dev, struct mt76_wcid *wcid,
H A Dmt7601u.h174 struct mt76_wcid __rcu *wcid[N_WCIDS]; member
268 struct mt76_wcid wcid; member
391 struct mt76_wcid *wcid, int hw_q);
H A Ddma.c367 struct mt76_wcid *wcid, int hw_q) in mt7601u_dma_enqueue_tx() argument
374 if (wcid->hw_key_idx == 0xff) in mt7601u_dma_enqueue_tx()
H A Dtrace.h298 __entry->h.ack_ctl, __entry->h.wcid,
/linux/drivers/net/wireless/mediatek/mt76/mt7925/
H A Dmac.c52 struct mt792x_link_sta, wcid.poll_list); in mt7925_mac_sta_poll()
55 list_del_init(&mlink->wcid.poll_list); in mt7925_mac_sta_poll()
58 idx = mlink->wcid.idx; in mt7925_mac_sta_poll()
83 if (!mlink->wcid.sta) in mt7925_mac_sta_poll()
106 rate = &mlink->wcid.rate; in mt7925_mac_sta_poll()
173 struct mt792x_sta *msta = (struct mt792x_sta *)status->wcid; in mt7925_reverse_frag0_hdr_trans()
395 status->wcid = mt792x_rx_get_wcid(dev, idx, unicast); in mt7925_mac_fill_rx()
397 if (status->wcid) { in mt7925_mac_fill_rx()
398 mlink = container_of(status->wcid, struct mt792x_link_sta, wcid); in mt7925_mac_fill_rx()
399 mt76_wcid_add_poll(&dev->mt76, &mlink->wcid); in mt7925_mac_fill_rx()
[all …]
/linux/drivers/net/wireless/mediatek/mt76/
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 if (wcid->def_wcid) in mt76_rx_aggr_reorder()
177 wcid = wcid->def_wcid; in mt76_rx_aggr_reorder()
178 tid = rcu_dereference(wcid->aggr[tidno]); in mt76_rx_aggr_reorder()
244 int mt76_rx_aggr_start(struct mt76_dev *dev, struct mt76_wcid *wcid, u8 tidno, in mt76_rx_aggr_start() argument
249 mt76_rx_aggr_stop(dev, wcid, tidno); in mt76_rx_aggr_start()
262 rcu_assign_pointer(wcid->aggr[tidno], tid); in mt76_rx_aggr_start()
[all …]
H A Dmt76_connac_mac.c86 struct mt76_wcid *wcid) in mt76_connac_free_pending_tx_skbs() argument
92 if (wcid && pm->tx_q[i].wcid != wcid) in mt76_connac_free_pending_tx_skbs()
104 struct mt76_wcid *wcid, in mt76_connac_pm_queue_skb() argument
113 pm->tx_q[qid].wcid = wcid; in mt76_connac_pm_queue_skb()
130 struct mt76_wcid *wcid = pm->tx_q[i].wcid; in mt76_connac_pm_dequeue_skbs() local
136 if (wcid && wcid->sta) in mt76_connac_pm_dequeue_skbs()
137 sta = container_of((void *)wcid, struct ieee80211_sta, in mt76_connac_pm_dequeue_skbs()
140 mt76_tx(phy, sta, wcid, pm->tx_q[i].skb); in mt76_connac_pm_dequeue_skbs()
158 mt76_tx_complete_skb(mdev, e->wcid, e->skb); in mt76_connac_tx_complete_skb()
362 struct mt76_wcid *wcid) in mt76_connac2_mac_write_txwi_8023() argument
[all …]
H A Dmt76_connac_mcu.c276 struct mt76_wcid *wcid, int len) in __mt76_connac_mcu_alloc_sta_req() argument
280 .muar_idx = wcid ? mvif->omac_idx : 0, in __mt76_connac_mcu_alloc_sta_req()
285 if (wcid && !wcid->sta && !wcid->sta_disabled) in __mt76_connac_mcu_alloc_sta_req()
288 mt76_connac_mcu_get_wlan_idx(dev, wcid, &hdr.wlan_idx_lo, in __mt76_connac_mcu_alloc_sta_req()
301 mt76_connac_mcu_alloc_wtbl_req(struct mt76_dev *dev, struct mt76_wcid *wcid, in mt76_connac_mcu_alloc_wtbl_req() argument
310 mt76_connac_mcu_get_wlan_idx(dev, wcid, &hdr.wlan_idx_lo, in mt76_connac_mcu_alloc_wtbl_req()
468 struct mt76_wcid *wcid, in mt76_connac_mcu_wtbl_hdr_trans_tlv() argument
485 if (!wcid) in mt76_connac_mcu_wtbl_hdr_trans_tlv()
488 htr->no_rx_trans = !test_bit(MT_WCID_FLAG_HDR_TRANS, &wcid->flags); in mt76_connac_mcu_wtbl_hdr_trans_tlv()
489 if (test_bit(MT_WCID_FLAG_4ADDR, &wcid->flags)) { in mt76_connac_mcu_wtbl_hdr_trans_tlv()
[all …]
H A Dscan.c74 mt76_tx(phy, NULL, mvif->wcid, skb); in mt76_scan_send_probe()
/linux/drivers/net/wireless/mediatek/mt76/mt7996/
H A Dmain.c214 if (!msta_link->wcid.sta) in mt7996_set_hw_key()
219 wcid_keyidx = &msta_link->wcid.hw_key_idx; in mt7996_set_hw_key()
228 wcid_keyidx = &msta_link->wcid.hw_key_idx2; in mt7996_set_hw_key()
256 mt76_wcid_key_setup(&dev->mt76, &msta_link->wcid, key); in mt7996_set_hw_key()
260 &msta_link->wcid, cmd); in mt7996_set_hw_key()
323 mlink->wcid = &msta_link->wcid; in mt7996_vif_link_add()
324 mlink->wcid->offchannel = mlink->offchannel; in mt7996_vif_link_add()
337 msta_link->wcid.idx = idx; in mt7996_vif_link_add()
338 msta_link->wcid.link_id = link_conf->link_id; in mt7996_vif_link_add()
339 msta_link->wcid.link_valid = ieee80211_vif_is_mld(vif); in mt7996_vif_link_add()
[all …]
H A Dmac.c61 struct mt76_wcid *wcid; in mt7996_rx_get_wcid() local
64 wcid = mt76_wcid_ptr(dev, idx); in mt7996_rx_get_wcid()
65 if (!wcid || !wcid->sta) in mt7996_rx_get_wcid()
71 if (wcid->phy_idx == band_idx) in mt7996_rx_get_wcid()
72 return wcid; in mt7996_rx_get_wcid()
74 msta_link = container_of(wcid, struct mt7996_sta_link, wcid); in mt7996_rx_get_wcid()
94 return &msta_link->wcid; in mt7996_rx_get_wcid()
106 u32 mt7996_mac_wtbl_lmac_addr(struct mt7996_dev *dev, u16 wcid, u8 dw) in mt7996_mac_wtbl_lmac_addr() argument
109 FIELD_PREP(MT_WTBLON_TOP_WDUCR_GROUP, (wcid >> 7))); in mt7996_mac_wtbl_lmac_addr()
111 return MT_WTBL_LMAC_OFFS(wcid, dw); in mt7996_mac_wtbl_lmac_addr()
[all …]
H A Dmcu.c580 struct mt76_wcid *wcid; in mt7996_mcu_rx_all_sta_info_event() local
585 wcid = mt76_wcid_ptr(dev, wlan_idx); in mt7996_mcu_rx_all_sta_info_event()
587 if (!wcid) in mt7996_mcu_rx_all_sta_info_event()
590 if (mt7996_mcu_update_tx_gi(&wcid->rate, &res->rate[i])) in mt7996_mcu_rx_all_sta_info_event()
595 wcid = mt76_wcid_ptr(dev, wlan_idx); in mt7996_mcu_rx_all_sta_info_event()
597 if (!wcid) in mt7996_mcu_rx_all_sta_info_event()
601 wcid->stats.tx_bytes += in mt7996_mcu_rx_all_sta_info_event()
603 wcid->stats.rx_bytes += in mt7996_mcu_rx_all_sta_info_event()
609 wcid = mt76_wcid_ptr(dev, wlan_idx); in mt7996_mcu_rx_all_sta_info_event()
611 if (!wcid) in mt7996_mcu_rx_all_sta_info_event()
[all …]
/linux/drivers/net/wireless/mediatek/mt76/mt7615/
H A Dmac.c91 struct mt76_wcid *wcid; in mt7615_rx_get_wcid() local
93 wcid = mt76_wcid_ptr(dev, idx); in mt7615_rx_get_wcid()
94 if (unicast || !wcid) in mt7615_rx_get_wcid()
95 return wcid; in mt7615_rx_get_wcid()
97 if (!wcid->sta) in mt7615_rx_get_wcid()
100 sta = container_of(wcid, struct mt7615_sta, wcid); in mt7615_rx_get_wcid()
104 return &sta->vif->sta.wcid; in mt7615_rx_get_wcid()
253 struct mt7615_sta *msta = (struct mt7615_sta *)status->wcid; in mt7615_reverse_frag0_hdr_trans()
381 status->wcid = mt7615_rx_get_wcid(dev, idx, unicast); in mt7615_mac_fill_rx()
383 if (status->wcid) { in mt7615_mac_fill_rx()
[all …]
/linux/drivers/net/ethernet/mediatek/
H A Dmtk_ppe_offload.c117 info->wcid = path->mtk_wdma.wcid; in mtk_flow_get_wdma_info()
200 info.bss, info.wcid, info.amsdu); in mtk_flow_set_output_device()
H A Dmtk_ppe.c428 int wdma_idx, int txq, int bss, int wcid, in mtk_foe_entry_set_wdma() argument
439 l2->w3info = FIELD_PREP(MTK_FOE_WINFO_WCID_V3, wcid) | in mtk_foe_entry_set_wdma()
447 l2->winfo = FIELD_PREP(MTK_FOE_WINFO_WCID, wcid) | in mtk_foe_entry_set_wdma()
456 FIELD_PREP(MTK_FOE_VLAN2_WINFO_WCID, wcid) | in mtk_foe_entry_set_wdma()
H A Dmtk_ppe.h395 int wdma_idx, int txq, int bss, int wcid,
/linux/drivers/net/wireless/ralink/rt2x00/
H A Drt2800lib.c835 txdesc->key_idx : txdesc->u.ht.wcid); in rt2800_write_tx_data()
982 int wcid, ack, pid; in rt2800_txdone_entry_check() local
993 wcid = rt2x00_get_field32(reg, TX_STA_FIFO_WCID); in rt2800_txdone_entry_check()
1009 if (wcid != tx_wcid || ack != tx_ack || (!is_agg && pid != tx_pid)) { in rt2800_txdone_entry_check()
1028 int aggr, ampdu, wcid, ack_req; in rt2800_txdone_entry() local
1041 wcid = rt2x00_get_field32(status, TX_STA_FIFO_WCID); in rt2800_txdone_entry()
1109 if (likely(wcid >= WCID_START && wcid <= WCID_END)) in rt2800_txdone_entry()
1110 skbdesc->sta = drv_data->wcid_to_sta[wcid - WCID_START]; in rt2800_txdone_entry()
1673 int wcid) in rt2800_config_wcid() argument
1678 offset = MAC_WCID_ENTRY(wcid); in rt2800_config_wcid()
[all …]
H A Drt2x00queue.h314 int wcid; member
H A Drt2x00mac.c499 crypto.wcid = sta_priv->wcid; in rt2x00mac_set_key()
H A Drt2x00queue.c305 txdesc->u.ht.wcid = sta_priv->wcid; in rt2x00queue_create_tx_descriptor_ht()
/linux/drivers/net/ethernet/airoha/
H A Dairoha_ppe.c242 info->wcid = path->mtk_wdma.wcid; in airoha_ppe_get_wdma_info()
305 info.wcid); in airoha_ppe_foe_entry_prepare()
/linux/include/linux/
H A Dnetdevice.h923 u16 wcid; member