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->deflink.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()
1170 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in rs_drv_mac80211_tx_status() local
1172 if (!mvmsta->vif) in rs_drv_mac80211_tx_status()
1492 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in rs_set_amsdu_len() local
1493 struct ieee80211_bss_conf *bss_conf = &mvmsta->vif->bss_conf; in rs_set_amsdu_len()
1506 mvmsta->amsdu_enabled = 0; in rs_set_amsdu_len()
1508 mvmsta->amsdu_enabled = 0xFFFF; in rs_set_amsdu_len()
1512 mvmsta->max_amsdu_len = sta->deflink.agg.max_amsdu_len; in rs_set_amsdu_len()
1514 mvmsta->max_amsdu_len = in rs_set_amsdu_len()
1517 sta->deflink.agg.max_rc_amsdu_len = mvmsta->max_amsdu_len; in rs_set_amsdu_len()
1520 if (mvmsta->amsdu_enabled) in rs_set_amsdu_len()
2073 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in rs_rate_scale_perform() local
2076 lq_sta->is_agg = !!mvmsta->agg_tids; in rs_rate_scale_perform()
2325 rs_tl_turn_on_agg(mvm, mvmsta, tid, lq_sta, sta); in rs_rate_scale_perform()
2493 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in rs_get_initial_rate() local
2555 u32 bw = mvmsta->sta_state < IEEE80211_STA_AUTHORIZED ? in rs_get_initial_rate()
2604 struct iwl_mvm_sta *mvmsta, in rs_update_last_rssi() argument
2607 struct iwl_lq_sta *lq_sta = &mvmsta->deflink.lq_sta.rs_drv; in rs_update_last_rssi()
2719 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in rs_drv_alloc_sta() local
2722 struct iwl_lq_sta *lq_sta = &mvmsta->deflink.lq_sta.rs_drv; in rs_drv_alloc_sta()
2927 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in rs_drv_rate_init() local
2928 struct iwl_lq_sta *lq_sta = &mvmsta->deflink.lq_sta.rs_drv; in rs_drv_rate_init()
2932 lockdep_assert_held(&mvmsta->deflink.lq_sta.rs_drv.pers.lock); in rs_drv_rate_init()
2939 lq_sta->lq.sta_id = mvmsta->deflink.sta_id; in rs_drv_rate_init()
2940 mvmsta->amsdu_enabled = 0; in rs_drv_rate_init()
2941 mvmsta->max_amsdu_len = sta->cur->max_amsdu_len; in rs_drv_rate_init()
2951 mvmsta->deflink.sta_id); in rs_drv_rate_init()
3013 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in rs_drv_rate_update() local
3017 if (!mvmsta->vif) in rs_drv_rate_update()
3024 iwl_mvm_rs_rate_init(mvm, mvmsta->vif, sta, in rs_drv_rate_update()
3025 &mvmsta->vif->bss_conf, &sta->deflink, in rs_drv_rate_update()
3045 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in __iwl_mvm_rs_tx_status() local
3046 struct iwl_lq_sta *lq_sta = &mvmsta->deflink.lq_sta.rs_drv; in __iwl_mvm_rs_tx_status()
3199 rs_collect_tlc_data(mvm, mvmsta, tid, curr_tbl, in __iwl_mvm_rs_tx_status()
3242 rs_collect_tlc_data(mvm, mvmsta, tid, tmp_tbl, in __iwl_mvm_rs_tx_status()
3265 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_rs_tx_status() local
3270 if (!spin_trylock_bh(&mvmsta->deflink.lq_sta.rs_drv.pers.lock)) in iwl_mvm_rs_tx_status()
3274 spin_unlock_bh(&mvmsta->deflink.lq_sta.rs_drv.pers.lock); in iwl_mvm_rs_tx_status()
3449 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in rs_bfer_active_iter() local
3450 struct iwl_lq_cmd *lq_cmd = &mvmsta->deflink.lq_sta.rs_drv.lq; in rs_bfer_active_iter()
3460 data->bfer_mvmsta = mvmsta; in rs_bfer_active_iter()
3509 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in rs_set_lq_ss_params() local
3562 if (rs_bfer_priority_cmp(mvmsta, bfer_mvmsta) > 0) { in rs_set_lq_ss_params()
3586 struct iwl_mvm_sta *mvmsta; in rs_fill_lq_cmd() local
3609 mvmsta = iwl_mvm_sta_from_mac80211(sta); in rs_fill_lq_cmd()
3610 mvmvif = iwl_mvm_vif_from_mac80211(mvmsta->vif); in rs_fill_lq_cmd()
3626 if (mvmsta->vif->p2p) in rs_fill_lq_cmd()
3758 struct iwl_mvm_sta *mvmsta = in rs_sta_dbgfs_scale_table_read() local
3796 (mvmsta->amsdu_enabled) ? "AMSDU on" : ""); in rs_sta_dbgfs_scale_table_read()
4058 struct iwl_mvm_sta *mvmsta; in rs_drv_add_sta_debugfs() local
4060 mvmsta = container_of(lq_sta, struct iwl_mvm_sta, in rs_drv_add_sta_debugfs()
4063 if (!mvmsta->vif) in rs_drv_add_sta_debugfs()
4121 struct iwl_mvm_sta *mvmsta = iwl_mvm_sta_from_mac80211(sta); in iwl_mvm_rs_rate_init() local
4123 spin_lock_bh(&mvmsta->deflink.lq_sta.rs_drv.pers.lock); in iwl_mvm_rs_rate_init()
4125 spin_unlock_bh(&mvmsta->deflink.lq_sta.rs_drv.pers.lock); in iwl_mvm_rs_rate_init()
4139 static int rs_drv_tx_protection(struct iwl_mvm *mvm, struct iwl_mvm_sta *mvmsta, in rs_drv_tx_protection() argument
4142 struct iwl_lq_cmd *lq = &mvmsta->deflink.lq_sta.rs_drv.lq; in rs_drv_tx_protection()
4147 if (mvmsta->tx_protection == 0) in rs_drv_tx_protection()
4149 mvmsta->tx_protection++; in rs_drv_tx_protection()
4151 mvmsta->tx_protection--; in rs_drv_tx_protection()
4152 if (mvmsta->tx_protection == 0) in rs_drv_tx_protection()
4167 int iwl_mvm_tx_protection(struct iwl_mvm *mvm, struct iwl_mvm_sta *mvmsta, in iwl_mvm_tx_protection() argument
4171 return rs_fw_tx_protection(mvm, mvmsta, enable); in iwl_mvm_tx_protection()
4173 return rs_drv_tx_protection(mvm, mvmsta, enable); in iwl_mvm_tx_protection()