/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/x86/include/asm/ |
D | spinlock.h | 50 static __always_inline void __ticket_spin_lock(arch_spinlock_t *lock) in __ticket_spin_lock() 65 static __always_inline int __ticket_spin_trylock(arch_spinlock_t *lock) in __ticket_spin_trylock() 79 static __always_inline void __ticket_spin_unlock(arch_spinlock_t *lock) in __ticket_spin_unlock() 84 static inline int __ticket_spin_is_locked(arch_spinlock_t *lock) in __ticket_spin_is_locked() 91 static inline int __ticket_spin_is_contended(arch_spinlock_t *lock) in __ticket_spin_is_contended() 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() 111 static __always_inline void arch_spin_lock(arch_spinlock_t *lock) in arch_spin_lock() 116 static __always_inline int arch_spin_trylock(arch_spinlock_t *lock) in arch_spin_trylock() 121 static __always_inline void arch_spin_unlock(arch_spinlock_t *lock) in arch_spin_unlock() [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/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/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 inline int arch_spin_is_locked(arch_spinlock_t *lock) in arch_spin_is_locked() 110 static inline int arch_spin_is_contended(arch_spinlock_t *lock) in arch_spin_is_contended() 116 static __always_inline void arch_spin_lock(arch_spinlock_t *lock) in arch_spin_lock() 121 static __always_inline int arch_spin_trylock(arch_spinlock_t *lock) in arch_spin_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/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/arm/include/asm/ |
D | spinlock.h | 69 #define arch_spin_unlock_wait(lock) \ argument 72 #define arch_spin_lock_flags(lock, flags) arch_spin_lock(lock) argument 74 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() 120 static inline void arch_spin_unlock(arch_spinlock_t *lock) in arch_spin_unlock() 127 static inline int arch_spin_is_locked(arch_spinlock_t *lock) in arch_spin_is_locked() 133 static inline int arch_spin_is_contended(arch_spinlock_t *lock) in arch_spin_is_contended() 271 #define arch_read_lock_flags(lock, flags) arch_read_lock(lock) argument 272 #define arch_write_lock_flags(lock, flags) arch_write_lock(lock) argument 274 #define arch_spin_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() 33 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() 137 #define arch_read_lock_flags(lock, flags) arch_read_lock(lock) argument 138 #define arch_write_lock_flags(lock, flags) arch_write_lock(lock) argument 140 #define arch_spin_relax(lock) cpu_relax() argument 141 #define arch_read_relax(lock) cpu_relax() argument 142 #define arch_write_relax(lock) cpu_relax() argument
|
/arch/mips/include/asm/ |
D | spinlock.h | 37 static inline int arch_spin_is_locked(arch_spinlock_t *lock) in arch_spin_is_locked() 44 #define arch_spin_lock_flags(lock, flags) arch_spin_lock(lock) argument 48 static inline int arch_spin_is_contended(arch_spinlock_t *lock) in arch_spin_is_contended() 56 static inline void arch_spin_lock(arch_spinlock_t *lock) in arch_spin_lock() 134 static inline void arch_spin_unlock(arch_spinlock_t *lock) in arch_spin_unlock() 142 static inline unsigned int arch_spin_trylock(arch_spinlock_t *lock) in arch_spin_trylock() 515 #define arch_read_lock_flags(lock, flags) arch_read_lock(lock) argument 516 #define arch_write_lock_flags(lock, flags) arch_write_lock(lock) argument 518 #define arch_spin_relax(lock) cpu_relax() argument 519 #define arch_read_relax(lock) cpu_relax() argument [all …]
|
/arch/powerpc/include/asm/ |
D | spinlock.h | 57 static inline unsigned long __arch_spin_trylock(arch_spinlock_t *lock) in __arch_spin_trylock() 77 static inline int arch_spin_trylock(arch_spinlock_t *lock) in arch_spin_trylock() 108 static inline void arch_spin_lock(arch_spinlock_t *lock) in arch_spin_lock() 124 void arch_spin_lock_flags(arch_spinlock_t *lock, unsigned long flags) in arch_spin_lock_flags() 144 static inline void arch_spin_unlock(arch_spinlock_t *lock) in arch_spin_unlock() 155 #define arch_spin_unlock_wait(lock) \ argument 291 #define arch_read_lock_flags(lock, flags) arch_read_lock(lock) argument 292 #define arch_write_lock_flags(lock, flags) arch_write_lock(lock) argument 294 #define arch_spin_relax(lock) __spin_yield(lock) argument 295 #define arch_read_relax(lock) __rw_yield(lock) argument [all …]
|
/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/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()
|
/arch/parisc/include/asm/ |
D | spinlock.h | 15 #define arch_spin_lock(lock) arch_spin_lock_flags(lock, 0) argument 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 arch_spin_relax(lock) cpu_relax() argument 195 #define arch_read_relax(lock) cpu_relax() argument 196 #define arch_write_relax(lock) cpu_relax() argument
|
/arch/xtensa/include/asm/ |
D | spinlock.h | 32 #define __raw_spin_unlock_wait(lock) \ argument 35 #define __raw_spin_lock_flags(lock, flags) __raw_spin_lock(lock) argument 37 static inline void __raw_spin_lock(raw_spinlock_t *lock) in __raw_spin_lock() 54 static inline int __raw_spin_trylock(raw_spinlock_t *lock) in __raw_spin_trylock() 70 static inline void __raw_spin_unlock(raw_spinlock_t *lock) in __raw_spin_unlock()
|