Lines Matching refs:mvmsta

302 		struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta);  in iwl_mvm_get_tx_ant()  local
304 return BIT(mvmsta->tx_ant) << RATE_MCS_ANT_POS; in iwl_mvm_get_tx_ant()
400 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_set_tx_cmd_rate() local
402 if (mvmsta->sta_state >= IEEE80211_STA_AUTHORIZED) { in iwl_mvm_set_tx_cmd_rate()
513 struct iwl_mvm_sta *mvmsta = sta ? in iwl_mvm_set_tx_params() local
532 mvmsta->sta_state < IEEE80211_STA_AUTHORIZED) { in iwl_mvm_set_tx_params()
790 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_max_amsdu_size() local
791 enum nl80211_band band = mvmsta->vif->bss_conf.chandef.chan->band; in iwl_mvm_max_amsdu_size()
808 return min_t(unsigned int, mvmsta->max_amsdu_len, in iwl_mvm_max_amsdu_size()
885 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_tx_tso() local
896 if (!mvmsta->max_amsdu_len || in iwl_mvm_tx_tso()
898 !mvmsta->amsdu_enabled) in iwl_mvm_tx_tso()
921 !mvmsta->tid_data[tid].amsdu_in_ampdu_allowed) || in iwl_mvm_tx_tso()
922 !(mvmsta->amsdu_enabled & BIT(tid))) in iwl_mvm_tx_tso()
1017 struct iwl_mvm_sta *mvmsta, in iwl_mvm_tx_airtime() argument
1020 int mac = mvmsta->mac_id_n_color & FW_CTXT_ID_MSK; in iwl_mvm_tx_airtime()
1038 struct iwl_mvm_sta *mvmsta, int tid) in iwl_mvm_tx_pkt_queued() argument
1041 int mac = mvmsta->mac_id_n_color & FW_CTXT_ID_MSK; in iwl_mvm_tx_pkt_queued()
1064 struct iwl_mvm_sta *mvmsta; in iwl_mvm_tx_mpdu() local
1073 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_tx_mpdu()
1080 if (WARN_ON_ONCE(!mvmsta)) in iwl_mvm_tx_mpdu()
1083 if (WARN_ON_ONCE(mvmsta->sta_id == IWL_MVM_INVALID_STA)) in iwl_mvm_tx_mpdu()
1093 sta, mvmsta->sta_id); in iwl_mvm_tx_mpdu()
1104 spin_lock(&mvmsta->lock); in iwl_mvm_tx_mpdu()
1117 mvmsta->tid_data[tid].state != IWL_AGG_ON, in iwl_mvm_tx_mpdu()
1119 mvmsta->tid_data[tid].state, tid)) in iwl_mvm_tx_mpdu()
1122 seq_number = mvmsta->tid_data[tid].seq_number; in iwl_mvm_tx_mpdu()
1137 txq_id = mvmsta->tid_data[tid].txq_id; in iwl_mvm_tx_mpdu()
1143 spin_unlock(&mvmsta->lock); in iwl_mvm_tx_mpdu()
1168 mvmsta->sta_id, tid, txq_id, in iwl_mvm_tx_mpdu()
1183 mvmsta->tid_data[tid].seq_number = seq_number + 0x10; in iwl_mvm_tx_mpdu()
1185 spin_unlock(&mvmsta->lock); in iwl_mvm_tx_mpdu()
1187 if (iwl_mvm_tx_pkt_queued(mvm, mvmsta, in iwl_mvm_tx_mpdu()
1195 spin_unlock(&mvmsta->lock); in iwl_mvm_tx_mpdu()
1197 IWL_DEBUG_TX(mvm, "TX to [%d|%d] dropped\n", mvmsta->sta_id, tid); in iwl_mvm_tx_mpdu()
1204 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_tx_skb_sta() local
1210 if (WARN_ON_ONCE(!mvmsta)) in iwl_mvm_tx_skb_sta()
1213 if (WARN_ON_ONCE(mvmsta->sta_id == IWL_MVM_INVALID_STA)) in iwl_mvm_tx_skb_sta()
1252 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_check_ratid_empty() local
1253 struct iwl_mvm_tid_data *tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_check_ratid_empty()
1254 struct ieee80211_vif *vif = mvmsta->vif; in iwl_mvm_check_ratid_empty()
1257 lockdep_assert_held(&mvmsta->lock); in iwl_mvm_check_ratid_empty()
1667 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_rx_tx_cmd_single() local
1669 iwl_mvm_tx_airtime(mvm, mvmsta, in iwl_mvm_rx_tx_cmd_single()
1673 mvmsta->sta_state < IEEE80211_STA_AUTHORIZED) in iwl_mvm_rx_tx_cmd_single()
1674 iwl_mvm_toggle_tx_ant(mvm, &mvmsta->tx_ant); in iwl_mvm_rx_tx_cmd_single()
1678 &mvmsta->tid_data[tid]; in iwl_mvm_rx_tx_cmd_single()
1681 spin_lock_bh(&mvmsta->lock); in iwl_mvm_rx_tx_cmd_single()
1695 if (mvmsta->sleep_tx_count) { in iwl_mvm_rx_tx_cmd_single()
1696 mvmsta->sleep_tx_count--; in iwl_mvm_rx_tx_cmd_single()
1697 if (mvmsta->sleep_tx_count && in iwl_mvm_rx_tx_cmd_single()
1716 spin_unlock_bh(&mvmsta->lock); in iwl_mvm_rx_tx_cmd_single()
1721 mvmsta->sleep_tx_count = 0; in iwl_mvm_rx_tx_cmd_single()
1726 if (mvmsta->next_status_eosp) { in iwl_mvm_rx_tx_cmd_single()
1727 mvmsta->next_status_eosp = false; in iwl_mvm_rx_tx_cmd_single()
1799 struct iwl_mvm_sta *mvmsta; in iwl_mvm_rx_tx_cmd_agg() local
1811 mvmsta = iwl_mvm_sta_from_staid_rcu(mvm, sta_id); in iwl_mvm_rx_tx_cmd_agg()
1819 if (!WARN_ON_ONCE(!mvmsta)) { in iwl_mvm_rx_tx_cmd_agg()
1820 mvmsta->tid_data[tid].rate_n_flags = in iwl_mvm_rx_tx_cmd_agg()
1822 mvmsta->tid_data[tid].tx_time = in iwl_mvm_rx_tx_cmd_agg()
1824 mvmsta->tid_data[tid].lq_color = in iwl_mvm_rx_tx_cmd_agg()
1826 iwl_mvm_tx_airtime(mvm, mvmsta, in iwl_mvm_rx_tx_cmd_agg()
1852 struct iwl_mvm_sta *mvmsta = NULL; in iwl_mvm_tx_reclaim() local
1905 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_tx_reclaim()
1906 tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_tx_reclaim()
1916 spin_lock_bh(&mvmsta->lock); in iwl_mvm_tx_reclaim()
1951 spin_unlock_bh(&mvmsta->lock); in iwl_mvm_tx_reclaim()
1960 if (mvmsta->vif) in iwl_mvm_tx_reclaim()
1962 rcu_dereference(mvmsta->vif->bss_conf.chanctx_conf); in iwl_mvm_tx_reclaim()
1994 struct iwl_mvm_sta *mvmsta; in iwl_mvm_rx_ba_notif() local
2022 mvmsta = iwl_mvm_sta_from_staid_rcu(mvm, sta_id); in iwl_mvm_rx_ba_notif()
2041 if (mvmsta) in iwl_mvm_rx_ba_notif()
2042 mvmsta->tid_data[i].lq_color = lq_color; in iwl_mvm_rx_ba_notif()
2051 if (mvmsta) in iwl_mvm_rx_ba_notif()
2052 iwl_mvm_tx_airtime(mvm, mvmsta, in iwl_mvm_rx_ba_notif()
2074 mvmsta = iwl_mvm_sta_from_staid_rcu(mvm, sta_id); in iwl_mvm_rx_ba_notif()
2075 if (WARN_ON_ONCE(!mvmsta)) { in iwl_mvm_rx_ba_notif()
2080 tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_rx_ba_notif()