Home
last modified time | relevance | path

Searched refs:DestinationBuffer (Results 1 – 25 of 78) sorted by relevance

1234

/device/linaro/bootloader/edk2/MdePkg/Library/BaseMemoryLib/
DCopyMem.c38 OUT VOID *DestinationBuffer, in InternalMemCopyMem() argument
56 …if ((((UINTN)DestinationBuffer & 0x7) == 0) && (((UINTN)SourceBuffer & 0x7) == 0) && (Length >= 8)… in InternalMemCopyMem()
57 if (SourceBuffer > DestinationBuffer) { in InternalMemCopyMem()
58 Destination64 = (UINT64*)DestinationBuffer; in InternalMemCopyMem()
71 } else if (SourceBuffer < DestinationBuffer) { in InternalMemCopyMem()
72 Destination64 = (UINT64*)((UINTN)DestinationBuffer + Length); in InternalMemCopyMem()
97 …} else if ((((UINTN)DestinationBuffer & 0x3) == 0) && (((UINTN)SourceBuffer & 0x3) == 0) && (Lengt… in InternalMemCopyMem()
98 if (SourceBuffer > DestinationBuffer) { in InternalMemCopyMem()
99 Destination32 = (UINT32*)DestinationBuffer; in InternalMemCopyMem()
112 } else if (SourceBuffer < DestinationBuffer) { in InternalMemCopyMem()
[all …]
DCopyMemWrapper.c48 OUT VOID *DestinationBuffer, in CopyMem() argument
54 return DestinationBuffer; in CopyMem()
56 ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)DestinationBuffer)); in CopyMem()
59 if (DestinationBuffer == SourceBuffer) { in CopyMem()
60 return DestinationBuffer; in CopyMem()
62 return InternalMemCopyMem (DestinationBuffer, SourceBuffer, Length); in CopyMem()
DCompareMemWrapper.c52 IN CONST VOID *DestinationBuffer, in CompareMem() argument
57 if (Length == 0 || DestinationBuffer == SourceBuffer) { in CompareMem()
60 ASSERT (DestinationBuffer != NULL); in CompareMem()
62 ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)DestinationBuffer)); in CompareMem()
65 return InternalMemCompareMem (DestinationBuffer, SourceBuffer, Length); in CompareMem()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseMemoryLib/
DCopyMemWrapper.c43 OUT VOID *DestinationBuffer, in GlueCopyMem() argument
49 return DestinationBuffer; in GlueCopyMem()
51 ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)DestinationBuffer)); in GlueCopyMem()
54 if (DestinationBuffer == SourceBuffer) { in GlueCopyMem()
55 return DestinationBuffer; in GlueCopyMem()
57 return InternalMemCopyMem (DestinationBuffer, SourceBuffer, Length); in GlueCopyMem()
DCompareMemWrapper.c49 IN CONST VOID *DestinationBuffer, in GlueCompareMem() argument
54 if (Length == 0 || DestinationBuffer == SourceBuffer) { in GlueCompareMem()
57 ASSERT (DestinationBuffer != NULL); in GlueCompareMem()
59 ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)DestinationBuffer)); in GlueCompareMem()
62 return InternalMemCompareMem (DestinationBuffer, SourceBuffer, Length); in GlueCompareMem()
/device/linaro/bootloader/edk2/MdePkg/Library/BaseMemoryLibMmx/
DCopyMemWrapper.c48 OUT VOID *DestinationBuffer, in CopyMem() argument
54 return DestinationBuffer; in CopyMem()
56 ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)DestinationBuffer)); in CopyMem()
59 if (DestinationBuffer == SourceBuffer) { in CopyMem()
60 return DestinationBuffer; in CopyMem()
62 return InternalMemCopyMem (DestinationBuffer, SourceBuffer, Length); in CopyMem()
DCompareMemWrapper.c52 IN CONST VOID *DestinationBuffer, in CompareMem() argument
57 if (Length == 0 || DestinationBuffer == SourceBuffer) { in CompareMem()
60 ASSERT (DestinationBuffer != NULL); in CompareMem()
62 ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)DestinationBuffer)); in CompareMem()
65 return InternalMemCompareMem (DestinationBuffer, SourceBuffer, Length); in CompareMem()
/device/linaro/bootloader/edk2/MdePkg/Library/BaseMemoryLibOptPei/
DCopyMemWrapper.c48 OUT VOID *DestinationBuffer, in CopyMem() argument
54 return DestinationBuffer; in CopyMem()
56 ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)DestinationBuffer)); in CopyMem()
59 if (DestinationBuffer == SourceBuffer) { in CopyMem()
60 return DestinationBuffer; in CopyMem()
62 return InternalMemCopyMem (DestinationBuffer, SourceBuffer, Length); in CopyMem()
DCompareMemWrapper.c52 IN CONST VOID *DestinationBuffer, in CompareMem() argument
57 if (Length == 0 || DestinationBuffer == SourceBuffer) { in CompareMem()
60 ASSERT (DestinationBuffer != NULL); in CompareMem()
62 ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)DestinationBuffer)); in CompareMem()
65 return InternalMemCompareMem (DestinationBuffer, SourceBuffer, Length); in CompareMem()
/device/linaro/bootloader/edk2/MdePkg/Library/BaseMemoryLibRepStr/
DCopyMemWrapper.c48 OUT VOID *DestinationBuffer, in CopyMem() argument
54 return DestinationBuffer; in CopyMem()
56 ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)DestinationBuffer)); in CopyMem()
59 if (DestinationBuffer == SourceBuffer) { in CopyMem()
60 return DestinationBuffer; in CopyMem()
62 return InternalMemCopyMem (DestinationBuffer, SourceBuffer, Length); in CopyMem()
DCompareMemWrapper.c52 IN CONST VOID *DestinationBuffer, in CompareMem() argument
57 if (Length == 0 || DestinationBuffer == SourceBuffer) { in CompareMem()
60 ASSERT (DestinationBuffer != NULL); in CompareMem()
62 ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)DestinationBuffer)); in CompareMem()
65 return InternalMemCompareMem (DestinationBuffer, SourceBuffer, Length); in CompareMem()
/device/linaro/bootloader/edk2/MdePkg/Library/UefiMemoryLib/
DCopyMemWrapper.c48 OUT VOID *DestinationBuffer, in CopyMem() argument
54 return DestinationBuffer; in CopyMem()
56 ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)DestinationBuffer)); in CopyMem()
59 if (DestinationBuffer == SourceBuffer) { in CopyMem()
60 return DestinationBuffer; in CopyMem()
62 return InternalMemCopyMem (DestinationBuffer, SourceBuffer, Length); in CopyMem()
DCompareMemWrapper.c52 IN CONST VOID *DestinationBuffer, in CompareMem() argument
57 if (Length == 0 || DestinationBuffer == SourceBuffer) { in CompareMem()
60 ASSERT (DestinationBuffer != NULL); in CompareMem()
62 ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)DestinationBuffer)); in CompareMem()
65 return InternalMemCompareMem (DestinationBuffer, SourceBuffer, Length); in CompareMem()
DMemLibGeneric.c129 IN CONST VOID *DestinationBuffer, in InternalMemCompareMem() argument
135 (*(INT8*)DestinationBuffer == *(INT8*)SourceBuffer)) { in InternalMemCompareMem()
136 DestinationBuffer = (INT8*)DestinationBuffer + 1; in InternalMemCompareMem()
139 return (INTN)*(UINT8*)DestinationBuffer - (INTN)*(UINT8*)SourceBuffer; in InternalMemCompareMem()
/device/linaro/bootloader/edk2/MdePkg/Library/BaseMemoryLibOptDxe/
DCopyMemWrapper.c48 OUT VOID *DestinationBuffer, in CopyMem() argument
54 return DestinationBuffer; in CopyMem()
56 ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)DestinationBuffer)); in CopyMem()
59 if (DestinationBuffer == SourceBuffer) { in CopyMem()
60 return DestinationBuffer; in CopyMem()
62 return InternalMemCopyMem (DestinationBuffer, SourceBuffer, Length); in CopyMem()
DCompareMemWrapper.c52 IN CONST VOID *DestinationBuffer, in CompareMem() argument
57 if (Length == 0 || DestinationBuffer == SourceBuffer) { in CompareMem()
60 ASSERT (DestinationBuffer != NULL); in CompareMem()
62 ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)DestinationBuffer)); in CompareMem()
65 return InternalMemCompareMem (DestinationBuffer, SourceBuffer, Length); in CompareMem()
/device/linaro/bootloader/edk2/MdePkg/Library/PeiMemoryLib/
DCopyMemWrapper.c48 OUT VOID *DestinationBuffer, in CopyMem() argument
54 return DestinationBuffer; in CopyMem()
56 ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)DestinationBuffer)); in CopyMem()
59 if (DestinationBuffer == SourceBuffer) { in CopyMem()
60 return DestinationBuffer; in CopyMem()
62 return InternalMemCopyMem (DestinationBuffer, SourceBuffer, Length); in CopyMem()
DCompareMemWrapper.c52 IN CONST VOID *DestinationBuffer, in CompareMem() argument
57 if (Length == 0 || DestinationBuffer == SourceBuffer) { in CompareMem()
60 ASSERT (DestinationBuffer != NULL); in CompareMem()
62 ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)DestinationBuffer)); in CompareMem()
65 return InternalMemCompareMem (DestinationBuffer, SourceBuffer, Length); in CompareMem()
DMemLibGeneric.c129 IN CONST VOID *DestinationBuffer, in InternalMemCompareMem() argument
135 (*(INT8*)DestinationBuffer == *(INT8*)SourceBuffer)) { in InternalMemCompareMem()
136 DestinationBuffer = (INT8*)DestinationBuffer + 1; in InternalMemCompareMem()
139 return (INTN)*(UINT8*)DestinationBuffer - (INTN)*(UINT8*)SourceBuffer; in InternalMemCompareMem()
/device/linaro/bootloader/edk2/MdePkg/Library/BaseMemoryLibSse2/
DCopyMemWrapper.c48 OUT VOID *DestinationBuffer, in CopyMem() argument
54 return DestinationBuffer; in CopyMem()
56 ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)DestinationBuffer)); in CopyMem()
59 if (DestinationBuffer == SourceBuffer) { in CopyMem()
60 return DestinationBuffer; in CopyMem()
62 return InternalMemCopyMem (DestinationBuffer, SourceBuffer, Length); in CopyMem()
DCompareMemWrapper.c52 IN CONST VOID *DestinationBuffer, in CompareMem() argument
57 if (Length == 0 || DestinationBuffer == SourceBuffer) { in CompareMem()
60 ASSERT (DestinationBuffer != NULL); in CompareMem()
62 ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)DestinationBuffer)); in CompareMem()
65 return InternalMemCompareMem (DestinationBuffer, SourceBuffer, Length); in CompareMem()
/device/linaro/bootloader/edk2/MdePkg/Include/Library/
DSmmMemLib.h58 OUT VOID *DestinationBuffer,
83 OUT VOID *DestinationBuffer,
109 OUT VOID *DestinationBuffer,
/device/linaro/bootloader/edk2/MdePkg/Library/SmmMemLib/
DSmmMemLib.c205 OUT VOID *DestinationBuffer, in SmmCopyMemToSmram() argument
214 CopyMem (DestinationBuffer, SourceBuffer, Length); in SmmCopyMemToSmram()
238 OUT VOID *DestinationBuffer, in SmmCopyMemFromSmram() argument
243 if (!SmmIsBufferOutsideSmmValid ((EFI_PHYSICAL_ADDRESS)(UINTN)DestinationBuffer, Length)) { in SmmCopyMemFromSmram()
244 …emFromSmram: Security Violation: Destination (0x%x), Length (0x%x)\n", DestinationBuffer, Length)); in SmmCopyMemFromSmram()
247 CopyMem (DestinationBuffer, SourceBuffer, Length); in SmmCopyMemFromSmram()
272 OUT VOID *DestinationBuffer, in SmmCopyMem() argument
277 if (!SmmIsBufferOutsideSmmValid ((EFI_PHYSICAL_ADDRESS)(UINTN)DestinationBuffer, Length)) { in SmmCopyMem()
278 …"SmmCopyMem: Security Violation: Destination (0x%x), Length (0x%x)\n", DestinationBuffer, Length)); in SmmCopyMem()
285 CopyMem (DestinationBuffer, SourceBuffer, Length); in SmmCopyMem()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseMemoryLib/Ebc/
DMemLibGeneric.c130 IN CONST VOID *DestinationBuffer, in InternalMemCompareMem() argument
136 (*(INT8*)DestinationBuffer == *(INT8*)SourceBuffer)) { in InternalMemCompareMem()
137 DestinationBuffer = (INT8*)DestinationBuffer + 1; in InternalMemCompareMem()
140 return (INTN)*(UINT8*)DestinationBuffer - (INTN)*(UINT8*)SourceBuffer; in InternalMemCompareMem()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseMemoryLib/Ipf/
DMemLibGeneric.c130 IN CONST VOID *DestinationBuffer, in InternalMemCompareMem() argument
136 (*(INT8*)DestinationBuffer == *(INT8*)SourceBuffer)) { in InternalMemCompareMem()
137 DestinationBuffer = (INT8*)DestinationBuffer + 1; in InternalMemCompareMem()
140 return (INTN)*(UINT8*)DestinationBuffer - (INTN)*(UINT8*)SourceBuffer; in InternalMemCompareMem()

1234