Lines Matching refs:ret
35 int ret = 0; in sem_post() local
44 ret = wait_queue_wake_one(&sem->wait, resched, NO_ERROR); in sem_post()
48 return ret; in sem_post()
52 status_t ret = NO_ERROR; in sem_wait() local
60 ret = wait_queue_block(&sem->wait, INFINITE_TIME); in sem_wait()
63 return ret; in sem_wait()
67 status_t ret = NO_ERROR; in sem_trywait() local
71 ret = ERR_NOT_READY; in sem_trywait()
76 return ret; in sem_trywait()
80 status_t ret = NO_ERROR; in sem_timedwait() local
84 ret = wait_queue_block(&sem->wait, timeout); in sem_timedwait()
85 if (ret < NO_ERROR) { in sem_timedwait()
86 if (ret == ERR_TIMED_OUT) { in sem_timedwait()
93 return ret; in sem_timedwait()