/device/linaro/bootloader/edk2/MdePkg/Library/BaseMemoryLib/ |
D | CopyMem.c | 38 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 …]
|
D | CopyMemWrapper.c | 48 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()
|
D | CompareMemWrapper.c | 52 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/ |
D | CopyMemWrapper.c | 43 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()
|
D | CompareMemWrapper.c | 49 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/ |
D | CopyMemWrapper.c | 48 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()
|
D | CompareMemWrapper.c | 52 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/ |
D | CopyMemWrapper.c | 48 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()
|
D | CompareMemWrapper.c | 52 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/ |
D | CopyMemWrapper.c | 48 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()
|
D | CompareMemWrapper.c | 52 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/ |
D | CopyMemWrapper.c | 48 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()
|
D | CompareMemWrapper.c | 52 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()
|
D | MemLibGeneric.c | 129 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/ |
D | CopyMemWrapper.c | 48 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()
|
D | CompareMemWrapper.c | 52 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/ |
D | CopyMemWrapper.c | 48 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()
|
D | CompareMemWrapper.c | 52 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()
|
D | MemLibGeneric.c | 129 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/ |
D | CopyMemWrapper.c | 48 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()
|
D | CompareMemWrapper.c | 52 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/ |
D | SmmMemLib.h | 58 OUT VOID *DestinationBuffer, 83 OUT VOID *DestinationBuffer, 109 OUT VOID *DestinationBuffer,
|
/device/linaro/bootloader/edk2/MdePkg/Library/SmmMemLib/ |
D | SmmMemLib.c | 205 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/ |
D | MemLibGeneric.c | 130 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/ |
D | MemLibGeneric.c | 130 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()
|