Home
last modified time | relevance | path

Searched refs:lws (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.4/include/net/
Dlwtunnel.h41 void (*destroy_state)(struct lwtunnel_state *lws);
54 void lwtstate_free(struct lwtunnel_state *lws);
57 lwtstate_get(struct lwtunnel_state *lws) in lwtstate_get() argument
59 if (lws) in lwtstate_get()
60 atomic_inc(&lws->refcnt); in lwtstate_get()
62 return lws; in lwtstate_get()
65 static inline void lwtstate_put(struct lwtunnel_state *lws) in lwtstate_put() argument
67 if (!lws) in lwtstate_put()
70 if (atomic_dec_and_test(&lws->refcnt)) in lwtstate_put()
71 lwtstate_free(lws); in lwtstate_put()
[all …]
/Linux-v5.4/net/core/
Dlwtunnel.c59 struct lwtunnel_state *lws; in lwtunnel_state_alloc() local
61 lws = kzalloc(sizeof(*lws) + encap_len, GFP_ATOMIC); in lwtunnel_state_alloc()
63 return lws; in lwtunnel_state_alloc()
103 const void *cfg, struct lwtunnel_state **lws, in lwtunnel_build_state() argument
125 ret = ops->build_state(encap, family, cfg, lws, extack); in lwtunnel_build_state()
207 void lwtstate_free(struct lwtunnel_state *lws) in lwtstate_free() argument
209 const struct lwtunnel_encap_ops *ops = lwtun_encaps[lws->type]; in lwtstate_free()
212 ops->destroy_state(lws); in lwtstate_free()
213 kfree_rcu(lws, rcu); in lwtstate_free()
215 kfree(lws); in lwtstate_free()
/Linux-v5.4/arch/openrisc/kernel/
Dentry.S437 l.bf lws
469 lws: l.lbs r5,0(r2)