Lines Matching refs:spinlock_t

324 static __always_inline raw_spinlock_t *spinlock_check(spinlock_t *lock)  in spinlock_check()
349 static __always_inline void spin_lock(spinlock_t *lock) in spin_lock()
354 static __always_inline void spin_lock_bh(spinlock_t *lock) in spin_lock_bh()
359 static __always_inline int spin_trylock(spinlock_t *lock) in spin_trylock()
374 static __always_inline void spin_lock_irq(spinlock_t *lock) in spin_lock_irq()
389 static __always_inline void spin_unlock(spinlock_t *lock) in spin_unlock()
394 static __always_inline void spin_unlock_bh(spinlock_t *lock) in spin_unlock_bh()
399 static __always_inline void spin_unlock_irq(spinlock_t *lock) in spin_unlock_irq()
404 static __always_inline void spin_unlock_irqrestore(spinlock_t *lock, unsigned long flags) in spin_unlock_irqrestore()
409 static __always_inline int spin_trylock_bh(spinlock_t *lock) in spin_trylock_bh()
414 static __always_inline int spin_trylock_irq(spinlock_t *lock) in spin_trylock_irq()
442 static __always_inline int spin_is_locked(spinlock_t *lock) in spin_is_locked()
447 static __always_inline int spin_is_contended(spinlock_t *lock) in spin_is_contended()
471 extern int _atomic_dec_and_lock(atomic_t *atomic, spinlock_t *lock);
475 extern int _atomic_dec_and_lock_irqsave(atomic_t *atomic, spinlock_t *lock,
489 int __alloc_bucket_spinlocks(spinlock_t **locks, unsigned int *lock_mask,
504 void free_bucket_spinlocks(spinlock_t *locks);
523 DEFINE_LOCK_GUARD_1(spinlock, spinlock_t,
527 DEFINE_LOCK_GUARD_1(spinlock_irq, spinlock_t,
531 DEFINE_LOCK_GUARD_1(spinlock_irqsave, spinlock_t,