Home
last modified time | relevance | path

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

/linux-2.6.39/include/linux/
Drwlock.h41 # define do_raw_read_lock(rwlock) do {__acquire(lock); arch_read_lock(&(rwlock)->raw_lock); } while…
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); } w…
46 # define do_raw_write_lock(rwlock) do {__acquire(lock); arch_write_lock(&(rwlock)->raw_lock); } whi…
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); }…
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)
Drwlock_types.h12 arch_rwlock_t raw_lock; member
35 (rwlock_t) { .raw_lock = __ARCH_RW_LOCK_UNLOCKED, \
42 (rwlock_t) { .raw_lock = __ARCH_RW_LOCK_UNLOCKED, \
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)
129 #define raw_spin_unlock_wait(lock) arch_spin_unlock_wait(&(lock)->raw_lock)
140 arch_spin_lock(&lock->raw_lock); in do_raw_spin_lock()
147 arch_spin_lock_flags(&lock->raw_lock, *flags); in do_raw_spin_lock_flags()
152 return arch_spin_trylock(&(lock)->raw_lock); in do_raw_spin_trylock()
157 arch_spin_unlock(&lock->raw_lock); in do_raw_spin_unlock()
Dspinlock_types.h21 arch_spinlock_t raw_lock; member
55 .raw_lock = __ARCH_SPIN_LOCK_UNLOCKED, \
/linux-2.6.39/lib/
Dspinlock_debug.c26 lock->raw_lock = (arch_spinlock_t)__ARCH_SPIN_LOCK_UNLOCKED; in __raw_spin_lock_init()
44 lock->raw_lock = (arch_rwlock_t) __ARCH_RW_LOCK_UNLOCKED; in __rwlock_init()
109 if (arch_spin_trylock(&lock->raw_lock)) in __spin_lock_debug()
131 if (unlikely(!arch_spin_trylock(&lock->raw_lock))) in do_raw_spin_lock()
138 int ret = arch_spin_trylock(&lock->raw_lock); in do_raw_spin_trylock()
154 arch_spin_unlock(&lock->raw_lock); in do_raw_spin_unlock()
179 if (arch_read_trylock(&lock->raw_lock))
199 arch_read_lock(&lock->raw_lock); in do_raw_read_lock()
204 int ret = arch_read_trylock(&lock->raw_lock); in do_raw_read_trylock()
218 arch_read_unlock(&lock->raw_lock); in do_raw_read_unlock()
[all …]
/linux-2.6.39/net/ieee802154/
Draw.c35 static DEFINE_RWLOCK(raw_lock);
39 write_lock_bh(&raw_lock); in raw_hash()
42 write_unlock_bh(&raw_lock); in raw_hash()
47 write_lock_bh(&raw_lock); in raw_unhash()
50 write_unlock_bh(&raw_lock); in raw_unhash()
223 read_lock(&raw_lock); in ieee802154_raw_deliver()
237 read_unlock(&raw_lock); in ieee802154_raw_deliver()
/linux-2.6.39/arch/cris/include/arch-v32/arch/
Datomic.h21 cris_spin_lock((void *)&cris_atomic_locks[HASH_ADDR(addr)].raw_lock.slock);
27 : "=m" (lock->raw_lock.slock) \
/linux-2.6.39/kernel/
Dmutex-debug.h46 arch_spin_lock(&(lock)->rlock.raw_lock);\
52 arch_spin_unlock(&(lock)->rlock.raw_lock); \
Dspinlock.c58 arch_##op##_relax(&lock->raw_lock); \
78 arch_##op##_relax(&lock->raw_lock); \