Searched refs:lock (Results 1 - 25 of 33) sorted by relevance

12

/bionic/libc/kernel/common/linux/
H A Dspinlock_up.h25 #define __raw_spin_is_locked(lock) ((void)(lock), 0)
26 #define __raw_spin_lock(lock) do { (void)(lock); } while (0)
27 #define __raw_spin_unlock(lock) do { (void)(lock); } while (0)
29 #define __raw_spin_trylock(lock) ({ (void)(lock); 1; })
30 #define __raw_read_can_lock(lock) (((void)(lock),
[all...]
H A Dspinlock_api_up.h26 #define assert_spin_locked(lock) do { (void)(lock); } while (0)
27 #define __LOCK(lock) do { preempt_disable(); __acquire(lock); (void)(lock); } while (0)
29 #define __LOCK_BH(lock) do { local_bh_disable(); __LOCK(lock); } while (0)
30 #define __LOCK_IRQ(lock) do { local_irq_disable(); __LOCK(lock); } while (0)
31 #define __LOCK_IRQSAVE(lock, flag
[all...]
H A Dspinlock.h30 #define LOCK_SECTION_NAME ".text.lock."KBUILD_BASENAME
37 #define spin_lock_init(lock) do { *(lock) = SPIN_LOCK_UNLOCKED; } while (0)
39 #define rwlock_init(lock) do { *(lock) = RW_LOCK_UNLOCKED; } while (0)
40 #define spin_is_locked(lock) __raw_spin_is_locked(&(lock)->raw_lock)
41 #define spin_unlock_wait(lock) __raw_spin_unlock_wait(&(lock)->raw_lock)
44 #define _raw_spin_lock(lock) __raw_spin_loc
[all...]
H A Dseqlock.h26 spinlock_t lock; member in struct:__anon494
40 #define write_seqlock_irqsave(lock, flags) do { local_irq_save(flags); write_seqlock(lock); } while (0)
41 #define write_seqlock_irq(lock) do { local_irq_disable(); write_seqlock(lock); } while (0)
42 #define write_seqlock_bh(lock) do { local_bh_disable(); write_seqlock(lock); } while (0)
44 #define write_sequnlock_irqrestore(lock, flags) do { write_sequnlock(lock); local_irq_restore(flags); } while(0)
45 #define write_sequnlock_irq(lock) d
[all...]
H A Dblockgroup_lock.h26 spinlock_t lock; member in struct:bgl_lock
32 #define sb_bgl_lock(sb, block_group) (&(sb)->s_blockgroup_lock.locks[(block_group) & (NR_BG_LOCKS-1)].lock)
H A Dmempool.h27 spinlock_t lock; member in struct:mempool_s
H A Dnotifier.h32 spinlock_t lock; member in struct:atomic_notifier_head
45 #define ATOMIC_INIT_NOTIFIER_HEAD(name) do { spin_lock_init(&(name)->lock); (name)->head = NULL; } while (0)
49 #define ATOMIC_NOTIFIER_INIT(name) { .lock = __SPIN_LOCK_UNLOCKED(name.lock), .head = NULL }
H A Dmutex.h46 #define mutex_lock_nested(lock, subclass) mutex_lock(lock)
H A Dlockdep.h31 #define lockdep_init_map(lock, name, key) do { (void)(key); } while (0)
32 #define lockdep_set_class(lock, key) do { (void)(key); } while (0)
34 #define lockdep_set_class_and_name(lock, key, name) do { (void)(key); } while (0)
H A Dirq.h100 spinlock_t lock; member in struct:irq_desc
H A Dperf_event.h176 __u32 lock; member in struct:perf_event_mmap_page
/bionic/libc/kernel/arch-arm/asm/
H A Dspinlock_types.h26 volatile unsigned int lock; member in struct:__anon99
31 volatile unsigned int lock; member in struct:__anon100
H A Dspinlock.h25 #define __raw_spin_is_locked(x) ((x)->lock != 0)
26 #define __raw_spin_unlock_wait(lock) do { while (__raw_spin_is_locked(lock)) cpu_relax(); } while (0)
27 #define __raw_spin_lock_flags(lock, flags) __raw_spin_lock(lock)
30 #define __raw_write_can_lock(x) ((x)->lock == 0x80000000)
31 #define __raw_read_can_lock(x) ((x)->lock < 0x80000000)
/bionic/libc/kernel/arch-x86/asm/
H A Dspinlock_32.h32 #define _raw_spin_relax(lock) cpu_relax()
34 #define _raw_read_relax(lock) cpu_relax()
35 #define _raw_write_relax(lock) cpu_relax()
H A Dmmu.h27 struct mutex lock; member in struct:__anon231
H A Dspinlock_types.h31 unsigned int lock; member in struct:__anon236
/bionic/libc/bionic/
H A Dpthread-rwlocks.c34 * Possible states of a read/write lock:
37 * - one or more readers sharing the lock at the same time (read-locked)
38 * - one writer holding the lock (write-lock)
41 * - trying to get the write-lock while there are any readers blocks
42 * - trying to get the read-lock while there is a writer blocks
43 * - a single thread can acquire the lock multiple times in the same mode
46 * the lock in two distinct modes (e.g. write after read, or read after write).
49 * block as soon as there is a waiting writer on the lock. However, it cannot
50 * completely eliminate it: each time the lock i
[all...]
H A Dpthread-timers.c106 pthread_mutex_t mutex; /* lock */
118 pthread_mutex_t lock; member in struct:thr_timer_table
132 pthread_mutex_init( &t->lock, NULL );
151 pthread_mutex_lock(&t->lock);
158 pthread_mutex_unlock(&t->lock);
166 pthread_mutex_lock( &t->lock );
171 pthread_mutex_unlock( &t->lock );
180 pthread_mutex_lock(&t->lock);
191 pthread_mutex_unlock(&t->lock);
213 pthread_mutex_lock(&t->lock);
[all...]
H A Dmalloc_debug_check.cpp106 static pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER; variable
177 ScopedPthreadMutexLocker locker(&lock);
191 ScopedPthreadMutexLocker locker(&lock);
298 ScopedPthreadMutexLocker locker(&lock);
/bionic/libc/kernel/common/linux/mtd/
H A Dflashchip.h72 spinlock_t lock; member in struct:flchip_shared
H A Dblktrans.h34 struct mutex lock; member in struct:mtd_blktrans_dev
/bionic/libc/kernel/common/linux/lockd/
H A Dxdr.h52 struct nlm_lock lock; member in struct:nlm_args
67 struct nlm_lock lock; member in struct:nlm_res
/bionic/libc/kernel/common/linux/raid/
H A Dmd_k.h214 #define __wait_event_lock_irq(wq, condition, lock, cmd) do { wait_queue_t __wait; init_waitqueue_entry(&__wait, current); add_wait_queue(&wq, &__wait); for (;;) { set_current_state(TASK_UNINTERRUPTIBLE); if (condition) break; spin_unlock_irq(&lock); cmd; schedule(); spin_lock_irq(&lock); } current->state = TASK_RUNNING; remove_wait_queue(&wq, &__wait); } while (0)
215 #define wait_event_lock_irq(wq, condition, lock, cmd) do { if (condition) break; __wait_event_lock_irq(wq, condition, lock, cmd); } while (0)
/bionic/libc/kernel/common/linux/mmc/
H A Dhost.h111 spinlock_t lock; member in struct:mmc_host
/bionic/libc/kernel/common/linux/sunrpc/
H A Dsched.h154 spinlock_t lock; member in struct:rpc_wait_queue
171 #define RPC_WAITQ_INIT(var,qname) { .lock = SPIN_LOCK_UNLOCKED, .tasks = { [0] = LIST_HEAD_INIT(var.tasks[0]), [1] = LIST_HEAD_INIT(var.tasks[1]), [2] = LIST_HEAD_INIT(var.tasks[2]), }, }
174 #define RPC_WAITQ_INIT(var,qname) { .lock = SPIN_LOCK_UNLOCKED, .tasks = { [0] = LIST_HEAD_INIT(var.tasks[0]), [1] = LIST_HEAD_INIT(var.tasks[1]), [2] = LIST_HEAD_INIT(var.tasks[2]), }, .name = qname, }

Completed in 345 milliseconds

12