Lines Matching refs:msta
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()
440 mt7603_wtbl_update(dev, msta->wcid.idx, 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()
449 sta = container_of((void *)msta, struct ieee80211_sta, drv_priv); in mt7603_mac_sta_poll()
937 struct mt7603_sta *msta = (struct mt7603_sta *)sta->drv_priv; in mt7603_mac_write_txwi() local
939 tx_count = msta->rate_count; in mt7603_mac_write_txwi()
1042 struct mt7603_sta *msta = container_of(wcid, struct mt7603_sta, wcid); in mt7603_tx_prepare_skb() local
1051 msta = (struct mt7603_sta *)sta->drv_priv; in mt7603_tx_prepare_skb()
1056 mt7603_wtbl_set_ps(dev, msta, false); in mt7603_tx_prepare_skb()
1065 mt7603_wtbl_set_rates(dev, msta, &info->control.rates[0], in mt7603_tx_prepare_skb()
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
1267 msta = container_of(wcid, struct mt7603_sta, wcid); in mt7603_mac_add_txs()
1270 if (list_empty(&msta->poll_list)) { in mt7603_mac_add_txs()
1272 list_add_tail(&msta->poll_list, &dev->sta_poll_list); in mt7603_mac_add_txs()
1276 if (mt7603_mac_add_txs_skb(dev, msta, pid, txs_data)) in mt7603_mac_add_txs()
1282 if (mt7603_fill_txs(dev, msta, &info, txs_data)) in mt7603_mac_add_txs()