Home
last modified time | relevance | path

Searched refs:wcid (Results 1 – 19 of 19) 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 Dscan.c80 mt76_tx(phy, NULL, mvif->wcid, skb); in mt76_scan_send_probe()
/linux/drivers/net/wireless/mediatek/mt76/mt7996/
H A Dmac.c22 struct mt76_wcid *wcid; in mt7996_rx_get_wcid() local
25 wcid = mt76_wcid_ptr(dev, idx); in mt7996_rx_get_wcid()
26 if (!wcid || !wcid->sta) in mt7996_rx_get_wcid()
32 if (wcid->phy_idx == band_idx) in mt7996_rx_get_wcid()
33 return wcid; in mt7996_rx_get_wcid()
35 msta_link = container_of(wcid, struct mt7996_sta_link, wcid); in mt7996_rx_get_wcid()
55 return &msta_link->wcid; in mt7996_rx_get_wcid()
67 u32 mt7996_mac_wtbl_lmac_addr(struct mt7996_dev *dev, u16 wcid, u8 dw) in mt7996_mac_wtbl_lmac_addr() argument
70 FIELD_PREP(MT_WTBLON_TOP_WDUCR_GROUP, (wcid >> 7))); in mt7996_mac_wtbl_lmac_addr()
72 return MT_WTBL_LMAC_OFFS(wcid, dw); in mt7996_mac_wtbl_lmac_addr()
[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()
/linux/drivers/net/wireless/ralink/rt2x00/
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.c271 info->wcid = path->mtk_wdma.wcid; in airoha_ppe_get_wdma_info()
334 info.wcid); in airoha_ppe_foe_entry_prepare()
H A Dairoha_eth.h498 u16 wcid; member
/linux/include/linux/
H A Dnetdevice.h923 u16 wcid; member