/linux-6.1.9/drivers/net/wireless/mediatek/mt76/mt7603/ |
D | main.c | 91 struct mt7603_sta *msta = &mvif->sta; in mt7603_remove_interface() local 93 int idx = msta->wcid.idx; in mt7603_remove_interface() 104 if (!list_empty(&msta->poll_list)) in mt7603_remove_interface() 105 list_del_init(&msta->poll_list); in mt7603_remove_interface() 345 struct mt7603_sta *msta = (struct mt7603_sta *)sta->drv_priv; in mt7603_sta_add() local 354 INIT_LIST_HEAD(&msta->poll_list); in mt7603_sta_add() 355 __skb_queue_head_init(&msta->psq); in mt7603_sta_add() 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() [all …]
|
D | mac.c | 321 struct mt7603_sta *msta = (struct mt7603_sta *)sta->drv_priv; in mt7603_wtbl_update_cap() local 322 int idx = msta->wcid.idx; in mt7603_wtbl_update_cap() 404 struct mt7603_sta *msta; in mt7603_mac_sta_poll() local 421 msta = list_first_entry(&dev->sta_poll_list, struct mt7603_sta, in mt7603_mac_sta_poll() 423 list_del_init(&msta->poll_list); in mt7603_mac_sta_poll() 426 addr = mt7603_wtbl4_addr(msta->wcid.idx); in mt7603_mac_sta_poll() 428 u32 airtime_last = msta->tx_airtime_ac[i]; in mt7603_mac_sta_poll() 430 msta->tx_airtime_ac[i] = mt76_rr(dev, addr + i * 8); in mt7603_mac_sta_poll() 431 airtime[i] = msta->tx_airtime_ac[i] - airtime_last; in mt7603_mac_sta_poll() 435 if (msta->tx_airtime_ac[i] & BIT(22)) in mt7603_mac_sta_poll() [all …]
|
D | dma.c | 23 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.1.9/drivers/net/wireless/mediatek/mt7601u/ |
D | main.c | 213 struct mt76_sta *msta = (struct mt76_sta *) sta->drv_priv; in mt7601u_sta_add() local 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() 244 struct mt76_sta *msta = (struct mt76_sta *) sta->drv_priv; in mt7601u_sta_remove() local 245 int idx = msta->wcid.idx; in mt7601u_sta_remove() 298 struct mt76_sta *msta = sta ? (struct mt76_sta *) sta->drv_priv : NULL; in mt7601u_set_key() local 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() [all …]
|
D | tx.c | 197 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()
|
D | mac.c | 179 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.1.9/drivers/net/wireless/mediatek/mt76/mt7915/ |
D | main.c | 265 struct mt7915_sta *msta = &mvif->sta; in mt7915_remove_interface() local 268 int idx = msta->wcid.idx; in mt7915_remove_interface() 290 if (!list_empty(&msta->poll_list)) in mt7915_remove_interface() 291 list_del_init(&msta->poll_list); in mt7915_remove_interface() 294 mt76_packet_id_flush(&dev->mt76, &msta->wcid); in mt7915_remove_interface() 347 struct mt7915_sta *msta = sta ? (struct mt7915_sta *)sta->drv_priv : in mt7915_set_key() local 349 struct mt76_wcid *wcid = &msta->wcid; in mt7915_set_key() 400 err = mt76_connac_mcu_add_key(&dev->mt76, vif, &msta->bip, in mt7915_set_key() 402 &msta->wcid, cmd); in mt7915_set_key() 650 struct mt7915_sta *msta = (struct mt7915_sta *)sta->drv_priv; in mt7915_mac_sta_add() local [all …]
|
D | mac.c | 105 struct mt7915_sta *msta; in mt7915_mac_sta_poll() local 128 msta = list_first_entry(&sta_poll_list, in mt7915_mac_sta_poll() 130 list_del_init(&msta->poll_list); in mt7915_mac_sta_poll() 133 idx = msta->wcid.idx; in mt7915_mac_sta_poll() 137 u32 tx_last = msta->airtime_ac[i]; in mt7915_mac_sta_poll() 138 u32 rx_last = msta->airtime_ac[i + 4]; in mt7915_mac_sta_poll() 140 msta->airtime_ac[i] = mt76_rr(dev, addr); in mt7915_mac_sta_poll() 141 msta->airtime_ac[i + 4] = mt76_rr(dev, addr + 4); in mt7915_mac_sta_poll() 143 tx_time[i] = msta->airtime_ac[i] - tx_last; in mt7915_mac_sta_poll() 144 rx_time[i] = msta->airtime_ac[i + 4] - rx_last; in mt7915_mac_sta_poll() [all …]
|
D | mcu.c | 54 struct mt7915_sta *msta = (struct mt7915_sta *)sta->drv_priv; in mt7915_mcu_set_sta_he_mcs() local 55 struct mt7915_dev *dev = msta->vif->phy->dev; in mt7915_mcu_set_sta_he_mcs() 56 enum nl80211_band band = msta->vif->phy->mt76->chandef.chan->band; in mt7915_mcu_set_sta_he_mcs() 57 const u16 *mask = msta->vif->bitrate_mask.control[band].he_mcs; in mt7915_mcu_set_sta_he_mcs() 109 struct mt7915_sta *msta = (struct mt7915_sta *)sta->drv_priv; in mt7915_mcu_set_sta_vht_mcs() local 110 struct mt7915_dev *dev = msta->vif->phy->dev; in mt7915_mcu_set_sta_vht_mcs() 662 struct mt7915_sta *msta = (struct mt7915_sta *)params->sta->drv_priv; in mt7915_mcu_add_tx_ba() local 663 struct mt7915_vif *mvif = msta->vif; in mt7915_mcu_add_tx_ba() 666 msta->wcid.amsdu = false; in mt7915_mcu_add_tx_ba() 677 struct mt7915_sta *msta = (struct mt7915_sta *)params->sta->drv_priv; in mt7915_mcu_add_rx_ba() local [all …]
|
D | debugfs.c | 781 struct mt7915_sta *msta = (struct mt7915_sta *)sta->drv_priv; in mt7915_sta_hw_queue_read() local 782 struct mt7915_dev *dev = msta->vif->phy->dev; in mt7915_sta_hw_queue_read() 788 u32 idx = msta->wcid.idx >> 5; in mt7915_sta_hw_queue_read() 789 u8 offs = msta->wcid.idx & GENMASK(4, 0); in mt7915_sta_hw_queue_read() 797 mt76_wr(dev, MT_FL_Q0_CTRL, ctrl | msta->wcid.idx); in mt7915_sta_hw_queue_read() 801 sta->addr, msta->wcid.idx, in mt7915_sta_hw_queue_read() 802 msta->vif->mt76.wmm_idx, ac, qlen); in mt7915_sta_hw_queue_read() 1108 struct mt7915_sta *msta = (struct mt7915_sta *)sta->drv_priv; in mt7915_sta_fixed_rate_set() local 1109 struct mt7915_dev *dev = msta->vif->phy->dev; in mt7915_sta_fixed_rate_set() 1154 vif = container_of((void *)msta->vif, struct ieee80211_vif, drv_priv); in mt7915_sta_fixed_rate_set()
|
/linux-6.1.9/drivers/net/wireless/mediatek/mt76/mt7615/ |
D | main.c | 251 struct mt7615_sta *msta = &mvif->sta; in mt7615_remove_interface() local 254 int idx = msta->wcid.idx; in mt7615_remove_interface() 265 mt76_connac_free_pending_tx_skbs(&dev->pm, &msta->wcid); in mt7615_remove_interface() 278 if (!list_empty(&msta->poll_list)) in mt7615_remove_interface() 279 list_del_init(&msta->poll_list); in mt7615_remove_interface() 350 struct mt7615_sta *msta = sta ? (struct mt7615_sta *)sta->drv_priv : in mt7615_set_key() local 352 struct mt76_wcid *wcid = &msta->wcid; in mt7615_set_key() 620 struct mt7615_sta *msta = (struct mt7615_sta *)sta->drv_priv; in mt7615_mac_sta_add() local 629 INIT_LIST_HEAD(&msta->poll_list); in mt7615_mac_sta_add() 630 msta->vif = mvif; in mt7615_mac_sta_add() [all …]
|
D | mac.c | 258 struct mt7615_sta *msta = (struct mt7615_sta *)status->wcid; in mt7615_reverse_frag0_hdr_trans() local 272 if (!msta || !msta->vif) in mt7615_reverse_frag0_hdr_trans() 275 sta = container_of((void *)msta, struct ieee80211_sta, drv_priv); in mt7615_reverse_frag0_hdr_trans() 276 vif = container_of((void *)msta->vif, struct ieee80211_vif, drv_priv); in mt7615_reverse_frag0_hdr_trans() 389 struct mt7615_sta *msta; in mt7615_mac_fill_rx() local 391 msta = container_of(status->wcid, struct mt7615_sta, wcid); in mt7615_mac_fill_rx() 393 if (list_empty(&msta->poll_list)) in mt7615_mac_fill_rx() 394 list_add_tail(&msta->poll_list, &dev->sta_poll_list); in mt7615_mac_fill_rx() 750 struct mt7615_sta *msta = (struct mt7615_sta *)sta->drv_priv; in mt7615_mac_write_txwi() local 752 tx_count = msta->rate_count; in mt7615_mac_write_txwi() [all …]
|
D | usb_sdio.c | 190 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()
|
D | pci_mac.c | 71 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()
|
D | mcu.c | 773 struct mt7615_sta *msta = (struct mt7615_sta *)params->sta->drv_priv; in mt7615_mcu_wtbl_tx_ba() local 774 struct mt7615_vif *mvif = msta->vif; in mt7615_mcu_wtbl_tx_ba() 779 wtbl_hdr = mt76_connac_mcu_alloc_wtbl_req(&dev->mt76, &msta->wcid, in mt7615_mcu_wtbl_tx_ba() 793 &msta->wcid); in mt7615_mcu_wtbl_tx_ba() 808 struct mt7615_sta *msta = (struct mt7615_sta *)params->sta->drv_priv; in mt7615_mcu_wtbl_rx_ba() local 809 struct mt7615_vif *mvif = msta->vif; in mt7615_mcu_wtbl_rx_ba() 815 &msta->wcid); in mt7615_mcu_wtbl_rx_ba() 827 wtbl_hdr = mt76_connac_mcu_alloc_wtbl_req(&dev->mt76, &msta->wcid, in mt7615_mcu_wtbl_rx_ba() 847 struct mt7615_sta *msta; in mt7615_mcu_wtbl_sta_add() local 851 msta = sta ? (struct mt7615_sta *)sta->drv_priv : &mvif->sta; in mt7615_mcu_wtbl_sta_add() [all …]
|
/linux-6.1.9/drivers/net/wireless/mediatek/mt76/ |
D | mt76x02_util.c | 243 struct mt76x02_sta *msta = (struct mt76x02_sta *)sta->drv_priv; in mt76x02_sta_add() local 247 memset(msta, 0, sizeof(*msta)); in mt76x02_sta_add() 253 msta->vif = mvif; in mt76x02_sta_add() 254 msta->wcid.sta = 1; in mt76x02_sta_add() 255 msta->wcid.idx = idx; in mt76x02_sta_add() 256 msta->wcid.hw_key_idx = -1; in mt76x02_sta_add() 259 ewma_pktlen_init(&msta->pktlen); in mt76x02_sta_add() 262 set_bit(MT_WCID_FLAG_CHECK_PS, &msta->wcid.flags); in mt76x02_sta_add() 360 struct mt76x02_sta *msta = (struct mt76x02_sta *)sta->drv_priv; in mt76x02_ampdu_action() local 375 mt76_rx_aggr_start(&dev->mt76, &msta->wcid, tid, in mt76x02_ampdu_action() [all …]
|
D | mt76x02_txrx.c | 20 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()
|
D | mt76x02_mac.c | 476 mt76x02_mac_fill_tx_status(struct mt76x02_dev *dev, struct mt76x02_sta *msta, in mt76x02_mac_fill_tx_status() argument 499 if (!msta) in mt76x02_mac_fill_tx_status() 502 mt76x02_mac_process_tx_rate(&rate[0], msta->wcid.tx_info, in mt76x02_mac_fill_tx_status() 554 struct mt76x02_sta *msta = NULL; in mt76x02_send_tx_status() local 573 priv = msta = container_of(wcid, struct mt76x02_sta, wcid); in mt76x02_send_tx_status() 594 if (msta && stat->aggr && !status.skb) { in mt76x02_send_tx_status() 599 stat_cache = msta->status.rate; in mt76x02_send_tx_status() 600 stat_cache |= ((u32)msta->status.retry) << 16; 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() [all …]
|
D | mt76x02_mmio.c | 401 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()
|
D | mt76x02_usb_core.c | 105 struct mt76x02_sta *msta = (struct mt76x02_sta *)sta->drv_priv; in mt76x02u_tx_prepare_skb() local 107 ewma_pktlen_add(&msta->pktlen, tx_info->skb->len); in mt76x02u_tx_prepare_skb()
|
/linux-6.1.9/drivers/net/wireless/mediatek/mt76/mt7921/ |
D | mac.c | 58 struct mt7921_sta *msta; in mt7921_mac_sta_poll() local 79 msta = list_first_entry(&sta_poll_list, in mt7921_mac_sta_poll() 81 list_del_init(&msta->poll_list); in mt7921_mac_sta_poll() 84 idx = msta->wcid.idx; in mt7921_mac_sta_poll() 88 u32 tx_last = msta->airtime_ac[i]; in mt7921_mac_sta_poll() 89 u32 rx_last = msta->airtime_ac[i + 4]; in mt7921_mac_sta_poll() 91 msta->airtime_ac[i] = mt76_rr(dev, addr); in mt7921_mac_sta_poll() 92 msta->airtime_ac[i + 4] = mt76_rr(dev, addr + 4); in mt7921_mac_sta_poll() 94 tx_time[i] = msta->airtime_ac[i] - tx_last; in mt7921_mac_sta_poll() 95 rx_time[i] = msta->airtime_ac[i + 4] - rx_last; in mt7921_mac_sta_poll() [all …]
|
D | main.c | 366 struct mt7921_sta *msta = &mvif->sta; in mt7921_remove_interface() local 369 int idx = msta->wcid.idx; in mt7921_remove_interface() 372 mt76_connac_free_pending_tx_skbs(&dev->pm, &msta->wcid); 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() 386 mt76_packet_id_flush(&dev->mt76, &msta->wcid); in mt7921_remove_interface() 427 struct mt7921_sta *msta = sta ? (struct mt7921_sta *)sta->drv_priv : in mt7921_set_key() local 429 struct mt76_wcid *wcid = &msta->wcid; in mt7921_set_key() 477 err = mt76_connac_mcu_add_key(&dev->mt76, vif, &msta->bip, in mt7921_set_key() 479 &msta->wcid, cmd); in mt7921_set_key() [all …]
|
D | pci_mac.c | 35 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()
|
D | mcu.c | 339 struct mt7921_sta *msta = (struct mt7921_sta *)params->sta->drv_priv; in mt7921_mcu_uni_tx_ba() local 342 msta->wcid.amsdu = false; in mt7921_mcu_uni_tx_ba() 344 return mt76_connac_mcu_sta_ba(&dev->mt76, &msta->vif->mt76, params, in mt7921_mcu_uni_tx_ba() 353 struct mt7921_sta *msta = (struct mt7921_sta *)params->sta->drv_priv; in mt7921_mcu_uni_rx_ba() local 355 return mt76_connac_mcu_sta_ba(&dev->mt76, &msta->vif->mt76, params, in mt7921_mcu_uni_rx_ba() 840 struct mt7921_sta *msta; in mt7921_mcu_sta_update() local 842 msta = sta ? (struct mt7921_sta *)sta->drv_priv : NULL; in mt7921_mcu_sta_update() 843 info.wcid = msta ? &msta->wcid : &mvif->sta.wcid; in mt7921_mcu_sta_update() 844 info.newly = msta ? state != MT76_STA_INFO_STATE_ASSOC : true; in mt7921_mcu_sta_update()
|
/linux-6.1.9/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | sta.c | 2370 struct iwl_mvm_int_sta *msta = &mvmvif->mcast_sta; in iwl_mvm_add_mcast_sta() local 2376 .sta_id = msta->sta_id, in iwl_mvm_add_mcast_sta() 2407 msta->tfd_queue_msk |= BIT(mvmvif->cab_queue); in iwl_mvm_add_mcast_sta() 2409 ret = iwl_mvm_add_int_sta_common(mvm, msta, maddr, in iwl_mvm_add_mcast_sta() 2422 int queue = iwl_mvm_tvqm_enable_txq(mvm, msta->sta_id, in iwl_mvm_add_mcast_sta() 2437 iwl_mvm_dealloc_int_sta(mvm, msta); in iwl_mvm_add_mcast_sta()
|