Lines Matching refs:ref
129 struct rate_control_ref *ref = file->private_data; in rcname_read() local
130 int len = strlen(ref->ops->name); in rcname_read()
133 ref->ops->name, len); in rcname_read()
147 struct rate_control_ref *ref; in rate_control_alloc() local
149 ref = kmalloc(sizeof(struct rate_control_ref), GFP_KERNEL); in rate_control_alloc()
150 if (!ref) in rate_control_alloc()
152 ref->local = local; in rate_control_alloc()
153 ref->ops = ieee80211_rate_control_ops_get(name); in rate_control_alloc()
154 if (!ref->ops) in rate_control_alloc()
160 debugfs_create_file("name", 0400, debugfsdir, ref, &rcname_ops); in rate_control_alloc()
163 ref->priv = ref->ops->alloc(&local->hw, debugfsdir); in rate_control_alloc()
164 if (!ref->priv) in rate_control_alloc()
166 return ref; in rate_control_alloc()
169 kfree(ref); in rate_control_alloc()
665 struct rate_control_ref *ref = sdata->local->rate_ctrl; in rate_control_get_rate() local
685 ref->ops->get_rate(ref->priv, ista, priv_sta, txrc); in rate_control_get_rate()
719 struct rate_control_ref *ref; in ieee80211_init_rate_ctrl_alg() local
732 ref = rate_control_alloc(name, local); in ieee80211_init_rate_ctrl_alg()
733 if (!ref) { in ieee80211_init_rate_ctrl_alg()
740 local->rate_ctrl = ref; in ieee80211_init_rate_ctrl_alg()
743 ref->ops->name); in ieee80211_init_rate_ctrl_alg()
750 struct rate_control_ref *ref; in rate_control_deinitialize() local
752 ref = local->rate_ctrl; in rate_control_deinitialize()
754 if (!ref) in rate_control_deinitialize()
758 rate_control_free(ref); in rate_control_deinitialize()