Lines Matching refs:sem
144 extern void __init_ldsem(struct ld_semaphore *sem, const char *name,
147 #define init_ldsem(sem) \ argument
151 __init_ldsem((sem), #sem, &__key); \
155 extern int ldsem_down_read(struct ld_semaphore *sem, long timeout);
156 extern int ldsem_down_read_trylock(struct ld_semaphore *sem);
157 extern int ldsem_down_write(struct ld_semaphore *sem, long timeout);
158 extern int ldsem_down_write_trylock(struct ld_semaphore *sem);
159 extern void ldsem_up_read(struct ld_semaphore *sem);
160 extern void ldsem_up_write(struct ld_semaphore *sem);
163 extern int ldsem_down_read_nested(struct ld_semaphore *sem, int subclass,
165 extern int ldsem_down_write_nested(struct ld_semaphore *sem, int subclass,
168 # define ldsem_down_read_nested(sem, subclass, timeout) \ argument
169 ldsem_down_read(sem, timeout)
170 # define ldsem_down_write_nested(sem, subclass, timeout) \ argument
171 ldsem_down_write(sem, timeout)