Searched refs:lws (Results 1 – 3 of 3) sorted by relevance
41 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() argument59 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() argument67 if (!lws) in lwtstate_put()70 if (atomic_dec_and_test(&lws->refcnt)) in lwtstate_put()71 lwtstate_free(lws); in lwtstate_put()[all …]
59 struct lwtunnel_state *lws; in lwtunnel_state_alloc() local61 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() argument125 ret = ops->build_state(encap, family, cfg, lws, extack); in lwtunnel_build_state()207 void lwtstate_free(struct lwtunnel_state *lws) in lwtstate_free() argument209 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()
437 l.bf lws469 lws: l.lbs r5,0(r2)