Home
last modified time | relevance | path

Searched refs:newNode (Results 1 – 3 of 3) sorted by relevance

/hardware/st/secure_element/ese-spi-driver/utils-lib/
DDataMgmt.cc84 TpduRecvBuff_List_t* newNode = NULL; in DataMgmt_StoreDataInList() local
89 newNode = (TpduRecvBuff_List_t*)malloc(sizeof(TpduRecvBuff_List_t)); in DataMgmt_StoreDataInList()
90 if (newNode == NULL) { in DataMgmt_StoreDataInList()
93 newNode->pNext = NULL; in DataMgmt_StoreDataInList()
94 newNode->tData.len = data_len; in DataMgmt_StoreDataInList()
95 newNode->tData.data = (uint8_t*)malloc(ATP.ifsc * sizeof(uint8_t)); in DataMgmt_StoreDataInList()
96 if (newNode->tData.data == NULL) { in DataMgmt_StoreDataInList()
97 free(newNode); in DataMgmt_StoreDataInList()
100 memcpy(newNode->tData.data, pbuff, data_len); in DataMgmt_StoreDataInList()
104 head = newNode; in DataMgmt_StoreDataInList()
[all …]
/hardware/nxp/secure_element/pn8x/libese-spi/p73/lib/
DphNxpEseDataMgr.cpp82 phNxpEse_sCoreRecvBuff_List_t* newNode = NULL; in phNxpEse_StoreDatainList() local
84 newNode = (phNxpEse_sCoreRecvBuff_List_t*)phNxpEse_memalloc( in phNxpEse_StoreDatainList()
86 if (newNode == NULL) { in phNxpEse_StoreDatainList()
89 newNode->pNext = NULL; in phNxpEse_StoreDatainList()
90 newNode->tData.wLen = data_len; in phNxpEse_StoreDatainList()
91 phNxpEse_memcpy(newNode->tData.sbuffer, pbuff, data_len); in phNxpEse_StoreDatainList()
94 head = newNode; in phNxpEse_StoreDatainList()
95 current = newNode; in phNxpEse_StoreDatainList()
97 current->pNext = newNode; in phNxpEse_StoreDatainList()
98 current = newNode; in phNxpEse_StoreDatainList()
/hardware/nxp/secure_element/snxxx/libese-spi/p73/lib/
DphNxpEseDataMgr.cpp90 phNxpEse_sCoreRecvBuff_List_t* newNode = NULL; in phNxpEse_StoreDatainList() local
92 newNode = (phNxpEse_sCoreRecvBuff_List_t*)phNxpEse_memalloc( in phNxpEse_StoreDatainList()
94 if (newNode == NULL) { in phNxpEse_StoreDatainList()
98 newNode->pNext = NULL; in phNxpEse_StoreDatainList()
99 newNode->tData.wLen = data_len; in phNxpEse_StoreDatainList()
100 phNxpEse_memcpy(newNode->tData.sbuffer, pbuff, data_len); in phNxpEse_StoreDatainList()
103 head = newNode; in phNxpEse_StoreDatainList()
104 current = newNode; in phNxpEse_StoreDatainList()
106 current->pNext = newNode; in phNxpEse_StoreDatainList()
107 current = newNode; in phNxpEse_StoreDatainList()