Lines Matching refs:flags
64 unsigned int flags, gfp_t gfp) in percpu_ref_init() argument
83 data->force_atomic = flags & PERCPU_REF_INIT_ATOMIC; in percpu_ref_init()
84 data->allow_reinit = flags & PERCPU_REF_ALLOW_REINIT; in percpu_ref_init()
86 if (flags & (PERCPU_REF_INIT_ATOMIC | PERCPU_REF_INIT_DEAD)) { in percpu_ref_init()
93 if (flags & PERCPU_REF_INIT_DEAD) in percpu_ref_init()
133 unsigned long flags; in percpu_ref_exit() local
140 spin_lock_irqsave(&percpu_ref_switch_lock, flags); in percpu_ref_exit()
144 spin_unlock_irqrestore(&percpu_ref_switch_lock, flags); in percpu_ref_exit()
309 unsigned long flags; in percpu_ref_switch_to_atomic() local
311 spin_lock_irqsave(&percpu_ref_switch_lock, flags); in percpu_ref_switch_to_atomic()
316 spin_unlock_irqrestore(&percpu_ref_switch_lock, flags); in percpu_ref_switch_to_atomic()
355 unsigned long flags; in percpu_ref_switch_to_percpu() local
357 spin_lock_irqsave(&percpu_ref_switch_lock, flags); in percpu_ref_switch_to_percpu()
362 spin_unlock_irqrestore(&percpu_ref_switch_lock, flags); in percpu_ref_switch_to_percpu()
386 unsigned long flags; in percpu_ref_kill_and_confirm() local
388 spin_lock_irqsave(&percpu_ref_switch_lock, flags); in percpu_ref_kill_and_confirm()
398 spin_unlock_irqrestore(&percpu_ref_switch_lock, flags); in percpu_ref_kill_and_confirm()
413 unsigned long count, flags; in percpu_ref_is_zero() local
419 spin_lock_irqsave(&percpu_ref_switch_lock, flags); in percpu_ref_is_zero()
424 spin_unlock_irqrestore(&percpu_ref_switch_lock, flags); in percpu_ref_is_zero()
466 unsigned long flags; in percpu_ref_resurrect() local
468 spin_lock_irqsave(&percpu_ref_switch_lock, flags); in percpu_ref_resurrect()
477 spin_unlock_irqrestore(&percpu_ref_switch_lock, flags); in percpu_ref_resurrect()