Searched refs:lws (Results 1 – 3 of 3) sorted by relevance
/linux-6.6.21/include/net/ |
D | lwtunnel.h | 44 void (*destroy_state)(struct lwtunnel_state *lws); 60 void lwtstate_free(struct lwtunnel_state *lws); 63 lwtstate_get(struct lwtunnel_state *lws) in lwtstate_get() argument 65 if (lws) in lwtstate_get() 66 atomic_inc(&lws->refcnt); in lwtstate_get() 68 return lws; in lwtstate_get() 71 static inline void lwtstate_put(struct lwtunnel_state *lws) in lwtstate_put() argument 73 if (!lws) in lwtstate_put() 76 if (atomic_dec_and_test(&lws->refcnt)) in lwtstate_put() 77 lwtstate_free(lws); in lwtstate_put() [all …]
|
/linux-6.6.21/net/core/ |
D | lwtunnel.c | 69 struct lwtunnel_state *lws; in lwtunnel_state_alloc() local 71 lws = kzalloc(sizeof(*lws) + encap_len, GFP_ATOMIC); in lwtunnel_state_alloc() 73 return lws; in lwtunnel_state_alloc() 113 const void *cfg, struct lwtunnel_state **lws, in lwtunnel_build_state() argument 135 ret = ops->build_state(net, encap, family, cfg, lws, extack); in lwtunnel_build_state() 221 void lwtstate_free(struct lwtunnel_state *lws) in lwtstate_free() argument 223 const struct lwtunnel_encap_ops *ops = lwtun_encaps[lws->type]; in lwtstate_free() 226 ops->destroy_state(lws); in lwtstate_free() 227 kfree_rcu(lws, rcu); in lwtstate_free() 229 kfree(lws); in lwtstate_free()
|
/linux-6.6.21/arch/openrisc/kernel/ |
D | entry.S | 441 l.bf lws 473 lws: l.lbs r5,0(r2)
|