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()
1189 mvmsta->tid_data[tid].seq_number = seq_number + 0x10; in iwl_mvm_tx_mpdu()
1191 spin_unlock(&mvmsta->lock); in iwl_mvm_tx_mpdu()
1193 if (iwl_mvm_tx_pkt_queued(mvm, mvmsta, in iwl_mvm_tx_mpdu()
1201 spin_unlock(&mvmsta->lock); in iwl_mvm_tx_mpdu()
1203 IWL_DEBUG_TX(mvm, "TX to [%d|%d] dropped\n", mvmsta->sta_id, tid); in iwl_mvm_tx_mpdu()
1210 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_tx_skb_sta() local
1217 if (WARN_ON_ONCE(!mvmsta)) in iwl_mvm_tx_skb_sta()
1220 if (WARN_ON_ONCE(mvmsta->sta_id == IWL_MVM_INVALID_STA)) in iwl_mvm_tx_skb_sta()
1268 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_check_ratid_empty() local
1269 struct iwl_mvm_tid_data *tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_check_ratid_empty()
1270 struct ieee80211_vif *vif = mvmsta->vif; in iwl_mvm_check_ratid_empty()
1273 lockdep_assert_held(&mvmsta->lock); in iwl_mvm_check_ratid_empty()
1683 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_rx_tx_cmd_single() local
1685 iwl_mvm_tx_airtime(mvm, mvmsta, in iwl_mvm_rx_tx_cmd_single()
1689 mvmsta->sta_state < IEEE80211_STA_AUTHORIZED) in iwl_mvm_rx_tx_cmd_single()
1690 iwl_mvm_toggle_tx_ant(mvm, &mvmsta->tx_ant); in iwl_mvm_rx_tx_cmd_single()
1694 &mvmsta->tid_data[tid]; in iwl_mvm_rx_tx_cmd_single()
1697 spin_lock_bh(&mvmsta->lock); in iwl_mvm_rx_tx_cmd_single()
1711 if (mvmsta->sleep_tx_count) { in iwl_mvm_rx_tx_cmd_single()
1712 mvmsta->sleep_tx_count--; in iwl_mvm_rx_tx_cmd_single()
1713 if (mvmsta->sleep_tx_count && in iwl_mvm_rx_tx_cmd_single()
1732 spin_unlock_bh(&mvmsta->lock); in iwl_mvm_rx_tx_cmd_single()
1737 mvmsta->sleep_tx_count = 0; in iwl_mvm_rx_tx_cmd_single()
1742 if (mvmsta->next_status_eosp) { in iwl_mvm_rx_tx_cmd_single()
1743 mvmsta->next_status_eosp = false; in iwl_mvm_rx_tx_cmd_single()
1815 struct iwl_mvm_sta *mvmsta; in iwl_mvm_rx_tx_cmd_agg() local
1827 mvmsta = iwl_mvm_sta_from_staid_rcu(mvm, sta_id); in iwl_mvm_rx_tx_cmd_agg()
1835 if (!WARN_ON_ONCE(!mvmsta)) { in iwl_mvm_rx_tx_cmd_agg()
1836 mvmsta->tid_data[tid].rate_n_flags = in iwl_mvm_rx_tx_cmd_agg()
1838 mvmsta->tid_data[tid].tx_time = in iwl_mvm_rx_tx_cmd_agg()
1840 mvmsta->tid_data[tid].lq_color = in iwl_mvm_rx_tx_cmd_agg()
1842 iwl_mvm_tx_airtime(mvm, mvmsta, in iwl_mvm_rx_tx_cmd_agg()
1868 struct iwl_mvm_sta *mvmsta = NULL; in iwl_mvm_tx_reclaim() local
1921 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_tx_reclaim()
1922 tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_tx_reclaim()
1932 spin_lock_bh(&mvmsta->lock); in iwl_mvm_tx_reclaim()
1967 spin_unlock_bh(&mvmsta->lock); in iwl_mvm_tx_reclaim()
1976 if (mvmsta->vif) in iwl_mvm_tx_reclaim()
1978 rcu_dereference(mvmsta->vif->bss_conf.chanctx_conf); in iwl_mvm_tx_reclaim()
2010 struct iwl_mvm_sta *mvmsta; in iwl_mvm_rx_ba_notif() local
2038 mvmsta = iwl_mvm_sta_from_staid_rcu(mvm, sta_id); in iwl_mvm_rx_ba_notif()
2057 if (mvmsta) in iwl_mvm_rx_ba_notif()
2058 mvmsta->tid_data[i].lq_color = lq_color; in iwl_mvm_rx_ba_notif()
2067 if (mvmsta) in iwl_mvm_rx_ba_notif()
2068 iwl_mvm_tx_airtime(mvm, mvmsta, in iwl_mvm_rx_ba_notif()
2090 mvmsta = iwl_mvm_sta_from_staid_rcu(mvm, sta_id); in iwl_mvm_rx_ba_notif()
2091 if (WARN_ON_ONCE(!mvmsta)) { in iwl_mvm_rx_ba_notif()
2096 tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_rx_ba_notif()