Lines Matching refs:sta
29 struct sta_info *sta,
34 struct sta_info *sta, in rate_control_tx_status() argument
38 struct ieee80211_sta *ista = &sta->sta; in rate_control_tx_status()
39 void *priv_sta = sta->rate_ctrl_priv; in rate_control_tx_status()
42 if (!ref || !test_sta_flag(sta, WLAN_STA_RATE_CONTROL)) in rate_control_tx_status()
54 struct sta_info *sta, in rate_control_tx_status_noskb() argument
58 struct ieee80211_sta *ista = &sta->sta; in rate_control_tx_status_noskb()
59 void *priv_sta = sta->rate_ctrl_priv; in rate_control_tx_status_noskb()
61 if (!ref || !test_sta_flag(sta, WLAN_STA_RATE_CONTROL)) in rate_control_tx_status_noskb()
70 static inline void rate_control_rate_init(struct sta_info *sta) in rate_control_rate_init() argument
72 struct ieee80211_local *local = sta->sdata->local; in rate_control_rate_init()
73 struct rate_control_ref *ref = sta->rate_ctrl; in rate_control_rate_init()
74 struct ieee80211_sta *ista = &sta->sta; in rate_control_rate_init()
75 void *priv_sta = sta->rate_ctrl_priv; in rate_control_rate_init()
79 ieee80211_sta_set_rx_nss(sta); in rate_control_rate_init()
86 chanctx_conf = rcu_dereference(sta->sdata->vif.chanctx_conf); in rate_control_rate_init()
97 set_sta_flag(sta, WLAN_STA_RATE_CONTROL); in rate_control_rate_init()
102 struct sta_info *sta, u32 changed) in rate_control_rate_update() argument
105 struct ieee80211_sta *ista = &sta->sta; in rate_control_rate_update()
106 void *priv_sta = sta->rate_ctrl_priv; in rate_control_rate_update()
112 chanctx_conf = rcu_dereference(sta->sdata->vif.chanctx_conf); in rate_control_rate_update()
122 drv_sta_rc_update(local, sta->sdata, &sta->sta, changed); in rate_control_rate_update()
126 struct ieee80211_sta *sta, in rate_control_alloc_sta() argument
129 return ref->ops->alloc_sta(ref->priv, sta, gfp); in rate_control_alloc_sta()
132 static inline void rate_control_free_sta(struct sta_info *sta) in rate_control_free_sta() argument
134 struct rate_control_ref *ref = sta->rate_ctrl; in rate_control_free_sta()
135 struct ieee80211_sta *ista = &sta->sta; in rate_control_free_sta()
136 void *priv_sta = sta->rate_ctrl_priv; in rate_control_free_sta()
141 static inline void rate_control_add_sta_debugfs(struct sta_info *sta) in rate_control_add_sta_debugfs() argument
144 struct rate_control_ref *ref = sta->rate_ctrl; in rate_control_add_sta_debugfs()
145 if (ref && sta->debugfs.dir && ref->ops->add_sta_debugfs) in rate_control_add_sta_debugfs()
146 ref->ops->add_sta_debugfs(ref->priv, sta->rate_ctrl_priv, in rate_control_add_sta_debugfs()
147 sta->debugfs.dir); in rate_control_add_sta_debugfs()
151 static inline void rate_control_remove_sta_debugfs(struct sta_info *sta) in rate_control_remove_sta_debugfs() argument
154 struct rate_control_ref *ref = sta->rate_ctrl; in rate_control_remove_sta_debugfs()
156 ref->ops->remove_sta_debugfs(ref->priv, sta->rate_ctrl_priv); in rate_control_remove_sta_debugfs()