Lines Matching refs:msta
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()
909 struct mt7615_sta *msta; in mt7615_mac_sta_poll() local
922 msta = list_first_entry(&sta_poll_list, struct mt7615_sta, in mt7615_mac_sta_poll()
924 list_del_init(&msta->poll_list); in mt7615_mac_sta_poll()
926 addr = mt7615_mac_wtbl_addr(dev, msta->wcid.idx) + 19 * 4; in mt7615_mac_sta_poll()
929 u32 tx_last = msta->airtime_ac[i]; in mt7615_mac_sta_poll()
930 u32 rx_last = msta->airtime_ac[i + 4]; in mt7615_mac_sta_poll()
932 msta->airtime_ac[i] = mt76_rr(dev, addr); in mt7615_mac_sta_poll()
933 msta->airtime_ac[i + 4] = mt76_rr(dev, addr + 4); in mt7615_mac_sta_poll()
934 tx_time[i] = msta->airtime_ac[i] - tx_last; in mt7615_mac_sta_poll()
935 rx_time[i] = msta->airtime_ac[i + 4] - rx_last; in mt7615_mac_sta_poll()
942 mt7615_mac_wtbl_update(dev, msta->wcid.idx, in mt7615_mac_sta_poll()
944 memset(msta->airtime_ac, 0, sizeof(msta->airtime_ac)); in mt7615_mac_sta_poll()
947 if (!msta->wcid.sta) in mt7615_mac_sta_poll()
950 sta = container_of((void *)msta, struct ieee80211_sta, in mt7615_mac_sta_poll()
1509 struct mt7615_sta *msta = NULL; in mt7615_mac_add_txs() local
1531 msta = container_of(wcid, struct mt7615_sta, wcid); in mt7615_mac_add_txs()
1535 if (list_empty(&msta->poll_list)) in mt7615_mac_add_txs()
1536 list_add_tail(&msta->poll_list, &dev->sta_poll_list); in mt7615_mac_add_txs()
1539 if (mt7615_mac_add_txs_skb(dev, msta, pid, txs_data)) in mt7615_mac_add_txs()
1548 if (mt7615_fill_txs(dev, msta, &info, txs_data)) in mt7615_mac_add_txs()