/arch/alpha/include/asm/ |
D | spinlock.h | 16 #define arch_spin_lock_flags(lock, flags) arch_spin_lock(lock) argument 19 static inline void arch_spin_unlock_wait(arch_spinlock_t *lock) in arch_spin_unlock_wait() 24 static inline int arch_spin_value_unlocked(arch_spinlock_t lock) in arch_spin_value_unlocked() 29 static inline void arch_spin_unlock(arch_spinlock_t * lock) in arch_spin_unlock() 35 static inline void arch_spin_lock(arch_spinlock_t * lock) in arch_spin_lock() 55 static inline int arch_spin_trylock(arch_spinlock_t *lock) in arch_spin_trylock() 62 static inline int arch_read_can_lock(arch_rwlock_t *lock) in arch_read_can_lock() 67 static inline int arch_write_can_lock(arch_rwlock_t *lock) in arch_write_can_lock() 72 static inline void arch_read_lock(arch_rwlock_t *lock) in arch_read_lock() 92 static inline void arch_write_lock(arch_rwlock_t *lock) in arch_write_lock() [all …]
|
/arch/hexagon/include/asm/ |
D | spinlock.h | 42 static inline void arch_read_lock(arch_rwlock_t *lock) in arch_read_lock() 57 static inline void arch_read_unlock(arch_rwlock_t *lock) in arch_read_unlock() 72 static inline int arch_read_trylock(arch_rwlock_t *lock) in arch_read_trylock() 100 static inline void arch_write_lock(arch_rwlock_t *lock) in arch_write_lock() 115 static inline int arch_write_trylock(arch_rwlock_t *lock) in arch_write_trylock() 133 static inline void arch_write_unlock(arch_rwlock_t *lock) in arch_write_unlock() 139 static inline void arch_spin_lock(arch_spinlock_t *lock) in arch_spin_lock() 154 static inline void arch_spin_unlock(arch_spinlock_t *lock) in arch_spin_unlock() 160 static inline unsigned int arch_spin_trylock(arch_spinlock_t *lock) in arch_spin_trylock() 180 #define arch_spin_lock_flags(lock, flags) arch_spin_lock(lock) argument [all …]
|
/arch/ia64/include/asm/ |
D | spinlock.h | 42 static __always_inline void __ticket_spin_lock(arch_spinlock_t *lock) in __ticket_spin_lock() 62 static __always_inline int __ticket_spin_trylock(arch_spinlock_t *lock) in __ticket_spin_trylock() 71 static __always_inline void __ticket_spin_unlock(arch_spinlock_t *lock) in __ticket_spin_unlock() 79 static __always_inline void __ticket_spin_unlock_wait(arch_spinlock_t *lock) in __ticket_spin_unlock_wait() 95 static inline int __ticket_spin_is_locked(arch_spinlock_t *lock) in __ticket_spin_is_locked() 102 static inline int __ticket_spin_is_contended(arch_spinlock_t *lock) in __ticket_spin_is_contended() 109 static __always_inline int arch_spin_value_unlocked(arch_spinlock_t lock) in arch_spin_value_unlocked() 114 static inline int arch_spin_is_locked(arch_spinlock_t *lock) in arch_spin_is_locked() 119 static inline int arch_spin_is_contended(arch_spinlock_t *lock) in arch_spin_is_contended() 125 static __always_inline void arch_spin_lock(arch_spinlock_t *lock) in arch_spin_lock() [all …]
|
/arch/sparc/include/asm/ |
D | spinlock_32.h | 15 #define arch_spin_is_locked(lock) (*((volatile unsigned char *)(lock)) != 0) argument 17 static inline void arch_spin_unlock_wait(arch_spinlock_t *lock) in arch_spin_unlock_wait() 22 static inline void arch_spin_lock(arch_spinlock_t *lock) in arch_spin_lock() 42 static inline int arch_spin_trylock(arch_spinlock_t *lock) in arch_spin_trylock() 52 static inline void arch_spin_unlock(arch_spinlock_t *lock) in arch_spin_unlock() 96 #define arch_read_lock(lock) \ argument 116 #define arch_read_unlock(lock) \ argument 137 static inline void arch_write_unlock(arch_rwlock_t *lock) in arch_write_unlock() 181 #define arch_read_trylock(lock) \ argument 190 #define arch_spin_lock_flags(lock, flags) arch_spin_lock(lock) argument [all …]
|
D | spinlock_64.h | 29 static inline void arch_spin_unlock_wait(arch_spinlock_t *lock) in arch_spin_unlock_wait() 34 static inline void arch_spin_lock(arch_spinlock_t *lock) in arch_spin_lock() 53 static inline int arch_spin_trylock(arch_spinlock_t *lock) in arch_spin_trylock() 66 static inline void arch_spin_unlock(arch_spinlock_t *lock) in arch_spin_unlock() 75 static inline void arch_spin_lock_flags(arch_spinlock_t *lock, unsigned long flags) in arch_spin_lock_flags() 99 static inline void arch_read_lock(arch_rwlock_t *lock) in arch_read_lock() 122 static inline int arch_read_trylock(arch_rwlock_t *lock) in arch_read_trylock() 143 static inline void arch_read_unlock(arch_rwlock_t *lock) in arch_read_unlock() 159 static inline void arch_write_lock(arch_rwlock_t *lock) in arch_write_lock() 184 static inline void arch_write_unlock(arch_rwlock_t *lock) in arch_write_unlock() [all …]
|
/arch/metag/include/asm/ |
D | spinlock.h | 18 static inline void arch_spin_unlock_wait(arch_spinlock_t *lock) in arch_spin_unlock_wait() 23 #define arch_spin_lock_flags(lock, flags) arch_spin_lock(lock) argument 25 #define arch_read_lock_flags(lock, flags) arch_read_lock(lock) argument 26 #define arch_write_lock_flags(lock, flags) arch_write_lock(lock) argument 28 #define arch_spin_relax(lock) cpu_relax() argument 29 #define arch_read_relax(lock) cpu_relax() argument 30 #define arch_write_relax(lock) cpu_relax() argument
|
D | spinlock_lnkget.h | 10 static inline int arch_spin_is_locked(arch_spinlock_t *lock) in arch_spin_is_locked() 24 static inline void arch_spin_lock(arch_spinlock_t *lock) in arch_spin_lock() 45 static inline int arch_spin_trylock(arch_spinlock_t *lock) in arch_spin_trylock() 68 static inline void arch_spin_unlock(arch_spinlock_t *lock) in arch_spin_unlock() 242 #define arch_read_lock_flags(lock, flags) arch_read_lock(lock) argument 243 #define arch_write_lock_flags(lock, flags) arch_write_lock(lock) argument 245 #define arch_spin_relax(lock) cpu_relax() argument 246 #define arch_read_relax(lock) cpu_relax() argument 247 #define arch_write_relax(lock) cpu_relax() argument
|
/arch/blackfin/include/asm/ |
D | spinlock.h | 29 static inline int arch_spin_is_locked(arch_spinlock_t *lock) in arch_spin_is_locked() 34 static inline void arch_spin_lock(arch_spinlock_t *lock) in arch_spin_lock() 39 #define arch_spin_lock_flags(lock, flags) arch_spin_lock(lock) argument 41 static inline int arch_spin_trylock(arch_spinlock_t *lock) in arch_spin_trylock() 46 static inline void arch_spin_unlock(arch_spinlock_t *lock) in arch_spin_unlock() 51 static inline void arch_spin_unlock_wait(arch_spinlock_t *lock) in arch_spin_unlock_wait() 71 #define arch_read_lock_flags(lock, flags) arch_read_lock(lock) argument 88 #define arch_write_lock_flags(lock, flags) arch_write_lock(lock) argument 100 #define arch_spin_relax(lock) cpu_relax() argument 101 #define arch_read_relax(lock) cpu_relax() argument [all …]
|
/arch/mn10300/include/asm/ |
D | spinlock.h | 29 static inline void arch_spin_unlock_wait(arch_spinlock_t *lock) in arch_spin_unlock_wait() 34 static inline void arch_spin_unlock(arch_spinlock_t *lock) in arch_spin_unlock() 43 static inline int arch_spin_trylock(arch_spinlock_t *lock) in arch_spin_trylock() 60 static inline void arch_spin_lock(arch_spinlock_t *lock) in arch_spin_lock() 70 static inline void arch_spin_lock_flags(arch_spinlock_t *lock, in arch_spin_lock_flags() 172 static inline int arch_read_trylock(arch_rwlock_t *lock) in arch_read_trylock() 182 static inline int arch_write_trylock(arch_rwlock_t *lock) in arch_write_trylock() 191 #define arch_read_lock_flags(lock, flags) arch_read_lock(lock) argument 192 #define arch_write_lock_flags(lock, flags) arch_write_lock(lock) argument 194 #define _raw_spin_relax(lock) cpu_relax() argument [all …]
|
/arch/m32r/include/asm/ |
D | spinlock.h | 31 #define arch_spin_lock_flags(lock, flags) arch_spin_lock(lock) argument 33 static inline void arch_spin_unlock_wait(arch_spinlock_t *lock) in arch_spin_unlock_wait() 45 static inline int arch_spin_trylock(arch_spinlock_t *lock) in arch_spin_trylock() 78 static inline void arch_spin_lock(arch_spinlock_t *lock) in arch_spin_lock() 120 static inline void arch_spin_unlock(arch_spinlock_t *lock) in arch_spin_unlock() 307 static inline int arch_read_trylock(arch_rwlock_t *lock) in arch_read_trylock() 316 static inline int arch_write_trylock(arch_rwlock_t *lock) in arch_write_trylock() 325 #define arch_read_lock_flags(lock, flags) arch_read_lock(lock) argument 326 #define arch_write_lock_flags(lock, flags) arch_write_lock(lock) argument 328 #define arch_spin_relax(lock) cpu_relax() argument [all …]
|
/arch/mips/include/asm/ |
D | spinlock.h | 39 static inline int arch_spin_is_locked(arch_spinlock_t *lock) in arch_spin_is_locked() 46 static inline int arch_spin_value_unlocked(arch_spinlock_t lock) in arch_spin_value_unlocked() 51 #define arch_spin_lock_flags(lock, flags) arch_spin_lock(lock) argument 53 static inline void arch_spin_unlock_wait(arch_spinlock_t *lock) in arch_spin_unlock_wait() 69 static inline int arch_spin_is_contended(arch_spinlock_t *lock) in arch_spin_is_contended() 77 static inline void arch_spin_lock(arch_spinlock_t *lock) in arch_spin_lock() 155 static inline void arch_spin_unlock(arch_spinlock_t *lock) in arch_spin_unlock() 163 static inline unsigned int arch_spin_trylock(arch_spinlock_t *lock) in arch_spin_trylock() 438 #define arch_read_lock_flags(lock, flags) arch_read_lock(lock) argument 439 #define arch_write_lock_flags(lock, flags) arch_write_lock(lock) argument [all …]
|
/arch/arm64/include/asm/ |
D | spinlock.h | 29 static inline void arch_spin_unlock_wait(arch_spinlock_t *lock) in arch_spin_unlock_wait() 82 #define arch_spin_lock_flags(lock, flags) arch_spin_lock(lock) argument 84 static inline void arch_spin_lock(arch_spinlock_t *lock) in arch_spin_lock() 123 static inline int arch_spin_trylock(arch_spinlock_t *lock) in arch_spin_trylock() 154 static inline void arch_spin_unlock(arch_spinlock_t *lock) in arch_spin_unlock() 172 static inline int arch_spin_value_unlocked(arch_spinlock_t lock) in arch_spin_value_unlocked() 177 static inline int arch_spin_is_locked(arch_spinlock_t *lock) in arch_spin_is_locked() 183 static inline int arch_spin_is_contended(arch_spinlock_t *lock) in arch_spin_is_contended() 354 #define arch_read_lock_flags(lock, flags) arch_read_lock(lock) argument 355 #define arch_write_lock_flags(lock, flags) arch_write_lock(lock) argument [all …]
|
/arch/x86/include/asm/ |
D | qspinlock.h | 15 static inline void native_queued_spin_unlock(struct qspinlock *lock) in native_queued_spin_unlock() 26 static inline void queued_spin_lock_slowpath(struct qspinlock *lock, u32 val) in queued_spin_lock_slowpath() 31 static inline void queued_spin_unlock(struct qspinlock *lock) in queued_spin_unlock() 36 static inline void queued_spin_unlock(struct qspinlock *lock) in queued_spin_unlock() 44 static inline bool virt_spin_lock(struct qspinlock *lock) in virt_spin_lock()
|
D | spinlock.h | 47 #define arch_read_lock_flags(lock, flags) arch_read_lock(lock) argument 48 #define arch_write_lock_flags(lock, flags) arch_write_lock(lock) argument 50 #define arch_spin_relax(lock) cpu_relax() argument 51 #define arch_read_relax(lock) cpu_relax() argument 52 #define arch_write_relax(lock) cpu_relax() argument
|
/arch/sh/include/asm/ |
D | spinlock-cas.h | 30 #define arch_spin_lock_flags(lock, flags) arch_spin_lock(lock) argument 32 static inline void arch_spin_unlock_wait(arch_spinlock_t *lock) in arch_spin_unlock_wait() 37 static inline void arch_spin_lock(arch_spinlock_t *lock) in arch_spin_lock() 42 static inline void arch_spin_unlock(arch_spinlock_t *lock) in arch_spin_unlock() 47 static inline int arch_spin_trylock(arch_spinlock_t *lock) in arch_spin_trylock() 110 #define arch_read_lock_flags(lock, flags) arch_read_lock(lock) argument 111 #define arch_write_lock_flags(lock, flags) arch_write_lock(lock) argument 113 #define arch_spin_relax(lock) cpu_relax() argument 114 #define arch_read_relax(lock) cpu_relax() argument 115 #define arch_write_relax(lock) cpu_relax() argument
|
D | spinlock-llsc.h | 22 #define arch_spin_lock_flags(lock, flags) arch_spin_lock(lock) argument 24 static inline void arch_spin_unlock_wait(arch_spinlock_t *lock) in arch_spin_unlock_wait() 35 static inline void arch_spin_lock(arch_spinlock_t *lock) in arch_spin_lock() 55 static inline void arch_spin_unlock(arch_spinlock_t *lock) in arch_spin_unlock() 68 static inline int arch_spin_trylock(arch_spinlock_t *lock) in arch_spin_trylock() 217 #define arch_read_lock_flags(lock, flags) arch_read_lock(lock) argument 218 #define arch_write_lock_flags(lock, flags) arch_write_lock(lock) argument 220 #define arch_spin_relax(lock) cpu_relax() argument 221 #define arch_read_relax(lock) cpu_relax() argument 222 #define arch_write_relax(lock) cpu_relax() argument
|
/arch/arm/include/asm/ |
D | spinlock.h | 55 static inline void arch_spin_unlock_wait(arch_spinlock_t *lock) in arch_spin_unlock_wait() 71 #define arch_spin_lock_flags(lock, flags) arch_spin_lock(lock) argument 73 static inline void arch_spin_lock(arch_spinlock_t *lock) in arch_spin_lock() 98 static inline int arch_spin_trylock(arch_spinlock_t *lock) in arch_spin_trylock() 124 static inline void arch_spin_unlock(arch_spinlock_t *lock) in arch_spin_unlock() 131 static inline int arch_spin_value_unlocked(arch_spinlock_t lock) in arch_spin_value_unlocked() 136 static inline int arch_spin_is_locked(arch_spinlock_t *lock) in arch_spin_is_locked() 141 static inline int arch_spin_is_contended(arch_spinlock_t *lock) in arch_spin_is_contended() 295 #define arch_read_lock_flags(lock, flags) arch_read_lock(lock) argument 296 #define arch_write_lock_flags(lock, flags) arch_write_lock(lock) argument [all …]
|
D | mcs_spinlock.h | 8 #define arch_mcs_spin_lock_contended(lock) \ argument 16 #define arch_mcs_spin_unlock_contended(lock) \ argument
|
/arch/powerpc/include/asm/ |
D | spinlock.h | 55 static __always_inline int arch_spin_value_unlocked(arch_spinlock_t lock) in arch_spin_value_unlocked() 60 static inline int arch_spin_is_locked(arch_spinlock_t *lock) in arch_spin_is_locked() 70 static inline unsigned long __arch_spin_trylock(arch_spinlock_t *lock) in __arch_spin_trylock() 90 static inline int arch_spin_trylock(arch_spinlock_t *lock) in arch_spin_trylock() 121 static inline void arch_spin_lock(arch_spinlock_t *lock) in arch_spin_lock() 137 void arch_spin_lock_flags(arch_spinlock_t *lock, unsigned long flags) in arch_spin_lock_flags() 157 static inline void arch_spin_unlock(arch_spinlock_t *lock) in arch_spin_unlock() 165 static inline void arch_spin_unlock_wait(arch_spinlock_t *lock) in arch_spin_unlock_wait() 330 #define arch_read_lock_flags(lock, flags) arch_read_lock(lock) argument 331 #define arch_write_lock_flags(lock, flags) arch_write_lock(lock) argument [all …]
|
/arch/arc/include/asm/ |
D | spinlock.h | 17 #define arch_spin_lock_flags(lock, flags) arch_spin_lock(lock) argument 19 static inline void arch_spin_unlock_wait(arch_spinlock_t *lock) in arch_spin_unlock_wait() 26 static inline void arch_spin_lock(arch_spinlock_t *lock) in arch_spin_lock() 47 static inline int arch_spin_trylock(arch_spinlock_t *lock) in arch_spin_trylock() 72 static inline void arch_spin_unlock(arch_spinlock_t *lock) in arch_spin_unlock() 241 static inline void arch_spin_lock(arch_spinlock_t *lock) in arch_spin_lock() 272 static inline int arch_spin_trylock(arch_spinlock_t *lock) in arch_spin_trylock() 289 static inline void arch_spin_unlock(arch_spinlock_t *lock) in arch_spin_unlock() 409 #define arch_read_lock_flags(lock, flags) arch_read_lock(lock) argument 410 #define arch_write_lock_flags(lock, flags) arch_write_lock(lock) argument [all …]
|
/arch/tile/include/asm/ |
D | spinlock_32.h | 36 static inline int arch_spin_is_locked(arch_spinlock_t *lock) in arch_spin_is_locked() 55 #define arch_spin_lock_flags(lock, flags) arch_spin_lock(lock) argument 59 static inline void arch_spin_unlock(arch_spinlock_t *lock) in arch_spin_unlock() 130 #define arch_read_lock_flags(lock, flags) arch_read_lock(lock) argument 131 #define arch_write_lock_flags(lock, flags) arch_write_lock(lock) argument
|
D | spinlock_64.h | 47 static inline int arch_spin_is_locked(arch_spinlock_t *lock) in arch_spin_is_locked() 55 static inline void arch_spin_unlock(arch_spinlock_t *lock) in arch_spin_unlock() 69 static inline void arch_spin_lock(arch_spinlock_t *lock) in arch_spin_lock() 81 #define arch_spin_lock_flags(lock, flags) arch_spin_lock(lock) argument 161 #define arch_read_lock_flags(lock, flags) arch_read_lock(lock) argument 162 #define arch_write_lock_flags(lock, flags) arch_write_lock(lock) argument
|
/arch/xtensa/include/asm/ |
D | spinlock.h | 36 static inline void arch_spin_unlock_wait(arch_spinlock_t *lock) in arch_spin_unlock_wait() 41 #define arch_spin_lock_flags(lock, flags) arch_spin_lock(lock) argument 43 static inline void arch_spin_lock(arch_spinlock_t *lock) in arch_spin_lock() 60 static inline int arch_spin_trylock(arch_spinlock_t *lock) in arch_spin_trylock() 76 static inline void arch_spin_unlock(arch_spinlock_t *lock) in arch_spin_unlock() 208 #define arch_read_lock_flags(lock, flags) arch_read_lock(lock) argument 209 #define arch_write_lock_flags(lock, flags) arch_write_lock(lock) argument
|
/arch/mips/include/asm/octeon/ |
D | cvmx-spinlock.h | 63 static inline void cvmx_spinlock_init(cvmx_spinlock_t *lock) in cvmx_spinlock_init() 74 static inline int cvmx_spinlock_locked(cvmx_spinlock_t *lock) in cvmx_spinlock_locked() 84 static inline void cvmx_spinlock_unlock(cvmx_spinlock_t *lock) in cvmx_spinlock_unlock() 103 static inline unsigned int cvmx_spinlock_trylock(cvmx_spinlock_t *lock) in cvmx_spinlock_trylock() 128 static inline void cvmx_spinlock_lock(cvmx_spinlock_t *lock) in cvmx_spinlock_lock()
|
/arch/tile/lib/ |
D | spinlock_64.c | 26 static inline u32 arch_spin_read_noalloc(void *lock) in arch_spin_read_noalloc() 35 void arch_spin_lock_slow(arch_spinlock_t *lock, u32 my_ticket) in arch_spin_lock_slow() 55 int arch_spin_trylock(arch_spinlock_t *lock) in arch_spin_trylock() 65 void arch_spin_unlock_wait(arch_spinlock_t *lock) in arch_spin_unlock_wait()
|