Lines Matching refs:mvmsta
257 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_get_tx_ant() local
259 return BIT(mvmsta->tx_ant) << RATE_MCS_ANT_POS; in iwl_mvm_get_tx_ant()
432 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_set_tx_cmd_rate() local
434 if (mvmsta->sta_state >= IEEE80211_STA_AUTHORIZED) { in iwl_mvm_set_tx_cmd_rate()
524 struct iwl_mvm_sta *mvmsta, in iwl_mvm_use_host_rate() argument
528 if (unlikely(!mvmsta)) in iwl_mvm_use_host_rate()
535 mvmsta->sta_state >= IEEE80211_STA_AUTHORIZED)) in iwl_mvm_use_host_rate()
581 struct iwl_mvm_sta *mvmsta = sta ? in iwl_mvm_set_tx_params() local
600 if (unlikely(iwl_mvm_use_host_rate(mvm, mvmsta, hdr, info))) { in iwl_mvm_set_tx_params()
606 mvmsta->sta_state < IEEE80211_STA_AUTHORIZED) { in iwl_mvm_set_tx_params()
886 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_max_amsdu_size() local
905 val = mvmsta->max_amsdu_len; in iwl_mvm_max_amsdu_size()
913 link_conf = rcu_dereference(mvmsta->vif->link_conf[link]); in iwl_mvm_max_amsdu_size()
920 band = mvmsta->vif->bss_conf.chanreq.oper.chan->band; in iwl_mvm_max_amsdu_size()
1018 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_tx_tso() local
1028 if (!mvmsta->max_amsdu_len || in iwl_mvm_tx_tso()
1030 !mvmsta->amsdu_enabled) in iwl_mvm_tx_tso()
1053 !mvmsta->tid_data[tid].amsdu_in_ampdu_allowed) || in iwl_mvm_tx_tso()
1054 !(mvmsta->amsdu_enabled & BIT(tid))) in iwl_mvm_tx_tso()
1149 struct iwl_mvm_sta *mvmsta, in iwl_mvm_tx_airtime() argument
1152 int mac = mvmsta->mac_id_n_color & FW_CTXT_ID_MSK; in iwl_mvm_tx_airtime()
1170 struct iwl_mvm_sta *mvmsta, int tid) in iwl_mvm_tx_pkt_queued() argument
1173 int mac = mvmsta->mac_id_n_color & FW_CTXT_ID_MSK; in iwl_mvm_tx_pkt_queued()
1197 struct iwl_mvm_sta *mvmsta; in iwl_mvm_tx_mpdu() local
1209 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_tx_mpdu()
1216 if (WARN_ON_ONCE(mvmsta->deflink.sta_id == IWL_MVM_INVALID_STA)) in iwl_mvm_tx_mpdu()
1226 sta, mvmsta->deflink.sta_id, in iwl_mvm_tx_mpdu()
1238 spin_lock(&mvmsta->lock); in iwl_mvm_tx_mpdu()
1251 mvmsta->tid_data[tid].state != IWL_AGG_ON, in iwl_mvm_tx_mpdu()
1253 mvmsta->tid_data[tid].state, tid)) in iwl_mvm_tx_mpdu()
1256 seq_number = mvmsta->tid_data[tid].seq_number; in iwl_mvm_tx_mpdu()
1272 txq_id = mvmsta->tid_data[tid].txq_id; in iwl_mvm_tx_mpdu()
1278 spin_unlock(&mvmsta->lock); in iwl_mvm_tx_mpdu()
1303 mvmsta->deflink.sta_id, tid, txq_id, in iwl_mvm_tx_mpdu()
1324 mvmsta->tid_data[tid].seq_number = seq_number + 0x10; in iwl_mvm_tx_mpdu()
1326 spin_unlock(&mvmsta->lock); in iwl_mvm_tx_mpdu()
1328 if (iwl_mvm_tx_pkt_queued(mvm, mvmsta, in iwl_mvm_tx_mpdu()
1336 spin_unlock(&mvmsta->lock); in iwl_mvm_tx_mpdu()
1338 IWL_DEBUG_TX(mvm, "TX to [%d|%d] dropped\n", mvmsta->deflink.sta_id, in iwl_mvm_tx_mpdu()
1346 struct iwl_mvm_sta *mvmsta; in iwl_mvm_tx_skb_sta() local
1358 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_tx_skb_sta()
1360 if (WARN_ON_ONCE(mvmsta->deflink.sta_id == IWL_MVM_INVALID_STA)) in iwl_mvm_tx_skb_sta()
1440 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_check_ratid_empty() local
1441 struct iwl_mvm_tid_data *tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_check_ratid_empty()
1442 struct ieee80211_vif *vif = mvmsta->vif; in iwl_mvm_check_ratid_empty()
1445 lockdep_assert_held(&mvmsta->lock); in iwl_mvm_check_ratid_empty()
1862 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_rx_tx_cmd_single() local
1864 iwl_mvm_tx_airtime(mvm, mvmsta, in iwl_mvm_rx_tx_cmd_single()
1868 mvmsta->sta_state < IEEE80211_STA_AUTHORIZED) in iwl_mvm_rx_tx_cmd_single()
1869 iwl_mvm_toggle_tx_ant(mvm, &mvmsta->tx_ant); in iwl_mvm_rx_tx_cmd_single()
1873 &mvmsta->tid_data[tid]; in iwl_mvm_rx_tx_cmd_single()
1876 spin_lock_bh(&mvmsta->lock); in iwl_mvm_rx_tx_cmd_single()
1883 iwl_mvm_count_mpdu(mvmsta, sta_id, 1, true, 0); in iwl_mvm_rx_tx_cmd_single()
1891 if (mvmsta->sleep_tx_count) { in iwl_mvm_rx_tx_cmd_single()
1892 mvmsta->sleep_tx_count--; in iwl_mvm_rx_tx_cmd_single()
1893 if (mvmsta->sleep_tx_count && in iwl_mvm_rx_tx_cmd_single()
1912 spin_unlock_bh(&mvmsta->lock); in iwl_mvm_rx_tx_cmd_single()
1917 mvmsta->sleep_tx_count = 0; in iwl_mvm_rx_tx_cmd_single()
1922 if (mvmsta->next_status_eosp) { in iwl_mvm_rx_tx_cmd_single()
1923 mvmsta->next_status_eosp = false; in iwl_mvm_rx_tx_cmd_single()
1995 struct iwl_mvm_sta *mvmsta; in iwl_mvm_rx_tx_cmd_agg() local
2007 mvmsta = iwl_mvm_sta_from_staid_rcu(mvm, sta_id); in iwl_mvm_rx_tx_cmd_agg()
2015 if (!WARN_ON_ONCE(!mvmsta)) { in iwl_mvm_rx_tx_cmd_agg()
2016 mvmsta->tid_data[tid].rate_n_flags = in iwl_mvm_rx_tx_cmd_agg()
2018 mvmsta->tid_data[tid].tx_time = in iwl_mvm_rx_tx_cmd_agg()
2020 mvmsta->tid_data[tid].lq_color = in iwl_mvm_rx_tx_cmd_agg()
2022 iwl_mvm_tx_airtime(mvm, mvmsta, in iwl_mvm_rx_tx_cmd_agg()
2048 struct iwl_mvm_sta *mvmsta = NULL; in iwl_mvm_tx_reclaim() local
2103 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_tx_reclaim()
2104 tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_tx_reclaim()
2114 spin_lock_bh(&mvmsta->lock); in iwl_mvm_tx_reclaim()
2149 spin_unlock_bh(&mvmsta->lock); in iwl_mvm_tx_reclaim()
2160 if (mvmsta->vif) in iwl_mvm_tx_reclaim()
2162 rcu_dereference(mvmsta->vif->bss_conf.chanctx_conf); in iwl_mvm_tx_reclaim()
2191 struct iwl_mvm_sta *mvmsta; in iwl_mvm_rx_ba_notif() local
2232 mvmsta = iwl_mvm_sta_from_staid_rcu(mvm, sta_id); in iwl_mvm_rx_ba_notif()
2251 if (mvmsta) in iwl_mvm_rx_ba_notif()
2252 mvmsta->tid_data[i].lq_color = lq_color; in iwl_mvm_rx_ba_notif()
2261 if (mvmsta) { in iwl_mvm_rx_ba_notif()
2262 iwl_mvm_tx_airtime(mvm, mvmsta, in iwl_mvm_rx_ba_notif()
2265 iwl_mvm_count_mpdu(mvmsta, sta_id, in iwl_mvm_rx_ba_notif()
2282 mvmsta = iwl_mvm_sta_from_staid_rcu(mvm, sta_id); in iwl_mvm_rx_ba_notif()
2283 if (IWL_FW_CHECK(mvm, !mvmsta, in iwl_mvm_rx_ba_notif()
2290 tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_rx_ba_notif()