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()
45 spin_lock_bh(&sta->rate_ctrl_lock); in rate_control_tx_status()
50 spin_unlock_bh(&sta->rate_ctrl_lock); in rate_control_tx_status()
56 struct sta_info *sta, in rate_control_tx_status_noskb() argument
60 struct ieee80211_sta *ista = &sta->sta; in rate_control_tx_status_noskb()
61 void *priv_sta = sta->rate_ctrl_priv; in rate_control_tx_status_noskb()
63 if (!ref || !test_sta_flag(sta, WLAN_STA_RATE_CONTROL)) in rate_control_tx_status_noskb()
69 spin_lock_bh(&sta->rate_ctrl_lock); in rate_control_tx_status_noskb()
71 spin_unlock_bh(&sta->rate_ctrl_lock); in rate_control_tx_status_noskb()
74 void rate_control_rate_init(struct sta_info *sta);
77 struct sta_info *sta, u32 changed);
80 struct sta_info *sta, gfp_t gfp) in rate_control_alloc_sta() argument
82 spin_lock_init(&sta->rate_ctrl_lock); in rate_control_alloc_sta()
83 return ref->ops->alloc_sta(ref->priv, &sta->sta, gfp); in rate_control_alloc_sta()
86 static inline void rate_control_free_sta(struct sta_info *sta) in rate_control_free_sta() argument
88 struct rate_control_ref *ref = sta->rate_ctrl; in rate_control_free_sta()
89 struct ieee80211_sta *ista = &sta->sta; in rate_control_free_sta()
90 void *priv_sta = sta->rate_ctrl_priv; in rate_control_free_sta()
95 static inline void rate_control_add_sta_debugfs(struct sta_info *sta) in rate_control_add_sta_debugfs() argument
98 struct rate_control_ref *ref = sta->rate_ctrl; in rate_control_add_sta_debugfs()
99 if (ref && sta->debugfs.dir && ref->ops->add_sta_debugfs) in rate_control_add_sta_debugfs()
100 ref->ops->add_sta_debugfs(ref->priv, sta->rate_ctrl_priv, in rate_control_add_sta_debugfs()
101 sta->debugfs.dir); in rate_control_add_sta_debugfs()
105 static inline void rate_control_remove_sta_debugfs(struct sta_info *sta) in rate_control_remove_sta_debugfs() argument
108 struct rate_control_ref *ref = sta->rate_ctrl; in rate_control_remove_sta_debugfs()
110 ref->ops->remove_sta_debugfs(ref->priv, sta->rate_ctrl_priv); in rate_control_remove_sta_debugfs()