Home | History | Annotate | Download | only in asm-arm

Lines Matching refs:semaphore

2  * linux/include/asm-arm/semaphore.h
15 struct semaphore {
28 struct semaphore name = __SEMAPHORE_INIT(name,count)
33 static inline void sema_init(struct semaphore *sem, int val)
40 static inline void init_MUTEX(struct semaphore *sem)
45 static inline void init_MUTEX_LOCKED(struct semaphore *sem)
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)
77 static inline int down_interruptible (struct semaphore * sem)
83 static inline int down_trylock(struct semaphore *sem)
90 * the semaphore was negative (== somebody was waiting on it).
94 static inline void up(struct semaphore * sem)