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->deflink.agg.max_amsdu_len; in rs_set_amsdu_len()
1511 mvmsta->max_amsdu_len = in rs_set_amsdu_len()
1514 sta->deflink.agg.max_rc_amsdu_len = mvmsta->max_amsdu_len; in rs_set_amsdu_len()
1517 if (mvmsta->amsdu_enabled) in rs_set_amsdu_len()
2070 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in rs_rate_scale_perform() local
2073 lq_sta->is_agg = !!mvmsta->agg_tids; in rs_rate_scale_perform()
2322 rs_tl_turn_on_agg(mvm, mvmsta, tid, lq_sta, sta); in rs_rate_scale_perform()
2490 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in rs_get_initial_rate() local
2552 u32 bw = mvmsta->sta_state < IEEE80211_STA_AUTHORIZED ? in rs_get_initial_rate()
2601 struct iwl_mvm_sta *mvmsta, in rs_update_last_rssi() argument
2604 struct iwl_lq_sta *lq_sta = &mvmsta->lq_sta.rs_drv; in rs_update_last_rssi()
2714 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in rs_drv_alloc_sta() local
2717 struct iwl_lq_sta *lq_sta = &mvmsta->lq_sta.rs_drv; in rs_drv_alloc_sta()
2923 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in rs_drv_rate_init() local
2924 struct iwl_lq_sta *lq_sta = &mvmsta->lq_sta.rs_drv; in rs_drv_rate_init()
2928 lockdep_assert_held(&mvmsta->lq_sta.rs_drv.pers.lock); in rs_drv_rate_init()
2935 lq_sta->lq.sta_id = mvmsta->sta_id; in rs_drv_rate_init()
2936 mvmsta->amsdu_enabled = 0; in rs_drv_rate_init()
2937 mvmsta->max_amsdu_len = sta->cur->max_amsdu_len; in rs_drv_rate_init()
2947 mvmsta->sta_id); in rs_drv_rate_init()
3038 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in __iwl_mvm_rs_tx_status() local
3039 struct iwl_lq_sta *lq_sta = &mvmsta->lq_sta.rs_drv; in __iwl_mvm_rs_tx_status()
3192 rs_collect_tlc_data(mvm, mvmsta, tid, curr_tbl, in __iwl_mvm_rs_tx_status()
3235 rs_collect_tlc_data(mvm, mvmsta, tid, tmp_tbl, in __iwl_mvm_rs_tx_status()
3258 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_rs_tx_status() local
3263 if (!spin_trylock(&mvmsta->lq_sta.rs_drv.pers.lock)) in iwl_mvm_rs_tx_status()
3267 spin_unlock(&mvmsta->lq_sta.rs_drv.pers.lock); in iwl_mvm_rs_tx_status()
3442 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in rs_bfer_active_iter() local
3443 struct iwl_lq_cmd *lq_cmd = &mvmsta->lq_sta.rs_drv.lq; in rs_bfer_active_iter()
3453 data->bfer_mvmsta = mvmsta; in rs_bfer_active_iter()
3501 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in rs_set_lq_ss_params() local
3554 if (rs_bfer_priority_cmp(mvmsta, bfer_mvmsta) > 0) { in rs_set_lq_ss_params()
3578 struct iwl_mvm_sta *mvmsta; in rs_fill_lq_cmd() local
3601 mvmsta = iwl_mvm_sta_from_mac80211(sta); in rs_fill_lq_cmd()
3602 mvmvif = iwl_mvm_vif_from_mac80211(mvmsta->vif); in rs_fill_lq_cmd()
3608 lq_cmd->agg_frame_cnt_limit = mvmsta->max_agg_bufsize; in rs_fill_lq_cmd()
3618 if (mvmsta->vif->p2p) in rs_fill_lq_cmd()
3752 struct iwl_mvm_sta *mvmsta = in rs_sta_dbgfs_scale_table_read() local
3790 (mvmsta->amsdu_enabled) ? "AMSDU on" : ""); in rs_sta_dbgfs_scale_table_read()
4052 struct iwl_mvm_sta *mvmsta; in rs_drv_add_sta_debugfs() local
4054 mvmsta = container_of(lq_sta, struct iwl_mvm_sta, lq_sta.rs_drv); in rs_drv_add_sta_debugfs()
4056 if (!mvmsta->vif) in rs_drv_add_sta_debugfs()
4109 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_rs_rate_init() local
4111 spin_lock(&mvmsta->lq_sta.rs_drv.pers.lock); in iwl_mvm_rs_rate_init()
4113 spin_unlock(&mvmsta->lq_sta.rs_drv.pers.lock); in iwl_mvm_rs_rate_init()
4127 static int rs_drv_tx_protection(struct iwl_mvm *mvm, struct iwl_mvm_sta *mvmsta, in rs_drv_tx_protection() argument
4130 struct iwl_lq_cmd *lq = &mvmsta->lq_sta.rs_drv.lq; in rs_drv_tx_protection()
4135 if (mvmsta->tx_protection == 0) in rs_drv_tx_protection()
4137 mvmsta->tx_protection++; in rs_drv_tx_protection()
4139 mvmsta->tx_protection--; in rs_drv_tx_protection()
4140 if (mvmsta->tx_protection == 0) in rs_drv_tx_protection()
4153 int iwl_mvm_tx_protection(struct iwl_mvm *mvm, struct iwl_mvm_sta *mvmsta, in iwl_mvm_tx_protection() argument
4157 return rs_fw_tx_protection(mvm, mvmsta, enable); in iwl_mvm_tx_protection()
4159 return rs_drv_tx_protection(mvm, mvmsta, enable); in iwl_mvm_tx_protection()