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()
45 if (ref->ops->tx_status) in rate_control_tx_status()
46 ref->ops->tx_status(ref->priv, sband, ista, priv_sta, skb); in rate_control_tx_status()
48 ref->ops->tx_status_noskb(ref->priv, sband, ista, priv_sta, info); in rate_control_tx_status()
57 struct rate_control_ref *ref = local->rate_ctrl; in rate_control_tx_status_noskb() local
61 if (!ref || !test_sta_flag(sta, WLAN_STA_RATE_CONTROL)) in rate_control_tx_status_noskb()
64 if (WARN_ON_ONCE(!ref->ops->tx_status_noskb)) in rate_control_tx_status_noskb()
67 ref->ops->tx_status_noskb(ref->priv, sband, ista, priv_sta, info); in rate_control_tx_status_noskb()
73 struct rate_control_ref *ref = sta->rate_ctrl; in rate_control_rate_init() local
81 if (!ref) in rate_control_rate_init()
94 ref->ops->rate_init(ref->priv, sband, &chanctx_conf->def, ista, in rate_control_rate_init()
104 struct rate_control_ref *ref = local->rate_ctrl; in rate_control_rate_update() local
109 if (ref && ref->ops->rate_update) { in rate_control_rate_update()
118 ref->ops->rate_update(ref->priv, sband, &chanctx_conf->def, in rate_control_rate_update()
125 static inline void *rate_control_alloc_sta(struct rate_control_ref *ref, in rate_control_alloc_sta() argument
129 return ref->ops->alloc_sta(ref->priv, sta, gfp); in rate_control_alloc_sta()
134 struct rate_control_ref *ref = sta->rate_ctrl; in rate_control_free_sta() local
138 ref->ops->free_sta(ref->priv, ista, priv_sta); in rate_control_free_sta()
144 struct rate_control_ref *ref = sta->rate_ctrl; in rate_control_add_sta_debugfs() local
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()
154 struct rate_control_ref *ref = sta->rate_ctrl; in rate_control_remove_sta_debugfs() local
155 if (ref && ref->ops->remove_sta_debugfs) in rate_control_remove_sta_debugfs()
156 ref->ops->remove_sta_debugfs(ref->priv, sta->rate_ctrl_priv); in rate_control_remove_sta_debugfs()