• Home
  • Raw
  • Download

Lines Matching refs:ops

70 int lwtunnel_encap_add_ops(const struct lwtunnel_encap_ops *ops,  in lwtunnel_encap_add_ops()  argument
78 NULL, ops) ? 0 : -1; in lwtunnel_encap_add_ops()
82 int lwtunnel_encap_del_ops(const struct lwtunnel_encap_ops *ops, in lwtunnel_encap_del_ops() argument
93 ops, NULL) == ops) ? 0 : -1; in lwtunnel_encap_del_ops()
106 const struct lwtunnel_encap_ops *ops; in lwtunnel_build_state() local
119 ops = rcu_dereference(lwtun_encaps[encap_type]); in lwtunnel_build_state()
120 if (likely(ops && ops->build_state && try_module_get(ops->owner))) in lwtunnel_build_state()
125 ret = ops->build_state(encap, family, cfg, lws, extack); in lwtunnel_build_state()
127 module_put(ops->owner); in lwtunnel_build_state()
142 const struct lwtunnel_encap_ops *ops; in lwtunnel_valid_encap_type() local
152 ops = rcu_dereference(lwtun_encaps[encap_type]); in lwtunnel_valid_encap_type()
155 if (!ops) { in lwtunnel_valid_encap_type()
164 ops = rcu_dereference(lwtun_encaps[encap_type]); in lwtunnel_valid_encap_type()
169 ret = ops ? 0 : -EOPNOTSUPP; in lwtunnel_valid_encap_type()
209 const struct lwtunnel_encap_ops *ops = lwtun_encaps[lws->type]; in lwtstate_free() local
211 if (ops->destroy_state) { in lwtstate_free()
212 ops->destroy_state(lws); in lwtstate_free()
217 module_put(ops->owner); in lwtstate_free()
224 const struct lwtunnel_encap_ops *ops; in lwtunnel_fill_encap() local
241 ops = rcu_dereference(lwtun_encaps[lwtstate->type]); in lwtunnel_fill_encap()
242 if (likely(ops && ops->fill_encap)) in lwtunnel_fill_encap()
243 ret = ops->fill_encap(skb, lwtstate); in lwtunnel_fill_encap()
264 const struct lwtunnel_encap_ops *ops; in lwtunnel_get_encap_size() local
275 ops = rcu_dereference(lwtun_encaps[lwtstate->type]); in lwtunnel_get_encap_size()
276 if (likely(ops && ops->get_encap_size)) in lwtunnel_get_encap_size()
277 ret = nla_total_size(ops->get_encap_size(lwtstate)); in lwtunnel_get_encap_size()
286 const struct lwtunnel_encap_ops *ops; in lwtunnel_cmp_encap() local
303 ops = rcu_dereference(lwtun_encaps[a->type]); in lwtunnel_cmp_encap()
304 if (likely(ops && ops->cmp_encap)) in lwtunnel_cmp_encap()
305 ret = ops->cmp_encap(a, b); in lwtunnel_cmp_encap()
315 const struct lwtunnel_encap_ops *ops; in lwtunnel_output() local
329 ops = rcu_dereference(lwtun_encaps[lwtstate->type]); in lwtunnel_output()
330 if (likely(ops && ops->output)) in lwtunnel_output()
331 ret = ops->output(net, sk, skb); in lwtunnel_output()
349 const struct lwtunnel_encap_ops *ops; in lwtunnel_xmit() local
364 ops = rcu_dereference(lwtun_encaps[lwtstate->type]); in lwtunnel_xmit()
365 if (likely(ops && ops->xmit)) in lwtunnel_xmit()
366 ret = ops->xmit(skb); in lwtunnel_xmit()
384 const struct lwtunnel_encap_ops *ops; in lwtunnel_input() local
398 ops = rcu_dereference(lwtun_encaps[lwtstate->type]); in lwtunnel_input()
399 if (likely(ops && ops->input)) in lwtunnel_input()
400 ret = ops->input(skb); in lwtunnel_input()