Lines Matching refs:pCallbackData
348 tHAL_UWB_STATUS phNxpUciHal_init_cb_data(phNxpUciHal_Sem_t* pCallbackData, in phNxpUciHal_init_cb_data() argument
351 if (sem_init(&pCallbackData->sem, 0, 0) == -1) { in phNxpUciHal_init_cb_data()
357 pCallbackData->status = UWBSTATUS_FAILED; in phNxpUciHal_init_cb_data()
360 pCallbackData->pContext = pContext; in phNxpUciHal_init_cb_data()
363 if (listAdd(&phNxpUciHal_get_monitor()->sem_list, pCallbackData) != 1) { in phNxpUciHal_init_cb_data()
379 void phNxpUciHal_cleanup_cb_data(phNxpUciHal_Sem_t* pCallbackData) { in phNxpUciHal_cleanup_cb_data() argument
381 if (sem_destroy(&pCallbackData->sem)) { in phNxpUciHal_cleanup_cb_data()
387 if (listRemove(&phNxpUciHal_get_monitor()->sem_list, pCallbackData) != 1) { in phNxpUciHal_cleanup_cb_data()
396 int phNxpUciHal_sem_timed_wait_msec(phNxpUciHal_Sem_t* pCallbackData, long msec) in phNxpUciHal_sem_timed_wait_msec() argument
415 …while ((ret = sem_timedwait_monotonic_np(&pCallbackData->sem, &absTimeout)) == -1 && errno == EINT… in phNxpUciHal_sem_timed_wait_msec()
419 pCallbackData->status = UWBSTATUS_RESPONSE_TIMEOUT; in phNxpUciHal_sem_timed_wait_msec()
436 phNxpUciHal_Sem_t* pCallbackData; in phNxpUciHal_releaseall_cb_data() local
439 (void**)&pCallbackData)) { in phNxpUciHal_releaseall_cb_data()
440 pCallbackData->status = UWBSTATUS_FAILED; in phNxpUciHal_releaseall_cb_data()
441 sem_post(&pCallbackData->sem); in phNxpUciHal_releaseall_cb_data()