/external/kernel-headers/original/linux/ |
H A D | spinlock_up.h | 23 static inline void __raw_spin_lock(raw_spinlock_t *lock) argument 25 lock->slock = 0; 29 __raw_spin_lock_flags(raw_spinlock_t *lock, unsigned long flags) argument 32 lock->slock = 0; 35 static inline int __raw_spin_trylock(raw_spinlock_t *lock) argument 37 char oldval = lock->slock; 39 lock->slock = 0; 44 static inline void __raw_spin_unlock(raw_spinlock_t *lock) argument 46 lock->slock = 1; 52 #define __raw_read_lock(lock) d [all...] |
H A D | spinlock_api_up.h | 19 #define assert_spin_locked(lock) do { (void)(lock); } while (0) 24 * flags straight, to supress compiler warnings of unused lock 27 #define __LOCK(lock) \ 28 do { preempt_disable(); __acquire(lock); (void)(lock); } while (0) 30 #define __LOCK_BH(lock) \ 31 do { local_bh_disable(); __LOCK(lock); } while (0) 33 #define __LOCK_IRQ(lock) \ 34 do { local_irq_disable(); __LOCK(lock); } whil [all...] |
H A D | spinlock.h | 61 #define LOCK_SECTION_NAME ".text.lock."KBUILD_BASENAME 80 extern int __lockfunc generic__raw_read_trylock(raw_rwlock_t *lock); 92 extern void __spin_lock_init(spinlock_t *lock, const char *name, 94 # define spin_lock_init(lock) \ 98 __spin_lock_init((lock), #lock, &__key); \ 102 # define spin_lock_init(lock) \ 103 do { *(lock) = SPIN_LOCK_UNLOCKED; } while (0) 107 extern void __rwlock_init(rwlock_t *lock, const char *name, 109 # define rwlock_init(lock) \ [all...] |
H A D | spinlock_api_smp.h | 22 void __lockfunc _spin_lock(spinlock_t *lock) __acquires(spinlock_t); 23 void __lockfunc _spin_lock_nested(spinlock_t *lock, int subclass) 25 void __lockfunc _read_lock(rwlock_t *lock) __acquires(rwlock_t); 26 void __lockfunc _write_lock(rwlock_t *lock) __acquires(rwlock_t); 27 void __lockfunc _spin_lock_bh(spinlock_t *lock) __acquires(spinlock_t); 28 void __lockfunc _read_lock_bh(rwlock_t *lock) __acquires(rwlock_t); 29 void __lockfunc _write_lock_bh(rwlock_t *lock) __acquires(rwlock_t); 30 void __lockfunc _spin_lock_irq(spinlock_t *lock) __acquires(spinlock_t); 31 void __lockfunc _read_lock_irq(rwlock_t *lock) __acquires(rwlock_t); 32 void __lockfunc _write_lock_irq(rwlock_t *lock) __acquire [all...] |
H A D | seqlock.h | 5 * lock for data where the reader wants a consitent set of information 34 spinlock_t lock; member in struct:__anon2345 59 spin_lock(&sl->lock); 68 spin_unlock(&sl->lock); 73 int ret = spin_trylock(&sl->lock); 158 #define write_seqlock_irqsave(lock, flags) \ 159 do { local_irq_save(flags); write_seqlock(lock); } while (0) 160 #define write_seqlock_irq(lock) \ 161 do { local_irq_disable(); write_seqlock(lock); } while (0) 162 #define write_seqlock_bh(lock) \ [all...] |
H A D | mutex.h | 37 * that make lock debugging easier and faster: 70 struct mutex *lock; member in struct:mutex_waiter 105 extern void __mutex_init(struct mutex *lock, const char *name, 110 * @lock: the mutex to be queried 114 static inline int fastcall mutex_is_locked(struct mutex *lock) argument 116 return atomic_read(&lock->count) != 1; 123 extern void fastcall mutex_lock(struct mutex *lock); 124 extern int fastcall mutex_lock_interruptible(struct mutex *lock); 127 extern void mutex_lock_nested(struct mutex *lock, unsigned int subclass); 129 # define mutex_lock_nested(lock, subclas [all...] |
H A D | android_power.h | 55 //void android_free_suspend_lock(android_suspend_lock_t *lock); 56 int android_init_suspend_lock(android_suspend_lock_t *lock); 57 void android_uninit_suspend_lock(android_suspend_lock_t *lock); 58 void android_lock_suspend(android_suspend_lock_t *lock); 59 void android_lock_suspend_auto_expire(android_suspend_lock_t *lock, int timeout); 60 void android_unlock_suspend(android_suspend_lock_t *lock);
|
H A D | blockgroup_lock.h | 37 spinlock_t lock; member in struct:bgl_lock 49 spin_lock_init(&bgl->locks[i].lock); 57 (&(sb)->s_blockgroup_lock.locks[(block_group) & (NR_BG_LOCKS-1)].lock)
|
/external/kernel-headers/original/asm-arm/ |
H A D | spinlock_types.h | 9 volatile unsigned int lock; member in struct:__anon1979 15 volatile unsigned int lock; member in struct:__anon1980
|
H A D | spinlock.h | 12 * won the lock, so we try exclusively storing it. A memory barrier 13 * is required after we get a lock, and before we release it, because 20 #define __raw_spin_is_locked(x) ((x)->lock != 0) 21 #define __raw_spin_unlock_wait(lock) \ 22 do { while (__raw_spin_is_locked(lock)) cpu_relax(); } while (0) 24 #define __raw_spin_lock_flags(lock, flags) __raw_spin_lock(lock) 26 static inline void __raw_spin_lock(raw_spinlock_t *lock) argument 40 : "r" (&lock->lock), " 46 __raw_spin_trylock(raw_spinlock_t *lock) argument 66 __raw_spin_unlock(raw_spinlock_t *lock) argument [all...] |
/external/kernel-headers/original/asm-x86/ |
H A D | spinlock_32.h | 22 * Simple spin lock operations. There are two variants, one clears IRQ's 35 static inline void __raw_spin_lock(raw_spinlock_t *lock) argument 46 : "+m" (lock->slock) : : "memory"); 50 * It is easier for the lock validator if interrupts are not re-enabled 51 * in the middle of a lock-acquire. This is a performance feature anyway 58 static inline void __raw_spin_lock_flags(raw_spinlock_t *lock, unsigned long flags) argument 80 : [slock] "+m" (lock->slock) 87 static inline int __raw_spin_trylock(raw_spinlock_t *lock) argument 92 :"=q" (oldval), "+m" (lock->slock) 106 static inline void __raw_spin_unlock(raw_spinlock_t *lock) argument 113 __raw_spin_unlock(raw_spinlock_t *lock) argument 124 __raw_spin_unlock_wait(raw_spinlock_t *lock) argument 187 __raw_read_trylock(raw_rwlock_t *lock) argument 197 __raw_write_trylock(raw_rwlock_t *lock) argument [all...] |
H A D | spinlock_types.h | 15 unsigned int lock; member in struct:__anon2067
|
H A D | mmu.h | 19 struct mutex lock; member in struct:__anon2053
|
/external/qemu/android/utils/ |
H A D | filelock.c | 55 ** lock - a lock file (file + '.lock') 60 ** attemp to link 'lock' to 'temp' 61 ** if the link succeeds, we obtain the lock 65 ** unlink 'lock' 68 ** on Windows, 'lock' is a directory name. locking is equivalent to 76 const char* lock; member in struct:FileLock 86 #define LOCK_NAME ".lock" 95 filelock_lock( FileLock* lock ) 366 FileLock* lock; local 385 FileLock* lock = malloc(total_len); local [all...] |
H A D | filelock.h | 25 ** note that 'path' can designate a non-existing path and that the lock creation 29 ** you can call filelock_release() to release a file lock explicitely. otherwise 36 extern void filelock_release( FileLock* lock );
|
/external/ppp/pppd/ |
H A D | spinlock.c | 48 static inline int __spin_trylock(spinlock_t *lock) argument 54 : "r" (lock) 60 static inline void __spin_unlock(spinlock_t *lock) argument 63 *lock = 0; 66 static inline void __spin_lock_init(spinlock_t *lock) argument 68 *lock = 0; 71 static inline int __spin_is_locked(spinlock_t *lock) argument 73 return (*lock != 0); 78 static inline int __spin_trylock(spinlock_t *lock) argument 92 : "r"(lock) 98 __spin_unlock(spinlock_t *lock) argument 104 __spin_lock_init(spinlock_t *lock) argument 109 __spin_is_locked(spinlock_t *lock) argument 116 __spin_trylock(spinlock_t *lock) argument 128 __spin_unlock(spinlock_t *lock) argument 134 __spin_lock_init(spinlock_t *lock) argument 139 __spin_is_locked(spinlock_t *lock) argument 160 __spin_trylock(spinlock_t *lock) argument 167 __spin_unlock(spinlock_t *lock) argument 172 __spin_lock_init(spinlock_t *lock) argument 178 __spin_is_locked(spinlock_t *lock) argument 208 __spin_trylock(spinlock_t *lock) argument 223 __spin_unlock(spinlock_t *lock) argument 229 __spin_lock_init(spinlock_t *lock) argument 234 __spin_is_locked(spinlock_t *lock) argument 276 __spin_lock(spinlock_t *lock) argument [all...] |
/external/clearsilver/util/ |
H A D | ulocks.c | 29 int lock; local 35 * someone else can grab your lock and DoS you. For internal use, who 38 if((lock = open(file, O_WRONLY|O_NDELAY|O_APPEND|O_CREAT|O_EXCL, 0666)) < 0) 49 lock = open(file, O_WRONLY|O_NDELAY|O_APPEND|O_CREAT, 0666); 55 if (lock < 0) 56 return nerr_raise_errno (NERR_IO, "Unable to open lock file %s", file); 59 *plock = lock; 64 void fDestroy(int lock) argument 67 if(lock < 0) 70 close(lock); 77 int lock; local 92 fLock(int lock) argument 101 fUnlock(int lock) argument [all...] |
H A D | ulocks.h | 23 * Function: fCreate - create a file lock. 24 * Description: Creates a file lock on named file <file>. The lock is 26 * Input: plock - place for lock. 27 * file - path of file to use as lock. 28 * Output: plock - set to lock identifier. 36 * Function: fFind - find a file lock. 38 * lock identifier for it in <plock>. If the file doesn't 40 * Input: plock - place for lock. 41 * file - path of file to use as lock [all...] |
/external/qemu/distrib/sdl-1.2.12/src/thread/dc/ |
H A D | SDL_syscond.c | 34 SDL_mutex *lock; member in struct:SDL_cond 48 cond->lock = SDL_CreateMutex(); 52 if ( ! cond->lock || ! cond->wait_sem || ! cond->wait_done ) { 72 if ( cond->lock ) { 73 SDL_DestroyMutex(cond->lock); 90 SDL_LockMutex(cond->lock); 94 SDL_UnlockMutex(cond->lock); 97 SDL_UnlockMutex(cond->lock); 114 SDL_LockMutex(cond->lock); 126 SDL_UnlockMutex(cond->lock); [all...] |
/external/qemu/distrib/sdl-1.2.12/src/thread/generic/ |
H A D | SDL_syscond.c | 34 SDL_mutex *lock; member in struct:SDL_cond 48 cond->lock = SDL_CreateMutex(); 52 if ( ! cond->lock || ! cond->wait_sem || ! cond->wait_done ) { 72 if ( cond->lock ) { 73 SDL_DestroyMutex(cond->lock); 90 SDL_LockMutex(cond->lock); 94 SDL_UnlockMutex(cond->lock); 97 SDL_UnlockMutex(cond->lock); 114 SDL_LockMutex(cond->lock); 126 SDL_UnlockMutex(cond->lock); [all...] |
/external/qemu/distrib/sdl-1.2.12/src/thread/os2/ |
H A D | SDL_syscond.c | 34 SDL_mutex *lock; member in struct:SDL_cond 48 cond->lock = SDL_CreateMutex(); 52 if ( ! cond->lock || ! cond->wait_sem || ! cond->wait_done ) { 72 if ( cond->lock ) { 73 SDL_DestroyMutex(cond->lock); 90 SDL_LockMutex(cond->lock); 94 SDL_UnlockMutex(cond->lock); 97 SDL_UnlockMutex(cond->lock); 114 SDL_LockMutex(cond->lock); 126 SDL_UnlockMutex(cond->lock); [all...] |
/external/guava/src/com/google/common/util/concurrent/ |
H A D | Executors.java | 237 private final Lock lock = new ReentrantLock(); field in class:Executors.SameThreadExecutorService 240 private final Condition termination = lock.newCondition(); 264 lock.lock(); 268 lock.unlock(); 274 lock.lock(); 278 lock.unlock(); 291 lock.lock(); [all...] |
/external/elfutils/ |
H A D | config.h | 62 #define lock_lock(lock) ((void) (lock)) 64 #define rwlock_init(lock) ((void) (lock)) 65 #define rwlock_fini(lock) ((void) (lock)) 66 #define rwlock_rdlock(lock) ((void) (lock)) 67 #define rwlock_wrlock(lock) ((void) (lock)) [all...] |
/external/bluetooth/glib/glib/ |
H A D | gthread.c | 630 /* the lock makes sure, that thread->system_thread is written, 784 g_static_rw_lock_init (GStaticRWLock* lock) argument 788 g_return_if_fail (lock); 790 *lock = init_lock; 802 g_static_rw_lock_signal (GStaticRWLock* lock) argument 804 if (lock->want_to_write && lock->write_cond) 805 g_cond_signal (lock->write_cond); 806 else if (lock->want_to_read && lock 811 g_static_rw_lock_reader_lock(GStaticRWLock* lock) argument 828 g_static_rw_lock_reader_trylock(GStaticRWLock* lock) argument 848 g_static_rw_lock_reader_unlock(GStaticRWLock* lock) argument 863 g_static_rw_lock_writer_lock(GStaticRWLock* lock) argument 880 g_static_rw_lock_writer_trylock(GStaticRWLock* lock) argument 900 g_static_rw_lock_writer_unlock(GStaticRWLock* lock) argument 914 g_static_rw_lock_free(GStaticRWLock* lock) argument [all...] |
/external/webkit/WebKit/android/plugins/ |
H A D | ANPSurface_npapi.h | 36 surface will be considered dirty. If the lock was successful the function 40 bool (*lock)(JNIEnv* env, jobject surface, ANPBitmap* bitmap, ANPRectI* dirtyRect); member in struct:ANPSurfaceInterfaceV0 41 /** Given a locked surface handle (i.e. result of a successful call to lock)
|