• Home
  • Raw
  • Download

Lines Matching refs:lock

23 static inline void __raw_spin_lock(raw_spinlock_t *lock)  in __raw_spin_lock()  argument
25 lock->slock = 0; in __raw_spin_lock()
29 __raw_spin_lock_flags(raw_spinlock_t *lock, unsigned long flags) in __raw_spin_lock_flags() argument
32 lock->slock = 0; in __raw_spin_lock_flags()
35 static inline int __raw_spin_trylock(raw_spinlock_t *lock) in __raw_spin_trylock() argument
37 char oldval = lock->slock; in __raw_spin_trylock()
39 lock->slock = 0; in __raw_spin_trylock()
44 static inline void __raw_spin_unlock(raw_spinlock_t *lock) in __raw_spin_unlock() argument
46 lock->slock = 1; in __raw_spin_unlock()
52 #define __raw_read_lock(lock) do { (void)(lock); } while (0) argument
53 #define __raw_write_lock(lock) do { (void)(lock); } while (0) argument
54 #define __raw_read_trylock(lock) ({ (void)(lock); 1; }) argument
55 #define __raw_write_trylock(lock) ({ (void)(lock); 1; }) argument
56 #define __raw_read_unlock(lock) do { (void)(lock); } while (0) argument
57 #define __raw_write_unlock(lock) do { (void)(lock); } while (0) argument
60 #define __raw_spin_is_locked(lock) ((void)(lock), 0) argument
62 # define __raw_spin_lock(lock) do { (void)(lock); } while (0) argument
63 # define __raw_spin_unlock(lock) do { (void)(lock); } while (0) argument
64 # define __raw_spin_trylock(lock) ({ (void)(lock); 1; }) argument
67 #define __raw_read_can_lock(lock) (((void)(lock), 1)) argument
68 #define __raw_write_can_lock(lock) (((void)(lock), 1)) argument
70 #define __raw_spin_unlock_wait(lock) \ argument
71 do { cpu_relax(); } while (__raw_spin_is_locked(lock))