Lines Matching refs:flags
61 unsigned int flags, gfp_t gfp) in percpu_ref_init() argument
72 ref->force_atomic = flags & PERCPU_REF_INIT_ATOMIC; in percpu_ref_init()
73 ref->allow_reinit = flags & PERCPU_REF_ALLOW_REINIT; in percpu_ref_init()
75 if (flags & (PERCPU_REF_INIT_ATOMIC | PERCPU_REF_INIT_DEAD)) { in percpu_ref_init()
82 if (flags & PERCPU_REF_INIT_DEAD) in percpu_ref_init()
264 unsigned long flags; in percpu_ref_switch_to_atomic() local
266 spin_lock_irqsave(&percpu_ref_switch_lock, flags); in percpu_ref_switch_to_atomic()
271 spin_unlock_irqrestore(&percpu_ref_switch_lock, flags); in percpu_ref_switch_to_atomic()
310 unsigned long flags; in percpu_ref_switch_to_percpu() local
312 spin_lock_irqsave(&percpu_ref_switch_lock, flags); in percpu_ref_switch_to_percpu()
317 spin_unlock_irqrestore(&percpu_ref_switch_lock, flags); in percpu_ref_switch_to_percpu()
341 unsigned long flags; in percpu_ref_kill_and_confirm() local
343 spin_lock_irqsave(&percpu_ref_switch_lock, flags); in percpu_ref_kill_and_confirm()
352 spin_unlock_irqrestore(&percpu_ref_switch_lock, flags); in percpu_ref_kill_and_confirm()
392 unsigned long flags; in percpu_ref_resurrect() local
394 spin_lock_irqsave(&percpu_ref_switch_lock, flags); in percpu_ref_resurrect()
403 spin_unlock_irqrestore(&percpu_ref_switch_lock, flags); in percpu_ref_resurrect()