Lines Matching refs:lastRespTpduReceived

294                                               Tpdu* lastRespTpduReceived) {  in T1protocol_checkSBlockResponseConsistency()  argument
308 if (expectedPcbResponse != lastRespTpduReceived->pcb) { in T1protocol_checkSBlockResponseConsistency()
331 Tpdu* lastRespTpduReceived) { in T1protocol_checkTpduConsistency() argument
333 if (T1protocol_checkResponseTpduChecksum(lastRespTpduReceived) == -1) { in T1protocol_checkTpduConsistency()
338 if (T1protocol_checkResponsePcbConsistency(lastRespTpduReceived) == -1) { in T1protocol_checkTpduConsistency()
343 if (T1protocol_checkResponseLenConsistency(lastRespTpduReceived) == -1) { in T1protocol_checkTpduConsistency()
348 if (T1protocol_checkResponseSeqNumberConsistency(lastRespTpduReceived) == in T1protocol_checkTpduConsistency()
356 lastRespTpduReceived) == -1) { in T1protocol_checkTpduConsistency()
427 Tpdu* lastRespTpduReceived) { in T1protocol_processIBlock() argument
434 rc = DataMgmt_StoreDataInList(lastRespTpduReceived->len, in T1protocol_processIBlock()
435 lastRespTpduReceived->data); in T1protocol_processIBlock()
437 if ((lastRespTpduReceived->pcb & IBLOCK_M_BIT_MASK) > 0) { in T1protocol_processIBlock()
463 Tpdu* lastRespTpduReceived) { in T1protocol_processRBlock() argument
467 if (T1protocol_isSequenceNumberOk(originalCmdTpdu, lastRespTpduReceived) == in T1protocol_processRBlock()
478 if (T1protocol_isSequenceNumberOk(originalCmdTpdu, lastRespTpduReceived) == in T1protocol_processRBlock()
505 int T1protocol_sendRBlock(int rack, Tpdu* lastRespTpduReceived) { in T1protocol_sendRBlock() argument
520 result = SpiLayerInterface_transcieveTpdu(TempTpdu, lastRespTpduReceived, in T1protocol_sendRBlock()
586 Tpdu* lastRespTpduReceived) { in T1protocol_processSBlock() argument
587 if (lastRespTpduReceived->pcb == (uint8_t)SBLOCK_WTX_REQUEST_MASK) { in T1protocol_processSBlock()
589 } else if (lastRespTpduReceived->pcb == (uint8_t)SBLOCK_IFS_REQUEST_MASK) { in T1protocol_processSBlock()
591 } else if (lastRespTpduReceived->pcb == (uint8_t)SBLOCK_IFS_RESPONSE_MASK) { in T1protocol_processSBlock()
592 ATP.ifsc = (uint8_t)lastRespTpduReceived->data[0]; in T1protocol_processSBlock()
595 } else if (lastRespTpduReceived->pcb == in T1protocol_processSBlock()
599 } else if (lastRespTpduReceived->pcb == in T1protocol_processSBlock()
606 } else if (lastRespTpduReceived->pcb == (uint8_t)SBLOCK_ABORT_REQUEST_MASK) { in T1protocol_processSBlock()
610 } else if (lastRespTpduReceived->pcb == in T1protocol_processSBlock()
612 if (Atp_setAtp(lastRespTpduReceived->data) != 0) { in T1protocol_processSBlock()
756 int T1protocol_doWTXResponse(Tpdu* lastRespTpduReceived) { in T1protocol_doWTXResponse() argument
762 T1protocol_formSblockResponse(TempTpdu, lastRespTpduReceived); in T1protocol_doWTXResponse()
770 result = SpiLayerInterface_transcieveTpdu(TempTpdu, lastRespTpduReceived, in T1protocol_doWTXResponse()
799 Tpdu* lastRespTpduReceived, int* bytesRead) { in T1protocol_doResendRequest() argument
812 lastRespTpduReceived, DEFAULT_NBWT); in T1protocol_doResendRequest()
836 int T1protocol_doResyncRequest(Tpdu* lastRespTpduReceived) { in T1protocol_doResyncRequest() argument
849 result = SpiLayerInterface_transcieveTpdu(TempTpdu, lastRespTpduReceived, in T1protocol_doResyncRequest()
874 int T1protocol_doSoftReset(Tpdu* lastRespTpduReceived) { in T1protocol_doSoftReset() argument
887 result = SpiLayerInterface_transcieveTpdu(TempTpdu, lastRespTpduReceived, in T1protocol_doSoftReset()
965 Tpdu* lastRespTpduReceived, int* bytesRead) { in T1protocol_handleTpduResponse() argument
978 rc = T1protocol_checkTpduConsistency(lastCmdTpduSent, lastRespTpduReceived); in T1protocol_handleTpduResponse()
992 TpduType type = Tpdu_getType(lastRespTpduReceived); in T1protocol_handleTpduResponse()
995 rc = T1protocol_processIBlock(originalCmdTpdu, lastRespTpduReceived); in T1protocol_handleTpduResponse()
999 T1protocol_processRBlock(originalCmdTpdu, lastRespTpduReceived); in T1protocol_handleTpduResponse()
1004 lastRespTpduReceived); in T1protocol_handleTpduResponse()
1064 int T1protocol_doRequestIFS(Tpdu* lastRespTpduReceived) { in T1protocol_doRequestIFS() argument
1080 result = SpiLayerInterface_transcieveTpdu(TempTpdu, lastRespTpduReceived, in T1protocol_doRequestIFS()
1131 Tpdu originalCmdTpdu, lastCmdTpduSent, lastRespTpduReceived; in T1protocol_transcieveApduPart() local
1134 lastRespTpduReceived.data = (uint8_t*)malloc(ATP.ifsc * sizeof(uint8_t)); in T1protocol_transcieveApduPart()
1158 &originalCmdTpdu, &lastRespTpduReceived, DEFAULT_NBWT); in T1protocol_transcieveApduPart()
1165 rc = T1protocol_sendRBlock(true, &lastRespTpduReceived); in T1protocol_transcieveApduPart()
1171 rc = T1protocol_sendRBlock(false, &lastRespTpduReceived); in T1protocol_transcieveApduPart()
1178 rc = T1protocol_doResyncRequest(&lastRespTpduReceived); in T1protocol_transcieveApduPart()
1185 rc = T1protocol_doSoftReset(&lastRespTpduReceived); in T1protocol_transcieveApduPart()
1192 rc = T1protocol_doWTXResponse(&lastRespTpduReceived); in T1protocol_transcieveApduPart()
1199 rc = T1protocol_doRequestIFS(&lastRespTpduReceived); in T1protocol_transcieveApduPart()
1211 &lastRespTpduReceived, &rc); in T1protocol_transcieveApduPart()
1217 TpduType type = Tpdu_getType(&lastRespTpduReceived); in T1protocol_transcieveApduPart()
1230 free(lastRespTpduReceived.data); in T1protocol_transcieveApduPart()
1231 lastRespTpduReceived.data = NULL; in T1protocol_transcieveApduPart()
1233 if ((lastRespTpduReceived.pcb & IBLOCK_M_BIT_MASK) > 0) { in T1protocol_transcieveApduPart()