Lines Matching defs:ref
35 struct rate_control_ref *ref = sta->rate_ctrl;
43 if (!ref)
68 ref->ops->rate_init(ref->priv, sband, &chanctx_conf->def, ista,
93 struct rate_control_ref *ref = local->rate_ctrl;
98 if (!ref || !test_sta_flag(sta, WLAN_STA_RATE_CONTROL))
107 if (ref->ops->tx_status_ext)
108 ref->ops->tx_status_ext(ref->priv, sband, priv_sta, st);
110 ref->ops->tx_status(ref->priv, sband, st->sta, priv_sta, st->skb);
122 struct rate_control_ref *ref = local->rate_ctrl;
128 if (ref && ref->ops->rate_update) {
138 ref->ops->rate_update(ref->priv, sband, &chanctx_conf->def,
248 struct rate_control_ref *ref = file->private_data;
249 int len = strlen(ref->ops->name);
252 ref->ops->name, len);
264 struct rate_control_ref *ref;
266 ref = kmalloc(sizeof(struct rate_control_ref), GFP_KERNEL);
267 if (!ref)
269 ref->ops = ieee80211_rate_control_ops_get(name);
270 if (!ref->ops)
273 ref->priv = ref->ops->alloc(&local->hw);
274 if (!ref->priv)
276 return ref;
279 kfree(ref);
931 struct rate_control_ref *ref = sdata->local->rate_ctrl;
956 ref->ops->get_rate(ref->priv, ista, priv_sta, txrc);
1003 struct rate_control_ref *ref;
1016 ref = rate_control_alloc(name, local);
1017 if (!ref) {
1024 local->rate_ctrl = ref;
1027 ref->ops->name);
1034 struct rate_control_ref *ref;
1036 ref = local->rate_ctrl;
1038 if (!ref)
1042 rate_control_free(local, ref);