Searched refs:raw_lock (Results 1 - 9 of 9) sorted by relevance

/linux-4.1.27/include/linux/
H A Drwlock_types.h12 arch_rwlock_t raw_lock; member in struct:__anon12405
35 (rwlock_t) { .raw_lock = __ARCH_RW_LOCK_UNLOCKED, \
42 (rwlock_t) { .raw_lock = __ARCH_RW_LOCK_UNLOCKED, \
H A Drwlock.h41 # define do_raw_read_lock(rwlock) do {__acquire(lock); arch_read_lock(&(rwlock)->raw_lock); } while (0)
43 do {__acquire(lock); arch_read_lock_flags(&(lock)->raw_lock, *(flags)); } while (0)
44 # define do_raw_read_trylock(rwlock) arch_read_trylock(&(rwlock)->raw_lock)
45 # define do_raw_read_unlock(rwlock) do {arch_read_unlock(&(rwlock)->raw_lock); __release(lock); } while (0)
46 # define do_raw_write_lock(rwlock) do {__acquire(lock); arch_write_lock(&(rwlock)->raw_lock); } while (0)
48 do {__acquire(lock); arch_write_lock_flags(&(lock)->raw_lock, *(flags)); } while (0)
49 # define do_raw_write_trylock(rwlock) arch_write_trylock(&(rwlock)->raw_lock)
50 # define do_raw_write_unlock(rwlock) do {arch_write_unlock(&(rwlock)->raw_lock); __release(lock); } while (0)
53 #define read_can_lock(rwlock) arch_read_can_lock(&(rwlock)->raw_lock)
54 #define write_can_lock(rwlock) arch_write_can_lock(&(rwlock)->raw_lock)
H A Dspinlock_types.h21 arch_spinlock_t raw_lock; member in struct:raw_spinlock
55 .raw_lock = __ARCH_SPIN_LOCK_UNLOCKED, \
H A Dspinlock.h107 #define raw_spin_is_locked(lock) arch_spin_is_locked(&(lock)->raw_lock)
114 #define raw_spin_is_contended(lock) arch_spin_is_contended(&(lock)->raw_lock)
147 #define raw_spin_unlock_wait(lock) arch_spin_unlock_wait(&(lock)->raw_lock)
158 arch_spin_lock(&lock->raw_lock); __acquires()
165 arch_spin_lock_flags(&lock->raw_lock, *flags); __acquires()
170 return arch_spin_trylock(&(lock)->raw_lock); do_raw_spin_trylock()
175 arch_spin_unlock(&lock->raw_lock); __releases()
/linux-4.1.27/kernel/locking/
H A Dspinlock_debug.c26 lock->raw_lock = (arch_spinlock_t)__ARCH_SPIN_LOCK_UNLOCKED; __raw_spin_lock_init()
44 lock->raw_lock = (arch_rwlock_t) __ARCH_RW_LOCK_UNLOCKED; __rwlock_init()
112 if (arch_spin_trylock(&lock->raw_lock)) __spin_lock_debug()
130 arch_spin_lock(&lock->raw_lock); __spin_lock_debug()
136 if (unlikely(!arch_spin_trylock(&lock->raw_lock))) do_raw_spin_lock()
143 int ret = arch_spin_trylock(&lock->raw_lock); do_raw_spin_trylock()
159 arch_spin_unlock(&lock->raw_lock); do_raw_spin_unlock()
184 if (arch_read_trylock(&lock->raw_lock))
204 arch_read_lock(&lock->raw_lock); do_raw_read_lock()
209 int ret = arch_read_trylock(&lock->raw_lock); do_raw_read_trylock()
223 arch_read_unlock(&lock->raw_lock); do_raw_read_unlock()
259 if (arch_write_trylock(&lock->raw_lock))
279 arch_write_lock(&lock->raw_lock); do_raw_write_lock()
285 int ret = arch_write_trylock(&lock->raw_lock); do_raw_write_trylock()
301 arch_write_unlock(&lock->raw_lock); do_raw_write_unlock()
H A Dmutex-debug.h46 arch_spin_lock(&(lock)->rlock.raw_lock);\
52 arch_spin_unlock(&(lock)->rlock.raw_lock); \
H A Dspinlock.c72 arch_##op##_relax(&lock->raw_lock); \
92 arch_##op##_relax(&lock->raw_lock); \
/linux-4.1.27/net/ieee802154/
H A Dsocket.c185 static DEFINE_RWLOCK(raw_lock);
189 write_lock_bh(&raw_lock); raw_hash()
192 write_unlock_bh(&raw_lock); raw_hash()
197 write_lock_bh(&raw_lock); raw_unhash()
200 write_unlock_bh(&raw_lock); raw_unhash()
380 read_lock(&raw_lock); ieee802154_raw_deliver()
393 read_unlock(&raw_lock); ieee802154_raw_deliver()
/linux-4.1.27/lib/
H A Dlockref.c22 while (likely(arch_spin_value_unlocked(old.lock.rlock.raw_lock))) { \

Completed in 209 milliseconds