Home
last modified time | relevance | path

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

/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 …]