Lines Matching refs:closure

105 struct closure;
143 struct closure { struct
154 struct closure *parent; argument
171 void closure_sub(struct closure *cl, int v); argument
172 void closure_put(struct closure *cl);
174 bool closure_wait(struct closure_waitlist *list, struct closure *cl);
175 void __closure_sync(struct closure *cl);
177 static inline unsigned closure_nr_remaining(struct closure *cl) in closure_nr_remaining()
188 static inline void closure_sync(struct closure *cl) in closure_sync()
198 int __closure_sync_timeout(struct closure *cl, unsigned long timeout);
200 static inline int closure_sync_timeout(struct closure *cl, unsigned long timeout) in closure_sync_timeout()
212 void closure_debug_create(struct closure *cl);
213 void closure_debug_destroy(struct closure *cl);
217 static inline void closure_debug_create(struct closure *cl) {} in closure_debug_create()
218 static inline void closure_debug_destroy(struct closure *cl) {} in closure_debug_destroy()
222 static inline void closure_set_ip(struct closure *cl) in closure_set_ip()
229 static inline void closure_set_ret_ip(struct closure *cl) in closure_set_ret_ip()
236 static inline void closure_set_waiting(struct closure *cl, unsigned long f) in closure_set_waiting()
243 static inline void closure_set_stopped(struct closure *cl) in closure_set_stopped()
248 static inline void set_closure_fn(struct closure *cl, closure_fn *fn, in set_closure_fn()
256 static inline void closure_queue(struct closure *cl) in closure_queue()
263 BUILD_BUG_ON(offsetof(struct closure, fn) in closure_queue()
276 static inline void closure_get(struct closure *cl) in closure_get()
291 static inline bool closure_get_not_zero(struct closure *cl) in closure_get_not_zero()
309 static inline void closure_init(struct closure *cl, struct closure *parent) in closure_init()
323 static inline void closure_init_stack(struct closure *cl) in closure_init_stack()
325 memset(cl, 0, sizeof(struct closure)); in closure_init_stack()
332 static inline void closure_init_stack_release(struct closure *cl) in closure_init_stack_release()
334 memset(cl, 0, sizeof(struct closure)); in closure_init_stack_release()
354 struct closure *cl = container_of(ws, struct closure, work); \
386 void closure_return_sync(struct closure *cl);
427 static inline void closure_call(struct closure *cl, closure_fn fn, in closure_call()
429 struct closure *parent) in closure_call()
437 struct closure cl; \
459 struct closure cl; \