Home
last modified time | relevance | path

Searched refs:sem (Results 1 – 6 of 6) sorted by relevance

/hardware/qcom/camera/msm8998/QCamera2/stack/mm-camera-test/src/
Dcam_semaphore_tests.cpp51 cam_semaphore_t sem; in TEST() local
52 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()
/hardware/nxp/nfc/pn8x/halimpl/utils/
DphNxpNciHal_utils.h43 sem_t sem; member
54 #define SEM_WAIT(cb_data) sem_wait(&((cb_data).sem))
55 #define SEM_POST(p_cb_data) sem_post(&((p_cb_data)->sem))
DphNxpNciHal_utils.cc350 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()
/hardware/nxp/nfc/snxxx/halimpl/utils/
DphNxpNciHal_utils.cc351 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()
/hardware/st/nfc/1.0/hal/
Dhalcore.c53 static inline int sem_wait_nointr(sem_t *sem);
810 static inline int sem_wait_nointr(sem_t *sem) { in sem_wait_nointr() argument
811 while (sem_wait(sem)) in sem_wait_nointr()
/hardware/st/nfc/st21nfc/hal/
Dhalcore.cc56 static inline int sem_wait_nointr(sem_t* sem);
822 static inline int sem_wait_nointr(sem_t* sem) { in sem_wait_nointr() argument
823 while (sem_wait(sem)) in sem_wait_nointr()