/development/ndk/platforms/android-3/include/linux/ |
H A D | spinlock_up.h | 19 #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 D | spinlock_api_up.h | 21 #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 D | spinlock.h | 24 #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 D | seqlock.h | 20 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 D | blockgroup_lock.h | 21 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 D | mempool.h | 23 spinlock_t lock; member in struct:mempool_s
|
H A D | notifier.h | 25 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 D | mutex.h | 44 #define mutex_lock_nested(lock, subclass) mutex_lock(lock)
|
H A D | lockdep.h | 24 #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 D | irq.h | 90 spinlock_t lock; member in struct:irq_desc
|
H A D | skbuff.h | 51 spinlock_t lock; member in struct:sk_buff_head
|
/development/ndk/platforms/android-3/arch-arm/include/asm/ |
H A D | spinlock_types.h | 20 volatile unsigned int lock; member in struct:__anon99 26 volatile unsigned int lock; member in struct:__anon100
|
H A D | spinlock.h | 19 #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 D | spinlock_32.h | 32 #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 D | mmu.h | 27 struct mutex lock; member in struct:__anon607
|
H A D | spinlock_types.h | 31 unsigned int lock; member in struct:__anon612
|
/development/ndk/platforms/android-3/include/linux/mtd/ |
H A D | flashchip.h | 63 spinlock_t lock; member in struct:flchip_shared
|
H A D | blktrans.h | 27 struct mutex lock; member in struct:mtd_blktrans_dev
|
H A D | mtd.h | 123 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 D | xdr.h | 45 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 D | md_k.h | 180 #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 D | host.h | 107 spinlock_t lock; member in struct:mmc_host
|
/development/ndk/platforms/android-L/include/linux/ |
H A D | dlm_device.h | 69 struct dlm_lock_params lock; member in union:dlm_write_request::__anon823
|
/development/samples/browseable/MediaRecorder/src/com.example.android.mediarecorder/ |
H A D | MainActivity.java | 76 mCamera.lock(); // take camera access back from MediaRecorder 117 mCamera.lock();
|
/development/ndk/platforms/android-3/include/linux/sunrpc/ |
H A D | sched.h | 144 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, }
|