• Home
  • Raw
  • Download

Lines Matching refs:flags

16 static inline void closure_put_after_sub_checks(int flags)  in closure_put_after_sub_checks()  argument
18 int r = flags & CLOSURE_REMAINING_MASK; in closure_put_after_sub_checks()
20 if (WARN(flags & CLOSURE_GUARD_MASK, in closure_put_after_sub_checks()
22 flags & CLOSURE_GUARD_MASK, (unsigned) __fls(r))) in closure_put_after_sub_checks()
25 WARN(!r && (flags & ~CLOSURE_DESTRUCTOR), in closure_put_after_sub_checks()
27 flags & ~CLOSURE_DESTRUCTOR, (unsigned) __fls(flags)); in closure_put_after_sub_checks()
30 static inline void closure_put_after_sub(struct closure *cl, int flags) in closure_put_after_sub() argument
32 closure_put_after_sub_checks(flags); in closure_put_after_sub()
34 if (!(flags & CLOSURE_REMAINING_MASK)) { in closure_put_after_sub()
39 if (cl->fn && !(flags & CLOSURE_DESTRUCTOR)) { in closure_put_after_sub()
167 unsigned flags = atomic_sub_return_release(1 + CLOSURE_RUNNING - CLOSURE_DESTRUCTOR, in closure_return_sync() local
170 closure_put_after_sub_checks(flags); in closure_return_sync()
172 if (unlikely(flags & CLOSURE_REMAINING_MASK)) { in closure_return_sync()
232 unsigned long flags; in closure_debug_create() local
237 spin_lock_irqsave(&closure_list_lock, flags); in closure_debug_create()
239 spin_unlock_irqrestore(&closure_list_lock, flags); in closure_debug_create()
245 unsigned long flags; in closure_debug_destroy() local
253 spin_lock_irqsave(&closure_list_lock, flags); in closure_debug_destroy()
255 spin_unlock_irqrestore(&closure_list_lock, flags); in closure_debug_destroy()