Lines Matching refs:pInstruction

733 static TEEC_Result rpmbRead(DELEGATION_RPMB_INSTRUCTION *pInstruction)  in rpmbRead()  argument
748 memcpy(pMessages[nIndex].pNonce , pInstruction->pNonce, 16); in rpmbRead()
749 pMessages[nIndex].nAddr = pInstruction->nAddr; in rpmbRead()
750 pMessages[nIndex].nBlockCount = pInstruction->nBlockCount; in rpmbRead()
753 memcpy(pMessages[nNbMsg-1].pMAC,pInstruction->nMAC,32); in rpmbRead()
757 memcpy(pInstruction->pNonce,pMessages[0].pNonce , 16); in rpmbRead()
758 pInstruction->nAddr = pMessages[0].nAddr; in rpmbRead()
759 pInstruction->nBlockCount = pMessages[0].nBlockCount; in rpmbRead()
762 … memcpy(g_pWorkspaceBuffer + pInstruction->nWorkspaceOffset[nIndex],pMessages[nIndex].pData,256); in rpmbRead()
764 memcpy(pInstruction->nMAC, pMessages[nNbMsg-1].pMAC,32); in rpmbRead()
765 pInstruction->nResult=pMessages[nNbMsg-1].nResult; in rpmbRead()
811 static TEEC_Result rpmbWrite(DELEGATION_RPMB_INSTRUCTION *pInstruction) in rpmbWrite() argument
826 … memcpy(pMessages[nIndex].pData,g_pWorkspaceBuffer + pInstruction->nWorkspaceOffset[nIndex],256); in rpmbWrite()
827 pMessages[nIndex].nMC = pInstruction->nMC; in rpmbWrite()
828 pMessages[nIndex].nAddr = pInstruction->nAddr; in rpmbWrite()
829 pMessages[nIndex].nBlockCount = pInstruction->nBlockCount; in rpmbWrite()
832 memcpy(pMessages[nNbMsg-1].pMAC,pInstruction->nMAC,32); in rpmbWrite()
836 pInstruction->nAddr = pMessages[0].nAddr; in rpmbWrite()
837 pInstruction->nMC = pMessages[0].nMC; in rpmbWrite()
838 memcpy(pInstruction->nMAC, pMessages[nNbMsg-1].pMAC,32); in rpmbWrite()
839 pInstruction->nResult=pMessages[nNbMsg-1].nResult; in rpmbWrite()
1051 DELEGATION_INSTRUCTION * pInstruction; in runSession() local
1053pInstruction = (DELEGATION_INSTRUCTION *)(&g_pExchangeBuffer->sInstructions[nInstructionsIndex/4]); in runSession()
1056 nInstructionID = pInstruction->sGeneric.nInstructionID; in runSession()
1084 nMessageType = pInstruction->sNotify.nMessageType; in runSession()
1085 nMessageSize = pInstruction->sNotify.nMessageSize; in runSession()
1099 memcpy(pMessage, &pInstruction->sNotify.nMessage[0], nMessageSize); in runSession()
1133 pInstruction->sAuthRW.nMC = 0; in runSession()
1151 pInstruction->sAuthRW.nMC = 0; in runSession()
1168 nError = rpmbRead(&pInstruction->sAuthRW); in runSession()
1180 nSectorID = pInstruction->sReadWrite.nSectorID; in runSession()
1181 nWorkspaceOffset = pInstruction->sReadWrite.nWorkspaceOffset; in runSession()
1204 nError = rpmbWrite(&pInstruction->sAuthRW); in runSession()
1216 nSectorID = pInstruction->sReadWrite.nSectorID; in runSession()
1217 nWorkspaceOffset = pInstruction->sReadWrite.nWorkspaceOffset; in runSession()
1241 nNewSize = pInstruction->sSetSize.nNewSize; in runSession()