Lines Matching refs:lock
22 void __lockfunc _raw_spin_lock(raw_spinlock_t *lock) __acquires(lock);
23 void __lockfunc _raw_spin_lock_nested(raw_spinlock_t *lock, int subclass)
24 __acquires(lock);
26 _raw_spin_lock_nest_lock(raw_spinlock_t *lock, struct lockdep_map *map)
27 __acquires(lock);
28 void __lockfunc _raw_spin_lock_bh(raw_spinlock_t *lock) __acquires(lock);
29 void __lockfunc _raw_spin_lock_irq(raw_spinlock_t *lock)
30 __acquires(lock);
32 unsigned long __lockfunc _raw_spin_lock_irqsave(raw_spinlock_t *lock)
33 __acquires(lock);
35 _raw_spin_lock_irqsave_nested(raw_spinlock_t *lock, int subclass)
36 __acquires(lock);
37 int __lockfunc _raw_spin_trylock(raw_spinlock_t *lock);
38 int __lockfunc _raw_spin_trylock_bh(raw_spinlock_t *lock);
39 void __lockfunc _raw_spin_unlock(raw_spinlock_t *lock) __releases(lock);
40 void __lockfunc _raw_spin_unlock_bh(raw_spinlock_t *lock) __releases(lock);
41 void __lockfunc _raw_spin_unlock_irq(raw_spinlock_t *lock) __releases(lock);
43 _raw_spin_unlock_irqrestore(raw_spinlock_t *lock, unsigned long flags)
44 __releases(lock);
47 #define _raw_spin_lock(lock) __raw_spin_lock(lock) argument
51 #define _raw_spin_lock_bh(lock) __raw_spin_lock_bh(lock) argument
55 #define _raw_spin_lock_irq(lock) __raw_spin_lock_irq(lock) argument
59 #define _raw_spin_lock_irqsave(lock) __raw_spin_lock_irqsave(lock) argument
63 #define _raw_spin_trylock(lock) __raw_spin_trylock(lock) argument
67 #define _raw_spin_trylock_bh(lock) __raw_spin_trylock_bh(lock) argument
71 #define _raw_spin_unlock(lock) __raw_spin_unlock(lock) argument
75 #define _raw_spin_unlock_bh(lock) __raw_spin_unlock_bh(lock) argument
79 #define _raw_spin_unlock_irq(lock) __raw_spin_unlock_irq(lock) argument
83 #define _raw_spin_unlock_irqrestore(lock, flags) __raw_spin_unlock_irqrestore(lock, flags) argument
86 static inline int __raw_spin_trylock(raw_spinlock_t *lock) in __raw_spin_trylock() argument
89 if (do_raw_spin_trylock(lock)) { in __raw_spin_trylock()
90 spin_acquire(&lock->dep_map, 0, 1, _RET_IP_); in __raw_spin_trylock()
104 static inline unsigned long __raw_spin_lock_irqsave(raw_spinlock_t *lock) in __raw_spin_lock_irqsave() argument
110 spin_acquire(&lock->dep_map, 0, 0, _RET_IP_); in __raw_spin_lock_irqsave()
111 LOCK_CONTENDED(lock, do_raw_spin_trylock, do_raw_spin_lock); in __raw_spin_lock_irqsave()
115 static inline void __raw_spin_lock_irq(raw_spinlock_t *lock) in __raw_spin_lock_irq() argument
119 spin_acquire(&lock->dep_map, 0, 0, _RET_IP_); in __raw_spin_lock_irq()
120 LOCK_CONTENDED(lock, do_raw_spin_trylock, do_raw_spin_lock); in __raw_spin_lock_irq()
123 static inline void __raw_spin_lock_bh(raw_spinlock_t *lock) in __raw_spin_lock_bh() argument
126 spin_acquire(&lock->dep_map, 0, 0, _RET_IP_); in __raw_spin_lock_bh()
127 LOCK_CONTENDED(lock, do_raw_spin_trylock, do_raw_spin_lock); in __raw_spin_lock_bh()
130 static inline void __raw_spin_lock(raw_spinlock_t *lock) in __raw_spin_lock() argument
133 spin_acquire(&lock->dep_map, 0, 0, _RET_IP_); in __raw_spin_lock()
134 LOCK_CONTENDED(lock, do_raw_spin_trylock, do_raw_spin_lock); in __raw_spin_lock()
139 static inline void __raw_spin_unlock(raw_spinlock_t *lock) in __raw_spin_unlock() argument
141 spin_release(&lock->dep_map, _RET_IP_); in __raw_spin_unlock()
142 do_raw_spin_unlock(lock); in __raw_spin_unlock()
146 static inline void __raw_spin_unlock_irqrestore(raw_spinlock_t *lock, in __raw_spin_unlock_irqrestore() argument
149 spin_release(&lock->dep_map, _RET_IP_); in __raw_spin_unlock_irqrestore()
150 do_raw_spin_unlock(lock); in __raw_spin_unlock_irqrestore()
155 static inline void __raw_spin_unlock_irq(raw_spinlock_t *lock) in __raw_spin_unlock_irq() argument
157 spin_release(&lock->dep_map, _RET_IP_); in __raw_spin_unlock_irq()
158 do_raw_spin_unlock(lock); in __raw_spin_unlock_irq()
163 static inline void __raw_spin_unlock_bh(raw_spinlock_t *lock) in __raw_spin_unlock_bh() argument
165 spin_release(&lock->dep_map, _RET_IP_); in __raw_spin_unlock_bh()
166 do_raw_spin_unlock(lock); in __raw_spin_unlock_bh()
170 static inline int __raw_spin_trylock_bh(raw_spinlock_t *lock) in __raw_spin_trylock_bh() argument
173 if (do_raw_spin_trylock(lock)) { in __raw_spin_trylock_bh()
174 spin_acquire(&lock->dep_map, 0, 1, _RET_IP_); in __raw_spin_trylock_bh()