Lines Matching refs:addr
15 static inline void bit_spin_lock(int bitnum, unsigned long *addr) in bit_spin_lock() argument
26 while (unlikely(test_and_set_bit_lock(bitnum, addr))) { in bit_spin_lock()
30 } while (test_bit(bitnum, addr)); in bit_spin_lock()
40 static inline int bit_spin_trylock(int bitnum, unsigned long *addr) in bit_spin_trylock() argument
44 if (unlikely(test_and_set_bit_lock(bitnum, addr))) { in bit_spin_trylock()
56 static inline void bit_spin_unlock(int bitnum, unsigned long *addr) in bit_spin_unlock() argument
59 BUG_ON(!test_bit(bitnum, addr)); in bit_spin_unlock()
62 clear_bit_unlock(bitnum, addr); in bit_spin_unlock()
73 static inline void __bit_spin_unlock(int bitnum, unsigned long *addr) in __bit_spin_unlock() argument
76 BUG_ON(!test_bit(bitnum, addr)); in __bit_spin_unlock()
79 __clear_bit_unlock(bitnum, addr); in __bit_spin_unlock()
88 static inline int bit_spin_is_locked(int bitnum, unsigned long *addr) in bit_spin_is_locked() argument
91 return test_bit(bitnum, addr); in bit_spin_is_locked()