Lines Matching refs:closure
105 struct closure;
107 typedef void (closure_fn) (struct closure *);
143 struct closure { struct
154 struct closure *parent; argument
169 void closure_sub(struct closure *cl, int v); argument
170 void closure_put(struct closure *cl);
172 bool closure_wait(struct closure_waitlist *list, struct closure *cl);
173 void __closure_sync(struct closure *cl);
181 static inline void closure_sync(struct closure *cl) in closure_sync()
190 void closure_debug_create(struct closure *cl);
191 void closure_debug_destroy(struct closure *cl);
196 static inline void closure_debug_create(struct closure *cl) {} in closure_debug_create()
197 static inline void closure_debug_destroy(struct closure *cl) {} in closure_debug_destroy()
201 static inline void closure_set_ip(struct closure *cl) in closure_set_ip()
208 static inline void closure_set_ret_ip(struct closure *cl) in closure_set_ret_ip()
215 static inline void closure_set_waiting(struct closure *cl, unsigned long f) in closure_set_waiting()
222 static inline void closure_set_stopped(struct closure *cl) in closure_set_stopped()
227 static inline void set_closure_fn(struct closure *cl, closure_fn *fn, in set_closure_fn()
237 static inline void closure_queue(struct closure *cl) in closure_queue()
244 BUILD_BUG_ON(offsetof(struct closure, fn) in closure_queue()
256 static inline void closure_get(struct closure *cl) in closure_get()
272 static inline void closure_init(struct closure *cl, struct closure *parent) in closure_init()
274 memset(cl, 0, sizeof(struct closure)); in closure_init()
285 static inline void closure_init_stack(struct closure *cl) in closure_init_stack()
287 memset(cl, 0, sizeof(struct closure)); in closure_init_stack()
370 static inline void closure_call(struct closure *cl, closure_fn fn, in closure_call()
372 struct closure *parent) in closure_call()