Lines Matching refs:nWorkspaceOffset
693 * @param nWorkspaceOffset: the offset in the workspace where the sector must be written
695 static TEEC_Result partitionRead(uint32_t nPartitionID, uint32_t nSectorIndex, uint32_t nWorkspaceOffset)
700 nPartitionID, nSectorIndex, nWorkspaceOffset);
716 if (fread(g_pWorkspaceBuffer + nWorkspaceOffset,
762 memcpy(g_pWorkspaceBuffer + pInstruction->nWorkspaceOffset[nIndex],pMessages[nIndex].pData,256);
777 * @param nWorkspaceOffset: the offset in the workspace where the sector must be read
779 static TEEC_Result partitionWrite(uint32_t nPartitionID, uint32_t nSectorIndex, uint32_t nWorkspaceOffset)
784 nPartitionID, nSectorIndex, nWorkspaceOffset);
800 if (fwrite(g_pWorkspaceBuffer + nWorkspaceOffset,
826 memcpy(pMessages[nIndex].pData,g_pWorkspaceBuffer + pInstruction->nWorkspaceOffset[nIndex],256);
1177 uint32_t nWorkspaceOffset;
1181 nWorkspaceOffset = pInstruction->sReadWrite.nWorkspaceOffset;
1188 nError = partitionRead(nPartitionID, nSectorID, nWorkspaceOffset);
1189 TRACE_INFO("INSTRUCTION: ID=0x%x pid=%d sid=%d woff=%d err=%d", (nInstructionID & 0x0F), nPartitionID, nSectorID, nWorkspaceOffset, nError);
1213 uint32_t nWorkspaceOffset;
1217 nWorkspaceOffset = pInstruction->sReadWrite.nWorkspaceOffset;
1224 nError = partitionWrite(nPartitionID, nSectorID, nWorkspaceOffset);
1225 TRACE_INFO("INSTRUCTION: ID=0x%x pid=%d sid=%d woff=%d err=%d", (nInstructionID & 0x0F), nPartitionID, nSectorID, nWorkspaceOffset, nError);