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.cpp86 phNxpEse_sCoreRecvBuff_List_t* newNode = NULL; in phNxpEse_StoreDatainList() local
88 newNode = (phNxpEse_sCoreRecvBuff_List_t*)phNxpEse_memalloc( in phNxpEse_StoreDatainList()
90 if (newNode == NULL) { in phNxpEse_StoreDatainList()
93 newNode->pNext = NULL; in phNxpEse_StoreDatainList()
94 newNode->tData.wLen = data_len; in phNxpEse_StoreDatainList()
95 phNxpEse_memcpy(newNode->tData.sbuffer, pbuff, data_len); in phNxpEse_StoreDatainList()
98 head = newNode; in phNxpEse_StoreDatainList()
99 current = newNode; in phNxpEse_StoreDatainList()
101 current->pNext = newNode; in phNxpEse_StoreDatainList()
102 current = newNode; in phNxpEse_StoreDatainList()
/hardware/nxp/secure_element/snxxx/libese-spi/p73/lib/
DphNxpEseDataMgr.cpp94 phNxpEse_sCoreRecvBuff_List_t* newNode = NULL; in phNxpEse_StoreDatainList() local
96 newNode = (phNxpEse_sCoreRecvBuff_List_t*)phNxpEse_memalloc( in phNxpEse_StoreDatainList()
98 if (newNode == NULL) { in phNxpEse_StoreDatainList()
103 newNode->pNext = NULL; in phNxpEse_StoreDatainList()
104 newNode->tData.wLen = data_len; in phNxpEse_StoreDatainList()
105 phNxpEse_memcpy(newNode->tData.sbuffer, pbuff, data_len); in phNxpEse_StoreDatainList()
108 head = newNode; in phNxpEse_StoreDatainList()
109 current = newNode; in phNxpEse_StoreDatainList()
111 current->pNext = newNode; in phNxpEse_StoreDatainList()
112 current = newNode; in phNxpEse_StoreDatainList()