Lines Matching refs:mvmsta

316 		struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta);  in iwl_mvm_get_tx_ant()  local
318 return BIT(mvmsta->tx_ant) << RATE_MCS_ANT_POS; in iwl_mvm_get_tx_ant()
396 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_set_tx_cmd_rate() local
398 if (mvmsta->sta_state >= IEEE80211_STA_AUTHORIZED) { in iwl_mvm_set_tx_cmd_rate()
515 struct iwl_mvm_sta *mvmsta = sta ? in iwl_mvm_set_tx_params() local
542 mvmsta->sta_state < IEEE80211_STA_AUTHORIZED) { in iwl_mvm_set_tx_params()
794 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_max_amsdu_size() local
795 enum nl80211_band band = mvmsta->vif->bss_conf.chandef.chan->band; in iwl_mvm_max_amsdu_size()
816 return min_t(unsigned int, mvmsta->max_amsdu_len, in iwl_mvm_max_amsdu_size()
895 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_tx_tso() local
906 if (!mvmsta->max_amsdu_len || in iwl_mvm_tx_tso()
908 !mvmsta->amsdu_enabled) in iwl_mvm_tx_tso()
931 !mvmsta->tid_data[tid].amsdu_in_ampdu_allowed) in iwl_mvm_tx_tso()
934 if (iwl_mvm_vif_low_latency(iwl_mvm_vif_from_mac80211(mvmsta->vif)) || in iwl_mvm_tx_tso()
935 !(mvmsta->amsdu_enabled & BIT(tid))) in iwl_mvm_tx_tso()
1025 struct iwl_mvm_sta *mvmsta, in iwl_mvm_tx_airtime() argument
1028 int mac = mvmsta->mac_id_n_color & FW_CTXT_ID_MSK; in iwl_mvm_tx_airtime()
1046 struct iwl_mvm_sta *mvmsta, int tid) in iwl_mvm_tx_pkt_queued() argument
1049 int mac = mvmsta->mac_id_n_color & FW_CTXT_ID_MSK; in iwl_mvm_tx_pkt_queued()
1072 struct iwl_mvm_sta *mvmsta; in iwl_mvm_tx_mpdu() local
1081 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_tx_mpdu()
1088 if (WARN_ON_ONCE(!mvmsta)) in iwl_mvm_tx_mpdu()
1091 if (WARN_ON_ONCE(mvmsta->sta_id == IWL_MVM_INVALID_STA)) in iwl_mvm_tx_mpdu()
1098 sta, mvmsta->sta_id); in iwl_mvm_tx_mpdu()
1109 spin_lock(&mvmsta->lock); in iwl_mvm_tx_mpdu()
1122 mvmsta->tid_data[tid].state != IWL_AGG_ON, in iwl_mvm_tx_mpdu()
1124 mvmsta->tid_data[tid].state, tid)) in iwl_mvm_tx_mpdu()
1127 seq_number = mvmsta->tid_data[tid].seq_number; in iwl_mvm_tx_mpdu()
1142 txq_id = mvmsta->tid_data[tid].txq_id; in iwl_mvm_tx_mpdu()
1148 spin_unlock(&mvmsta->lock); in iwl_mvm_tx_mpdu()
1173 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() local
1210 if (WARN_ON_ONCE(!mvmsta)) in iwl_mvm_tx_skb()
1213 if (WARN_ON_ONCE(mvmsta->sta_id == IWL_MVM_INVALID_STA)) in iwl_mvm_tx_skb()
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()
1602 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_rx_tx_cmd_single() local
1604 iwl_mvm_tx_airtime(mvm, mvmsta, in iwl_mvm_rx_tx_cmd_single()
1608 mvmsta->sta_state < IEEE80211_STA_AUTHORIZED) in iwl_mvm_rx_tx_cmd_single()
1609 iwl_mvm_toggle_tx_ant(mvm, &mvmsta->tx_ant); in iwl_mvm_rx_tx_cmd_single()
1613 &mvmsta->tid_data[tid]; in iwl_mvm_rx_tx_cmd_single()
1616 spin_lock_bh(&mvmsta->lock); in iwl_mvm_rx_tx_cmd_single()
1630 if (mvmsta->sleep_tx_count) { in iwl_mvm_rx_tx_cmd_single()
1631 mvmsta->sleep_tx_count--; in iwl_mvm_rx_tx_cmd_single()
1632 if (mvmsta->sleep_tx_count && in iwl_mvm_rx_tx_cmd_single()
1651 spin_unlock_bh(&mvmsta->lock); in iwl_mvm_rx_tx_cmd_single()
1656 mvmsta->sleep_tx_count = 0; in iwl_mvm_rx_tx_cmd_single()
1661 if (mvmsta->next_status_eosp) { in iwl_mvm_rx_tx_cmd_single()
1662 mvmsta->next_status_eosp = false; in iwl_mvm_rx_tx_cmd_single()
1726 struct iwl_mvm_sta *mvmsta; in iwl_mvm_rx_tx_cmd_agg() local
1738 mvmsta = iwl_mvm_sta_from_staid_rcu(mvm, sta_id); in iwl_mvm_rx_tx_cmd_agg()
1746 if (!WARN_ON_ONCE(!mvmsta)) { in iwl_mvm_rx_tx_cmd_agg()
1747 mvmsta->tid_data[tid].rate_n_flags = in iwl_mvm_rx_tx_cmd_agg()
1749 mvmsta->tid_data[tid].tx_time = in iwl_mvm_rx_tx_cmd_agg()
1751 mvmsta->tid_data[tid].lq_color = in iwl_mvm_rx_tx_cmd_agg()
1753 iwl_mvm_tx_airtime(mvm, mvmsta, in iwl_mvm_rx_tx_cmd_agg()
1778 struct iwl_mvm_sta *mvmsta; in iwl_mvm_tx_reclaim() local
1797 mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_tx_reclaim()
1798 tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_tx_reclaim()
1817 spin_lock_bh(&mvmsta->lock); in iwl_mvm_tx_reclaim()
1859 spin_unlock_bh(&mvmsta->lock); in iwl_mvm_tx_reclaim()
1868 if (mvmsta->vif) in iwl_mvm_tx_reclaim()
1870 rcu_dereference(mvmsta->vif->chanctx_conf); in iwl_mvm_tx_reclaim()
1901 struct iwl_mvm_sta *mvmsta; in iwl_mvm_rx_ba_notif() local
1924 mvmsta = iwl_mvm_sta_from_staid_rcu(mvm, sta_id); in iwl_mvm_rx_ba_notif()
1925 if (!mvmsta) in iwl_mvm_rx_ba_notif()
1937 mvmsta->tid_data[i].lq_color = lq_color; in iwl_mvm_rx_ba_notif()
1945 iwl_mvm_tx_airtime(mvm, mvmsta, in iwl_mvm_rx_ba_notif()
1968 mvmsta = iwl_mvm_sta_from_staid_rcu(mvm, sta_id); in iwl_mvm_rx_ba_notif()
1969 if (WARN_ON_ONCE(!mvmsta)) { in iwl_mvm_rx_ba_notif()
1974 tid_data = &mvmsta->tid_data[tid]; in iwl_mvm_rx_ba_notif()