Home
last modified time | relevance | path

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

/hardware/nxp/uwb/halimpl/utils/
DphNxpUciHal_utils.h62 sem_t sem; member
75 return sem_wait(&pCallbackData->sem); in SEM_WAIT()
80 return sem_post(&pCallbackData->sem); in SEM_POST()
134 phNxpUciHal_init_cb_data(&sem, NULL); in UciHalSemaphore()
137 phNxpUciHal_init_cb_data(&sem, context); in UciHalSemaphore()
140 phNxpUciHal_cleanup_cb_data(&sem); in ~UciHalSemaphore()
143 return sem_wait(&sem.sem); in wait()
146 return phNxpUciHal_sem_timed_wait_msec(&sem, msec); in wait_timeout_msec()
149 return sem_post(&sem.sem); in post()
152 sem.status = status; in post()
[all …]
DphNxpUciHal_utils.cc351 if (sem_init(&pCallbackData->sem, 0, 0) == -1) { in phNxpUciHal_init_cb_data()
381 if (sem_destroy(&pCallbackData->sem)) { in phNxpUciHal_cleanup_cb_data()
415 …while ((ret = sem_timedwait_monotonic_np(&pCallbackData->sem, &absTimeout)) == -1 && errno == EINT… in phNxpUciHal_sem_timed_wait_msec()
441 sem_post(&pCallbackData->sem); in phNxpUciHal_releaseall_cb_data()
/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/snxxx/halimpl/utils/
DphNxpNciHal_utils.h44 sem_t sem; member
63 ((sem_wait(&((cb_data).sem)) == 0) ? 0 \
64 : (errno == EINTR) ? sem_wait(&((cb_data).sem)) \
67 #define SEM_POST(p_cb_data) sem_post(&((p_cb_data)->sem))
DphNxpNciHal_utils.cc352 if (sem_init(&pCallbackData->sem, 0, 0) == -1) { in phNxpNciHal_init_cb_data()
382 if (sem_destroy(&pCallbackData->sem)) { in phNxpNciHal_cleanup_cb_data()
414 sem_post(&pCallbackData->sem); in phNxpNciHal_releaseall_cb_data()
/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/google/gfxstream/host/apigen-codec-common/X11/
DXthreads.h102 HANDLE sem; member
141 WaitForSingleObject(_tmpthr->sem, INFINITE); \
147 ReleaseSemaphore((cv)->waiters->sem, 1, NULL); \
156 ReleaseSemaphore(_tmpthr->sem, 1, NULL); \
/hardware/st/nfc/1.0/hal/
Dhalcore.c55 static inline int sem_wait_nointr(sem_t *sem);
812 static inline int sem_wait_nointr(sem_t *sem) { in sem_wait_nointr() argument
813 while (sem_wait(sem)) in sem_wait_nointr()
/hardware/st/nfc/st21nfc/hal/
Dhalcore.cc58 static inline int sem_wait_nointr(sem_t* sem);
830 static inline int sem_wait_nointr(sem_t* sem) { in sem_wait_nointr() argument
831 while (sem_wait(sem)) in sem_wait_nointr()
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/scripts/reflow-tests/
Dexpect-text-noreflow-novuid.adoc17 …** Neque vitae tempus quam pellentesque nec nam aliquam sem et. Adipiscing commodo elit at imperdi…
Dexpect-text-novuid.adoc35 ** Neque vitae tempus quam pellentesque nec nam aliquam sem et.
Dexpect-text-noreflow.adoc17 …** Neque vitae tempus quam pellentesque nec nam aliquam sem et. Adipiscing commodo elit at imperdi…
Dsrc-text.adoc17 …** Neque vitae tempus quam pellentesque nec nam aliquam sem et. Adipiscing commodo elit at imperdi…
Dexpect-text-default.adoc35 ** Neque vitae tempus quam pellentesque nec nam aliquam sem et.
/hardware/nxp/nfc/snxxx/halimpl/recovery/
DphNxpNciHal_Recovery.cc153 while ((retVal = sem_timedwait_monotonic_np(&nxpncihal_ctrl.ext_cb_data.sem, &ts)) == -1 && in phNxpNciHal_semWaitTimeout()
/hardware/google/gfxstream/guest/vulkan_enc/
DResourceTracker.cpp1118 void ResourceTracker::unregister_VkSemaphore(VkSemaphore sem) { in unregister_VkSemaphore() argument
1121 auto it = info_VkSemaphore.find(sem); in unregister_VkSemaphore()
1138 info_VkSemaphore.erase(sem); in unregister_VkSemaphore()