Lines Matching defs:semaphore
2 * linux/include/asm-xtensa/semaphore.h
19 struct semaphore {
33 struct semaphore name = __SEMAPHORE_INITIALIZER(name,count)
38 static inline void sema_init (struct semaphore *sem, int val)
45 static inline void init_MUTEX (struct semaphore *sem)
50 static inline void init_MUTEX_LOCKED (struct semaphore *sem)
55 asmlinkage void __down(struct semaphore * sem);
56 asmlinkage int __down_interruptible(struct semaphore * sem);
57 asmlinkage int __down_trylock(struct semaphore * sem);
58 asmlinkage void __up(struct semaphore * sem);
62 static inline void down(struct semaphore * sem)
70 static inline int down_interruptible(struct semaphore * sem)
81 static inline int down_trylock(struct semaphore * sem)
92 * the semaphore was negative (== somebody was waiting on it).
94 static inline void up(struct semaphore * sem)