Lines Matching defs:semaphore
25 struct semaphore {
49 struct semaphore name = __SEMAPHORE_INITIALIZER(name,count)
54 extern inline void sema_init (struct semaphore *sem, int val)
56 *sem = (struct semaphore)__SEMAPHORE_INITIALIZER(*sem, val);
59 static inline void init_MUTEX (struct semaphore *sem)
64 static inline void init_MUTEX_LOCKED (struct semaphore *sem)
74 asmlinkage void __down(struct semaphore * sem);
75 asmlinkage int __down_interruptible(struct semaphore * sem);
76 asmlinkage int __down_trylock(struct semaphore * sem);
77 asmlinkage void __up(struct semaphore * sem);
82 * routine that actually waits. See arch/m68k/lib/semaphore.S
84 extern inline void down(struct semaphore * sem)
86 register struct semaphore *sem1 __asm__ ("%a1") = sem;
106 extern inline int down_interruptible(struct semaphore * sem)
108 register struct semaphore *sem1 __asm__ ("%a1") = sem;
131 extern inline int down_trylock(struct semaphore * sem)
133 register struct semaphore *sem1 __asm__ ("%a1") = sem;
158 * the semaphore was negative (== somebody was waiting on it).
162 extern inline void up(struct semaphore * sem)
164 register struct semaphore *sem1 __asm__ ("%a1") = sem;
186 static inline int sem_getcount(struct semaphore *sem)