/arch/x86/include/asm/ |
D | spinlock.h | 47 static inline void __ticket_enter_slowpath(arch_spinlock_t *lock) in __ticket_enter_slowpath() 53 static __always_inline void __ticket_lock_spinning(arch_spinlock_t *lock, in __ticket_lock_spinning() 57 static inline void __ticket_unlock_kick(arch_spinlock_t *lock, in __ticket_unlock_kick() 64 static __always_inline int arch_spin_value_unlocked(arch_spinlock_t lock) in arch_spin_value_unlocked() 82 static __always_inline void arch_spin_lock(arch_spinlock_t *lock) in arch_spin_lock() 104 static __always_inline int arch_spin_trylock(arch_spinlock_t *lock) in arch_spin_trylock() 118 static inline void __ticket_unlock_slowpath(arch_spinlock_t *lock, in __ticket_unlock_slowpath() 146 static __always_inline void arch_spin_unlock(arch_spinlock_t *lock) in arch_spin_unlock() 163 static inline int arch_spin_is_locked(arch_spinlock_t *lock) in arch_spin_is_locked() 170 static inline int arch_spin_is_contended(arch_spinlock_t *lock) in arch_spin_is_contended() [all …]
|
/arch/hexagon/include/asm/ |
D | spinlock.h | 40 static inline void arch_read_lock(arch_rwlock_t *lock) in arch_read_lock() 55 static inline void arch_read_unlock(arch_rwlock_t *lock) in arch_read_unlock() 70 static inline int arch_read_trylock(arch_rwlock_t *lock) in arch_read_trylock() 98 static inline void arch_write_lock(arch_rwlock_t *lock) in arch_write_lock() 113 static inline int arch_write_trylock(arch_rwlock_t *lock) in arch_write_trylock() 131 static inline void arch_write_unlock(arch_rwlock_t *lock) in arch_write_unlock() 137 static inline void arch_spin_lock(arch_spinlock_t *lock) in arch_spin_lock() 152 static inline void arch_spin_unlock(arch_spinlock_t *lock) in arch_spin_unlock() 158 static inline unsigned int arch_spin_trylock(arch_spinlock_t *lock) in arch_spin_trylock() 178 #define arch_spin_lock_flags(lock, flags) arch_spin_lock(lock) argument [all …]
|
/arch/alpha/include/asm/ |
D | spinlock.h | 14 #define arch_spin_lock_flags(lock, flags) arch_spin_lock(lock) argument 19 static inline void arch_spin_unlock(arch_spinlock_t * lock) in arch_spin_unlock() 25 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() 52 static inline int arch_read_can_lock(arch_rwlock_t *lock) in arch_read_can_lock() 57 static inline int arch_write_can_lock(arch_rwlock_t *lock) in arch_write_can_lock() 62 static inline void arch_read_lock(arch_rwlock_t *lock) in arch_read_lock() 82 static inline void arch_write_lock(arch_rwlock_t *lock) in arch_write_lock() 102 static inline int arch_read_trylock(arch_rwlock_t * lock) in arch_read_trylock() 124 static inline int arch_write_trylock(arch_rwlock_t * lock) in arch_write_trylock() [all …]
|
/arch/ia64/include/asm/ |
D | spinlock.h | 40 static __always_inline void __ticket_spin_lock(arch_spinlock_t *lock) in __ticket_spin_lock() 60 static __always_inline int __ticket_spin_trylock(arch_spinlock_t *lock) in __ticket_spin_trylock() 69 static __always_inline void __ticket_spin_unlock(arch_spinlock_t *lock) in __ticket_spin_unlock() 77 static __always_inline void __ticket_spin_unlock_wait(arch_spinlock_t *lock) in __ticket_spin_unlock_wait() 91 static inline int __ticket_spin_is_locked(arch_spinlock_t *lock) in __ticket_spin_is_locked() 98 static inline int __ticket_spin_is_contended(arch_spinlock_t *lock) in __ticket_spin_is_contended() 105 static __always_inline int arch_spin_value_unlocked(arch_spinlock_t lock) in arch_spin_value_unlocked() 110 static inline int arch_spin_is_locked(arch_spinlock_t *lock) in arch_spin_is_locked() 115 static inline int arch_spin_is_contended(arch_spinlock_t *lock) in arch_spin_is_contended() 121 static __always_inline void arch_spin_lock(arch_spinlock_t *lock) in arch_spin_lock() [all …]
|
/arch/sparc/include/asm/ |
D | spinlock_32.h | 14 #define arch_spin_is_locked(lock) (*((volatile unsigned char *)(lock)) != 0) argument 16 #define arch_spin_unlock_wait(lock) \ argument 19 static inline void arch_spin_lock(arch_spinlock_t *lock) in arch_spin_lock() 39 static inline int arch_spin_trylock(arch_spinlock_t *lock) in arch_spin_trylock() 49 static inline void arch_spin_unlock(arch_spinlock_t *lock) in arch_spin_unlock() 93 #define arch_read_lock(lock) \ argument 113 #define arch_read_unlock(lock) \ argument 134 static void inline arch_write_unlock(arch_rwlock_t *lock) in arch_write_unlock() 178 #define arch_read_trylock(lock) \ argument 187 #define arch_spin_lock_flags(lock, flags) arch_spin_lock(lock) argument [all …]
|
D | spinlock_64.h | 30 static inline void arch_spin_lock(arch_spinlock_t *lock) in arch_spin_lock() 49 static inline int arch_spin_trylock(arch_spinlock_t *lock) in arch_spin_trylock() 62 static inline void arch_spin_unlock(arch_spinlock_t *lock) in arch_spin_unlock() 71 static inline void arch_spin_lock_flags(arch_spinlock_t *lock, unsigned long flags) in arch_spin_lock_flags() 95 static void inline arch_read_lock(arch_rwlock_t *lock) in arch_read_lock() 118 static int inline arch_read_trylock(arch_rwlock_t *lock) in arch_read_trylock() 139 static void inline arch_read_unlock(arch_rwlock_t *lock) in arch_read_unlock() 155 static void inline arch_write_lock(arch_rwlock_t *lock) in arch_write_lock() 180 static void inline arch_write_unlock(arch_rwlock_t *lock) in arch_write_unlock() 189 static int inline arch_write_trylock(arch_rwlock_t *lock) in arch_write_trylock() [all …]
|
/arch/metag/include/asm/ |
D | spinlock.h | 10 #define arch_spin_unlock_wait(lock) \ argument 13 #define arch_spin_lock_flags(lock, flags) arch_spin_lock(lock) argument 15 #define arch_read_lock_flags(lock, flags) arch_read_lock(lock) argument 16 #define arch_write_lock_flags(lock, flags) arch_write_lock(lock) argument 18 #define arch_spin_relax(lock) cpu_relax() argument 19 #define arch_read_relax(lock) cpu_relax() argument 20 #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 | 27 static inline int arch_spin_is_locked(arch_spinlock_t *lock) in arch_spin_is_locked() 32 static inline void arch_spin_lock(arch_spinlock_t *lock) in arch_spin_lock() 37 #define arch_spin_lock_flags(lock, flags) arch_spin_lock(lock) argument 39 static inline int arch_spin_trylock(arch_spinlock_t *lock) in arch_spin_trylock() 44 static inline void arch_spin_unlock(arch_spinlock_t *lock) in arch_spin_unlock() 49 static inline void arch_spin_unlock_wait(arch_spinlock_t *lock) in arch_spin_unlock_wait() 70 #define arch_read_lock_flags(lock, flags) arch_read_lock(lock) argument 87 #define arch_write_lock_flags(lock, flags) arch_write_lock(lock) argument 99 #define arch_spin_relax(lock) cpu_relax() argument 100 #define arch_read_relax(lock) cpu_relax() argument [all …]
|
/arch/arm64/include/asm/ |
D | spinlock.h | 29 #define arch_spin_unlock_wait(lock) \ argument 32 #define arch_spin_lock_flags(lock, flags) arch_spin_lock(lock) argument 34 static inline void arch_spin_lock(arch_spinlock_t *lock) in arch_spin_lock() 65 static inline int arch_spin_trylock(arch_spinlock_t *lock) in arch_spin_trylock() 86 static inline void arch_spin_unlock(arch_spinlock_t *lock) in arch_spin_unlock() 95 static inline int arch_spin_value_unlocked(arch_spinlock_t lock) in arch_spin_value_unlocked() 100 static inline int arch_spin_is_locked(arch_spinlock_t *lock) in arch_spin_is_locked() 105 static inline int arch_spin_is_contended(arch_spinlock_t *lock) in arch_spin_is_contended() 227 #define arch_read_lock_flags(lock, flags) arch_read_lock(lock) argument 228 #define arch_write_lock_flags(lock, flags) arch_write_lock(lock) argument [all …]
|
/arch/mn10300/include/asm/ |
D | spinlock.h | 28 static inline void arch_spin_unlock(arch_spinlock_t *lock) in arch_spin_unlock() 37 static inline int arch_spin_trylock(arch_spinlock_t *lock) in arch_spin_trylock() 54 static inline void arch_spin_lock(arch_spinlock_t *lock) in arch_spin_lock() 64 static inline void arch_spin_lock_flags(arch_spinlock_t *lock, in arch_spin_lock_flags() 166 static inline int arch_read_trylock(arch_rwlock_t *lock) in arch_read_trylock() 176 static inline int arch_write_trylock(arch_rwlock_t *lock) in arch_write_trylock() 185 #define arch_read_lock_flags(lock, flags) arch_read_lock(lock) argument 186 #define arch_write_lock_flags(lock, flags) arch_write_lock(lock) argument 188 #define _raw_spin_relax(lock) cpu_relax() argument 189 #define _raw_read_relax(lock) cpu_relax() argument [all …]
|
/arch/cris/include/arch-v32/arch/ |
D | spinlock.h | 17 static inline void arch_spin_unlock(arch_spinlock_t *lock) in arch_spin_unlock() 25 static inline void arch_spin_unlock_wait(arch_spinlock_t *lock) in arch_spin_unlock_wait() 31 static inline int arch_spin_trylock(arch_spinlock_t *lock) in arch_spin_trylock() 36 static inline void arch_spin_lock(arch_spinlock_t *lock) in arch_spin_lock() 42 arch_spin_lock_flags(arch_spinlock_t *lock, unsigned long flags) in arch_spin_lock_flags() 124 #define _raw_read_lock_flags(lock, flags) _raw_read_lock(lock) argument 125 #define _raw_write_lock_flags(lock, flags) _raw_write_lock(lock) argument 127 #define arch_spin_relax(lock) cpu_relax() argument 128 #define arch_read_relax(lock) cpu_relax() argument 129 #define arch_write_relax(lock) cpu_relax() argument
|
/arch/arm/include/asm/ |
D | spinlock.h | 53 #define arch_spin_unlock_wait(lock) \ argument 56 #define arch_spin_lock_flags(lock, flags) arch_spin_lock(lock) argument 58 static inline void arch_spin_lock(arch_spinlock_t *lock) in arch_spin_lock() 83 static inline int arch_spin_trylock(arch_spinlock_t *lock) in arch_spin_trylock() 109 static inline void arch_spin_unlock(arch_spinlock_t *lock) in arch_spin_unlock() 116 static inline int arch_spin_value_unlocked(arch_spinlock_t lock) in arch_spin_value_unlocked() 121 static inline int arch_spin_is_locked(arch_spinlock_t *lock) in arch_spin_is_locked() 126 static inline int arch_spin_is_contended(arch_spinlock_t *lock) in arch_spin_is_contended() 280 #define arch_read_lock_flags(lock, flags) arch_read_lock(lock) argument 281 #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/m32r/include/asm/ |
D | spinlock.h | 29 #define arch_spin_lock_flags(lock, flags) arch_spin_lock(lock) argument 40 static inline int arch_spin_trylock(arch_spinlock_t *lock) in arch_spin_trylock() 73 static inline void arch_spin_lock(arch_spinlock_t *lock) in arch_spin_lock() 115 static inline void arch_spin_unlock(arch_spinlock_t *lock) in arch_spin_unlock() 302 static inline int arch_read_trylock(arch_rwlock_t *lock) in arch_read_trylock() 311 static inline int arch_write_trylock(arch_rwlock_t *lock) in arch_write_trylock() 320 #define arch_read_lock_flags(lock, flags) arch_read_lock(lock) argument 321 #define arch_write_lock_flags(lock, flags) arch_write_lock(lock) argument 323 #define arch_spin_relax(lock) cpu_relax() argument 324 #define arch_read_relax(lock) cpu_relax() argument [all …]
|
/arch/powerpc/include/asm/ |
D | spinlock.h | 57 static __always_inline int arch_spin_value_unlocked(arch_spinlock_t lock) in arch_spin_value_unlocked() 62 static inline int arch_spin_is_locked(arch_spinlock_t *lock) in arch_spin_is_locked() 72 static inline unsigned long __arch_spin_trylock(arch_spinlock_t *lock) in __arch_spin_trylock() 92 static inline int arch_spin_trylock(arch_spinlock_t *lock) in arch_spin_trylock() 123 static inline void arch_spin_lock(arch_spinlock_t *lock) in arch_spin_lock() 139 void arch_spin_lock_flags(arch_spinlock_t *lock, unsigned long flags) in arch_spin_lock_flags() 159 static inline void arch_spin_unlock(arch_spinlock_t *lock) in arch_spin_unlock() 170 #define arch_spin_unlock_wait(lock) \ argument 306 #define arch_read_lock_flags(lock, flags) arch_read_lock(lock) argument 307 #define arch_write_lock_flags(lock, flags) arch_write_lock(lock) argument [all …]
|
/arch/mips/include/asm/ |
D | spinlock.h | 38 static inline int arch_spin_is_locked(arch_spinlock_t *lock) in arch_spin_is_locked() 45 #define arch_spin_lock_flags(lock, flags) arch_spin_lock(lock) argument 49 static inline int arch_spin_is_contended(arch_spinlock_t *lock) in arch_spin_is_contended() 57 static inline void arch_spin_lock(arch_spinlock_t *lock) in arch_spin_lock() 135 static inline void arch_spin_unlock(arch_spinlock_t *lock) in arch_spin_unlock() 143 static inline unsigned int arch_spin_trylock(arch_spinlock_t *lock) in arch_spin_trylock() 418 #define arch_read_lock_flags(lock, flags) arch_read_lock(lock) argument 419 #define arch_write_lock_flags(lock, flags) arch_write_lock(lock) argument 421 #define arch_spin_relax(lock) cpu_relax() argument 422 #define arch_read_relax(lock) cpu_relax() argument [all …]
|
/arch/arc/include/asm/ |
D | spinlock.h | 17 #define arch_spin_lock_flags(lock, flags) arch_spin_lock(lock) argument 21 static inline void arch_spin_lock(arch_spinlock_t *lock) in arch_spin_lock() 51 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() 176 #define arch_read_lock_flags(lock, flags) arch_read_lock(lock) argument 177 #define arch_write_lock_flags(lock, flags) arch_write_lock(lock) argument 179 #define arch_spin_relax(lock) cpu_relax() argument 180 #define arch_read_relax(lock) cpu_relax() argument 181 #define arch_write_relax(lock) cpu_relax() argument
|
/arch/sh/include/asm/ |
D | spinlock.h | 27 #define arch_spin_lock_flags(lock, flags) arch_spin_lock(lock) argument 37 static inline void arch_spin_lock(arch_spinlock_t *lock) in arch_spin_lock() 57 static inline void arch_spin_unlock(arch_spinlock_t *lock) in arch_spin_unlock() 70 static inline int arch_spin_trylock(arch_spinlock_t *lock) in arch_spin_trylock() 219 #define arch_read_lock_flags(lock, flags) arch_read_lock(lock) argument 220 #define arch_write_lock_flags(lock, flags) arch_write_lock(lock) argument 222 #define arch_spin_relax(lock) cpu_relax() argument 223 #define arch_read_relax(lock) cpu_relax() argument 224 #define arch_write_relax(lock) cpu_relax() argument
|
/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() 51 #define arch_spin_lock_flags(lock, flags) arch_spin_lock(lock) argument 55 static inline void arch_spin_unlock(arch_spinlock_t *lock) in arch_spin_unlock() 126 #define arch_read_lock_flags(lock, flags) arch_read_lock(lock) argument 127 #define arch_write_lock_flags(lock, flags) arch_write_lock(lock) argument
|
D | spinlock_64.h | 45 static inline int arch_spin_is_locked(arch_spinlock_t *lock) in arch_spin_is_locked() 52 static inline void arch_spin_unlock(arch_spinlock_t *lock) in arch_spin_unlock() 66 static inline void arch_spin_lock(arch_spinlock_t *lock) in arch_spin_lock() 78 #define arch_spin_lock_flags(lock, flags) arch_spin_lock(lock) argument 158 #define arch_read_lock_flags(lock, flags) arch_read_lock(lock) argument 159 #define arch_write_lock_flags(lock, flags) arch_write_lock(lock) argument
|
D | spinlock_types.h | 26 unsigned int lock; member 33 unsigned int lock; member 54 unsigned int lock; member
|
/arch/xtensa/include/asm/ |
D | spinlock.h | 32 #define arch_spin_unlock_wait(lock) \ argument 35 #define arch_spin_lock_flags(lock, flags) arch_spin_lock(lock) argument 37 static inline void arch_spin_lock(arch_spinlock_t *lock) in arch_spin_lock() 54 static inline int arch_spin_trylock(arch_spinlock_t *lock) in arch_spin_trylock() 70 static inline void arch_spin_unlock(arch_spinlock_t *lock) in arch_spin_unlock() 202 #define arch_read_lock_flags(lock, flags) arch_read_lock(lock) argument 203 #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()
|