Searched refs:sem (Results 1 – 6 of 6) sorted by relevance
51 cam_semaphore_t sem; in TEST() local52 cam_sem_init(&sem, 0); in TEST()60 ASSERT_EQ(-1, cam_sem_timedwait(&sem, &ts)); in TEST()74 cam_sem_post(&sem); in TEST()75 ASSERT_EQ(0, cam_sem_timedwait(&sem, &ts)); in TEST()
43 sem_t sem; member54 #define SEM_WAIT(cb_data) sem_wait(&((cb_data).sem))55 #define SEM_POST(p_cb_data) sem_post(&((p_cb_data)->sem))
350 if (sem_init(&pCallbackData->sem, 0, 0) == -1) { in phNxpNciHal_init_cb_data()380 if (sem_destroy(&pCallbackData->sem)) { in phNxpNciHal_cleanup_cb_data()412 sem_post(&pCallbackData->sem); in phNxpNciHal_releaseall_cb_data()
351 if (sem_init(&pCallbackData->sem, 0, 0) == -1) { in phNxpNciHal_init_cb_data()381 if (sem_destroy(&pCallbackData->sem)) { in phNxpNciHal_cleanup_cb_data()413 sem_post(&pCallbackData->sem); in phNxpNciHal_releaseall_cb_data()
53 static inline int sem_wait_nointr(sem_t *sem);810 static inline int sem_wait_nointr(sem_t *sem) { in sem_wait_nointr() argument811 while (sem_wait(sem)) in sem_wait_nointr()
56 static inline int sem_wait_nointr(sem_t* sem);822 static inline int sem_wait_nointr(sem_t* sem) { in sem_wait_nointr() argument823 while (sem_wait(sem)) in sem_wait_nointr()