Lines Matching refs:mvmsta

783 	struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta);  in iwl_mvm_tx_tso()  local
797 if (!mvmsta->max_amsdu_len || in iwl_mvm_tx_tso()
799 (!mvmsta->amsdu_enabled && !dbg_max_amsdu_len)) in iwl_mvm_tx_tso()
822 !mvmsta->tid_data[tid].amsdu_in_ampdu_allowed) in iwl_mvm_tx_tso()
825 if (iwl_mvm_vif_low_latency(iwl_mvm_vif_from_mac80211(mvmsta->vif)) || in iwl_mvm_tx_tso()
826 !(mvmsta->amsdu_enabled & BIT(tid))) in iwl_mvm_tx_tso()
829 max_amsdu_len = mvmsta->max_amsdu_len; in iwl_mvm_tx_tso()
961 struct iwl_mvm_sta *mvmsta, in iwl_mvm_tx_airtime() argument
964 int mac = mvmsta->mac_id_n_color & FW_CTXT_ID_MSK; in iwl_mvm_tx_airtime()
977 struct iwl_mvm_sta *mvmsta, int tid) in iwl_mvm_tx_pkt_queued() argument
980 int mac = mvmsta->mac_id_n_color & FW_CTXT_ID_MSK; in iwl_mvm_tx_pkt_queued()
994 struct iwl_mvm_sta *mvmsta; in iwl_mvm_tx_mpdu() local
1003 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_tx_mpdu()
1007 if (WARN_ON_ONCE(!mvmsta)) in iwl_mvm_tx_mpdu()
1010 if (WARN_ON_ONCE(mvmsta->sta_id == IWL_MVM_INVALID_STA)) in iwl_mvm_tx_mpdu()
1014 sta, mvmsta->sta_id); in iwl_mvm_tx_mpdu()
1025 spin_lock(&mvmsta->lock); in iwl_mvm_tx_mpdu()
1038 mvmsta->tid_data[tid].state != IWL_AGG_ON)) in iwl_mvm_tx_mpdu()
1041 seq_number = mvmsta->tid_data[tid].seq_number; in iwl_mvm_tx_mpdu()
1054 txq_id = mvmsta->tid_data[tid].txq_id; in iwl_mvm_tx_mpdu()
1060 !mvmsta->tid_data[tid].is_tid_active)) { in iwl_mvm_tx_mpdu()
1063 iwl_mvm_tx_add_stream(mvm, mvmsta, tid, skb); in iwl_mvm_tx_mpdu()
1070 spin_unlock(&mvmsta->lock); in iwl_mvm_tx_mpdu()
1080 mvmsta->tid_data[tid].is_tid_active = true; in iwl_mvm_tx_mpdu()
1107 IWL_DEBUG_TX(mvm, "TX to [%d|%d] Q:%d - seq: 0x%x\n", mvmsta->sta_id, in iwl_mvm_tx_mpdu()
1117 mvmsta->tid_data[tid].seq_number = seq_number + 0x10; in iwl_mvm_tx_mpdu()
1119 spin_unlock(&mvmsta->lock); in iwl_mvm_tx_mpdu()
1121 iwl_mvm_tx_pkt_queued(mvm, mvmsta, tid == IWL_MAX_TID_COUNT ? 0 : tid); in iwl_mvm_tx_mpdu()
1127 spin_unlock(&mvmsta->lock); in iwl_mvm_tx_mpdu()
1135 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_tx_skb() local
1141 if (WARN_ON_ONCE(!mvmsta)) in iwl_mvm_tx_skb()
1144 if (WARN_ON_ONCE(mvmsta->sta_id == IWL_MVM_INVALID_STA)) in iwl_mvm_tx_skb()
1183 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_check_ratid_empty() local
1184 struct iwl_mvm_tid_data *tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_check_ratid_empty()
1185 struct ieee80211_vif *vif = mvmsta->vif; in iwl_mvm_check_ratid_empty()
1188 lockdep_assert_held(&mvmsta->lock); in iwl_mvm_check_ratid_empty()
1388 struct iwl_mvm_sta *mvmsta; in iwl_mvm_rx_tx_cmd_single() local
1523 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_rx_tx_cmd_single()
1525 iwl_mvm_tx_airtime(mvm, mvmsta, in iwl_mvm_rx_tx_cmd_single()
1530 &mvmsta->tid_data[tid]; in iwl_mvm_rx_tx_cmd_single()
1533 spin_lock_bh(&mvmsta->lock); in iwl_mvm_rx_tx_cmd_single()
1547 if (mvmsta->sleep_tx_count) { in iwl_mvm_rx_tx_cmd_single()
1548 mvmsta->sleep_tx_count--; in iwl_mvm_rx_tx_cmd_single()
1549 if (mvmsta->sleep_tx_count && in iwl_mvm_rx_tx_cmd_single()
1568 spin_unlock_bh(&mvmsta->lock); in iwl_mvm_rx_tx_cmd_single()
1573 mvmsta->sleep_tx_count = 0; in iwl_mvm_rx_tx_cmd_single()
1578 if (mvmsta->next_status_eosp) { in iwl_mvm_rx_tx_cmd_single()
1579 mvmsta->next_status_eosp = false; in iwl_mvm_rx_tx_cmd_single()
1583 mvmsta = NULL; in iwl_mvm_rx_tx_cmd_single()
1646 struct iwl_mvm_sta *mvmsta; in iwl_mvm_rx_tx_cmd_agg() local
1660 mvmsta = iwl_mvm_sta_from_staid_rcu(mvm, sta_id); in iwl_mvm_rx_tx_cmd_agg()
1662 if (!WARN_ON_ONCE(!mvmsta)) { in iwl_mvm_rx_tx_cmd_agg()
1663 mvmsta->tid_data[tid].rate_n_flags = in iwl_mvm_rx_tx_cmd_agg()
1665 mvmsta->tid_data[tid].tx_time = in iwl_mvm_rx_tx_cmd_agg()
1667 mvmsta->tid_data[tid].lq_color = in iwl_mvm_rx_tx_cmd_agg()
1669 iwl_mvm_tx_airtime(mvm, mvmsta, in iwl_mvm_rx_tx_cmd_agg()
1694 struct iwl_mvm_sta *mvmsta; in iwl_mvm_tx_reclaim() local
1713 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_tx_reclaim()
1714 tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_tx_reclaim()
1724 spin_lock_bh(&mvmsta->lock); in iwl_mvm_tx_reclaim()
1775 spin_unlock_bh(&mvmsta->lock); in iwl_mvm_tx_reclaim()
1784 if (mvmsta->vif) in iwl_mvm_tx_reclaim()
1786 rcu_dereference(mvmsta->vif->chanctx_conf); in iwl_mvm_tx_reclaim()
1817 struct iwl_mvm_sta *mvmsta; in iwl_mvm_rx_ba_notif() local
1840 mvmsta = iwl_mvm_sta_from_staid_rcu(mvm, sta_id); in iwl_mvm_rx_ba_notif()
1841 if (!mvmsta) in iwl_mvm_rx_ba_notif()
1853 mvmsta->tid_data[i].lq_color = lq_color; in iwl_mvm_rx_ba_notif()
1861 iwl_mvm_tx_airtime(mvm, mvmsta, in iwl_mvm_rx_ba_notif()
1884 mvmsta = iwl_mvm_sta_from_staid_rcu(mvm, sta_id); in iwl_mvm_rx_ba_notif()
1885 if (WARN_ON_ONCE(!mvmsta)) { in iwl_mvm_rx_ba_notif()
1890 tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_rx_ba_notif()