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.cc75 ATP.len = spiLecture; in SpiLayerComm_waitForAtpLength()
105 int atpArrayLength = ATP.len + LEN_LENGTH_IN_ATP; in SpiLayerComm_readAtp()
108 if (SpiLayerDriver_read(atpArray, ATP.len) != ATP.len) { in SpiLayerComm_readAtp()
114 for (i = ATP.len; i > 0; i--) { in SpiLayerComm_readAtp()
117 atpArray[LEN_OFFSET_IN_ATP] = ATP.len; in SpiLayerComm_readAtp()
119 DispHal("Rx", atpArray, ATP.len); in SpiLayerComm_readAtp()
182 switch (ATP.checksumType) { in SpiLayerComm_writeTpdu()
228 if (ATP.bwt < BWT_THRESHOlD) { in SpiLayerComm_waitForResponse()
231 maxWaitingTime = ATP.bwt * nBwt; in SpiLayerComm_waitForResponse()
297 switch (ATP.checksumType) { in SpiLayerComm_readTpdu()
[all …]
DT1protocol.cc107 if (ATP.checksumType == CRC) { in T1protocol_checkResponseTpduChecksum()
115 } else if (ATP.checksumType == LRC) { in T1protocol_checkResponseTpduChecksum()
191 if (tpdu->len > ATP.ifsc) { in T1protocol_checkResponseLenConsistency()
503 TempTpdu->data = (uint8_t*)malloc(ATP.ifsc * sizeof(uint8_t)); in T1protocol_sendRBlock()
551 if (ATP.checksumType == CRC) { in T1protocol_formSblockResponse()
556 } else if (ATP.checksumType == LRC) { in T1protocol_formSblockResponse()
587 ATP.ifsc = (uint8_t)lastRespTpduReceived->data[0]; in T1protocol_processSBlock()
763 TempTpdu->data = (uint8_t*)malloc(ATP.ifsc * sizeof(uint8_t)); in T1protocol_doWTXResponse()
843 TempTpdu->data = (uint8_t*)malloc(ATP.ifsc * sizeof(uint8_t)); in T1protocol_doResyncRequest()
881 TempTpdu->data = (uint8_t*)malloc(ATP.ifsc * sizeof(uint8_t)); in T1protocol_doSoftReset()
[all …]
DStEseApi.cc158 while (pCmdlen > ATP.ifsc) { in StEse_Transceive()
159 pTxBlock_len = ATP.ifsc; in StEse_Transceive()
DSpiLayerInterface.cc67 STLOG_HAL_D("SPI bus working at ATP.msf = %i KHz", ATP.msf); in SpiLayerInterface_init()
/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;