Searched refs:sem (Results 1 – 3 of 3) 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()