Lines Matching refs:ref

37 	struct rate_control_ref *ref = local->rate_ctrl;  in rate_control_tx_status()  local
42 if (!ref || !test_sta_flag(sta, WLAN_STA_RATE_CONTROL)) in rate_control_tx_status()
46 if (ref->ops->tx_status) in rate_control_tx_status()
47 ref->ops->tx_status(ref->priv, sband, ista, priv_sta, skb); in rate_control_tx_status()
49 ref->ops->tx_status_noskb(ref->priv, sband, ista, priv_sta, info); in rate_control_tx_status()
59 struct rate_control_ref *ref = local->rate_ctrl; in rate_control_tx_status_noskb() local
63 if (!ref || !test_sta_flag(sta, WLAN_STA_RATE_CONTROL)) in rate_control_tx_status_noskb()
66 if (WARN_ON_ONCE(!ref->ops->tx_status_noskb)) in rate_control_tx_status_noskb()
70 ref->ops->tx_status_noskb(ref->priv, sband, ista, priv_sta, info); in rate_control_tx_status_noskb()
79 static inline void *rate_control_alloc_sta(struct rate_control_ref *ref, in rate_control_alloc_sta() argument
83 return ref->ops->alloc_sta(ref->priv, &sta->sta, gfp); in rate_control_alloc_sta()
88 struct rate_control_ref *ref = sta->rate_ctrl; in rate_control_free_sta() local
92 ref->ops->free_sta(ref->priv, ista, priv_sta); in rate_control_free_sta()
98 struct rate_control_ref *ref = sta->rate_ctrl; in rate_control_add_sta_debugfs() local
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()
108 struct rate_control_ref *ref = sta->rate_ctrl; in rate_control_remove_sta_debugfs() local
109 if (ref && ref->ops->remove_sta_debugfs) in rate_control_remove_sta_debugfs()
110 ref->ops->remove_sta_debugfs(ref->priv, sta->rate_ctrl_priv); in rate_control_remove_sta_debugfs()