Lines Matching refs:semaphore
5 * Remove spinlock-based RW semaphores; RW semaphore definitions are
18 struct semaphore {
35 struct semaphore name = __SEMAPHORE_INITIALIZER(name,count)
40 static inline void sema_init (struct semaphore *sem, int val)
46 static inline void init_MUTEX (struct semaphore *sem)
51 static inline void init_MUTEX_LOCKED (struct semaphore *sem)
56 extern void __down(struct semaphore * sem);
57 extern int __down_interruptible(struct semaphore * sem);
58 extern void __up(struct semaphore * sem);
60 static inline void down(struct semaphore * sem)
65 * Try to get the semaphore, take the slow path if we fail.
71 static inline int down_interruptible(struct semaphore * sem)
82 static inline int down_trylock(struct semaphore * sem)
87 static inline void up(struct semaphore * sem)