Home
last modified time | relevance | path

Searched refs:ATP (Results 1 – 8 of 8) sorted by relevance

/hardware/st/secure_element/ese-spi-driver/
DSpiLayerComm.cc90 ATP.len = spiLecture; in SpiLayerComm_waitForAtpLength()
120 int atpArrayLength = ATP.len + LEN_LENGTH_IN_ATP; in SpiLayerComm_readAtp()
123 if (SpiLayerDriver_read(atpArray, ATP.len) != ATP.len) { in SpiLayerComm_readAtp()
129 for (i = ATP.len; i > 0; i--) { in SpiLayerComm_readAtp()
132 atpArray[LEN_OFFSET_IN_ATP] = ATP.len; in SpiLayerComm_readAtp()
134 DispHal("Rx", atpArray, ATP.len); in SpiLayerComm_readAtp()
197 switch (ATP.checksumType) { in SpiLayerComm_writeTpdu()
243 if (ATP.bwt < BWT_THRESHOlD) { in SpiLayerComm_waitForResponse()
246 maxWaitingTime = ATP.bwt * nBwt; in SpiLayerComm_waitForResponse()
312 switch (ATP.checksumType) { in SpiLayerComm_readTpdu()
[all …]
DT1protocol.cc108 if (ATP.checksumType == CRC) { in T1protocol_checkResponseTpduChecksum()
116 } else if (ATP.checksumType == LRC) { in T1protocol_checkResponseTpduChecksum()
192 if (tpdu->len > ATP.ifsc) { in T1protocol_checkResponseLenConsistency()
508 TempTpdu->data = (uint8_t*)malloc(ATP.ifsc * sizeof(uint8_t)); in T1protocol_sendRBlock()
556 if (ATP.checksumType == CRC) { in T1protocol_formSblockResponse()
561 } else if (ATP.checksumType == LRC) { in T1protocol_formSblockResponse()
592 ATP.ifsc = (uint8_t)lastRespTpduReceived->data[0]; in T1protocol_processSBlock()
758 TempTpdu->data = (uint8_t*)malloc(ATP.ifsc * sizeof(uint8_t)); in T1protocol_doWTXResponse()
838 TempTpdu->data = (uint8_t*)malloc(ATP.ifsc * sizeof(uint8_t)); in T1protocol_doResyncRequest()
876 TempTpdu->data = (uint8_t*)malloc(ATP.ifsc * sizeof(uint8_t)); in T1protocol_doSoftReset()
[all …]
DSpiLayerInterface.cc70 STLOG_HAL_D("SPI bus working at ATP.msf = %i KHz", ATP.msf); in SpiLayerInterface_init()
170 uint8_t* pRsp = (uint8_t*)malloc(ATP.ifsc * sizeof(uint8_t)); in SpiLayerInterface_setup()
DStEseApi.cc177 while (pCmdlen > ATP.ifsc) { in StEse_Transceive()
178 pTxBlock_len = ATP.ifsc; in StEse_Transceive()
/hardware/st/secure_element/ese-spi-driver/utils-lib/
DTpdu.cc58 switch (ATP.checksumType) { in Tpdu_toByteArray()
88 switch (ATP.checksumType) { in Tpdu_isChecksumOk()
141 switch (ATP.checksumType) { in Tpdu_formTpdu()
175 switch (ATP.checksumType) { in Tpdu_getChecksumBytes()
249 dest->data = (uint8_t *)malloc(ATP.ifsc * sizeof(uint8_t)); in Tpdu_copy()
251 if (((src->len) > 0) && ((src->len) < ATP.ifsc)) { in Tpdu_copy()
DDataMgmt.cc86 if (data_len > ATP.ifsc) { in DataMgmt_StoreDataInList()
95 newNode->tData.data = (uint8_t*)malloc(ATP.ifsc * sizeof(uint8_t)); in DataMgmt_StoreDataInList()
130 if (new_node->tData.len > ATP.ifsc) { in DataMgmt_GetDataFromList()
DAtp.cc24 Atp ATP = {.bwt = 0x0690, .checksumType = CRC, .ifsc = 0xFE}; variable
125 ATP = tmpAtp; in Atp_setAtp()
DAtp.h69 extern Atp ATP;