• Home
  • Raw
  • Download

Lines Matching defs:lock

95 # define raw_spin_lock_init(lock)				\  argument
103 # define raw_spin_lock_init(lock) \ argument
107 #define raw_spin_is_locked(lock) arch_spin_is_locked(&(lock)->raw_lock) argument
110 #define raw_spin_is_contended(lock) ((lock)->break_lock) argument
114 #define raw_spin_is_contended(lock) arch_spin_is_contended(&(lock)->raw_lock) argument
116 #define raw_spin_is_contended(lock) (((void)(lock), 0)) argument
129 #define raw_spin_unlock_wait(lock) arch_spin_unlock_wait(&(lock)->raw_lock) argument
133 #define do_raw_spin_lock_flags(lock, flags) do_raw_spin_lock(lock) argument
137 static inline void do_raw_spin_lock(raw_spinlock_t *lock) __acquires(lock) in do_raw_spin_lock()
144 do_raw_spin_lock_flags(raw_spinlock_t *lock, unsigned long *flags) __acquires(lock) in do_raw_spin_lock_flags()
150 static inline int do_raw_spin_trylock(raw_spinlock_t *lock) in do_raw_spin_trylock()
155 static inline void do_raw_spin_unlock(raw_spinlock_t *lock) __releases(lock) in do_raw_spin_unlock()
168 #define raw_spin_trylock(lock) __cond_lock(lock, _raw_spin_trylock(lock)) argument
170 #define raw_spin_lock(lock) _raw_spin_lock(lock) argument
173 # define raw_spin_lock_nested(lock, subclass) \ argument
176 # define raw_spin_lock_nest_lock(lock, nest_lock) \ argument
182 # define raw_spin_lock_nested(lock, subclass) _raw_spin_lock(lock) argument
183 # define raw_spin_lock_nest_lock(lock, nest_lock) _raw_spin_lock(lock) argument
188 #define raw_spin_lock_irqsave(lock, flags) \ argument
195 #define raw_spin_lock_irqsave_nested(lock, flags, subclass) \ argument
201 #define raw_spin_lock_irqsave_nested(lock, flags, subclass) \ argument
210 #define raw_spin_lock_irqsave(lock, flags) \ argument
216 #define raw_spin_lock_irqsave_nested(lock, flags, subclass) \ argument
221 #define raw_spin_lock_irq(lock) _raw_spin_lock_irq(lock) argument
222 #define raw_spin_lock_bh(lock) _raw_spin_lock_bh(lock) argument
223 #define raw_spin_unlock(lock) _raw_spin_unlock(lock) argument
224 #define raw_spin_unlock_irq(lock) _raw_spin_unlock_irq(lock) argument
226 #define raw_spin_unlock_irqrestore(lock, flags) \ argument
231 #define raw_spin_unlock_bh(lock) _raw_spin_unlock_bh(lock) argument
233 #define raw_spin_trylock_bh(lock) \ argument
236 #define raw_spin_trylock_irq(lock) \ argument
243 #define raw_spin_trylock_irqsave(lock, flags) \ argument
254 #define raw_spin_can_lock(lock) (!raw_spin_is_locked(lock)) argument
272 static inline raw_spinlock_t *spinlock_check(spinlock_t *lock) in spinlock_check()
283 static inline void spin_lock(spinlock_t *lock) in spin_lock()
288 static inline void spin_lock_bh(spinlock_t *lock) in spin_lock_bh()
293 static inline int spin_trylock(spinlock_t *lock) in spin_trylock()
298 #define spin_lock_nested(lock, subclass) \ argument
303 #define spin_lock_nest_lock(lock, nest_lock) \ argument
308 static inline void spin_lock_irq(spinlock_t *lock) in spin_lock_irq()
313 #define spin_lock_irqsave(lock, flags) \ argument
318 #define spin_lock_irqsave_nested(lock, flags, subclass) \ argument
323 static inline void spin_unlock(spinlock_t *lock) in spin_unlock()
328 static inline void spin_unlock_bh(spinlock_t *lock) in spin_unlock_bh()
333 static inline void spin_unlock_irq(spinlock_t *lock) in spin_unlock_irq()
338 static inline void spin_unlock_irqrestore(spinlock_t *lock, unsigned long flags) in spin_unlock_irqrestore()
343 static inline int spin_trylock_bh(spinlock_t *lock) in spin_trylock_bh()
348 static inline int spin_trylock_irq(spinlock_t *lock) in spin_trylock_irq()
353 #define spin_trylock_irqsave(lock, flags) \ argument
358 static inline void spin_unlock_wait(spinlock_t *lock) in spin_unlock_wait()
363 static inline int spin_is_locked(spinlock_t *lock) in spin_is_locked()
368 static inline int spin_is_contended(spinlock_t *lock) in spin_is_contended()
373 static inline int spin_can_lock(spinlock_t *lock) in spin_can_lock()
378 #define assert_spin_locked(lock) assert_raw_spin_locked(&(lock)->rlock) argument
394 #define atomic_dec_and_lock(atomic, lock) \ argument