/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/include/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 28 #define __LOCK(lock) \ 29 do { preempt_disable(); __acquire(lock); (void)(lock); } while (0) 31 #define __LOCK(lock) \ 32 (void)(lock) 35 #define __LOCK_BH(lock) \ 36 do { local_bh_disable(); __LOCK(lock); } whil [all...] |
H A D | spinlock.h | 62 #define LOCK_SECTION_NAME ".text.lock."KBUILD_BASENAME 81 extern int __lockfunc generic__raw_read_trylock(raw_rwlock_t *lock); 93 extern void __spin_lock_init(spinlock_t *lock, const char *name, 95 # define spin_lock_init(lock) \ 99 __spin_lock_init((lock), #lock, &__key); \ 103 # define spin_lock_init(lock) \ 104 do { *(lock) = SPIN_LOCK_UNLOCKED; } while (0) 108 extern void __rwlock_init(rwlock_t *lock, const char *name, 110 # define rwlock_init(lock) \ [all...] |
H A D | spinlock_api_smp.h | 22 void __lockfunc _spin_lock(spinlock_t *lock) __acquires(lock); variable 23 void __lockfunc _spin_lock_nested(spinlock_t *lock, int subclass) 24 __acquires(lock); variable 25 void __lockfunc _read_lock(rwlock_t *lock) __acquires(lock); variable 26 void __lockfunc _write_lock(rwlock_t *lock) __acquires(lock); variable 27 void __lockfunc _spin_lock_bh(spinlock_t *lock) __acquires(lock); variable 28 void __lockfunc _read_lock_bh(rwlock_t *lock) __acquires(lock); variable 29 void __lockfunc _write_lock_bh(rwlock_t *lock) __acquires(lock); variable 30 void __lockfunc _spin_lock_irq(spinlock_t *lock) __acquires(lock); variable 31 void __lockfunc _read_lock_irq(rwlock_t *lock) __acquires(lock); variable 32 void __lockfunc _write_lock_irq(rwlock_t *lock) __acquires(lock); variable 34 __acquires(lock); variable 36 __acquires(lock); variable 38 __acquires(lock); variable 40 __acquires(lock); variable 45 void __lockfunc _spin_unlock(spinlock_t *lock) __releases(lock); variable 46 void __lockfunc _read_unlock(rwlock_t *lock) __releases(lock); variable 47 void __lockfunc _write_unlock(rwlock_t *lock) __releases(lock); variable 48 void __lockfunc _spin_unlock_bh(spinlock_t *lock) __releases(lock); variable 49 void __lockfunc _read_unlock_bh(rwlock_t *lock) __releases(lock); variable 50 void __lockfunc _write_unlock_bh(rwlock_t *lock) __releases(lock); variable 51 void __lockfunc _spin_unlock_irq(spinlock_t *lock) __releases(lock); variable 52 void __lockfunc _read_unlock_irq(rwlock_t *lock) __releases(lock); variable 53 void __lockfunc _write_unlock_irq(rwlock_t *lock) __releases(lock); variable 55 __releases(lock); variable 57 __releases(lock); variable 59 __releases(lock); variable [all...] |
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/include/asm-alpha/ |
H A D | spinlock.h | 9 * Simple spin lock operations. There are two variants, one clears IRQ's 15 #define __raw_spin_lock_flags(lock, flags) __raw_spin_lock(lock) 16 #define __raw_spin_is_locked(x) ((x)->lock != 0) 18 do { cpu_relax(); } while ((x)->lock) 20 static inline void __raw_spin_unlock(raw_spinlock_t * lock) argument 23 lock->lock = 0; 26 static inline void __raw_spin_lock(raw_spinlock_t * lock) argument 42 : "=&r" (tmp), "=m" (lock 46 __raw_spin_trylock(raw_spinlock_t *lock) argument 53 __raw_read_can_lock(raw_rwlock_t *lock) argument 58 __raw_write_can_lock(raw_rwlock_t *lock) argument 63 __raw_read_lock(raw_rwlock_t *lock) argument 83 __raw_write_lock(raw_rwlock_t *lock) argument 103 __raw_read_trylock(raw_rwlock_t * lock) argument 125 __raw_write_trylock(raw_rwlock_t * lock) argument 147 __raw_read_unlock(raw_rwlock_t * lock) argument 163 __raw_write_unlock(raw_rwlock_t * lock) argument [all...] |
H A D | spinlock_types.h | 9 volatile unsigned int lock; member in struct:__anon7919 15 volatile unsigned int lock; member in struct:__anon7920
|
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/include/asm-mips/ |
H A D | spinlock.h | 19 #define __raw_spin_is_locked(x) ((x)->lock != 0) 20 #define __raw_spin_lock_flags(lock, flags) __raw_spin_lock(lock) 22 do { cpu_relax(); } while ((x)->lock) 25 * Simple spin lock operations. There are two variants, one clears IRQ's 31 static inline void __raw_spin_lock(raw_spinlock_t *lock) argument 45 : "=m" (lock->lock), "=&r" (tmp) 46 : "m" (lock->lock) 73 __raw_spin_unlock(raw_spinlock_t *lock) argument 86 __raw_spin_trylock(raw_spinlock_t *lock) argument [all...] |
H A D | spinlock_types.h | 9 volatile unsigned int lock; member in struct:__anon9196 15 volatile unsigned int lock; member in struct:__anon9197
|
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/include/asm/ |
H A D | spinlock.h | 19 #define __raw_spin_is_locked(x) ((x)->lock != 0) 20 #define __raw_spin_lock_flags(lock, flags) __raw_spin_lock(lock) 22 do { cpu_relax(); } while ((x)->lock) 25 * Simple spin lock operations. There are two variants, one clears IRQ's 31 static inline void __raw_spin_lock(raw_spinlock_t *lock) argument 45 : "=m" (lock->lock), "=&r" (tmp) 46 : "m" (lock->lock) 73 __raw_spin_unlock(raw_spinlock_t *lock) argument 86 __raw_spin_trylock(raw_spinlock_t *lock) argument [all...] |
H A D | spinlock_types.h | 9 volatile unsigned int lock; member in struct:__anon7825 15 volatile unsigned int lock; member in struct:__anon7826
|
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/include/asm-x86_64/ |
H A D | spinlock.h | 12 * Simple spin lock operations. There are two variants, one clears IRQ's 20 static inline int __raw_spin_is_locked(raw_spinlock_t *lock) argument 22 return *(volatile signed int *)(&(lock)->slock) <= 0; 25 static inline void __raw_spin_lock(raw_spinlock_t *lock) argument 36 "2:\t" : "=m" (lock->slock) : : "memory"); 43 static inline void __raw_spin_lock_flags(raw_spinlock_t *lock, unsigned long flags) argument 64 : "+m" (lock->slock) : "r" ((unsigned)flags) : "memory"); 68 static inline int __raw_spin_trylock(raw_spinlock_t *lock) argument 74 :"=q" (oldval), "=m" (lock->slock) 80 static inline void __raw_spin_unlock(raw_spinlock_t *lock) argument 85 __raw_spin_unlock_wait(raw_spinlock_t *lock) argument 105 __raw_read_can_lock(raw_rwlock_t *lock) argument 110 __raw_write_can_lock(raw_rwlock_t *lock) argument 133 __raw_read_trylock(raw_rwlock_t *lock) argument 143 __raw_write_trylock(raw_rwlock_t *lock) argument [all...] |
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/kernel/ |
H A D | mutex.h | 12 #define spin_lock_mutex(lock, flags) \ 13 do { spin_lock(lock); (void)(flags); } while (0) 14 #define spin_unlock_mutex(lock, flags) \ 15 do { spin_unlock(lock); (void)(flags); } while (0) 16 #define mutex_remove_waiter(lock, waiter, ti) \ 19 #define debug_mutex_set_owner(lock, new_owner) do { } while (0) 20 #define debug_mutex_clear_owner(lock) do { } while (0) 21 #define debug_mutex_wake_waiter(lock, waiter) do { } while (0) 23 #define debug_mutex_add_waiter(lock, waiter, ti) do { } while (0) 24 #define debug_mutex_unlock(lock) d 28 debug_mutex_lock_common(struct mutex *lock, struct mutex_waiter *waiter) argument [all...] |
H A D | mutex-debug.h | 14 * This must be called with lock->wait_lock held. 17 debug_mutex_set_owner(struct mutex *lock, struct thread_info *new_owner); 19 static inline void debug_mutex_clear_owner(struct mutex *lock) argument 21 lock->owner = NULL; 24 extern void debug_mutex_lock_common(struct mutex *lock, 26 extern void debug_mutex_wake_waiter(struct mutex *lock, 29 extern void debug_mutex_add_waiter(struct mutex *lock, 32 extern void mutex_remove_waiter(struct mutex *lock, struct mutex_waiter *waiter, 34 extern void debug_mutex_unlock(struct mutex *lock); 35 extern void debug_mutex_init(struct mutex *lock, cons [all...] |
H A D | spinlock.c | 24 int __lockfunc _spin_trylock(spinlock_t *lock) argument 27 if (_raw_spin_trylock(lock)) { 28 spin_acquire(&lock->dep_map, 0, 1, _RET_IP_); 37 int __lockfunc _read_trylock(rwlock_t *lock) argument 40 if (_raw_read_trylock(lock)) { 41 rwlock_acquire_read(&lock->dep_map, 0, 1, _RET_IP_); 50 int __lockfunc _write_trylock(rwlock_t *lock) argument 53 if (_raw_write_trylock(lock)) { 54 rwlock_acquire(&lock->dep_map, 0, 1, _RET_IP_); 66 * not re-enabled during lock 71 _read_lock(rwlock_t *lock) argument 79 _spin_lock_irqsave(spinlock_t *lock) argument 100 _spin_lock_irq(spinlock_t *lock) argument 109 _spin_lock_bh(spinlock_t *lock) argument 118 _read_lock_irqsave(rwlock_t *lock) argument 130 _read_lock_irq(rwlock_t *lock) argument 139 _read_lock_bh(rwlock_t *lock) argument 148 _write_lock_irqsave(rwlock_t *lock) argument 160 _write_lock_irq(rwlock_t *lock) argument 169 _write_lock_bh(rwlock_t *lock) argument 178 _spin_lock(spinlock_t *lock) argument 187 _write_lock(rwlock_t *lock) argument 288 _spin_lock_nested(spinlock_t *lock, int subclass) argument 296 _spin_lock_irqsave_nested(spinlock_t *lock, int subclass) argument 320 _spin_unlock(spinlock_t *lock) argument 328 _write_unlock(rwlock_t *lock) argument 336 _read_unlock(rwlock_t *lock) argument 344 _spin_unlock_irqrestore(spinlock_t *lock, unsigned long flags) argument 353 _spin_unlock_irq(spinlock_t *lock) argument 362 _spin_unlock_bh(spinlock_t *lock) argument 371 _read_unlock_irqrestore(rwlock_t *lock, unsigned long flags) argument 380 _read_unlock_irq(rwlock_t *lock) argument 389 _read_unlock_bh(rwlock_t *lock) argument 398 _write_unlock_irqrestore(rwlock_t *lock, unsigned long flags) argument 407 _write_unlock_irq(rwlock_t *lock) argument 416 _write_unlock_bh(rwlock_t *lock) argument 425 _spin_trylock_bh(spinlock_t *lock) argument [all...] |
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/lib/ |
H A D | spinlock_debug.c | 16 void __spin_lock_init(spinlock_t *lock, const char *name, argument 21 * Make sure we are not reinitializing a held lock: 23 debug_check_no_locks_freed((void *)lock, sizeof(*lock)); 24 lockdep_init_map(&lock->dep_map, name, key, 0); 26 lock->raw_lock = (raw_spinlock_t)__RAW_SPIN_LOCK_UNLOCKED; 27 lock->magic = SPINLOCK_MAGIC; 28 lock->owner = SPINLOCK_OWNER_INIT; 29 lock->owner_cpu = -1; 34 void __rwlock_init(rwlock_t *lock, cons argument 52 spin_bug(spinlock_t *lock, const char *msg) argument 76 debug_spin_lock_before(spinlock_t *lock) argument 84 debug_spin_lock_after(spinlock_t *lock) argument 90 debug_spin_unlock(spinlock_t *lock) argument 101 __spin_lock_debug(spinlock_t *lock) argument 128 _raw_spin_lock(spinlock_t *lock) argument 136 _raw_spin_trylock(spinlock_t *lock) argument 151 _raw_spin_unlock(spinlock_t *lock) argument 157 rwlock_bug(rwlock_t *lock, const char *msg) argument 171 _raw_read_lock(rwlock_t *lock) argument 177 _raw_read_trylock(rwlock_t *lock) argument 190 _raw_read_unlock(rwlock_t *lock) argument 196 debug_write_lock_before(rwlock_t *lock) argument 204 debug_write_lock_after(rwlock_t *lock) argument 210 debug_write_unlock(rwlock_t *lock) argument 221 _raw_write_lock(rwlock_t *lock) argument 228 _raw_write_trylock(rwlock_t *lock) argument 243 _raw_write_unlock(rwlock_t *lock) argument [all...] |
/netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/timemachine/gettext-0.17/gettext-runtime/intl/ |
H A D | lock.c | 25 #include "lock.h" 79 glthread_rwlock_init (gl_rwlock_t *lock) argument 81 if (pthread_rwlock_init (&lock->rwlock, NULL) != 0) 83 lock->initialized = 1; 87 glthread_rwlock_rdlock (gl_rwlock_t *lock) argument 89 if (!lock->initialized) 91 if (pthread_mutex_lock (&lock->guard) != 0) 93 if (!lock->initialized) 94 glthread_rwlock_init (lock); 95 if (pthread_mutex_unlock (&lock 103 glthread_rwlock_wrlock(gl_rwlock_t *lock) argument 119 glthread_rwlock_unlock(gl_rwlock_t *lock) argument 128 glthread_rwlock_destroy(gl_rwlock_t *lock) argument 142 glthread_rwlock_init(gl_rwlock_t *lock) argument 155 glthread_rwlock_rdlock(gl_rwlock_t *lock) argument 178 glthread_rwlock_wrlock(gl_rwlock_t *lock) argument 198 glthread_rwlock_unlock(gl_rwlock_t *lock) argument 238 glthread_rwlock_destroy(gl_rwlock_t *lock) argument 257 glthread_recursive_lock_init(gl_recursive_lock_t *lock) argument 273 glthread_recursive_lock_lock(gl_recursive_lock_t *lock) argument 289 glthread_recursive_lock_unlock(gl_recursive_lock_t *lock) argument 298 glthread_recursive_lock_destroy(gl_recursive_lock_t *lock) argument 312 glthread_recursive_lock_init(gl_recursive_lock_t *lock) argument 321 glthread_recursive_lock_lock(gl_recursive_lock_t *lock) argument 335 glthread_recursive_lock_unlock(gl_recursive_lock_t *lock) argument 350 glthread_recursive_lock_destroy(gl_recursive_lock_t *lock) argument 433 glthread_recursive_lock_init(gl_recursive_lock_t *lock) argument 442 glthread_recursive_lock_lock(gl_recursive_lock_t *lock) argument 456 glthread_recursive_lock_unlock(gl_recursive_lock_t *lock) argument 471 glthread_recursive_lock_destroy(gl_recursive_lock_t *lock) argument 523 glthread_lock_init(gl_lock_t *lock) argument 530 glthread_lock_lock(gl_lock_t *lock) argument 547 glthread_lock_unlock(gl_lock_t *lock) argument 555 glthread_lock_destroy(gl_lock_t *lock) argument 652 glthread_rwlock_init(gl_rwlock_t *lock) argument 662 glthread_rwlock_rdlock(gl_rwlock_t *lock) argument 715 glthread_rwlock_wrlock(gl_rwlock_t *lock) argument 767 glthread_rwlock_unlock(gl_rwlock_t *lock) argument 807 glthread_rwlock_destroy(gl_rwlock_t *lock) argument 824 glthread_recursive_lock_init(gl_recursive_lock_t *lock) argument 833 glthread_recursive_lock_lock(gl_recursive_lock_t *lock) argument 859 glthread_recursive_lock_unlock(gl_recursive_lock_t *lock) argument 873 glthread_recursive_lock_destroy(gl_recursive_lock_t *lock) argument [all...] |
/netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/timemachine/gettext-0.17/gettext-tools/libgettextpo/ |
H A D | lock.c | 24 #include "lock.h" 78 glthread_rwlock_init (gl_rwlock_t *lock) argument 80 if (pthread_rwlock_init (&lock->rwlock, NULL) != 0) 82 lock->initialized = 1; 86 glthread_rwlock_rdlock (gl_rwlock_t *lock) argument 88 if (!lock->initialized) 90 if (pthread_mutex_lock (&lock->guard) != 0) 92 if (!lock->initialized) 93 glthread_rwlock_init (lock); 94 if (pthread_mutex_unlock (&lock 102 glthread_rwlock_wrlock(gl_rwlock_t *lock) argument 118 glthread_rwlock_unlock(gl_rwlock_t *lock) argument 127 glthread_rwlock_destroy(gl_rwlock_t *lock) argument 141 glthread_rwlock_init(gl_rwlock_t *lock) argument 154 glthread_rwlock_rdlock(gl_rwlock_t *lock) argument 177 glthread_rwlock_wrlock(gl_rwlock_t *lock) argument 197 glthread_rwlock_unlock(gl_rwlock_t *lock) argument 237 glthread_rwlock_destroy(gl_rwlock_t *lock) argument 256 glthread_recursive_lock_init(gl_recursive_lock_t *lock) argument 272 glthread_recursive_lock_lock(gl_recursive_lock_t *lock) argument 288 glthread_recursive_lock_unlock(gl_recursive_lock_t *lock) argument 297 glthread_recursive_lock_destroy(gl_recursive_lock_t *lock) argument 311 glthread_recursive_lock_init(gl_recursive_lock_t *lock) argument 320 glthread_recursive_lock_lock(gl_recursive_lock_t *lock) argument 334 glthread_recursive_lock_unlock(gl_recursive_lock_t *lock) argument 349 glthread_recursive_lock_destroy(gl_recursive_lock_t *lock) argument 432 glthread_recursive_lock_init(gl_recursive_lock_t *lock) argument 441 glthread_recursive_lock_lock(gl_recursive_lock_t *lock) argument 455 glthread_recursive_lock_unlock(gl_recursive_lock_t *lock) argument 470 glthread_recursive_lock_destroy(gl_recursive_lock_t *lock) argument 522 glthread_lock_init(gl_lock_t *lock) argument 529 glthread_lock_lock(gl_lock_t *lock) argument 546 glthread_lock_unlock(gl_lock_t *lock) argument 554 glthread_lock_destroy(gl_lock_t *lock) argument 651 glthread_rwlock_init(gl_rwlock_t *lock) argument 661 glthread_rwlock_rdlock(gl_rwlock_t *lock) argument 714 glthread_rwlock_wrlock(gl_rwlock_t *lock) argument 766 glthread_rwlock_unlock(gl_rwlock_t *lock) argument 806 glthread_rwlock_destroy(gl_rwlock_t *lock) argument 823 glthread_recursive_lock_init(gl_recursive_lock_t *lock) argument 832 glthread_recursive_lock_lock(gl_recursive_lock_t *lock) argument 858 glthread_recursive_lock_unlock(gl_recursive_lock_t *lock) argument 872 glthread_recursive_lock_destroy(gl_recursive_lock_t *lock) argument [all...] |
/netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/timemachine/gettext-0.17/gettext-tools/gnulib-lib/ |
H A D | lock.c | 24 #include "lock.h" 78 glthread_rwlock_init (gl_rwlock_t *lock) argument 80 if (pthread_rwlock_init (&lock->rwlock, NULL) != 0) 82 lock->initialized = 1; 86 glthread_rwlock_rdlock (gl_rwlock_t *lock) argument 88 if (!lock->initialized) 90 if (pthread_mutex_lock (&lock->guard) != 0) 92 if (!lock->initialized) 93 glthread_rwlock_init (lock); 94 if (pthread_mutex_unlock (&lock 102 glthread_rwlock_wrlock(gl_rwlock_t *lock) argument 118 glthread_rwlock_unlock(gl_rwlock_t *lock) argument 127 glthread_rwlock_destroy(gl_rwlock_t *lock) argument 141 glthread_rwlock_init(gl_rwlock_t *lock) argument 154 glthread_rwlock_rdlock(gl_rwlock_t *lock) argument 177 glthread_rwlock_wrlock(gl_rwlock_t *lock) argument 197 glthread_rwlock_unlock(gl_rwlock_t *lock) argument 237 glthread_rwlock_destroy(gl_rwlock_t *lock) argument 256 glthread_recursive_lock_init(gl_recursive_lock_t *lock) argument 272 glthread_recursive_lock_lock(gl_recursive_lock_t *lock) argument 288 glthread_recursive_lock_unlock(gl_recursive_lock_t *lock) argument 297 glthread_recursive_lock_destroy(gl_recursive_lock_t *lock) argument 311 glthread_recursive_lock_init(gl_recursive_lock_t *lock) argument 320 glthread_recursive_lock_lock(gl_recursive_lock_t *lock) argument 334 glthread_recursive_lock_unlock(gl_recursive_lock_t *lock) argument 349 glthread_recursive_lock_destroy(gl_recursive_lock_t *lock) argument 432 glthread_recursive_lock_init(gl_recursive_lock_t *lock) argument 441 glthread_recursive_lock_lock(gl_recursive_lock_t *lock) argument 455 glthread_recursive_lock_unlock(gl_recursive_lock_t *lock) argument 470 glthread_recursive_lock_destroy(gl_recursive_lock_t *lock) argument 522 glthread_lock_init(gl_lock_t *lock) argument 529 glthread_lock_lock(gl_lock_t *lock) argument 546 glthread_lock_unlock(gl_lock_t *lock) argument 554 glthread_lock_destroy(gl_lock_t *lock) argument 651 glthread_rwlock_init(gl_rwlock_t *lock) argument 661 glthread_rwlock_rdlock(gl_rwlock_t *lock) argument 714 glthread_rwlock_wrlock(gl_rwlock_t *lock) argument 766 glthread_rwlock_unlock(gl_rwlock_t *lock) argument 806 glthread_rwlock_destroy(gl_rwlock_t *lock) argument 823 glthread_recursive_lock_init(gl_recursive_lock_t *lock) argument 832 glthread_recursive_lock_lock(gl_recursive_lock_t *lock) argument 858 glthread_recursive_lock_unlock(gl_recursive_lock_t *lock) argument 872 glthread_recursive_lock_destroy(gl_recursive_lock_t *lock) argument [all...] |
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/fs/xfs/linux-2.6/ |
H A D | spin.h | 38 #define spinlock_init(lock, name) spin_lock_init(lock) 39 #define spinlock_destroy(lock) 40 #define mutex_spinlock(lock) ({ spin_lock(lock); 0; }) 41 #define mutex_spinunlock(lock, s) do { spin_unlock(lock); (void)s; } while (0) 42 #define nested_spinlock(lock) spin_lock(lock) 43 #define nested_spinunlock(lock) spin_unloc [all...] |
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/include/asm-sparc/ |
H A D | spinlock_types.h | 9 unsigned char lock; member in struct:__anon9422 15 volatile unsigned int lock; member in struct:__anon9423
|
H A D | spinlock.h | 15 #define __raw_spin_is_locked(lock) (*((volatile unsigned char *)(lock)) != 0) 17 #define __raw_spin_unlock_wait(lock) \ 18 do { while (__raw_spin_is_locked(lock)) cpu_relax(); } while (0) 20 static inline void __raw_spin_lock(raw_spinlock_t *lock) argument 36 : "r" (lock) 40 static inline int __raw_spin_trylock(raw_spinlock_t *lock) argument 45 : "r" (lock) 50 static inline void __raw_spin_unlock(raw_spinlock_t *lock) argument 52 __asm__ __volatile__("stb %%g0, [%0]" : : "r" (lock) [all...] |
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/include/asm-sparc64/ |
H A D | spinlock_types.h | 9 volatile unsigned char lock; member in struct:__anon9457 15 volatile unsigned int lock; member in struct:__anon9458
|
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/include/asm-arm/ |
H A D | spinlock_types.h | 9 volatile unsigned int lock; member in struct:__anon7974 15 volatile unsigned int lock; member in struct:__anon7975
|
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/include/asm-generic/bitops/ |
H A D | ext2-atomic.h | 4 #define ext2_set_bit_atomic(lock, nr, addr) \ 7 spin_lock(lock); \ 9 spin_unlock(lock); \ 13 #define ext2_clear_bit_atomic(lock, nr, addr) \ 16 spin_lock(lock); \ 18 spin_unlock(lock); \
|
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/include/asm-sh/ |
H A D | spinlock.h | 20 #define __raw_spin_is_locked(x) ((x)->lock != 0) 21 #define __raw_spin_lock_flags(lock, flags) __raw_spin_lock(lock) 26 * Simple spin lock operations. There are two variants, one clears IRQ's 31 static inline void __raw_spin_lock(raw_spinlock_t *lock) argument 38 : "=r" (lock->lock) 39 : "r" (&lock->lock) 44 static inline void __raw_spin_unlock(raw_spinlock_t *lock) argument 97 __raw_read_trylock(raw_rwlock_t *lock) argument [all...] |