Lines Matching refs:mvmsta
582 static void rs_tl_turn_on_agg(struct iwl_mvm *mvm, struct iwl_mvm_sta *mvmsta, in rs_tl_turn_on_agg() argument
600 tid_data = &mvmsta->tid_data[tid]; in rs_tl_turn_on_agg()
601 if (mvmsta->sta_state >= IEEE80211_STA_AUTHORIZED && in rs_tl_turn_on_agg()
717 struct iwl_mvm_sta *mvmsta, in rs_update_tid_tpt_stats() argument
725 tid_data = &mvmsta->tid_data[tid]; in rs_update_tid_tpt_stats()
747 struct iwl_mvm_sta *mvmsta, u8 tid, in rs_collect_tlc_data() argument
757 struct lq_sta_pers *pers = &mvmsta->lq_sta.rs_drv.pers; in rs_collect_tlc_data()
763 rs_update_tid_tpt_stats(mvm, mvmsta, tid, successes); in rs_collect_tlc_data()
1169 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in rs_drv_mac80211_tx_status() local
1171 if (!mvmsta->vif) in rs_drv_mac80211_tx_status()
1491 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in rs_set_amsdu_len() local
1503 mvmsta->amsdu_enabled = 0; in rs_set_amsdu_len()
1505 mvmsta->amsdu_enabled = 0xFFFF; in rs_set_amsdu_len()
1507 if (mvmsta->vif->bss_conf.he_support && in rs_set_amsdu_len()
1509 mvmsta->max_amsdu_len = sta->max_amsdu_len; in rs_set_amsdu_len()
1511 mvmsta->max_amsdu_len = min_t(int, sta->max_amsdu_len, 8500); in rs_set_amsdu_len()
1513 sta->max_rc_amsdu_len = mvmsta->max_amsdu_len; in rs_set_amsdu_len()
1516 if (mvmsta->amsdu_enabled) in rs_set_amsdu_len()
2069 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in rs_rate_scale_perform() local
2072 lq_sta->is_agg = !!mvmsta->agg_tids; in rs_rate_scale_perform()
2321 rs_tl_turn_on_agg(mvm, mvmsta, tid, lq_sta, sta); in rs_rate_scale_perform()
2489 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in rs_get_initial_rate() local
2551 u32 bw = mvmsta->sta_state < IEEE80211_STA_AUTHORIZED ? in rs_get_initial_rate()
2600 struct iwl_mvm_sta *mvmsta, in rs_update_last_rssi() argument
2603 struct iwl_lq_sta *lq_sta = &mvmsta->lq_sta.rs_drv; in rs_update_last_rssi()
2713 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in rs_drv_alloc_sta() local
2716 struct iwl_lq_sta *lq_sta = &mvmsta->lq_sta.rs_drv; in rs_drv_alloc_sta()
2922 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in rs_drv_rate_init() local
2923 struct iwl_lq_sta *lq_sta = &mvmsta->lq_sta.rs_drv; in rs_drv_rate_init()
2927 lockdep_assert_held(&mvmsta->lq_sta.rs_drv.pers.lock); in rs_drv_rate_init()
2934 lq_sta->lq.sta_id = mvmsta->sta_id; in rs_drv_rate_init()
2935 mvmsta->amsdu_enabled = 0; in rs_drv_rate_init()
2936 mvmsta->max_amsdu_len = sta->max_amsdu_len; in rs_drv_rate_init()
2946 mvmsta->sta_id); in rs_drv_rate_init()
3037 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in __iwl_mvm_rs_tx_status() local
3038 struct iwl_lq_sta *lq_sta = &mvmsta->lq_sta.rs_drv; in __iwl_mvm_rs_tx_status()
3191 rs_collect_tlc_data(mvm, mvmsta, tid, curr_tbl, in __iwl_mvm_rs_tx_status()
3234 rs_collect_tlc_data(mvm, mvmsta, tid, tmp_tbl, in __iwl_mvm_rs_tx_status()
3257 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_rs_tx_status() local
3262 if (!spin_trylock(&mvmsta->lq_sta.rs_drv.pers.lock)) in iwl_mvm_rs_tx_status()
3266 spin_unlock(&mvmsta->lq_sta.rs_drv.pers.lock); in iwl_mvm_rs_tx_status()
3441 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in rs_bfer_active_iter() local
3442 struct iwl_lq_cmd *lq_cmd = &mvmsta->lq_sta.rs_drv.lq; in rs_bfer_active_iter()
3452 data->bfer_mvmsta = mvmsta; in rs_bfer_active_iter()
3500 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in rs_set_lq_ss_params() local
3553 if (rs_bfer_priority_cmp(mvmsta, bfer_mvmsta) > 0) { in rs_set_lq_ss_params()
3577 struct iwl_mvm_sta *mvmsta; in rs_fill_lq_cmd() local
3600 mvmsta = iwl_mvm_sta_from_mac80211(sta); in rs_fill_lq_cmd()
3601 mvmvif = iwl_mvm_vif_from_mac80211(mvmsta->vif); in rs_fill_lq_cmd()
3607 lq_cmd->agg_frame_cnt_limit = mvmsta->max_agg_bufsize; in rs_fill_lq_cmd()
3617 if (mvmsta->vif->p2p) in rs_fill_lq_cmd()
3751 struct iwl_mvm_sta *mvmsta = in rs_sta_dbgfs_scale_table_read() local
3789 (mvmsta->amsdu_enabled) ? "AMSDU on" : ""); in rs_sta_dbgfs_scale_table_read()
4051 struct iwl_mvm_sta *mvmsta; in rs_drv_add_sta_debugfs() local
4053 mvmsta = container_of(lq_sta, struct iwl_mvm_sta, lq_sta.rs_drv); in rs_drv_add_sta_debugfs()
4055 if (!mvmsta->vif) in rs_drv_add_sta_debugfs()
4108 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_rs_rate_init() local
4110 spin_lock(&mvmsta->lq_sta.rs_drv.pers.lock); in iwl_mvm_rs_rate_init()
4112 spin_unlock(&mvmsta->lq_sta.rs_drv.pers.lock); in iwl_mvm_rs_rate_init()
4126 static int rs_drv_tx_protection(struct iwl_mvm *mvm, struct iwl_mvm_sta *mvmsta, in rs_drv_tx_protection() argument
4129 struct iwl_lq_cmd *lq = &mvmsta->lq_sta.rs_drv.lq; in rs_drv_tx_protection()
4134 if (mvmsta->tx_protection == 0) in rs_drv_tx_protection()
4136 mvmsta->tx_protection++; in rs_drv_tx_protection()
4138 mvmsta->tx_protection--; in rs_drv_tx_protection()
4139 if (mvmsta->tx_protection == 0) in rs_drv_tx_protection()
4152 int iwl_mvm_tx_protection(struct iwl_mvm *mvm, struct iwl_mvm_sta *mvmsta, in iwl_mvm_tx_protection() argument
4156 return rs_fw_tx_protection(mvm, mvmsta, enable); in iwl_mvm_tx_protection()
4158 return rs_drv_tx_protection(mvm, mvmsta, enable); in iwl_mvm_tx_protection()