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
1206 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_tx_mpdu()
1213 if (WARN_ON_ONCE(!mvmsta)) 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()
1284 spin_unlock(&mvmsta->lock); in iwl_mvm_tx_mpdu()
1309 mvmsta->deflink.sta_id, tid, txq_id, in iwl_mvm_tx_mpdu()
1330 mvmsta->tid_data[tid].seq_number = seq_number + 0x10; in iwl_mvm_tx_mpdu()
1332 spin_unlock(&mvmsta->lock); in iwl_mvm_tx_mpdu()
1334 if (iwl_mvm_tx_pkt_queued(mvm, mvmsta, in iwl_mvm_tx_mpdu()
1342 spin_unlock(&mvmsta->lock); in iwl_mvm_tx_mpdu()
1344 IWL_DEBUG_TX(mvm, "TX to [%d|%d] dropped\n", mvmsta->deflink.sta_id, in iwl_mvm_tx_mpdu()
1352 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_tx_skb_sta() local
1361 if (WARN_ON_ONCE(!mvmsta)) in iwl_mvm_tx_skb_sta()
1364 if (WARN_ON_ONCE(mvmsta->deflink.sta_id == IWL_MVM_INVALID_STA)) in iwl_mvm_tx_skb_sta()
1444 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_check_ratid_empty() local
1445 struct iwl_mvm_tid_data *tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_check_ratid_empty()
1446 struct ieee80211_vif *vif = mvmsta->vif; in iwl_mvm_check_ratid_empty()
1449 lockdep_assert_held(&mvmsta->lock); in iwl_mvm_check_ratid_empty()
1866 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_rx_tx_cmd_single() local
1868 iwl_mvm_tx_airtime(mvm, mvmsta, in iwl_mvm_rx_tx_cmd_single()
1872 mvmsta->sta_state < IEEE80211_STA_AUTHORIZED) in iwl_mvm_rx_tx_cmd_single()
1873 iwl_mvm_toggle_tx_ant(mvm, &mvmsta->tx_ant); in iwl_mvm_rx_tx_cmd_single()
1877 &mvmsta->tid_data[tid]; in iwl_mvm_rx_tx_cmd_single()
1880 spin_lock_bh(&mvmsta->lock); in iwl_mvm_rx_tx_cmd_single()
1887 iwl_mvm_count_mpdu(mvmsta, sta_id, 1, true, 0); in iwl_mvm_rx_tx_cmd_single()
1895 if (mvmsta->sleep_tx_count) { in iwl_mvm_rx_tx_cmd_single()
1896 mvmsta->sleep_tx_count--; in iwl_mvm_rx_tx_cmd_single()
1897 if (mvmsta->sleep_tx_count && in iwl_mvm_rx_tx_cmd_single()
1916 spin_unlock_bh(&mvmsta->lock); in iwl_mvm_rx_tx_cmd_single()
1921 mvmsta->sleep_tx_count = 0; in iwl_mvm_rx_tx_cmd_single()
1926 if (mvmsta->next_status_eosp) { in iwl_mvm_rx_tx_cmd_single()
1927 mvmsta->next_status_eosp = false; in iwl_mvm_rx_tx_cmd_single()
1999 struct iwl_mvm_sta *mvmsta; in iwl_mvm_rx_tx_cmd_agg() local
2011 mvmsta = iwl_mvm_sta_from_staid_rcu(mvm, sta_id); in iwl_mvm_rx_tx_cmd_agg()
2019 if (!WARN_ON_ONCE(!mvmsta)) { in iwl_mvm_rx_tx_cmd_agg()
2020 mvmsta->tid_data[tid].rate_n_flags = in iwl_mvm_rx_tx_cmd_agg()
2022 mvmsta->tid_data[tid].tx_time = in iwl_mvm_rx_tx_cmd_agg()
2024 mvmsta->tid_data[tid].lq_color = in iwl_mvm_rx_tx_cmd_agg()
2026 iwl_mvm_tx_airtime(mvm, mvmsta, in iwl_mvm_rx_tx_cmd_agg()
2052 struct iwl_mvm_sta *mvmsta = NULL; in iwl_mvm_tx_reclaim() local
2107 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_tx_reclaim()
2108 tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_tx_reclaim()
2118 spin_lock_bh(&mvmsta->lock); in iwl_mvm_tx_reclaim()
2153 spin_unlock_bh(&mvmsta->lock); in iwl_mvm_tx_reclaim()
2164 if (mvmsta->vif) in iwl_mvm_tx_reclaim()
2166 rcu_dereference(mvmsta->vif->bss_conf.chanctx_conf); in iwl_mvm_tx_reclaim()
2195 struct iwl_mvm_sta *mvmsta; in iwl_mvm_rx_ba_notif() local
2236 mvmsta = iwl_mvm_sta_from_staid_rcu(mvm, sta_id); in iwl_mvm_rx_ba_notif()
2255 if (mvmsta) in iwl_mvm_rx_ba_notif()
2256 mvmsta->tid_data[i].lq_color = lq_color; in iwl_mvm_rx_ba_notif()
2265 if (mvmsta) { in iwl_mvm_rx_ba_notif()
2266 iwl_mvm_tx_airtime(mvm, mvmsta, in iwl_mvm_rx_ba_notif()
2269 iwl_mvm_count_mpdu(mvmsta, sta_id, in iwl_mvm_rx_ba_notif()
2286 mvmsta = iwl_mvm_sta_from_staid_rcu(mvm, sta_id); in iwl_mvm_rx_ba_notif()
2287 if (IWL_FW_CHECK(mvm, !mvmsta, in iwl_mvm_rx_ba_notif()
2294 tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_rx_ba_notif()