Home
last modified time | relevance | path

Searched defs:lock (Results 1 – 25 of 32) sorted by relevance

12

/bionic/libc/kernel/common/linux/
Dspinlock_api_up.h26 #define assert_spin_locked(lock) do { (void)(lock); } while (0) argument
27 #define __LOCK(lock) do { preempt_disable(); __acquire(lock); (void)(lock); } while (0) argument
29 #define __LOCK_BH(lock) do { local_bh_disable(); __LOCK(lock); } while (0) argument
30 #define __LOCK_IRQ(lock) do { local_irq_disable(); __LOCK(lock); } while (0) argument
31 #define __LOCK_IRQSAVE(lock, flags) do { local_irq_save(flags); __LOCK(lock); } while (0) argument
32 #define __UNLOCK(lock) do { preempt_enable(); __release(lock); (void)(lock); } while (0) argument
34 #define __UNLOCK_BH(lock) do { preempt_enable_no_resched(); local_bh_enable(); __release(lock); (… argument
35 #define __UNLOCK_IRQ(lock) do { local_irq_enable(); __UNLOCK(lock); } while (0) argument
36 #define __UNLOCK_IRQRESTORE(lock, flags) do { local_irq_restore(flags); __UNLOCK(lock); } while (… argument
37 #define _spin_lock(lock) __LOCK(lock) argument
[all …]
Dspinlock.h37 #define spin_lock_init(lock) do { *(lock) = SPIN_LOCK_UNLOCKED; } while (0) argument
39 #define rwlock_init(lock) do { *(lock) = RW_LOCK_UNLOCKED; } while (0) argument
40 #define spin_is_locked(lock) __raw_spin_is_locked(&(lock)->raw_lock) argument
41 #define spin_unlock_wait(lock) __raw_spin_unlock_wait(&(lock)->raw_lock) argument
44 #define _raw_spin_lock(lock) __raw_spin_lock(&(lock)->raw_lock) argument
45 #define _raw_spin_lock_flags(lock, flags) __raw_spin_lock_flags(&(lock)->raw_lock, *(flags)) argument
46 #define _raw_spin_trylock(lock) __raw_spin_trylock(&(lock)->raw_lock) argument
47 #define _raw_spin_unlock(lock) __raw_spin_unlock(&(lock)->raw_lock) argument
59 #define spin_trylock(lock) __cond_lock(_spin_trylock(lock)) argument
60 #define read_trylock(lock) __cond_lock(_read_trylock(lock)) argument
[all …]
Dspinlock_up.h25 #define __raw_spin_is_locked(lock) ((void)(lock), 0) argument
26 #define __raw_spin_lock(lock) do { (void)(lock); } while (0) argument
27 #define __raw_spin_unlock(lock) do { (void)(lock); } while (0) argument
29 #define __raw_spin_trylock(lock) ({ (void)(lock); 1; }) argument
30 #define __raw_read_can_lock(lock) (((void)(lock), 1)) argument
31 #define __raw_write_can_lock(lock) (((void)(lock), 1)) argument
32 #define __raw_spin_unlock_wait(lock) do { cpu_relax(); } while (__raw_spin_is_locked(lock)) argument
Dseqlock.h26 spinlock_t lock; member
40 #define write_seqlock_irqsave(lock, flags) do { local_irq_save(flags); write_seqlock(lock); } whi… argument
41 #define write_seqlock_irq(lock) do { local_irq_disable(); write_seqlock(lock); } while (0) argument
42 #define write_seqlock_bh(lock) do { local_bh_disable(); write_seqlock(lock); } while (0) argument
44 #define write_sequnlock_irqrestore(lock, flags) do { write_sequnlock(lock); local_irq_restore(fla… argument
45 #define write_sequnlock_irq(lock) do { write_sequnlock(lock); local_irq_enable(); } while(0) argument
46 #define write_sequnlock_bh(lock) do { write_sequnlock(lock); local_bh_enable(); } while(0) argument
47 #define read_seqbegin_irqsave(lock, flags) ({ local_irq_save(flags); read_seqbegin(lock); }) argument
49 #define read_seqretry_irqrestore(lock, iv, flags) ({ int ret = read_seqretry(lock, iv); local… argument
Dblockgroup_lock.h26 spinlock_t lock; member
Dlockdep.h31 #define lockdep_init_map(lock, name, key) do { (void)(key); } while (0) argument
32 #define lockdep_set_class(lock, key) do { (void)(key); } while (0) argument
34 #define lockdep_set_class_and_name(lock, key, name) do { (void)(key); } while (0) argument
Dmempool.h27 spinlock_t lock; member
Dmutex.h46 #define mutex_lock_nested(lock, subclass) mutex_lock(lock) argument
Dnotifier.h32 spinlock_t lock; member
Dirq.h100 spinlock_t lock; member
Dskbuff.h56 spinlock_t lock; member
/bionic/libc/kernel/arch-x86/asm/
Dspinlock_32.h32 #define _raw_spin_relax(lock) cpu_relax() argument
34 #define _raw_read_relax(lock) cpu_relax() argument
35 #define _raw_write_relax(lock) cpu_relax() argument
Dspinlock_types.h31 unsigned int lock; member
Dmmu.h27 struct mutex lock; member
/bionic/libc/kernel/arch-arm/asm/
Dspinlock_types.h26 volatile unsigned int lock; member
31 volatile unsigned int lock; member
Dspinlock.h26 #define __raw_spin_unlock_wait(lock) do { while (__raw_spin_is_locked(lock)) cpu_relax(); } while… argument
27 #define __raw_spin_lock_flags(lock, flags) __raw_spin_lock(lock) argument
/bionic/libc/kernel/common/linux/lockd/
Dxdr.h52 struct nlm_lock lock; member
67 struct nlm_lock lock; member
/bionic/libc/bionic/
Dpthread_create.cpp124 ScopedPthreadMutexLocker lock(&gPthreadStackCreationLock); in __create_thread_stack() local
Dpthread-timers.c118 pthread_mutex_t lock; member
Dmalloc_debug_check.cpp106 static pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER; variable
/bionic/libc/kernel/common/linux/mtd/
Dblktrans.h34 struct mutex lock; member
Dflashchip.h72 spinlock_t lock; member
/bionic/libc/include/
Dpthread.h231 pthread_mutex_t lock; member
/bionic/libc/kernel/common/linux/mmc/
Dhost.h111 spinlock_t lock; member
/bionic/libc/kernel/common/linux/raid/
Dmd_k.h214 #define __wait_event_lock_irq(wq, condition, lock, cmd) do { wait_queue_t __wait; init_waitque… argument
215 #define wait_event_lock_irq(wq, condition, lock, cmd) do { if (condition) break; __wait_even… argument

12