Lines Matching refs:timeout
156 down_read_failed(struct ld_semaphore *sem, long count, long timeout)
198 if (!timeout)
200 timeout = schedule_timeout(timeout);
205 if (!timeout) {
209 * was no timeout; otherwise, cleanup lock wait.
230 down_write_failed(struct ld_semaphore *sem, long count, long timeout)
259 if (!timeout)
262 timeout = schedule_timeout(timeout);
275 * In case of timeout, wake up every reader who gave the right of way
296 int subclass, long timeout)
305 if (!down_read_failed(sem, count, timeout)) {
315 int subclass, long timeout)
324 if (!down_write_failed(sem, count, timeout)) {
337 int __sched ldsem_down_read(struct ld_semaphore *sem, long timeout)
340 return __ldsem_down_read_nested(sem, 0, timeout);
363 int __sched ldsem_down_write(struct ld_semaphore *sem, long timeout)
366 return __ldsem_down_write_nested(sem, 0, timeout);
417 int ldsem_down_read_nested(struct ld_semaphore *sem, int subclass, long timeout)
420 return __ldsem_down_read_nested(sem, subclass, timeout);
424 long timeout)
427 return __ldsem_down_write_nested(sem, subclass, timeout);