sem 277 fs/afs/internal.h struct rw_semaphore sem; /* access lock */ sem 83 fs/afs/server.c init_rwsem(&server->sem); sem 65 fs/jffs2/debug.c mutex_lock(&f->sem); sem 67 fs/jffs2/debug.c mutex_unlock(&f->sem); sem 689 fs/jffs2/debug.c mutex_lock(&f->sem); sem 691 fs/jffs2/debug.c mutex_unlock(&f->sem); sem 89 fs/jffs2/dir.c mutex_lock(&dir_f->sem); sem 102 fs/jffs2/dir.c mutex_unlock(&dir_f->sem); sem 149 fs/jffs2/dir.c mutex_lock(&f->sem); sem 169 fs/jffs2/dir.c mutex_unlock(&f->sem); sem 216 fs/jffs2/dir.c mutex_unlock(&f->sem); sem 286 fs/jffs2/dir.c mutex_lock(&f->sem); sem 288 fs/jffs2/dir.c mutex_unlock(&f->sem); sem 362 fs/jffs2/dir.c mutex_unlock(&f->sem); sem 372 fs/jffs2/dir.c mutex_unlock(&f->sem); sem 385 fs/jffs2/dir.c mutex_unlock(&f->sem); sem 417 fs/jffs2/dir.c mutex_lock(&dir_f->sem); sem 440 fs/jffs2/dir.c mutex_unlock(&dir_f->sem); sem 453 fs/jffs2/dir.c mutex_unlock(&dir_f->sem); sem 521 fs/jffs2/dir.c mutex_unlock(&f->sem); sem 530 fs/jffs2/dir.c mutex_unlock(&f->sem); sem 562 fs/jffs2/dir.c mutex_lock(&dir_f->sem); sem 585 fs/jffs2/dir.c mutex_unlock(&dir_f->sem); sem 599 fs/jffs2/dir.c mutex_unlock(&dir_f->sem); sem 695 fs/jffs2/dir.c mutex_unlock(&f->sem); sem 704 fs/jffs2/dir.c mutex_unlock(&f->sem); sem 736 fs/jffs2/dir.c mutex_lock(&dir_f->sem); sem 762 fs/jffs2/dir.c mutex_unlock(&dir_f->sem); sem 775 fs/jffs2/dir.c mutex_unlock(&dir_f->sem); sem 802 fs/jffs2/dir.c mutex_lock(&victim_f->sem); sem 805 fs/jffs2/dir.c mutex_unlock(&victim_f->sem); sem 809 fs/jffs2/dir.c mutex_unlock(&victim_f->sem); sem 838 fs/jffs2/dir.c mutex_lock(&victim_f->sem); sem 843 fs/jffs2/dir.c mutex_unlock(&victim_f->sem); sem 861 fs/jffs2/dir.c mutex_lock(&f->sem); sem 865 fs/jffs2/dir.c mutex_unlock(&f->sem); sem 118 fs/jffs2/file.c mutex_lock(&f->sem); sem 120 fs/jffs2/file.c mutex_unlock(&f->sem); sem 157 fs/jffs2/file.c mutex_lock(&f->sem); sem 184 fs/jffs2/file.c mutex_unlock(&f->sem); sem 198 fs/jffs2/file.c mutex_unlock(&f->sem); sem 203 fs/jffs2/file.c mutex_unlock(&f->sem); sem 212 fs/jffs2/file.c mutex_lock(&f->sem); sem 214 fs/jffs2/file.c mutex_unlock(&f->sem); sem 54 fs/jffs2/fs.c mutex_lock(&f->sem); sem 58 fs/jffs2/fs.c mutex_unlock(&f->sem); sem 63 fs/jffs2/fs.c mutex_unlock(&f->sem); sem 67 fs/jffs2/fs.c mutex_unlock(&f->sem); sem 86 fs/jffs2/fs.c mutex_lock(&f->sem); sem 137 fs/jffs2/fs.c mutex_unlock(&f->sem); sem 168 fs/jffs2/fs.c mutex_unlock(&f->sem); sem 259 fs/jffs2/fs.c mutex_lock(&f->sem); sem 264 fs/jffs2/fs.c mutex_unlock(&f->sem); sem 340 fs/jffs2/fs.c mutex_unlock(&f->sem); sem 349 fs/jffs2/fs.c mutex_unlock(&f->sem); sem 439 fs/jffs2/fs.c mutex_lock(&f->sem); sem 454 fs/jffs2/gc.c mutex_lock(&f->sem); sem 534 fs/jffs2/gc.c mutex_unlock(&f->sem); sem 26 fs/jffs2/jffs2_fs_i.h struct mutex sem; sem 1199 fs/jffs2/readinode.c mutex_unlock(&f->sem); sem 1208 fs/jffs2/readinode.c mutex_unlock(&f->sem); sem 1248 fs/jffs2/readinode.c mutex_unlock(&f->sem); sem 1261 fs/jffs2/readinode.c mutex_unlock(&f->sem); sem 1279 fs/jffs2/readinode.c mutex_unlock(&f->sem); sem 1286 fs/jffs2/readinode.c mutex_unlock(&f->sem); sem 1295 fs/jffs2/readinode.c mutex_unlock(&f->sem); sem 1385 fs/jffs2/readinode.c mutex_init(&f->sem); sem 1386 fs/jffs2/readinode.c mutex_lock(&f->sem); sem 1391 fs/jffs2/readinode.c mutex_unlock(&f->sem); sem 1405 fs/jffs2/readinode.c mutex_lock(&f->sem); sem 1437 fs/jffs2/readinode.c mutex_unlock(&f->sem); sem 51 fs/jffs2/super.c mutex_init(&f->sem); sem 141 fs/jffs2/write.c mutex_unlock(&f->sem); sem 146 fs/jffs2/write.c mutex_lock(&f->sem); sem 289 fs/jffs2/write.c mutex_unlock(&f->sem); sem 294 fs/jffs2/write.c mutex_lock(&f->sem); sem 357 fs/jffs2/write.c mutex_lock(&f->sem); sem 385 fs/jffs2/write.c mutex_unlock(&f->sem); sem 407 fs/jffs2/write.c mutex_unlock(&f->sem); sem 411 fs/jffs2/write.c mutex_unlock(&f->sem); sem 445 fs/jffs2/write.c mutex_lock(&f->sem); sem 458 fs/jffs2/write.c mutex_unlock(&f->sem); sem 467 fs/jffs2/write.c mutex_unlock(&f->sem); sem 493 fs/jffs2/write.c mutex_lock(&dir_f->sem); sem 517 fs/jffs2/write.c mutex_unlock(&dir_f->sem); sem 526 fs/jffs2/write.c mutex_unlock(&dir_f->sem); sem 555 fs/jffs2/write.c mutex_lock(&dir_f->sem); sem 578 fs/jffs2/write.c mutex_unlock(&dir_f->sem); sem 584 fs/jffs2/write.c mutex_unlock(&dir_f->sem); sem 592 fs/jffs2/write.c mutex_lock(&dir_f->sem); sem 611 fs/jffs2/write.c mutex_unlock(&dir_f->sem); sem 619 fs/jffs2/write.c mutex_lock(&dead_f->sem); sem 643 fs/jffs2/write.c mutex_unlock(&dead_f->sem); sem 670 fs/jffs2/write.c mutex_lock(&dir_f->sem); sem 695 fs/jffs2/write.c mutex_unlock(&dir_f->sem); sem 703 fs/jffs2/write.c mutex_unlock(&dir_f->sem); sem 535 fs/smbfs/inode.c init_MUTEX(&server->sem); sem 99 include/asm-x86/rwsem.h __init_rwsem((sem), #sem, &__key); \ sem 114 include/asm-x86/rwsem.h : "+m" (sem->count) sem 115 include/asm-x86/rwsem.h : "a" (sem) sem 135 include/asm-x86/rwsem.h : "+m" (sem->count), "=&a" (result), "=&r" (tmp) sem 158 include/asm-x86/rwsem.h : "+m" (sem->count), "=d" (tmp) sem 159 include/asm-x86/rwsem.h : "a" (sem), "1" (tmp) sem 165 include/asm-x86/rwsem.h __down_write_nested(sem, 0); sem 173 include/asm-x86/rwsem.h signed long ret = cmpxchg(&sem->count, sem 194 include/asm-x86/rwsem.h : "+m" (sem->count), "=d" (tmp) sem 195 include/asm-x86/rwsem.h : "a" (sem), "1" (tmp) sem 213 include/asm-x86/rwsem.h : "+m" (sem->count) sem 214 include/asm-x86/rwsem.h : "a" (sem), "i" (-RWSEM_ACTIVE_WRITE_BIAS) sem 230 include/asm-x86/rwsem.h : "+m" (sem->count) sem 231 include/asm-x86/rwsem.h : "a" (sem), "i" (-RWSEM_WAITING_BIAS) sem 241 include/asm-x86/rwsem.h : "+m" (sem->count) sem 253 include/asm-x86/rwsem.h : "+r" (tmp), "+m" (sem->count) sem 261 include/asm-x86/rwsem.h return (sem->count != 0); sem 50 include/asm-xtensa/rwsem.h sem->count = RWSEM_UNLOCKED_VALUE; sem 51 include/asm-xtensa/rwsem.h spin_lock_init(&sem->wait_lock); sem 52 include/asm-xtensa/rwsem.h INIT_LIST_HEAD(&sem->wait_list); sem 60 include/asm-xtensa/rwsem.h if (atomic_add_return(1,(atomic_t *)(&sem->count)) > 0) sem 63 include/asm-xtensa/rwsem.h rwsem_down_read_failed(sem); sem 70 include/asm-xtensa/rwsem.h while ((tmp = sem->count) >= 0) { sem 71 include/asm-xtensa/rwsem.h if (tmp == cmpxchg(&sem->count, tmp, sem 88 include/asm-xtensa/rwsem.h (atomic_t *)(&sem->count)); sem 92 include/asm-xtensa/rwsem.h rwsem_down_write_failed(sem); sem 99 include/asm-xtensa/rwsem.h tmp = cmpxchg(&sem->count, RWSEM_UNLOCKED_VALUE, sem 113 include/asm-xtensa/rwsem.h tmp = atomic_sub_return(1,(atomic_t *)(&sem->count)); sem 115 include/asm-xtensa/rwsem.h rwsem_wake(sem); sem 125 include/asm-xtensa/rwsem.h (atomic_t *)(&sem->count)) < 0) sem 126 include/asm-xtensa/rwsem.h rwsem_wake(sem); sem 134 include/asm-xtensa/rwsem.h atomic_add(delta, (atomic_t *)(&sem->count)); sem 145 include/asm-xtensa/rwsem.h tmp = atomic_add_return(-RWSEM_WAITING_BIAS, (atomic_t *)(&sem->count)); sem 147 include/asm-xtensa/rwsem.h rwsem_downgrade_wake(sem); sem 156 include/asm-xtensa/rwsem.h return atomic_add_return(delta, (atomic_t *)(&sem->count)); sem 161 include/asm-xtensa/rwsem.h return (sem->count != 0); sem 377 include/linux/device.h struct semaphore sem; /* semaphore to synchronize calls to sem 127 include/linux/key.h struct rw_semaphore sem; /* change vs change sem */ sem 60 include/linux/rwsem-spinlock.h __init_rwsem((sem), #sem, &__key); \ sem 74 include/linux/rwsem-spinlock.h return (sem->activity != 0); sem 85 include/linux/rwsem.h # define down_read_nested(sem, subclass) down_read(sem) sem 86 include/linux/rwsem.h # define down_write_nested(sem, subclass) down_write(sem) sem 87 include/linux/rwsem.h # define down_read_non_owner(sem) down_read(sem) sem 88 include/linux/rwsem.h # define up_read_non_owner(sem) up_read(sem) sem 27 include/linux/sem.h struct sem *sem_base; /* ptr to first semaphore in array */ sem 96 include/linux/sem.h struct sem *sem_base; /* ptr to first semaphore in array */ sem 35 include/linux/semaphore.h *sem = (struct semaphore) __SEMAPHORE_INITIALIZER(*sem, val); sem 36 include/linux/semaphore.h lockdep_init_map(&sem->lock.dep_map, "semaphore->lock", &__key, 0); sem 39 include/linux/semaphore.h #define init_MUTEX(sem) sema_init(sem, 1) sem 40 include/linux/semaphore.h #define init_MUTEX_LOCKED(sem) sema_init(sem, 0) sem 60 include/linux/smb_fs_sb.h struct semaphore sem; sem 82 include/linux/smb_fs_sb.h return down_interruptible(&(server->sem)); sem 88 include/linux/smb_fs_sb.h down(&(server->sem)); sem 94 include/linux/smb_fs_sb.h up(&(server->sem)); sem 498 include/linux/usb.h #define usb_lock_device(udev) down(&(udev)->dev.sem) sem 499 include/linux/usb.h #define usb_unlock_device(udev) up(&(udev)->dev.sem) sem 500 include/linux/usb.h #define usb_trylock_device(udev) down_trylock(&(udev)->dev.sem) sem 249 ipc/sem.c size = sizeof (*sma) + nsems * sizeof (struct sem); sem 274 ipc/sem.c sma->sem_base = (struct sem *) &sma[1]; sem 343 ipc/sem.c struct sem * curr; sem 665 ipc/sem.c struct sem* curr; sem 1322 ipc/sem.c struct sem * semaphore = &sma->sem_base[i]; sem 22 kernel/rwsem.c rwsem_acquire_read(&sem->dep_map, 0, 0, _RET_IP_); sem 24 kernel/rwsem.c LOCK_CONTENDED(sem, __down_read_trylock, __down_read); sem 34 kernel/rwsem.c int ret = __down_read_trylock(sem); sem 37 kernel/rwsem.c rwsem_acquire_read(&sem->dep_map, 0, 1, _RET_IP_); sem 49 kernel/rwsem.c rwsem_acquire(&sem->dep_map, 0, 0, _RET_IP_); sem 51 kernel/rwsem.c LOCK_CONTENDED(sem, __down_write_trylock, __down_write); sem 61 kernel/rwsem.c int ret = __down_write_trylock(sem); sem 64 kernel/rwsem.c rwsem_acquire(&sem->dep_map, 0, 1, _RET_IP_); sem 75 kernel/rwsem.c rwsem_release(&sem->dep_map, 1, _RET_IP_); sem 77 kernel/rwsem.c __up_read(sem); sem 87 kernel/rwsem.c rwsem_release(&sem->dep_map, 1, _RET_IP_); sem 89 kernel/rwsem.c __up_write(sem); sem 103 kernel/rwsem.c __downgrade_write(sem); sem 113 kernel/rwsem.c rwsem_acquire_read(&sem->dep_map, subclass, 0, _RET_IP_); sem 115 kernel/rwsem.c LOCK_CONTENDED(sem, __down_read_trylock, __down_read); sem 124 kernel/rwsem.c __down_read(sem); sem 132 kernel/rwsem.c rwsem_acquire(&sem->dep_map, subclass, 0, _RET_IP_); sem 134 kernel/rwsem.c LOCK_CONTENDED(sem, __down_write_trylock, __down_write); sem 141 kernel/rwsem.c __up_read(sem); sem 57 kernel/semaphore.c spin_lock_irqsave(&sem->lock, flags); sem 58 kernel/semaphore.c if (likely(sem->count > 0)) sem 59 kernel/semaphore.c sem->count--; sem 61 kernel/semaphore.c __down(sem); sem 62 kernel/semaphore.c spin_unlock_irqrestore(&sem->lock, flags); sem 80 kernel/semaphore.c spin_lock_irqsave(&sem->lock, flags); sem 81 kernel/semaphore.c if (likely(sem->count > 0)) sem 82 kernel/semaphore.c sem->count--; sem 84 kernel/semaphore.c result = __down_interruptible(sem); sem 85 kernel/semaphore.c spin_unlock_irqrestore(&sem->lock, flags); sem 106 kernel/semaphore.c spin_lock_irqsave(&sem->lock, flags); sem 107 kernel/semaphore.c if (likely(sem->count > 0)) sem 108 kernel/semaphore.c sem->count--; sem 110 kernel/semaphore.c result = __down_killable(sem); sem 111 kernel/semaphore.c spin_unlock_irqrestore(&sem->lock, flags); sem 135 kernel/semaphore.c spin_lock_irqsave(&sem->lock, flags); sem 136 kernel/semaphore.c count = sem->count - 1; sem 138 kernel/semaphore.c sem->count = count; sem 139 kernel/semaphore.c spin_unlock_irqrestore(&sem->lock, flags); sem 160 kernel/semaphore.c spin_lock_irqsave(&sem->lock, flags); sem 161 kernel/semaphore.c if (likely(sem->count > 0)) sem 162 kernel/semaphore.c sem->count--; sem 164 kernel/semaphore.c result = __down_timeout(sem, jiffies); sem 165 kernel/semaphore.c spin_unlock_irqrestore(&sem->lock, flags); sem 182 kernel/semaphore.c spin_lock_irqsave(&sem->lock, flags); sem 183 kernel/semaphore.c if (likely(list_empty(&sem->wait_list))) sem 184 kernel/semaphore.c sem->count++; sem 186 kernel/semaphore.c __up(sem); sem 187 kernel/semaphore.c spin_unlock_irqrestore(&sem->lock, flags); sem 210 kernel/semaphore.c list_add_tail(&waiter.list, &sem->wait_list); sem 220 kernel/semaphore.c spin_unlock_irq(&sem->lock); sem 222 kernel/semaphore.c spin_lock_irq(&sem->lock); sem 238 kernel/semaphore.c __down_common(sem, TASK_UNINTERRUPTIBLE, MAX_SCHEDULE_TIMEOUT); sem 243 kernel/semaphore.c return __down_common(sem, TASK_INTERRUPTIBLE, MAX_SCHEDULE_TIMEOUT); sem 248 kernel/semaphore.c return __down_common(sem, TASK_KILLABLE, MAX_SCHEDULE_TIMEOUT); sem 253 kernel/semaphore.c return __down_common(sem, TASK_UNINTERRUPTIBLE, jiffies); sem 258 kernel/semaphore.c struct semaphore_waiter *waiter = list_first_entry(&sem->wait_list, sem 68 kernel/taskstats.c struct rw_semaphore sem; sem 145 kernel/taskstats.c down_read(&listeners->sem); sem 160 kernel/taskstats.c up_read(&listeners->sem); sem 169 kernel/taskstats.c down_write(&listeners->sem); sem 176 kernel/taskstats.c up_write(&listeners->sem); sem 314 kernel/taskstats.c down_write(&listeners->sem); sem 316 kernel/taskstats.c up_write(&listeners->sem); sem 325 kernel/taskstats.c down_write(&listeners->sem); sem 333 kernel/taskstats.c up_write(&listeners->sem); sem 593 kernel/taskstats.c init_rwsem(&(per_cpu(listener_array, i).sem)); sem 30 lib/rwsem-spinlock.c debug_check_no_locks_freed((void *)sem, sizeof(*sem)); sem 31 lib/rwsem-spinlock.c lockdep_init_map(&sem->dep_map, name, key, 0); sem 33 lib/rwsem-spinlock.c sem->activity = 0; sem 34 lib/rwsem-spinlock.c spin_lock_init(&sem->wait_lock); sem 35 lib/rwsem-spinlock.c INIT_LIST_HEAD(&sem->wait_list); sem 54 lib/rwsem-spinlock.c waiter = list_entry(sem->wait_list.next, struct rwsem_waiter, list); sem 68 lib/rwsem-spinlock.c sem->activity = -1; sem 92 lib/rwsem-spinlock.c if (list_empty(&sem->wait_list)) sem 97 lib/rwsem-spinlock.c sem->activity += woken; sem 100 lib/rwsem-spinlock.c return sem; sem 112 lib/rwsem-spinlock.c sem->activity = -1; sem 114 lib/rwsem-spinlock.c waiter = list_entry(sem->wait_list.next, struct rwsem_waiter, list); sem 122 lib/rwsem-spinlock.c return sem; sem 133 lib/rwsem-spinlock.c spin_lock_irq(&sem->wait_lock); sem 135 lib/rwsem-spinlock.c if (sem->activity >= 0 && list_empty(&sem->wait_list)) { sem 137 lib/rwsem-spinlock.c sem->activity++; sem 138 lib/rwsem-spinlock.c spin_unlock_irq(&sem->wait_lock); sem 150 lib/rwsem-spinlock.c list_add_tail(&waiter.list, &sem->wait_list); sem 153 lib/rwsem-spinlock.c spin_unlock_irq(&sem->wait_lock); sem 177 lib/rwsem-spinlock.c spin_lock_irqsave(&sem->wait_lock, flags); sem 179 lib/rwsem-spinlock.c if (sem->activity >= 0 && list_empty(&sem->wait_list)) { sem 181 lib/rwsem-spinlock.c sem->activity++; sem 185 lib/rwsem-spinlock.c spin_unlock_irqrestore(&sem->wait_lock, flags); sem 199 lib/rwsem-spinlock.c spin_lock_irq(&sem->wait_lock); sem 201 lib/rwsem-spinlock.c if (sem->activity == 0 && list_empty(&sem->wait_list)) { sem 203 lib/rwsem-spinlock.c sem->activity = -1; sem 204 lib/rwsem-spinlock.c spin_unlock_irq(&sem->wait_lock); sem 216 lib/rwsem-spinlock.c list_add_tail(&waiter.list, &sem->wait_list); sem 219 lib/rwsem-spinlock.c spin_unlock_irq(&sem->wait_lock); sem 236 lib/rwsem-spinlock.c __down_write_nested(sem, 0); sem 247 lib/rwsem-spinlock.c spin_lock_irqsave(&sem->wait_lock, flags); sem 249 lib/rwsem-spinlock.c if (sem->activity == 0 && list_empty(&sem->wait_list)) { sem 251 lib/rwsem-spinlock.c sem->activity = -1; sem 255 lib/rwsem-spinlock.c spin_unlock_irqrestore(&sem->wait_lock, flags); sem 267 lib/rwsem-spinlock.c spin_lock_irqsave(&sem->wait_lock, flags); sem 269 lib/rwsem-spinlock.c if (--sem->activity == 0 && !list_empty(&sem->wait_list)) sem 270 lib/rwsem-spinlock.c sem = __rwsem_wake_one_writer(sem); sem 272 lib/rwsem-spinlock.c spin_unlock_irqrestore(&sem->wait_lock, flags); sem 282 lib/rwsem-spinlock.c spin_lock_irqsave(&sem->wait_lock, flags); sem 284 lib/rwsem-spinlock.c sem->activity = 0; sem 285 lib/rwsem-spinlock.c if (!list_empty(&sem->wait_list)) sem 286 lib/rwsem-spinlock.c sem = __rwsem_do_wake(sem, 1); sem 288 lib/rwsem-spinlock.c spin_unlock_irqrestore(&sem->wait_lock, flags); sem 299 lib/rwsem-spinlock.c spin_lock_irqsave(&sem->wait_lock, flags); sem 301 lib/rwsem-spinlock.c sem->activity = 1; sem 302 lib/rwsem-spinlock.c if (!list_empty(&sem->wait_list)) sem 303 lib/rwsem-spinlock.c sem = __rwsem_do_wake(sem, 0); sem 305 lib/rwsem-spinlock.c spin_unlock_irqrestore(&sem->wait_lock, flags); sem 21 lib/rwsem.c debug_check_no_locks_freed((void *)sem, sizeof(*sem)); sem 22 lib/rwsem.c lockdep_init_map(&sem->dep_map, name, key, 0); sem 24 lib/rwsem.c sem->count = RWSEM_UNLOCKED_VALUE; sem 25 lib/rwsem.c spin_lock_init(&sem->wait_lock); sem 26 lib/rwsem.c INIT_LIST_HEAD(&sem->wait_list); sem 64 lib/rwsem.c oldcount = rwsem_atomic_update(RWSEM_ACTIVE_BIAS, sem) sem 69 lib/rwsem.c waiter = list_entry(sem->wait_list.next, struct rwsem_waiter, list); sem 92 lib/rwsem.c waiter = list_entry(sem->wait_list.next, struct rwsem_waiter, list); sem 106 lib/rwsem.c if (waiter->list.next == &sem->wait_list) sem 120 lib/rwsem.c rwsem_atomic_add(woken, sem); sem 122 lib/rwsem.c next = sem->wait_list.next; sem 133 lib/rwsem.c sem->wait_list.next = next; sem 134 lib/rwsem.c next->prev = &sem->wait_list; sem 137 lib/rwsem.c return sem; sem 141 lib/rwsem.c if (rwsem_atomic_update(-RWSEM_ACTIVE_BIAS, sem) != 0) sem 159 lib/rwsem.c spin_lock_irq(&sem->wait_lock); sem 163 lib/rwsem.c list_add_tail(&waiter->list, &sem->wait_list); sem 166 lib/rwsem.c count = rwsem_atomic_update(adjustment, sem); sem 170 lib/rwsem.c sem = __rwsem_do_wake(sem, 0); sem 172 lib/rwsem.c spin_unlock_irq(&sem->wait_lock); sem 184 lib/rwsem.c return sem; sem 196 lib/rwsem.c rwsem_down_failed_common(sem, &waiter, sem 198 lib/rwsem.c return sem; sem 210 lib/rwsem.c rwsem_down_failed_common(sem, &waiter, -RWSEM_ACTIVE_BIAS); sem 212 lib/rwsem.c return sem; sem 223 lib/rwsem.c spin_lock_irqsave(&sem->wait_lock, flags); sem 226 lib/rwsem.c if (!list_empty(&sem->wait_list)) sem 227 lib/rwsem.c sem = __rwsem_do_wake(sem, 0); sem 229 lib/rwsem.c spin_unlock_irqrestore(&sem->wait_lock, flags); sem 231 lib/rwsem.c return sem; sem 243 lib/rwsem.c spin_lock_irqsave(&sem->wait_lock, flags); sem 246 lib/rwsem.c if (!list_empty(&sem->wait_list)) sem 247 lib/rwsem.c sem = __rwsem_do_wake(sem, 1); sem 249 lib/rwsem.c spin_unlock_irqrestore(&sem->wait_lock, flags); sem 251 lib/rwsem.c return sem; sem 274 security/keys/key.c init_rwsem(&key->sem); sem 452 security/keys/key.c down_write(&keyring->sem); sem 457 security/keys/key.c up_write(&keyring->sem); sem 484 security/keys/key.c down_write(&keyring->sem); sem 514 security/keys/key.c up_write(&keyring->sem); sem 712 security/keys/key.c down_write(&key->sem); sem 719 security/keys/key.c up_write(&key->sem); sem 771 security/keys/key.c down_write(&keyring->sem); sem 823 security/keys/key.c up_write(&keyring->sem); sem 833 security/keys/key.c up_write(&keyring->sem); sem 862 security/keys/key.c down_write(&key->sem); sem 869 security/keys/key.c up_write(&key->sem); sem 892 security/keys/key.c down_write_nested(&key->sem, 1); sem 897 security/keys/key.c up_write(&key->sem); sem 671 security/keys/keyctl.c down_read(&key->sem); sem 673 security/keys/keyctl.c up_read(&key->sem); sem 712 security/keys/keyctl.c down_write(&key->sem); sem 776 security/keys/keyctl.c up_write(&key->sem); sem 817 security/keys/keyctl.c down_write(&key->sem); sem 825 security/keys/keyctl.c up_write(&key->sem); sem 1030 security/keys/keyctl.c down_write(&key->sem); sem 1040 security/keys/keyctl.c up_write(&key->sem); sem 837 security/keys/keyring.c down_write(&keyring->sem); sem 839 security/keys/keyring.c up_write(&keyring->sem); sem 863 security/keys/keyring.c down_write(&keyring->sem); sem 873 security/keys/keyring.c up_write(&keyring->sem); sem 903 security/keys/keyring.c up_write(&keyring->sem); sem 915 security/keys/keyring.c up_write(&keyring->sem); sem 954 security/keys/keyring.c down_write(&keyring->sem); sem 966 security/keys/keyring.c up_write(&keyring->sem); sem 374 security/keys/process_keys.c down_write(&tsk->thread_keyring->sem); sem 376 security/keys/process_keys.c up_write(&tsk->thread_keyring->sem); sem 389 security/keys/process_keys.c down_write(&tsk->thread_keyring->sem); sem 391 security/keys/process_keys.c up_write(&tsk->thread_keyring->sem); sem 522 security/keys/process_keys.c down_read(&context->request_key_auth->sem); sem 530 security/keys/process_keys.c up_read(&context->request_key_auth->sem); sem 547 security/keys/process_keys.c up_read(&context->request_key_auth->sem); sem 290 security/keys/request_key.c down_write(&dest_keyring->sem); sem 307 security/keys/request_key.c up_write(&dest_keyring->sem); sem 316 security/keys/request_key.c up_write(&dest_keyring->sem); sem 168 security/keys/request_key_auth.c down_read(¤t->request_key_auth->sem); sem 181 security/keys/request_key_auth.c up_read(¤t->request_key_auth->sem); sem 215 security/keys/request_key_auth.c up_read(¤t->request_key_auth->sem); sem 95 sound/oss/au1550_ac97.c struct mutex sem; sem 1049 sound/oss/au1550_ac97.c mutex_lock(&s->sem); sem 1069 sound/oss/au1550_ac97.c mutex_unlock(&s->sem); sem 1076 sound/oss/au1550_ac97.c mutex_lock(&s->sem); sem 1104 sound/oss/au1550_ac97.c mutex_unlock(&s->sem); sem 1130 sound/oss/au1550_ac97.c mutex_lock(&s->sem); sem 1148 sound/oss/au1550_ac97.c mutex_unlock(&s->sem); sem 1155 sound/oss/au1550_ac97.c mutex_lock(&s->sem); sem 1201 sound/oss/au1550_ac97.c mutex_unlock(&s->sem); sem 1258 sound/oss/au1550_ac97.c mutex_lock(&s->sem); sem 1284 sound/oss/au1550_ac97.c mutex_unlock(&s->sem); sem 1846 sound/oss/au1550_ac97.c mutex_init(&s->sem);