• Home
  • Raw
  • Download

Lines Matching refs:ops

21 	const struct rate_control_ops *ops;  member
32 int ieee80211_rate_control_register(const struct rate_control_ops *ops) in ieee80211_rate_control_register() argument
36 if (!ops->name) in ieee80211_rate_control_register()
41 if (!strcmp(alg->ops->name, ops->name)) { in ieee80211_rate_control_register()
54 alg->ops = ops; in ieee80211_rate_control_register()
63 void ieee80211_rate_control_unregister(const struct rate_control_ops *ops) in ieee80211_rate_control_unregister() argument
69 if (alg->ops == ops) { in ieee80211_rate_control_unregister()
83 const struct rate_control_ops *ops = NULL; in ieee80211_try_rate_control_ops_get() local
90 if (!strcmp(alg->ops->name, name)) { in ieee80211_try_rate_control_ops_get()
91 ops = alg->ops; in ieee80211_try_rate_control_ops_get()
96 return ops; in ieee80211_try_rate_control_ops_get()
103 const struct rate_control_ops *ops; in ieee80211_rate_control_ops_get() local
112 ops = ieee80211_try_rate_control_ops_get(alg_name); in ieee80211_rate_control_ops_get()
113 if (!ops && name) in ieee80211_rate_control_ops_get()
115 ops = ieee80211_try_rate_control_ops_get(ieee80211_default_rc_algo); in ieee80211_rate_control_ops_get()
118 if (!ops && strlen(CONFIG_MAC80211_RC_DEFAULT)) in ieee80211_rate_control_ops_get()
119 ops = ieee80211_try_rate_control_ops_get(CONFIG_MAC80211_RC_DEFAULT); in ieee80211_rate_control_ops_get()
122 return ops; in ieee80211_rate_control_ops_get()
130 int len = strlen(ref->ops->name); in rcname_read()
133 ref->ops->name, len); in rcname_read()
153 ref->ops = ieee80211_rate_control_ops_get(name); in rate_control_alloc()
154 if (!ref->ops) in rate_control_alloc()
163 ref->priv = ref->ops->alloc(&local->hw, debugfsdir); in rate_control_alloc()
175 ctrl_ref->ops->free(ctrl_ref->priv); in rate_control_free()
685 ref->ops->get_rate(ref->priv, ista, priv_sta, txrc); in rate_control_get_rate()
727 if (WARN_ON(!local->ops->set_rts_threshold)) in ieee80211_init_rate_ctrl_alg()
743 ref->ops->name); in ieee80211_init_rate_ctrl_alg()