Home
last modified time | relevance | path

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

12

/linux-6.3-rc2/drivers/net/wireless/mediatek/mt76/mt7603/
A Dmain.c93 int idx = msta->wcid.idx; in mt7603_remove_interface()
356 msta->ps = ~0; in mt7603_sta_add()
357 msta->smps = ~0; in mt7603_sta_add()
358 msta->wcid.sta = 1; in mt7603_sta_add()
359 msta->wcid.idx = idx; in mt7603_sta_add()
654 if (msta->rates[i].idx < 0 || !msta->rates[i].count) in mt7603_sta_rate_tbl_update()
657 msta->n_rates = i; in mt7603_sta_rate_tbl_update()
658 mt7603_wtbl_set_rates(dev, msta, NULL, msta->rates); in mt7603_sta_rate_tbl_update()
659 msta->rate_probe = false; in mt7603_sta_rate_tbl_update()
686 struct mt7603_sta *msta; in mt7603_tx() local
[all …]
A Dmac.c322 int idx = msta->wcid.idx; in mt7603_wtbl_update_cap()
404 struct mt7603_sta *msta; in mt7603_mac_sta_poll() local
423 list_del_init(&msta->poll_list); in mt7603_mac_sta_poll()
442 memset(msta->tx_airtime_ac, 0, in mt7603_mac_sta_poll()
443 sizeof(msta->tx_airtime_ac)); in mt7603_mac_sta_poll()
446 if (!msta->wcid.sta) in mt7603_mac_sta_poll()
939 tx_count = msta->rate_count; in mt7603_mac_write_txwi()
1066 msta->rates); in mt7603_tx_prepare_skb()
1067 msta->rate_probe = true; in mt7603_tx_prepare_skb()
1246 struct mt7603_sta *msta = NULL; in mt7603_mac_add_txs() local
[all …]
A Ddma.c23 struct mt7603_sta *msta; in mt7603_rx_loopback_skb() local
44 priv = msta = container_of(wcid, struct mt7603_sta, wcid); in mt7603_rx_loopback_skb()
59 __skb_queue_tail(&msta->psq, skb); in mt7603_rx_loopback_skb()
60 if (skb_queue_len(&msta->psq) >= 64) { in mt7603_rx_loopback_skb()
61 skb = __skb_dequeue(&msta->psq); in mt7603_rx_loopback_skb()
/linux-6.3-rc2/drivers/net/wireless/mediatek/mt76/mt7915/
A Dmain.c291 int idx = msta->wcid.idx; in mt7915_remove_interface()
425 &msta->wcid, cmd); in mt7915_set_key()
683 INIT_LIST_HEAD(&msta->rc_list); in mt7915_mac_sta_add()
685 msta->vif = mvif; in mt7915_mac_sta_add()
686 msta->wcid.sta = 1; in mt7915_mac_sta_add()
687 msta->wcid.idx = idx; in mt7915_mac_sta_add()
688 msta->wcid.phy_idx = ext_phy; in mt7915_mac_sta_add()
690 msta->jiffies = jiffies; in mt7915_mac_sta_add()
723 list_del_init(&msta->rc_list); in mt7915_mac_sta_remove()
1079 msta->changed |= *changed; in mt7915_sta_rc_work()
[all …]
A Dmac.c106 struct mt7915_sta *msta; in mt7915_mac_sta_poll() local
135 idx = msta->wcid.idx; in mt7915_mac_sta_poll()
159 memset(msta->airtime_ac, 0, sizeof(msta->airtime_ac)); in mt7915_mac_sta_poll()
162 if (!msta->wcid.sta) in mt7915_mac_sta_poll()
186 rate = &msta->wcid.rate; in mt7915_mac_sta_poll()
226 msta->ack_signal = in mt7915_mac_sta_poll()
229 ewma_avg_signal_add(&msta->avg_ack_signal, -msta->ack_signal); in mt7915_mac_sta_poll()
256 if (!msta || !msta->vif) in mt7915_wed_check_ppe()
489 if (!msta || !msta->vif) in mt7915_mac_fill_rx()
2024 msta->changed = 0; in mt7915_mac_sta_rc_work()
[all …]
A Dmcu.c683 struct mt7915_vif *mvif = msta->vif; in mt7915_mcu_add_tx_ba()
686 msta->wcid.amsdu = false; in mt7915_mcu_add_tx_ba()
955 msta->wcid.amsdu = true; in mt7915_mcu_sta_amsdu_tlv()
980 struct mt7915_sta *msta; in mt7915_mcu_sta_wtbl_tlv() local
986 wcid = sta ? &msta->wcid : NULL; in mt7915_mcu_sta_wtbl_tlv()
1309 &msta->wcid); in mt7915_mcu_set_fixed_rate_ctrl()
1352 &msta->wcid); in mt7915_mcu_add_smps()
1588 &msta->wcid); in mt7915_mcu_add_rate_ctrl()
1622 struct mt7915_sta *msta; in mt7915_mcu_add_group() local
1648 struct mt7915_sta *msta; in mt7915_mcu_add_sta() local
[all …]
A Ddebugfs.c833 struct mt7915_sta *msta = (struct mt7915_sta *)sta->drv_priv; in mt7915_sta_hw_queue_read() local
834 struct mt7915_dev *dev = msta->vif->phy->dev; in mt7915_sta_hw_queue_read()
840 u32 idx = msta->wcid.idx >> 5; in mt7915_sta_hw_queue_read()
841 u8 offs = msta->wcid.idx & GENMASK(4, 0); in mt7915_sta_hw_queue_read()
849 mt76_wr(dev, MT_FL_Q0_CTRL, ctrl | msta->wcid.idx); in mt7915_sta_hw_queue_read()
853 sta->addr, msta->wcid.idx, in mt7915_sta_hw_queue_read()
854 msta->vif->mt76.wmm_idx, ac, qlen); in mt7915_sta_hw_queue_read()
1327 struct mt7915_sta *msta = (struct mt7915_sta *)sta->drv_priv; in mt7915_sta_fixed_rate_set() local
1328 struct mt7915_dev *dev = msta->vif->phy->dev; in mt7915_sta_fixed_rate_set()
1373 vif = container_of((void *)msta->vif, struct ieee80211_vif, drv_priv); in mt7915_sta_fixed_rate_set()
/linux-6.3-rc2/drivers/net/wireless/mediatek/mt7601u/
A Dmain.c226 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()
324 if (!msta) { in mt7601u_set_key()
334 return mt76_mac_wcid_set_key(dev, msta->wcid.idx, key); in mt7601u_set_key()
357 WARN_ON(msta->wcid.idx > GROUP_WCID(0)); in mt76_ampdu_action()
364 mt76_clear(dev, MT_WCID_ADDR(msta->wcid.idx) + 4, in mt76_ampdu_action()
374 msta->agg_ssn[tid] = ssn << 4; in mt76_ampdu_action()
[all …]
A Dtx.c197 struct mt76_sta *msta = NULL; in mt7601u_tx() local
212 msta = (struct mt76_sta *) sta->drv_priv; in mt7601u_tx()
213 wcid = &msta->wcid; in mt7601u_tx()
225 trace_mt_tx(dev, skb, msta, txwi); in mt7601u_tx()
A Dmac.c179 void *msta; in mt76_send_tx_status() local
186 msta = container_of(wcid, struct mt76_sta, wcid); in mt76_send_tx_status()
187 sta = container_of(msta, struct ieee80211_sta, in mt76_send_tx_status()
375 void *msta; in mt7601u_mac_set_ampdu_factor() local
385 msta = container_of(wcid, struct mt76_sta, wcid); in mt7601u_mac_set_ampdu_factor()
386 sta = container_of(msta, struct ieee80211_sta, drv_priv); in mt7601u_mac_set_ampdu_factor()
/linux-6.3-rc2/drivers/net/wireless/mediatek/mt76/mt7996/
A Dmain.c242 int idx = msta->wcid.idx; in mt7996_remove_interface()
262 list_del_init(&msta->poll_list); in mt7996_remove_interface()
366 &msta->wcid, cmd); in mt7996_set_key()
587 INIT_LIST_HEAD(&msta->rc_list); in mt7996_mac_sta_add()
589 msta->vif = mvif; in mt7996_mac_sta_add()
590 msta->wcid.sta = 1; in mt7996_mac_sta_add()
591 msta->wcid.idx = idx; in mt7996_mac_sta_add()
592 msta->wcid.phy_idx = band_idx; in mt7996_mac_sta_add()
594 msta->jiffies = jiffies; in mt7996_mac_sta_add()
627 list_del_init(&msta->rc_list); in mt7996_mac_sta_remove()
[all …]
A Dmac.c111 struct mt7996_sta *msta; in mt7996_mac_sta_poll() local
140 idx = msta->wcid.idx; in mt7996_mac_sta_poll()
164 memset(msta->airtime_ac, 0, sizeof(msta->airtime_ac)); in mt7996_mac_sta_poll()
167 if (!msta->wcid.sta) in mt7996_mac_sta_poll()
189 rate = &msta->wcid.rate; in mt7996_mac_sta_poll()
236 msta->ack_signal = in mt7996_mac_sta_poll()
239 ewma_avg_signal_add(&msta->avg_ack_signal, -msta->ack_signal); in mt7996_mac_sta_poll()
449 if (!msta || !msta->vif) in mt7996_reverse_frag0_hdr_trans()
1168 struct mt7996_sta *msta; in mt7996_tx_check_aggr() local
2073 msta->changed = 0; in mt7996_mac_sta_rc_work()
[all …]
A Ddebugfs.c479 struct mt7996_sta *msta = (struct mt7996_sta *)sta->drv_priv; in mt7996_sta_hw_queue_read() local
480 struct mt7996_dev *dev = msta->vif->phy->dev; in mt7996_sta_hw_queue_read()
486 u32 idx = msta->wcid.idx >> 5; in mt7996_sta_hw_queue_read()
487 u8 offs = msta->wcid.idx & GENMASK(4, 0); in mt7996_sta_hw_queue_read()
495 mt76_wr(dev, MT_FL_Q0_CTRL, ctrl | msta->wcid.idx); in mt7996_sta_hw_queue_read()
499 sta->addr, msta->wcid.idx, in mt7996_sta_hw_queue_read()
500 msta->vif->mt76.wmm_idx, ac, qlen); in mt7996_sta_hw_queue_read()
776 struct mt7996_sta *msta = (struct mt7996_sta *)sta->drv_priv; in mt7996_sta_fixed_rate_set() local
777 struct mt7996_dev *dev = msta->vif->phy->dev; in mt7996_sta_fixed_rate_set()
812 phy.wlan_idx = cpu_to_le16(msta->wcid.idx); in mt7996_sta_fixed_rate_set()
/linux-6.3-rc2/drivers/net/wireless/mediatek/mt76/mt7615/
A Dmain.c254 int idx = msta->wcid.idx; in mt7615_remove_interface()
633 msta->vif = mvif; in mt7615_mac_sta_add()
634 msta->wcid.sta = 1; in mt7615_mac_sta_add()
635 msta->wcid.idx = idx; in mt7615_mac_sta_add()
708 if (msta->rates[i].idx < 0 || !msta->rates[i].count) in mt7615_sta_rate_tbl_update()
711 msta->n_rates = i; in mt7615_sta_rate_tbl_update()
713 mt7615_mac_set_rates(phy, msta, NULL, msta->rates); in mt7615_sta_rate_tbl_update()
742 struct mt7615_sta *msta = NULL; in mt7615_tx() local
747 wcid = &msta->wcid; in mt7615_tx()
754 msta = &mvif->sta; in mt7615_tx()
[all …]
A Dmac.c270 if (!msta || !msta->vif) in mt7615_reverse_frag0_hdr_trans()
387 struct mt7615_sta *msta; in mt7615_mac_fill_rx() local
391 if (list_empty(&msta->poll_list)) in mt7615_mac_fill_rx()
750 tx_count = msta->rate_count; in mt7615_mac_write_txwi()
907 struct mt7615_sta *msta; in mt7615_mac_sta_poll() local
922 list_del_init(&msta->poll_list); in mt7615_mac_sta_poll()
927 u32 tx_last = msta->airtime_ac[i]; in mt7615_mac_sta_poll()
942 memset(msta->airtime_ac, 0, sizeof(msta->airtime_ac)); in mt7615_mac_sta_poll()
945 if (!msta->wcid.sta) in mt7615_mac_sta_poll()
1522 struct mt7615_sta *msta = NULL; in mt7615_mac_add_txs() local
[all …]
A Dusb_sdio.c190 struct mt7615_sta *msta; in mt7663_usb_sdio_tx_prepare_skb() local
193 msta = wcid ? container_of(wcid, struct mt7615_sta, wcid) : NULL; in mt7663_usb_sdio_tx_prepare_skb()
198 msta && !msta->rate_probe) { in mt7663_usb_sdio_tx_prepare_skb()
201 mt7615_mac_set_rates(&dev->phy, msta, &info->control.rates[0], in mt7663_usb_sdio_tx_prepare_skb()
202 msta->rates); in mt7663_usb_sdio_tx_prepare_skb()
A Dpci_mac.c71 struct mt7615_sta *msta; in mt7615_tx_prepare_skb() local
74 msta = wcid ? container_of(wcid, struct mt7615_sta, wcid) : NULL; in mt7615_tx_prepare_skb()
78 if ((info->flags & IEEE80211_TX_CTL_RATE_CTRL_PROBE) && msta) { in mt7615_tx_prepare_skb()
86 mt7615_mac_set_rates(phy, msta, &info->control.rates[0], in mt7615_tx_prepare_skb()
87 msta->rates); in mt7615_tx_prepare_skb()
A Dmcu.c774 struct mt7615_vif *mvif = msta->vif; in mt7615_mcu_wtbl_tx_ba()
793 &msta->wcid); in mt7615_mcu_wtbl_tx_ba()
809 struct mt7615_vif *mvif = msta->vif; in mt7615_mcu_wtbl_rx_ba()
815 &msta->wcid); in mt7615_mcu_wtbl_rx_ba()
847 struct mt7615_sta *msta; in mt7615_mcu_wtbl_sta_add() local
854 &msta->wcid); in mt7615_mcu_wtbl_sta_add()
935 &msta->wcid); in mt7615_mcu_sta_ba()
1006 vif, &msta->wcid, in mt7615_mcu_sta_update_hdr_trans()
1158 &msta->wcid); in mt7615_mcu_uni_rx_ba()
1170 &msta->wcid); in mt7615_mcu_uni_rx_ba()
[all …]
/linux-6.3-rc2/drivers/net/wireless/mediatek/mt76/
A Dmt76x02_util.c246 memset(msta, 0, sizeof(*msta)); in mt76x02_sta_add()
252 msta->vif = mvif; in mt76x02_sta_add()
253 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()
258 ewma_pktlen_init(&msta->pktlen); in mt76x02_sta_add()
374 mt76_rx_aggr_start(&dev->mt76, &msta->wcid, tid, in mt76x02_ampdu_action()
413 struct mt76x02_sta *msta; in mt76x02_set_key() local
455 wcid = msta ? &msta->wcid : &mvif->group_wcid; in mt76x02_set_key()
474 if (!msta) { in mt76x02_set_key()
[all …]
A Dmt76x02_txrx.c20 struct mt76x02_sta *msta; in mt76x02_tx() local
22 msta = (struct mt76x02_sta *)control->sta->drv_priv; in mt76x02_tx()
23 wcid = &msta->wcid; in mt76x02_tx()
176 struct mt76x02_sta *msta = (struct mt76x02_sta *)sta->drv_priv; in mt76x02_tx_prepare_skb() local
178 ewma_pktlen_add(&msta->pktlen, tx_info->skb->len); in mt76x02_tx_prepare_skb()
A Dmt76x02_mac.c499 if (!msta) in mt76x02_mac_fill_tx_status()
554 struct mt76x02_sta *msta = NULL; in mt76x02_send_tx_status() local
599 stat_cache = msta->status.rate; in mt76x02_send_tx_status()
603 stat->wcid == msta->status.wcid && msta->n_frames < 32) { in mt76x02_send_tx_status()
604 msta->n_frames++; in mt76x02_send_tx_status()
609 cur_pktid = msta->status.pktid; in mt76x02_send_tx_status()
611 &msta->status, msta->n_frames); in mt76x02_send_tx_status()
613 msta->status = *stat; in mt76x02_send_tx_status()
614 msta->n_frames = 1; in mt76x02_send_tx_status()
627 } else if (msta) { in mt76x02_send_tx_status()
[all …]
A Dmt76x02_mmio.c401 struct mt76x02_sta *msta; in mt76x02_reset_state() local
412 priv = msta = container_of(wcid, struct mt76x02_sta, wcid); in mt76x02_reset_state()
415 priv = msta->vif; in mt76x02_reset_state()
419 memset(msta, 0, sizeof(*msta)); in mt76x02_reset_state()
/linux-6.3-rc2/drivers/net/wireless/mediatek/mt76/mt7921/
A Dmac.c58 struct mt7921_sta *msta; in mt7921_mac_sta_poll() local
85 idx = msta->wcid.idx; in mt7921_mac_sta_poll()
107 memset(msta->airtime_ac, 0, sizeof(msta->airtime_ac)); in mt7921_mac_sta_poll()
110 if (!msta->wcid.sta) in mt7921_mac_sta_poll()
133 rate = &msta->wcid.rate; in mt7921_mac_sta_poll()
174 msta->ack_signal = in mt7921_mac_sta_poll()
177 ewma_avg_signal_add(&msta->avg_ack_signal, -msta->ack_signal); in mt7921_mac_sta_poll()
455 if (!msta || !msta->vif) in mt7921_mac_fill_rx()
510 struct mt7921_sta *msta; in mt7921_tx_check_aggr() local
633 struct mt7921_sta *msta; in mt7921_mac_tx_free() local
[all …]
A Dmain.c369 int idx = msta->wcid.idx; in mt7921_remove_interface()
382 if (!list_empty(&msta->poll_list)) in mt7921_remove_interface()
383 list_del_init(&msta->poll_list); in mt7921_remove_interface()
584 &msta->wcid, cmd); in mt7921_set_key()
774 INIT_LIST_HEAD(&msta->poll_list); in mt7921_mac_sta_add()
775 msta->vif = mvif; in mt7921_mac_sta_add()
776 msta->wcid.sta = 1; in mt7921_mac_sta_add()
777 msta->wcid.idx = idx; in mt7921_mac_sta_add()
780 msta->last_txs = jiffies; in mt7921_mac_sta_add()
787 mvif->wep_sta = msta; in mt7921_mac_sta_add()
[all …]
A Dpci_mac.c35 struct mt7921_sta *msta = (struct mt7921_sta *)sta->drv_priv; in mt7921e_tx_prepare_skb() local
37 if (time_after(jiffies, msta->last_txs + HZ / 4)) { in mt7921e_tx_prepare_skb()
39 msta->last_txs = jiffies; in mt7921e_tx_prepare_skb()

Completed in 88 milliseconds

12