Lines Matching refs:pCallbackData
349 NFCSTATUS phNxpNciHal_init_cb_data(phNxpNciHal_Sem_t* pCallbackData, in phNxpNciHal_init_cb_data() argument
352 if (sem_init(&pCallbackData->sem, 0, 0) == -1) { in phNxpNciHal_init_cb_data()
358 pCallbackData->status = NFCSTATUS_FAILED; in phNxpNciHal_init_cb_data()
361 pCallbackData->pContext = pContext; in phNxpNciHal_init_cb_data()
364 if (listAdd(&phNxpNciHal_get_monitor()->sem_list, pCallbackData) != 1) { in phNxpNciHal_init_cb_data()
380 void phNxpNciHal_cleanup_cb_data(phNxpNciHal_Sem_t* pCallbackData) { in phNxpNciHal_cleanup_cb_data() argument
382 if (sem_destroy(&pCallbackData->sem)) { in phNxpNciHal_cleanup_cb_data()
390 if (listRemove(&phNxpNciHal_get_monitor()->sem_list, pCallbackData) != 1) { in phNxpNciHal_cleanup_cb_data()
409 phNxpNciHal_Sem_t* pCallbackData; in phNxpNciHal_releaseall_cb_data() local
412 (void**)&pCallbackData)) { in phNxpNciHal_releaseall_cb_data()
413 pCallbackData->status = NFCSTATUS_FAILED; in phNxpNciHal_releaseall_cb_data()
414 sem_post(&pCallbackData->sem); in phNxpNciHal_releaseall_cb_data()