Lines Matching refs:msta

260 		struct mt7615_sta *msta;  in mt7615_mac_fill_rx()  local
262 msta = container_of(status->wcid, struct mt7615_sta, wcid); in mt7615_mac_fill_rx()
264 if (list_empty(&msta->poll_list)) in mt7615_mac_fill_rx()
265 list_add_tail(&msta->poll_list, &dev->sta_poll_list); in mt7615_mac_fill_rx()
554 struct mt7615_sta *msta = (struct mt7615_sta *)sta->drv_priv; in mt7615_mac_write_txwi() local
556 tx_count = msta->rate_count; in mt7615_mac_write_txwi()
764 struct mt7615_sta *msta; in mt7615_mac_sta_poll() local
777 msta = list_first_entry(&sta_poll_list, struct mt7615_sta, in mt7615_mac_sta_poll()
779 list_del_init(&msta->poll_list); in mt7615_mac_sta_poll()
781 addr = mt7615_mac_wtbl_addr(dev, msta->wcid.idx) + 19 * 4; in mt7615_mac_sta_poll()
784 u32 tx_last = msta->airtime_ac[i]; in mt7615_mac_sta_poll()
785 u32 rx_last = msta->airtime_ac[i + 4]; in mt7615_mac_sta_poll()
787 msta->airtime_ac[i] = mt76_rr(dev, addr); in mt7615_mac_sta_poll()
788 msta->airtime_ac[i + 4] = mt76_rr(dev, addr + 4); in mt7615_mac_sta_poll()
789 tx_time[i] = msta->airtime_ac[i] - tx_last; in mt7615_mac_sta_poll()
790 rx_time[i] = msta->airtime_ac[i + 4] - rx_last; in mt7615_mac_sta_poll()
797 mt7615_mac_wtbl_update(dev, msta->wcid.idx, in mt7615_mac_sta_poll()
799 memset(msta->airtime_ac, 0, sizeof(msta->airtime_ac)); in mt7615_mac_sta_poll()
802 if (!msta->wcid.sta) in mt7615_mac_sta_poll()
805 sta = container_of((void *)msta, struct ieee80211_sta, in mt7615_mac_sta_poll()
1349 struct mt7615_sta *msta = NULL; in mt7615_mac_add_txs() local
1374 msta = container_of(wcid, struct mt7615_sta, wcid); in mt7615_mac_add_txs()
1378 if (list_empty(&msta->poll_list)) in mt7615_mac_add_txs()
1379 list_add_tail(&msta->poll_list, &dev->sta_poll_list); in mt7615_mac_add_txs()
1382 if (mt7615_mac_add_txs_skb(dev, msta, pid, txs_data)) in mt7615_mac_add_txs()
1391 if (mt7615_fill_txs(dev, msta, &info, txs_data)) in mt7615_mac_add_txs()
1874 struct mt7615_sta *msta = dev->pm.tx_q[i].msta; in mt7615_pm_wake_work() local
1881 wcid = msta ? &msta->wcid : &dev->mt76.global_wcid; in mt7615_pm_wake_work()
1882 if (msta && wcid->sta) in mt7615_pm_wake_work()
1883 sta = container_of((void *)msta, struct ieee80211_sta, in mt7615_pm_wake_work()