Home
last modified time | relevance | path

Searched refs:nxpncihal_monitor (Results 1 – 2 of 2) sorted by relevance

/hardware/nxp/nfc/pn8x/halimpl/utils/
DphNxpNciHal_utils.cc247 static phNxpNciHal_Monitor_t* nxpncihal_monitor = NULL; variable
261 if (nxpncihal_monitor == NULL) { in phNxpNciHal_init_monitor()
262 nxpncihal_monitor = in phNxpNciHal_init_monitor()
266 if (nxpncihal_monitor != NULL) { in phNxpNciHal_init_monitor()
267 memset(nxpncihal_monitor, 0x00, sizeof(phNxpNciHal_Monitor_t)); in phNxpNciHal_init_monitor()
269 if (pthread_mutex_init(&nxpncihal_monitor->reentrance_mutex, NULL) != 0) { in phNxpNciHal_init_monitor()
274 if (pthread_mutex_init(&nxpncihal_monitor->concurrency_mutex, NULL) != 0) { in phNxpNciHal_init_monitor()
276 pthread_mutex_destroy(&nxpncihal_monitor->reentrance_mutex); in phNxpNciHal_init_monitor()
280 if (listInit(&nxpncihal_monitor->sem_list) != 1) { in phNxpNciHal_init_monitor()
282 pthread_mutex_destroy(&nxpncihal_monitor->concurrency_mutex); in phNxpNciHal_init_monitor()
[all …]
/hardware/nxp/nfc/snxxx/halimpl/utils/
DphNxpNciHal_utils.cc249 static phNxpNciHal_Monitor_t* nxpncihal_monitor = NULL; variable
263 if (nxpncihal_monitor == NULL) { in phNxpNciHal_init_monitor()
264 nxpncihal_monitor = in phNxpNciHal_init_monitor()
268 if (nxpncihal_monitor != NULL) { in phNxpNciHal_init_monitor()
269 memset(nxpncihal_monitor, 0x00, sizeof(phNxpNciHal_Monitor_t)); in phNxpNciHal_init_monitor()
271 if (pthread_mutex_init(&nxpncihal_monitor->reentrance_mutex, NULL) != 0) { in phNxpNciHal_init_monitor()
276 if (pthread_mutex_init(&nxpncihal_monitor->concurrency_mutex, NULL) != 0) { in phNxpNciHal_init_monitor()
278 pthread_mutex_destroy(&nxpncihal_monitor->reentrance_mutex); in phNxpNciHal_init_monitor()
282 if (listInit(&nxpncihal_monitor->sem_list) != 1) { in phNxpNciHal_init_monitor()
284 pthread_mutex_destroy(&nxpncihal_monitor->concurrency_mutex); in phNxpNciHal_init_monitor()
[all …]