Home
last modified time | relevance | path

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

/hardware/nxp/nfc/halimpl/utils/
DphNxpNciHal_utils.cc37 int listInit(struct listHead* pList) { in listInit() argument
38 pList->pFirst = NULL; in listInit()
39 if (pthread_mutex_init(&pList->mutex, NULL) == -1) { in listInit()
56 int listDestroy(struct listHead* pList) { in listDestroy() argument
59 bListNotEmpty = listGetAndRemoveNext(pList, NULL); in listDestroy()
62 if (pthread_mutex_destroy(&pList->mutex) == -1) { in listDestroy()
79 int listAdd(struct listHead* pList, void* pData) { in listAdd() argument
93 pthread_mutex_lock(&pList->mutex); in listAdd()
96 if (pList->pFirst == NULL) { in listAdd()
98 pList->pFirst = pNode; in listAdd()
[all …]
DphNxpNciHal_utils.h72 int listInit(struct listHead* pList);
73 int listDestroy(struct listHead* pList);
74 int listAdd(struct listHead* pList, void* pData);
75 int listRemove(struct listHead* pList, void* pData);
76 int listGetAndRemoveNext(struct listHead* pList, void** ppData);
77 void listDump(struct listHead* pList);