| /linux/drivers/net/wireless/mediatek/mt76/mt7603/ |
| A D | main.c | 94 int idx = msta->wcid.idx; in mt7603_remove_interface() 344 msta->ps = ~0; in mt7603_sta_add() 345 msta->smps = ~0; in mt7603_sta_add() 346 msta->wcid.sta = 1; in mt7603_sta_add() 347 msta->wcid.idx = idx; in mt7603_sta_add() 348 msta->vif = mvif; in mt7603_sta_add() 650 if (msta->rates[i].idx < 0 || !msta->rates[i].count) in mt7603_sta_rate_tbl_update() 653 msta->n_rates = i; in mt7603_sta_rate_tbl_update() 654 mt7603_wtbl_set_rates(dev, msta, NULL, msta->rates); in mt7603_sta_rate_tbl_update() 655 msta->rate_probe = false; in mt7603_sta_rate_tbl_update() [all …]
|
| A D | mac.c | 333 int idx = msta->wcid.idx; in mt7603_wtbl_update_cap() 415 struct mt7603_sta *msta; in mt7603_mac_sta_poll() local 434 list_del_init(&msta->wcid.poll_list); in mt7603_mac_sta_poll() 446 if (msta->tx_airtime_ac[i] & BIT(22)) in mt7603_mac_sta_poll() 453 memset(msta->tx_airtime_ac, 0, in mt7603_mac_sta_poll() 454 sizeof(msta->tx_airtime_ac)); in mt7603_mac_sta_poll() 457 if (!msta->wcid.sta) in mt7603_mac_sta_poll() 950 tx_count = msta->rate_count; in mt7603_mac_write_txwi() 1077 msta->rates); in mt7603_tx_prepare_skb() 1078 msta->rate_probe = true; in mt7603_tx_prepare_skb() [all …]
|
| A D | dma.c | 30 struct mt7603_sta *msta; in mt7603_rx_loopback_skb() local 51 priv = msta = container_of(wcid, struct mt7603_sta, wcid); in mt7603_rx_loopback_skb() 83 __skb_queue_tail(&msta->psq, skb); in mt7603_rx_loopback_skb() 84 if (skb_queue_len(&msta->psq) >= 64) { in mt7603_rx_loopback_skb() 85 skb = __skb_dequeue(&msta->psq); in mt7603_rx_loopback_skb()
|
| /linux/drivers/net/wireless/mediatek/mt76/mt7915/ |
| A D | main.c | 293 int idx = msta->wcid.idx; in mt7915_remove_interface() 419 &msta->wcid, cmd); in mt7915_set_key() 746 msta->vif = mvif; in mt7915_mac_sta_add() 748 msta->wcid.idx = idx; in mt7915_mac_sta_add() 750 msta->jiffies = jiffies; in mt7915_mac_sta_add() 783 msta->wcid.sta = 1; in mt7915_mac_sta_event() 797 msta->wcid.sta = 0; in mt7915_mac_sta_event() 1158 msta->changed |= *changed; in mt7915_sta_rc_work() 1173 if (!msta->wcid.sta) in mt7915_sta_rc_update() 1218 if (!msta->wcid.sta) in mt7915_sta_set_4addr() [all …]
|
| A D | mac.c | 102 struct mt7915_sta *msta; in mt7915_mac_sta_poll() local 131 idx = msta->wcid.idx; in mt7915_mac_sta_poll() 162 memset(msta->airtime_ac, 0, sizeof(msta->airtime_ac)); in mt7915_mac_sta_poll() 165 if (!msta->wcid.sta) in mt7915_mac_sta_poll() 189 rate = &msta->wcid.rate; in mt7915_mac_sta_poll() 229 msta->ack_signal = in mt7915_mac_sta_poll() 232 ewma_avg_signal_add(&msta->avg_ack_signal, -msta->ack_signal); in mt7915_mac_sta_poll() 259 if (!msta || !msta->vif) in mt7915_wed_check_ppe() 493 if (!msta || !msta->vif) in mt7915_mac_fill_rx() 1980 msta->changed = 0; in mt7915_mac_sta_rc_work() [all …]
|
| A D | mcu.c | 696 struct mt7915_vif *mvif = msta->vif; in mt7915_mcu_add_tx_ba() 701 msta->wcid.amsdu = false; in mt7915_mcu_add_tx_ba() 974 msta->wcid.amsdu = true; in mt7915_mcu_sta_amsdu_tlv() 999 struct mt7915_sta *msta; in mt7915_mcu_sta_wtbl_tlv() local 1005 wcid = sta ? &msta->wcid : NULL; in mt7915_mcu_sta_wtbl_tlv() 1328 &msta->wcid); in mt7915_mcu_set_fixed_rate_ctrl() 1371 &msta->wcid); in mt7915_mcu_add_smps() 1607 &msta->wcid); in mt7915_mcu_add_rate_ctrl() 1641 struct mt7915_sta *msta; in mt7915_mcu_add_group() local 1668 struct mt7915_sta *msta; in mt7915_mcu_add_sta() local [all …]
|
| /linux/drivers/net/wireless/mediatek/mt7601u/ |
| A D | main.c | 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() 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 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()
|
| /linux/drivers/net/wireless/mediatek/mt76/mt7996/ |
| A D | main.c | 269 int idx = msta->wcid.idx; in mt7996_remove_interface() 391 &msta->wcid, cmd); in mt7996_set_key() 681 INIT_LIST_HEAD(&msta->rc_list); in mt7996_mac_sta_add() 683 msta->vif = mvif; in mt7996_mac_sta_add() 684 msta->wcid.sta = 1; in mt7996_mac_sta_add() 685 msta->wcid.idx = idx; in mt7996_mac_sta_add() 686 msta->wcid.phy_idx = band_idx; in mt7996_mac_sta_add() 719 if (!list_empty(&msta->rc_list)) in mt7996_mac_sta_remove() 720 list_del_init(&msta->rc_list); in mt7996_mac_sta_remove() 1055 msta->changed |= *changed; in mt7996_sta_rc_work() [all …]
|
| A D | mac.c | 104 struct mt7996_sta *msta; in mt7996_mac_sta_poll() local 131 idx = msta->wcid.idx; in mt7996_mac_sta_poll() 155 memset(msta->airtime_ac, 0, sizeof(msta->airtime_ac)); in mt7996_mac_sta_poll() 158 if (!msta->wcid.sta) in mt7996_mac_sta_poll() 184 msta->ack_signal = in mt7996_mac_sta_poll() 187 ewma_avg_signal_add(&msta->avg_ack_signal, -msta->ack_signal); in mt7996_mac_sta_poll() 225 if (!msta || !msta->vif) in mt7996_reverse_frag0_hdr_trans() 404 if (!msta || !msta->vif) in mt7996_wed_check_ppe() 1022 struct mt7996_sta *msta; in mt7996_tx_check_aggr() local 2254 msta->changed = 0; in mt7996_mac_sta_rc_work() [all …]
|
| A D | debugfs.c | 603 struct mt7996_sta *msta = (struct mt7996_sta *)sta->drv_priv; in mt7996_sta_hw_queue_read() local 604 struct mt7996_dev *dev = msta->vif->phy->dev; in mt7996_sta_hw_queue_read() 610 u32 idx = msta->wcid.idx >> 5; in mt7996_sta_hw_queue_read() 611 u8 offs = msta->wcid.idx & GENMASK(4, 0); in mt7996_sta_hw_queue_read() 619 mt76_wr(dev, MT_FL_Q0_CTRL, ctrl | msta->wcid.idx); in mt7996_sta_hw_queue_read() 623 sta->addr, msta->wcid.idx, in mt7996_sta_hw_queue_read() 624 msta->vif->mt76.wmm_idx, ac, qlen); in mt7996_sta_hw_queue_read() 901 struct mt7996_sta *msta = (struct mt7996_sta *)sta->drv_priv; in mt7996_sta_fixed_rate_set() local 902 struct mt7996_dev *dev = msta->vif->phy->dev; in mt7996_sta_fixed_rate_set() 937 phy.wlan_idx = cpu_to_le16(msta->wcid.idx); in mt7996_sta_fixed_rate_set()
|
| /linux/drivers/net/wireless/mediatek/mt76/ |
| A D | mt76x02_util.c | 246 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 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()
|
| A D | mt76x02_mac.c | 499 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 …]
|
| /linux/drivers/net/wireless/mediatek/mt76/mt7615/ |
| A D | main.c | 254 int idx = msta->wcid.idx; in mt7615_remove_interface() 648 msta->vif = mvif; in mt7615_mac_sta_add() 649 msta->wcid.sta = 1; in mt7615_mac_sta_add() 650 msta->wcid.idx = idx; in mt7615_mac_sta_add() 723 if (msta->rates[i].idx < 0 || !msta->rates[i].count) in mt7615_sta_rate_tbl_update() 726 msta->n_rates = i; in mt7615_sta_rate_tbl_update() 728 mt7615_mac_set_rates(phy, msta, NULL, msta->rates); in mt7615_sta_rate_tbl_update() 757 struct mt7615_sta *msta = NULL; in mt7615_tx() local 762 wcid = &msta->wcid; in mt7615_tx() 769 msta = &mvif->sta; in mt7615_tx() [all …]
|
| A D | mac.c | 270 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->wcid.poll_list)) in mt7615_mac_fill_rx() 392 list_add_tail(&msta->wcid.poll_list, in mt7615_mac_fill_rx() 746 tx_count = msta->rate_count; in mt7615_mac_write_txwi() 903 struct mt7615_sta *msta; in mt7615_mac_sta_poll() local 920 list_del_init(&msta->wcid.poll_list); in mt7615_mac_sta_poll() 926 u32 tx_last = msta->airtime_ac[i]; in mt7615_mac_sta_poll() 941 memset(msta->airtime_ac, 0, sizeof(msta->airtime_ac)); in mt7615_mac_sta_poll() 944 if (!msta->wcid.sta) in mt7615_mac_sta_poll() [all …]
|
| A 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()
|
| A 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()
|
| A D | mcu.c | 774 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() 848 struct mt7615_sta *msta; in mt7615_mcu_wtbl_sta_add() local 857 &msta->wcid); in mt7615_mcu_wtbl_sta_add() 940 &msta->wcid); in mt7615_mcu_sta_ba() 1011 vif, &msta->wcid, in mt7615_mcu_sta_update_hdr_trans() 1163 &msta->wcid); in mt7615_mcu_uni_rx_ba() 1175 &msta->wcid); in mt7615_mcu_uni_rx_ba() [all …]
|
| /linux/drivers/net/wireless/mediatek/mt76/mt7921/ |
| A D | main.c | 491 struct mt76_wcid *wcid = &msta->deflink.wcid; in mt7921_set_key() 540 &msta->deflink.wcid, cmd); in mt7921_set_key() 794 INIT_LIST_HEAD(&msta->deflink.wcid.poll_list); in mt7921_mac_sta_add() 795 msta->vif = mvif; in mt7921_mac_sta_add() 796 msta->deflink.wcid.sta = 1; in mt7921_mac_sta_add() 797 msta->deflink.wcid.idx = idx; in mt7921_mac_sta_add() 800 msta->deflink.last_txs = jiffies; in mt7921_mac_sta_add() 807 mvif->wep_sta = msta; in mt7921_mac_sta_add() 845 memset(msta->deflink.airtime_ac, 0, sizeof(msta->deflink.airtime_ac)); in mt7921_mac_sta_event() 880 if (!list_empty(&msta->deflink.wcid.poll_list)) in mt7921_mac_sta_remove() [all …]
|
| A D | pci_mac.c | 35 struct mt792x_sta *msta = (struct mt792x_sta *)sta->drv_priv; in mt7921e_tx_prepare_skb() local 37 if (time_after(jiffies, msta->deflink.last_txs + HZ / 4)) { in mt7921e_tx_prepare_skb() 39 msta->deflink.last_txs = jiffies; in mt7921e_tx_prepare_skb()
|
| A D | mac.c | 41 struct mt792x_sta *msta; in mt7921_mac_sta_poll() local 67 msta = container_of(mlink, struct mt792x_sta, deflink); in mt7921_mac_sta_poll() 99 sta = container_of((void *)msta, struct ieee80211_sta, in mt7921_mac_sta_poll() 161 mt76_rx_signal(msta->vif->phy->mt76->antenna_mask, rssi); in mt7921_mac_sta_poll() 185 struct mt792x_sta *msta = NULL; in mt7921_mac_fill_rx() local 218 msta = container_of(mlink, struct mt792x_sta, deflink); in mt7921_mac_fill_rx() 397 if (!msta || !msta->vif) in mt7921_mac_fill_rx() 400 vif = container_of((void *)msta->vif, struct ieee80211_vif, in mt7921_mac_fill_rx() 793 struct mt792x_sta *msta = (struct mt792x_sta *)sta->drv_priv; in mt7921_usb_sdio_tx_prepare_skb() local 795 if (time_after(jiffies, msta->deflink.last_txs + HZ / 4)) { in mt7921_usb_sdio_tx_prepare_skb() [all …]
|
| /linux/drivers/net/wireless/mediatek/mt76/mt7925/ |
| A D | main.c | 638 &mlink->wcid, cmd, msta); in mt7925_set_link_key() 839 struct mt792x_sta *msta; in mt7925_mac_link_sta_add() local 916 mlink = &msta->deflink; in mt7925_mac_sta_add_links() 917 msta->deflink_id = link_id; in mt7925_mac_sta_add_links() 934 msta->valid_links |= BIT(link_id); in mt7925_mac_sta_add_links() 936 mlink->sta = msta; in mt7925_mac_sta_add_links() 955 msta->vif = mvif; in mt7925_mac_sta_add() 958 mvif->wep_sta = msta; in mt7925_mac_sta_add() 1062 struct mt792x_sta *msta; in mt7925_mac_link_sta_assoc() local 1123 struct mt792x_sta *msta; in mt7925_mac_link_sta_remove() local [all …]
|
| A D | mac.c | 30 struct mt792x_sta *msta; in mt7925_mac_sta_poll() local 52 msta = container_of(mlink, struct mt792x_sta, deflink); in mt7925_mac_sta_poll() 85 sta = container_of((void *)msta, struct ieee80211_sta, in mt7925_mac_sta_poll() 150 mt76_rx_signal(msta->vif->phy->mt76->antenna_mask, rssi); in mt7925_mac_sta_poll() 172 struct mt792x_sta *msta = (struct mt792x_sta *)status->wcid; in mt7925_reverse_frag0_hdr_trans() local 186 if (!msta || !msta->vif) in mt7925_reverse_frag0_hdr_trans() 847 struct mt792x_sta *msta; in mt7925_tx_check_aggr() local 880 msta = (struct mt792x_sta *)sta->drv_priv; in mt7925_tx_check_aggr() 883 mlink = rcu_dereference(msta->link[msta->deflink_id]); in mt7925_tx_check_aggr() 885 mlink = &msta->deflink; in mt7925_tx_check_aggr() [all …]
|
| A D | pci_mac.c | 35 struct mt792x_sta *msta = (struct mt792x_sta *)sta->drv_priv; in mt7925e_tx_prepare_skb() local 37 if (time_after(jiffies, msta->deflink.last_txs + HZ / 4)) { in mt7925e_tx_prepare_skb() 39 msta->deflink.last_txs = jiffies; in mt7925e_tx_prepare_skb()
|