Lines Matching refs:pCallbackData
347 NFCSTATUS phNxpNciHal_init_cb_data(phNxpNciHal_Sem_t* pCallbackData, in phNxpNciHal_init_cb_data() argument
350 if (sem_init(&pCallbackData->sem, 0, 0) == -1) { in phNxpNciHal_init_cb_data()
356 pCallbackData->status = NFCSTATUS_FAILED; in phNxpNciHal_init_cb_data()
359 pCallbackData->pContext = pContext; in phNxpNciHal_init_cb_data()
362 if (listAdd(&phNxpNciHal_get_monitor()->sem_list, pCallbackData) != 1) { in phNxpNciHal_init_cb_data()
378 void phNxpNciHal_cleanup_cb_data(phNxpNciHal_Sem_t* pCallbackData) { in phNxpNciHal_cleanup_cb_data() argument
380 if (sem_destroy(&pCallbackData->sem)) { in phNxpNciHal_cleanup_cb_data()
388 if (listRemove(&phNxpNciHal_get_monitor()->sem_list, pCallbackData) != 1) { in phNxpNciHal_cleanup_cb_data()
407 phNxpNciHal_Sem_t* pCallbackData; in phNxpNciHal_releaseall_cb_data() local
410 (void**)&pCallbackData)) { in phNxpNciHal_releaseall_cb_data()
411 pCallbackData->status = NFCSTATUS_FAILED; in phNxpNciHal_releaseall_cb_data()
412 sem_post(&pCallbackData->sem); in phNxpNciHal_releaseall_cb_data()