Lines Matching refs:sem
138 extern void __init_ldsem(struct ld_semaphore *sem, const char *name,
141 #define init_ldsem(sem) \ argument
145 __init_ldsem((sem), #sem, &__key); \
149 extern int ldsem_down_read(struct ld_semaphore *sem, long timeout);
150 extern int ldsem_down_read_trylock(struct ld_semaphore *sem);
151 extern int ldsem_down_write(struct ld_semaphore *sem, long timeout);
152 extern int ldsem_down_write_trylock(struct ld_semaphore *sem);
153 extern void ldsem_up_read(struct ld_semaphore *sem);
154 extern void ldsem_up_write(struct ld_semaphore *sem);
157 extern int ldsem_down_read_nested(struct ld_semaphore *sem, int subclass,
159 extern int ldsem_down_write_nested(struct ld_semaphore *sem, int subclass,
162 # define ldsem_down_read_nested(sem, subclass, timeout) \ argument
163 ldsem_down_read(sem, timeout)
164 # define ldsem_down_write_nested(sem, subclass, timeout) \ argument
165 ldsem_down_write(sem, timeout)