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

12

/development/ndk/platforms/android-3/include/linux/
H A Dspinlock_up.h19 #define __raw_spin_is_locked(lock) ((void)(lock), 0)
21 #define __raw_spin_lock(lock) do { (void)(lock); } while (0)
22 #define __raw_spin_unlock(lock) do { (void)(lock); } while (0)
23 #define __raw_spin_trylock(lock) ({ (void)(lock); 1; })
25 #define __raw_read_can_lock(lock) (((void)(lock),
[all...]
H A Dspinlock_api_up.h21 #define assert_spin_locked(lock) do { (void)(lock); } while (0)
23 #define __LOCK(lock) do { preempt_disable(); __acquire(lock); (void)(lock); } while (0)
25 #define __LOCK_BH(lock) do { local_bh_disable(); __LOCK(lock); } while (0)
27 #define __LOCK_IRQ(lock) do { local_irq_disable(); __LOCK(lock); } while (0)
29 #define __LOCK_IRQSAVE(lock, flag
[all...]
H A Dspinlock.h24 #define LOCK_SECTION_NAME ".text.lock."KBUILD_BASENAME
36 #define spin_lock_init(lock) do { *(lock) = SPIN_LOCK_UNLOCKED; } while (0)
38 #define rwlock_init(lock) do { *(lock) = RW_LOCK_UNLOCKED; } while (0)
40 #define spin_is_locked(lock) __raw_spin_is_locked(&(lock)->raw_lock)
42 #define spin_unlock_wait(lock) __raw_spin_unlock_wait(&(lock)->raw_lock)
46 #define _raw_spin_lock(lock) __raw_spin_loc
[all...]
H A Dseqlock.h20 spinlock_t lock; member in struct:__anon312
34 #define write_seqlock_irqsave(lock, flags) do { local_irq_save(flags); write_seqlock(lock); } while (0)
35 #define write_seqlock_irq(lock) do { local_irq_disable(); write_seqlock(lock); } while (0)
36 #define write_seqlock_bh(lock) do { local_bh_disable(); write_seqlock(lock); } while (0)
37 #define write_sequnlock_irqrestore(lock, flags) do { write_sequnlock(lock); local_irq_restore(flags); } while(0)
38 #define write_sequnlock_irq(lock) d
[all...]
H A Dblockgroup_lock.h21 spinlock_t lock; member in struct:bgl_lock
28 #define sb_bgl_lock(sb, block_group) (&(sb)->s_blockgroup_lock.locks[(block_group) & (NR_BG_LOCKS-1)].lock)
H A Dmempool.h23 spinlock_t lock; member in struct:mempool_s
H A Dnotifier.h25 spinlock_t lock; member in struct:atomic_notifier_head
38 #define ATOMIC_INIT_NOTIFIER_HEAD(name) do { spin_lock_init(&(name)->lock); (name)->head = NULL; } while (0)
42 #define ATOMIC_NOTIFIER_INIT(name) { .lock = __SPIN_LOCK_UNLOCKED(name.lock), .head = NULL }
H A Dmutex.h44 #define mutex_lock_nested(lock, subclass) mutex_lock(lock)
H A Dlockdep.h24 #define lockdep_init_map(lock, name, key) do { (void)(key); } while (0)
25 #define lockdep_set_class(lock, key) do { (void)(key); } while (0)
26 #define lockdep_set_class_and_name(lock, key, name) do { (void)(key); } while (0)
H A Dirq.h90 spinlock_t lock; member in struct:irq_desc
H A Dskbuff.h51 spinlock_t lock; member in struct:sk_buff_head
/development/ndk/platforms/android-3/arch-arm/include/asm/
H A Dspinlock_types.h20 volatile unsigned int lock; member in struct:__anon99
26 volatile unsigned int lock; member in struct:__anon100
H A Dspinlock.h19 #define __raw_spin_is_locked(x) ((x)->lock != 0)
20 #define __raw_spin_unlock_wait(lock) do { while (__raw_spin_is_locked(lock)) cpu_relax(); } while (0)
22 #define __raw_spin_lock_flags(lock, flags) __raw_spin_lock(lock)
25 #define __raw_write_can_lock(x) ((x)->lock == 0x80000000)
26 #define __raw_read_can_lock(x) ((x)->lock < 0x80000000)
/development/ndk/platforms/android-9/arch-x86/include/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:__anon607
H A Dspinlock_types.h31 unsigned int lock; member in struct:__anon612
/development/ndk/platforms/android-3/include/linux/mtd/
H A Dflashchip.h63 spinlock_t lock; member in struct:flchip_shared
H A Dblktrans.h27 struct mutex lock; member in struct:mtd_blktrans_dev
H A Dmtd.h123 int (*lock) (struct mtd_info *mtd, loff_t ofs, size_t len); member in struct:mtd_info
/development/ndk/platforms/android-3/include/linux/lockd/
H A Dxdr.h45 struct nlm_lock lock; member in struct:nlm_args
59 struct nlm_lock lock; member in struct:nlm_res
/development/ndk/platforms/android-3/include/linux/raid/
H A Dmd_k.h180 #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)
182 #define wait_event_lock_irq(wq, condition, lock, cmd) do { if (condition) break; __wait_event_lock_irq(wq, condition, lock, cmd); } while (0)
/development/ndk/platforms/android-3/include/linux/mmc/
H A Dhost.h107 spinlock_t lock; member in struct:mmc_host
/development/ndk/platforms/android-L/include/linux/
H A Ddlm_device.h69 struct dlm_lock_params lock; member in union:dlm_write_request::__anon823
/development/samples/browseable/MediaRecorder/src/com.example.android.mediarecorder/
H A DMainActivity.java76 mCamera.lock(); // take camera access back from MediaRecorder
117 mCamera.lock();
/development/ndk/platforms/android-3/include/linux/sunrpc/
H A Dsched.h144 spinlock_t lock; member in struct:rpc_wait_queue
160 #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]), }, }
162 #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 174 milliseconds

12