/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/linux/ |
H A D | rwsem.h | 30 extern void down_read(struct rw_semaphore *sem); 35 extern int down_read_trylock(struct rw_semaphore *sem); 40 extern void down_write(struct rw_semaphore *sem); 45 extern int down_write_trylock(struct rw_semaphore *sem); 50 extern void up_read(struct rw_semaphore *sem); 55 extern void up_write(struct rw_semaphore *sem); 60 extern void downgrade_write(struct rw_semaphore *sem); 76 extern void down_read_nested(struct rw_semaphore *sem, int subclass); 77 extern void down_write_nested(struct rw_semaphore *sem, int subclass); 84 extern void down_read_non_owner(struct rw_semaphore *sem); [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-parisc/ |
H A D | semaphore.h | 58 extern inline void sema_init (struct semaphore *sem, int val) argument 60 *sem = (struct semaphore)__SEMAPHORE_INITIALIZER((*sem),val); 63 static inline void init_MUTEX (struct semaphore *sem) argument 65 sema_init(sem, 1); 68 static inline void init_MUTEX_LOCKED (struct semaphore *sem) argument 70 sema_init(sem, 0); 73 static inline int sem_getcount(struct semaphore *sem) argument 75 return sem->count; 78 asmlinkage void __down(struct semaphore * sem); 86 down(struct semaphore * sem) argument 98 down_interruptible(struct semaphore * sem) argument 116 down_trylock(struct semaphore * sem) argument 133 up(struct semaphore * sem) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-s390/ |
H A D | semaphore.h | 38 static inline void sema_init (struct semaphore *sem, int val) argument 40 atomic_set(&sem->count, val); 41 init_waitqueue_head(&sem->wait); 44 static inline void init_MUTEX (struct semaphore *sem) argument 46 sema_init(sem, 1); 49 static inline void init_MUTEX_LOCKED (struct semaphore *sem) argument 51 sema_init(sem, 0); 54 asmlinkage void __down(struct semaphore * sem); 55 asmlinkage int __down_interruptible(struct semaphore * sem); 56 asmlinkage int __down_trylock(struct semaphore * sem); 59 down(struct semaphore * sem) argument 66 down_interruptible(struct semaphore * sem) argument 76 down_trylock(struct semaphore * sem) argument 102 up(struct semaphore * sem) argument [all...] |
H A D | rwsem.h | 100 static inline void init_rwsem(struct rw_semaphore *sem) argument 102 sem->count = RWSEM_UNLOCKED_VALUE; 103 spin_lock_init(&sem->wait_lock); 104 INIT_LIST_HEAD(&sem->wait_list); 107 extern void __init_rwsem(struct rw_semaphore *sem, const char *name, 110 #define init_rwsem(sem) \ 114 __init_rwsem((sem), #sem, &__key); \ 121 static inline void __down_read(struct rw_semaphore *sem) argument 139 : "=&d" (old), "=&d" (new), "=m" (sem 149 __down_read_trylock(struct rw_semaphore *sem) argument 180 __down_write_nested(struct rw_semaphore *sem, int subclass) argument 206 __down_write(struct rw_semaphore *sem) argument 214 __down_write_trylock(struct rw_semaphore *sem) argument 242 __up_read(struct rw_semaphore *sem) argument 272 __up_write(struct rw_semaphore *sem) argument 302 __downgrade_write(struct rw_semaphore *sem) argument 331 rwsem_atomic_add(long delta, struct rw_semaphore *sem) argument 357 rwsem_atomic_update(long delta, struct rw_semaphore *sem) argument 381 rwsem_is_locked(struct rw_semaphore *sem) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-xtensa/ |
H A D | semaphore.h | 38 static inline void sema_init (struct semaphore *sem, int val) argument 40 atomic_set(&sem->count, val); 41 sem->sleepers = 0; 42 init_waitqueue_head(&sem->wait); 45 static inline void init_MUTEX (struct semaphore *sem) argument 47 sema_init(sem, 1); 50 static inline void init_MUTEX_LOCKED (struct semaphore *sem) argument 52 sema_init(sem, 0); 55 asmlinkage void __down(struct semaphore * sem); 56 asmlinkage int __down_interruptible(struct semaphore * sem); 62 down(struct semaphore * sem) argument 70 down_interruptible(struct semaphore * sem) argument 81 down_trylock(struct semaphore * sem) argument 94 up(struct semaphore * sem) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-cris/ |
H A D | semaphore.h | 40 static inline void sema_init(struct semaphore *sem, int val) argument 42 *sem = (struct semaphore)__SEMAPHORE_INITIALIZER((*sem),val); 45 static inline void init_MUTEX (struct semaphore *sem) argument 47 sema_init(sem, 1); 50 static inline void init_MUTEX_LOCKED (struct semaphore *sem) argument 52 sema_init(sem, 0); 55 extern void __down(struct semaphore * sem); 56 extern int __down_interruptible(struct semaphore * sem); 57 extern int __down_trylock(struct semaphore * sem); 62 down(struct semaphore * sem) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-blackfin/ |
H A D | semaphore.h | 40 static inline void sema_init(struct semaphore *sem, int val) argument 42 *sem = (struct semaphore)__SEMAPHORE_INITIALIZER(*sem, val); 45 static inline void init_MUTEX(struct semaphore *sem) argument 47 sema_init(sem, 1); 50 static inline void init_MUTEX_LOCKED(struct semaphore *sem) argument 52 sema_init(sem, 0); 55 asmlinkage void __down(struct semaphore *sem); 56 asmlinkage int __down_interruptible(struct semaphore *sem); 57 asmlinkage int __down_trylock(struct semaphore *sem); 67 down(struct semaphore *sem) argument 74 down_interruptible(struct semaphore *sem) argument 84 down_trylock(struct semaphore *sem) argument 99 up(struct semaphore *sem) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-ia64/ |
H A D | semaphore.h | 34 sema_init (struct semaphore *sem, int val) argument 36 *sem = (struct semaphore) __SEMAPHORE_INITIALIZER(*sem, val); 40 init_MUTEX (struct semaphore *sem) argument 42 sema_init(sem, 1); 46 init_MUTEX_LOCKED (struct semaphore *sem) argument 48 sema_init(sem, 0); 51 extern void __down (struct semaphore * sem); 52 extern int __down_interruptible (struct semaphore * sem); 53 extern int __down_trylock (struct semaphore * sem); 61 down(struct semaphore *sem) argument 73 down_interruptible(struct semaphore * sem) argument 84 down_trylock(struct semaphore *sem) argument 94 up(struct semaphore * sem) argument [all...] |
H A D | rwsem.h | 52 extern struct rw_semaphore *rwsem_down_read_failed(struct rw_semaphore *sem); 53 extern struct rw_semaphore *rwsem_down_write_failed(struct rw_semaphore *sem); 54 extern struct rw_semaphore *rwsem_wake(struct rw_semaphore *sem); 55 extern struct rw_semaphore *rwsem_downgrade_wake(struct rw_semaphore *sem); 58 init_rwsem (struct rw_semaphore *sem) argument 60 sem->count = RWSEM_UNLOCKED_VALUE; 61 spin_lock_init(&sem->wait_lock); 62 INIT_LIST_HEAD(&sem->wait_list); 69 __down_read (struct rw_semaphore *sem) argument 71 long result = ia64_fetchadd8_acq((unsigned long *)&sem 81 __down_write(struct rw_semaphore *sem) argument 98 __up_read(struct rw_semaphore *sem) argument 110 __up_write(struct rw_semaphore *sem) argument 127 __down_read_trylock(struct rw_semaphore *sem) argument 142 __down_write_trylock(struct rw_semaphore *sem) argument 153 __downgrade_write(struct rw_semaphore *sem) argument 173 rwsem_is_locked(struct rw_semaphore *sem) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-v850/ |
H A D | semaphore.h | 27 static inline void sema_init (struct semaphore *sem, int val) argument 29 *sem = (struct semaphore)__SEMAPHORE_INITIALIZER((*sem),val); 32 static inline void init_MUTEX (struct semaphore *sem) argument 34 sema_init (sem, 1); 37 static inline void init_MUTEX_LOCKED (struct semaphore *sem) argument 39 sema_init (sem, 0); 50 extern void __down (struct semaphore * sem); 51 extern int __down_interruptible (struct semaphore * sem); 52 extern int __down_trylock (struct semaphore * sem); 55 down(struct semaphore * sem) argument 62 down_interruptible(struct semaphore * sem) argument 71 down_trylock(struct semaphore *sem) argument 79 up(struct semaphore * sem) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/avr32/kernel/ |
H A D | semaphore.c | 52 void __up(struct semaphore *sem) argument 54 wake_up(&sem->wait); 58 void __sched __down(struct semaphore *sem) argument 65 spin_lock_irqsave(&sem->wait.lock, flags); 66 add_wait_queue_exclusive_locked(&sem->wait, &wait); 68 sem->sleepers++; 70 int sleepers = sem->sleepers; 77 if (atomic_add_return(sleepers - 1, &sem->count) >= 0) { 78 sem->sleepers = 0; 81 sem 96 __down_interruptible(struct semaphore *sem) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/kernel/ |
H A D | rwsem.c | 18 void down_read(struct rw_semaphore *sem) argument 21 rwsem_acquire_read(&sem->dep_map, 0, 0, _RET_IP_); 23 __down_read(sem); 31 int down_read_trylock(struct rw_semaphore *sem) argument 33 int ret = __down_read_trylock(sem); 36 rwsem_acquire_read(&sem->dep_map, 0, 1, _RET_IP_); 45 void down_write(struct rw_semaphore *sem) argument 48 rwsem_acquire(&sem->dep_map, 0, 0, _RET_IP_); 50 __down_write(sem); 58 int down_write_trylock(struct rw_semaphore *sem) argument 72 up_read(struct rw_semaphore *sem) argument 84 up_write(struct rw_semaphore *sem) argument 96 downgrade_write(struct rw_semaphore *sem) argument 109 down_read_nested(struct rw_semaphore *sem, int subclass) argument 119 down_read_non_owner(struct rw_semaphore *sem) argument 128 down_write_nested(struct rw_semaphore *sem, int subclass) argument 138 up_read_non_owner(struct rw_semaphore *sem) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-sh/ |
H A D | rwsem.h | 47 extern struct rw_semaphore *rwsem_down_read_failed(struct rw_semaphore *sem); 48 extern struct rw_semaphore *rwsem_down_write_failed(struct rw_semaphore *sem); 49 extern struct rw_semaphore *rwsem_wake(struct rw_semaphore *sem); 50 extern struct rw_semaphore *rwsem_downgrade_wake(struct rw_semaphore *sem); 52 extern void __init_rwsem(struct rw_semaphore *sem, const char *name, 55 #define init_rwsem(sem) \ 59 __init_rwsem((sem), #sem, &__key); \ 62 static inline void init_rwsem(struct rw_semaphore *sem) argument 64 sem 72 __down_read(struct rw_semaphore *sem) argument 80 __down_read_trylock(struct rw_semaphore *sem) argument 97 __down_write(struct rw_semaphore *sem) argument 109 __down_write_trylock(struct rw_semaphore *sem) argument 122 __up_read(struct rw_semaphore *sem) argument 135 __up_write(struct rw_semaphore *sem) argument 146 rwsem_atomic_add(int delta, struct rw_semaphore *sem) argument 154 __downgrade_write(struct rw_semaphore *sem) argument 164 __down_write_nested(struct rw_semaphore *sem, int subclass) argument 172 rwsem_atomic_update(int delta, struct rw_semaphore *sem) argument 178 rwsem_is_locked(struct rw_semaphore *sem) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-avr32/ |
H A D | semaphore.h | 41 static inline void sema_init (struct semaphore *sem, int val) argument 43 atomic_set(&sem->count, val); 44 sem->sleepers = 0; 45 init_waitqueue_head(&sem->wait); 48 static inline void init_MUTEX (struct semaphore *sem) argument 50 sema_init(sem, 1); 53 static inline void init_MUTEX_LOCKED (struct semaphore *sem) argument 55 sema_init(sem, 0); 58 void __down(struct semaphore * sem); 59 int __down_interruptible(struct semaphore * sem); 67 down(struct semaphore * sem) argument 78 down_interruptible(struct semaphore * sem) argument 92 down_trylock(struct semaphore * sem) argument 103 up(struct semaphore * sem) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-frv/ |
H A D | semaphore.h | 54 static inline void sema_init (struct semaphore *sem, int val) argument 56 *sem = (struct semaphore) __SEMAPHORE_INITIALIZER(*sem, val); 59 static inline void init_MUTEX (struct semaphore *sem) argument 61 sema_init(sem, 1); 64 static inline void init_MUTEX_LOCKED (struct semaphore *sem) argument 66 sema_init(sem, 0); 69 extern void __down(struct semaphore *sem, unsigned long flags); 70 extern int __down_interruptible(struct semaphore *sem, unsigned long flags); 71 extern void __up(struct semaphore *sem); 73 down(struct semaphore *sem) argument 91 down_interruptible(struct semaphore *sem) argument 115 down_trylock(struct semaphore *sem) argument 133 up(struct semaphore *sem) argument 149 sem_getcount(struct semaphore *sem) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/alpha/kernel/ |
H A D | semaphore.c | 19 * Atomically update sem->count. 22 * old_count = sem->count; 24 * sem->count = tmp; 27 static inline int __sem_update_count(struct semaphore *sem, int incr) argument 41 : "=&r" (old_count), "=&r" (tmp), "=m" (sem->count) 42 : "Ir" (incr), "1" (tmp), "m" (sem->count)); 65 __down_failed(struct semaphore *sem) argument 72 tsk->comm, tsk->pid, sem); 77 add_wait_queue_exclusive(&sem->wait, &wait); 85 while (__sem_update_count(sem, 106 __down_failed_interruptible(struct semaphore *sem) argument 149 __up_wakeup(struct semaphore *sem) argument 164 down(struct semaphore *sem) argument 178 down_interruptible(struct semaphore *sem) argument 192 down_trylock(struct semaphore *sem) argument 213 up(struct semaphore *sem) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-arm/ |
H A D | semaphore-helper.h | 7 static inline void wake_one_more(struct semaphore * sem) argument 12 if (atomic_read(&sem->count) <= 0) 13 sem->waking++; 17 static inline int waking_non_zero(struct semaphore *sem) argument 23 if (sem->waking > 0) { 24 sem->waking--; 37 * We must undo the sem->count down_interruptible() increment while we are 41 static inline int waking_non_zero_interruptible(struct semaphore *sem, argument 48 if (sem->waking > 0) { 49 sem 68 waking_non_zero_trylock(struct semaphore *sem) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-arm26/ |
H A D | semaphore-helper.h | 7 static inline void wake_one_more(struct semaphore * sem) argument 12 if (atomic_read(&sem->count) <= 0) 13 sem->waking++; 17 static inline int waking_non_zero(struct semaphore *sem) argument 23 if (sem->waking > 0) { 24 sem->waking--; 37 * We must undo the sem->count down_interruptible() increment while we are 41 static inline int waking_non_zero_interruptible(struct semaphore *sem, argument 48 if (sem->waking > 0) { 49 sem 68 waking_non_zero_trylock(struct semaphore *sem) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm/ |
H A D | semaphore.h | 54 static inline void sema_init (struct semaphore *sem, int val) argument 56 atomic_set(&sem->count, val); 57 init_waitqueue_head(&sem->wait); 60 static inline void init_MUTEX (struct semaphore *sem) argument 62 sema_init(sem, 1); 65 static inline void init_MUTEX_LOCKED (struct semaphore *sem) argument 67 sema_init(sem, 0); 70 extern void __down(struct semaphore * sem); 71 extern int __down_interruptible(struct semaphore * sem); 72 extern void __up(struct semaphore * sem); 74 down(struct semaphore * sem) argument 85 down_interruptible(struct semaphore * sem) argument 96 down_trylock(struct semaphore * sem) argument 101 up(struct semaphore * sem) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-mips/ |
H A D | semaphore.h | 54 static inline void sema_init (struct semaphore *sem, int val) argument 56 atomic_set(&sem->count, val); 57 init_waitqueue_head(&sem->wait); 60 static inline void init_MUTEX (struct semaphore *sem) argument 62 sema_init(sem, 1); 65 static inline void init_MUTEX_LOCKED (struct semaphore *sem) argument 67 sema_init(sem, 0); 70 extern void __down(struct semaphore * sem); 71 extern int __down_interruptible(struct semaphore * sem); 72 extern void __up(struct semaphore * sem); 74 down(struct semaphore * sem) argument 85 down_interruptible(struct semaphore * sem) argument 96 down_trylock(struct semaphore * sem) argument 101 up(struct semaphore * sem) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-powerpc/ |
H A D | semaphore.h | 40 static inline void sema_init (struct semaphore *sem, int val) argument 42 atomic_set(&sem->count, val); 43 init_waitqueue_head(&sem->wait); 46 static inline void init_MUTEX (struct semaphore *sem) argument 48 sema_init(sem, 1); 51 static inline void init_MUTEX_LOCKED (struct semaphore *sem) argument 53 sema_init(sem, 0); 56 extern void __down(struct semaphore * sem); 57 extern int __down_interruptible(struct semaphore * sem); 58 extern void __up(struct semaphore * sem); 60 down(struct semaphore * sem) argument 71 down_interruptible(struct semaphore * sem) argument 82 down_trylock(struct semaphore * sem) argument 87 up(struct semaphore * sem) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/ia64/kernel/ |
H A D | semaphore.c | 43 __up (struct semaphore *sem) argument 45 wake_up(&sem->wait); 48 void __sched __down (struct semaphore *sem) argument 55 spin_lock_irqsave(&sem->wait.lock, flags); 56 add_wait_queue_exclusive_locked(&sem->wait, &wait); 58 sem->sleepers++; 60 int sleepers = sem->sleepers; 67 if (!atomic_add_negative(sleepers - 1, &sem->count)) { 68 sem->sleepers = 0; 71 sem 85 __down_interruptible(struct semaphore * sem) argument 145 __down_trylock(struct semaphore *sem) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/m32r/kernel/ |
H A D | semaphore.c | 60 asmlinkage void __up(struct semaphore *sem) argument 62 wake_up(&sem->wait); 65 asmlinkage void __sched __down(struct semaphore * sem) argument 72 spin_lock_irqsave(&sem->wait.lock, flags); 73 add_wait_queue_exclusive_locked(&sem->wait, &wait); 75 sem->sleepers++; 77 int sleepers = sem->sleepers; 84 if (!atomic_add_negative(sleepers - 1, &sem->count)) { 85 sem->sleepers = 0; 88 sem 102 __down_interruptible(struct semaphore * sem) argument 165 __down_trylock(struct semaphore * sem) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/lib/ |
H A D | semaphore-sleepers.c | 51 fastcall void __up(struct semaphore *sem) argument 53 wake_up(&sem->wait); 56 fastcall void __sched __down(struct semaphore * sem) argument 63 spin_lock_irqsave(&sem->wait.lock, flags); 64 add_wait_queue_exclusive_locked(&sem->wait, &wait); 66 sem->sleepers++; 68 int sleepers = sem->sleepers; 75 if (!atomic_add_negative(sleepers - 1, &sem->count)) { 76 sem->sleepers = 0; 79 sem 93 __down_interruptible(struct semaphore * sem) argument 156 __down_trylock(struct semaphore * sem) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-alpha/ |
H A D | rwsem.h | 21 extern struct rw_semaphore *rwsem_down_read_failed(struct rw_semaphore *sem); 22 extern struct rw_semaphore *rwsem_down_write_failed(struct rw_semaphore *sem); 24 extern struct rw_semaphore *rwsem_downgrade_wake(struct rw_semaphore *sem); 48 static inline void init_rwsem(struct rw_semaphore *sem) argument 50 sem->count = RWSEM_UNLOCKED_VALUE; 51 spin_lock_init(&sem->wait_lock); 52 INIT_LIST_HEAD(&sem->wait_list); 55 static inline void __down_read(struct rw_semaphore *sem) argument 59 oldcount = sem->count; 60 sem 82 __down_read_trylock(struct rw_semaphore *sem) argument 97 __down_write(struct rw_semaphore *sem) argument 124 __down_write_trylock(struct rw_semaphore *sem) argument 133 __up_read(struct rw_semaphore *sem) argument 158 __up_write(struct rw_semaphore *sem) argument 187 __downgrade_write(struct rw_semaphore *sem) argument 211 rwsem_atomic_add(long val, struct rw_semaphore *sem) argument 230 rwsem_atomic_update(long val, struct rw_semaphore *sem) argument 253 rwsem_is_locked(struct rw_semaphore *sem) argument [all...] |