Lines Matching refs:lock

68 void __lockfunc __raw_##op##_lock(locktype##_t *lock)			\
72 if (likely(do_raw_##op##_trylock(lock))) \
76 arch_##op##_relax(&lock->raw_lock); \
80 unsigned long __lockfunc __raw_##op##_lock_irqsave(locktype##_t *lock) \
87 if (likely(do_raw_##op##_trylock(lock))) \
92 arch_##op##_relax(&lock->raw_lock); \
98 void __lockfunc __raw_##op##_lock_irq(locktype##_t *lock) \
100 _raw_##op##_lock_irqsave(lock); \
103 void __lockfunc __raw_##op##_lock_bh(locktype##_t *lock) \
112 flags = _raw_##op##_lock_irqsave(lock); \
136 noinline int __lockfunc _raw_spin_trylock(raw_spinlock_t *lock) in _raw_spin_trylock() argument
138 return __raw_spin_trylock(lock); in _raw_spin_trylock()
144 noinline int __lockfunc _raw_spin_trylock_bh(raw_spinlock_t *lock) in _raw_spin_trylock_bh() argument
146 return __raw_spin_trylock_bh(lock); in _raw_spin_trylock_bh()
152 noinline void __lockfunc _raw_spin_lock(raw_spinlock_t *lock) in _raw_spin_lock() argument
154 __raw_spin_lock(lock); in _raw_spin_lock()
160 noinline unsigned long __lockfunc _raw_spin_lock_irqsave(raw_spinlock_t *lock) in _raw_spin_lock_irqsave() argument
162 return __raw_spin_lock_irqsave(lock); in _raw_spin_lock_irqsave()
168 noinline void __lockfunc _raw_spin_lock_irq(raw_spinlock_t *lock) in _raw_spin_lock_irq() argument
170 __raw_spin_lock_irq(lock); in _raw_spin_lock_irq()
176 noinline void __lockfunc _raw_spin_lock_bh(raw_spinlock_t *lock) in _raw_spin_lock_bh() argument
178 __raw_spin_lock_bh(lock); in _raw_spin_lock_bh()
184 noinline void __lockfunc _raw_spin_unlock(raw_spinlock_t *lock) in _raw_spin_unlock() argument
186 __raw_spin_unlock(lock); in _raw_spin_unlock()
192 noinline void __lockfunc _raw_spin_unlock_irqrestore(raw_spinlock_t *lock, unsigned long flags) in _raw_spin_unlock_irqrestore() argument
194 __raw_spin_unlock_irqrestore(lock, flags); in _raw_spin_unlock_irqrestore()
200 noinline void __lockfunc _raw_spin_unlock_irq(raw_spinlock_t *lock) in _raw_spin_unlock_irq() argument
202 __raw_spin_unlock_irq(lock); in _raw_spin_unlock_irq()
208 noinline void __lockfunc _raw_spin_unlock_bh(raw_spinlock_t *lock) in _raw_spin_unlock_bh() argument
210 __raw_spin_unlock_bh(lock); in _raw_spin_unlock_bh()
218 noinline int __lockfunc _raw_read_trylock(rwlock_t *lock) in _raw_read_trylock() argument
220 return __raw_read_trylock(lock); in _raw_read_trylock()
226 noinline void __lockfunc _raw_read_lock(rwlock_t *lock) in _raw_read_lock() argument
228 __raw_read_lock(lock); in _raw_read_lock()
234 noinline unsigned long __lockfunc _raw_read_lock_irqsave(rwlock_t *lock) in _raw_read_lock_irqsave() argument
236 return __raw_read_lock_irqsave(lock); in _raw_read_lock_irqsave()
242 noinline void __lockfunc _raw_read_lock_irq(rwlock_t *lock) in _raw_read_lock_irq() argument
244 __raw_read_lock_irq(lock); in _raw_read_lock_irq()
250 noinline void __lockfunc _raw_read_lock_bh(rwlock_t *lock) in _raw_read_lock_bh() argument
252 __raw_read_lock_bh(lock); in _raw_read_lock_bh()
258 noinline void __lockfunc _raw_read_unlock(rwlock_t *lock) in _raw_read_unlock() argument
260 __raw_read_unlock(lock); in _raw_read_unlock()
266 noinline void __lockfunc _raw_read_unlock_irqrestore(rwlock_t *lock, unsigned long flags) in _raw_read_unlock_irqrestore() argument
268 __raw_read_unlock_irqrestore(lock, flags); in _raw_read_unlock_irqrestore()
274 noinline void __lockfunc _raw_read_unlock_irq(rwlock_t *lock) in _raw_read_unlock_irq() argument
276 __raw_read_unlock_irq(lock); in _raw_read_unlock_irq()
282 noinline void __lockfunc _raw_read_unlock_bh(rwlock_t *lock) in _raw_read_unlock_bh() argument
284 __raw_read_unlock_bh(lock); in _raw_read_unlock_bh()
290 noinline int __lockfunc _raw_write_trylock(rwlock_t *lock) in _raw_write_trylock() argument
292 return __raw_write_trylock(lock); in _raw_write_trylock()
298 noinline void __lockfunc _raw_write_lock(rwlock_t *lock) in _raw_write_lock() argument
300 __raw_write_lock(lock); in _raw_write_lock()
305 #define __raw_write_lock_nested(lock, subclass) __raw_write_lock(((void)(subclass), (lock))) argument
308 void __lockfunc _raw_write_lock_nested(rwlock_t *lock, int subclass) in _raw_write_lock_nested() argument
310 __raw_write_lock_nested(lock, subclass); in _raw_write_lock_nested()
316 noinline unsigned long __lockfunc _raw_write_lock_irqsave(rwlock_t *lock) in _raw_write_lock_irqsave() argument
318 return __raw_write_lock_irqsave(lock); in _raw_write_lock_irqsave()
324 noinline void __lockfunc _raw_write_lock_irq(rwlock_t *lock) in _raw_write_lock_irq() argument
326 __raw_write_lock_irq(lock); in _raw_write_lock_irq()
332 noinline void __lockfunc _raw_write_lock_bh(rwlock_t *lock) in _raw_write_lock_bh() argument
334 __raw_write_lock_bh(lock); in _raw_write_lock_bh()
340 noinline void __lockfunc _raw_write_unlock(rwlock_t *lock) in _raw_write_unlock() argument
342 __raw_write_unlock(lock); in _raw_write_unlock()
348 noinline void __lockfunc _raw_write_unlock_irqrestore(rwlock_t *lock, unsigned long flags) in _raw_write_unlock_irqrestore() argument
350 __raw_write_unlock_irqrestore(lock, flags); in _raw_write_unlock_irqrestore()
356 noinline void __lockfunc _raw_write_unlock_irq(rwlock_t *lock) in _raw_write_unlock_irq() argument
358 __raw_write_unlock_irq(lock); in _raw_write_unlock_irq()
364 noinline void __lockfunc _raw_write_unlock_bh(rwlock_t *lock) in _raw_write_unlock_bh() argument
366 __raw_write_unlock_bh(lock); in _raw_write_unlock_bh()
375 void __lockfunc _raw_spin_lock_nested(raw_spinlock_t *lock, int subclass) in _raw_spin_lock_nested() argument
378 spin_acquire(&lock->dep_map, subclass, 0, _RET_IP_); in _raw_spin_lock_nested()
379 LOCK_CONTENDED(lock, do_raw_spin_trylock, do_raw_spin_lock); in _raw_spin_lock_nested()
383 unsigned long __lockfunc _raw_spin_lock_irqsave_nested(raw_spinlock_t *lock, in _raw_spin_lock_irqsave_nested() argument
390 spin_acquire(&lock->dep_map, subclass, 0, _RET_IP_); in _raw_spin_lock_irqsave_nested()
391 LOCK_CONTENDED(lock, do_raw_spin_trylock, do_raw_spin_lock); in _raw_spin_lock_irqsave_nested()
396 void __lockfunc _raw_spin_lock_nest_lock(raw_spinlock_t *lock, in _raw_spin_lock_nest_lock() argument
400 spin_acquire_nest(&lock->dep_map, 0, 0, nest_lock, _RET_IP_); in _raw_spin_lock_nest_lock()
401 LOCK_CONTENDED(lock, do_raw_spin_trylock, do_raw_spin_lock); in _raw_spin_lock_nest_lock()