Lines Matching refs:semaphore
15 struct semaphore { struct
28 struct semaphore name = __SEMAPHORE_INIT(name,count) argument
33 static inline void sema_init(struct semaphore *sem, int val) in sema_init()
40 static inline void init_MUTEX(struct semaphore *sem) in init_MUTEX()
45 static inline void init_MUTEX_LOCKED(struct semaphore *sem) in init_MUTEX_LOCKED()
58 extern void __down(struct semaphore * sem);
59 extern int __down_interruptible(struct semaphore * sem);
60 extern int __down_trylock(struct semaphore * sem);
61 extern void __up(struct semaphore * sem);
67 static inline void down(struct semaphore * sem) in down()
77 static inline int down_interruptible (struct semaphore * sem) in down_interruptible()
83 static inline int down_trylock(struct semaphore *sem) in down_trylock()
94 static inline void up(struct semaphore * sem) in up()