/device/linaro/bootloader/edk2/MdePkg/Library/SmmIoLibSmmCpuIo2/ |
D | IoLibMmioBuffer.c | 39 IN UINTN Length, in MmioReadBuffer8() argument 45 ASSERT ((Length - 1) <= (MAX_ADDRESS - StartAddress)); in MmioReadBuffer8() 46 ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN) Buffer)); in MmioReadBuffer8() 50 while (Length-- > 0) { in MmioReadBuffer8() 84 IN UINTN Length, in MmioReadBuffer16() argument 92 ASSERT ((Length - 1) <= (MAX_ADDRESS - StartAddress)); in MmioReadBuffer16() 93 ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN) Buffer)); in MmioReadBuffer16() 95 ASSERT ((Length & (sizeof (UINT16) - 1)) == 0); in MmioReadBuffer16() 100 while (Length > 0) { in MmioReadBuffer16() 103 Length -= sizeof (UINT16); in MmioReadBuffer16() [all …]
|
/device/linaro/bootloader/edk2/IntelFrameworkPkg/Library/DxeIoLibCpuIo/ |
D | IoLibMmioBuffer.c | 42 IN UINTN Length, in MmioReadBuffer8() argument 48 ASSERT ((Length - 1) <= (MAX_ADDRESS - StartAddress)); in MmioReadBuffer8() 49 ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN) Buffer)); in MmioReadBuffer8() 53 while (Length-- > 0) { in MmioReadBuffer8() 87 IN UINTN Length, in MmioReadBuffer16() argument 95 ASSERT ((Length - 1) <= (MAX_ADDRESS - StartAddress)); in MmioReadBuffer16() 96 ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN) Buffer)); in MmioReadBuffer16() 98 ASSERT ((Length & (sizeof (UINT16) - 1)) == 0); in MmioReadBuffer16() 103 while (Length > 0) { in MmioReadBuffer16() 106 Length -= sizeof (UINT16); in MmioReadBuffer16() [all …]
|
/device/linaro/bootloader/edk2/MdePkg/Library/DxeIoLibEsal/ |
D | IoLibMmioBuffer.c | 39 IN UINTN Length, in MmioReadBuffer8() argument 45 ASSERT ((Length - 1) <= (MAX_ADDRESS - StartAddress)); in MmioReadBuffer8() 46 ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN) Buffer)); in MmioReadBuffer8() 50 while (Length-- > 0) { in MmioReadBuffer8() 83 IN UINTN Length, in MmioReadBuffer16() argument 91 ASSERT ((Length - 1) <= (MAX_ADDRESS - StartAddress)); in MmioReadBuffer16() 92 ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN) Buffer)); in MmioReadBuffer16() 94 ASSERT ((Length & (sizeof (UINT16) - 1)) == 0); in MmioReadBuffer16() 99 while (Length > 0) { in MmioReadBuffer16() 102 Length -= sizeof (UINT16); in MmioReadBuffer16() [all …]
|
/device/linaro/bootloader/edk2/MdePkg/Library/BaseIoLibIntrinsic/ |
D | IoLibMmioBuffer.c | 39 IN UINTN Length, in MmioReadBuffer8() argument 45 ASSERT ((Length - 1) <= (MAX_ADDRESS - StartAddress)); in MmioReadBuffer8() 46 ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN) Buffer)); in MmioReadBuffer8() 50 while (Length-- != 0) { in MmioReadBuffer8() 83 IN UINTN Length, in MmioReadBuffer16() argument 91 ASSERT ((Length - 1) <= (MAX_ADDRESS - StartAddress)); in MmioReadBuffer16() 92 ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN) Buffer)); in MmioReadBuffer16() 94 ASSERT ((Length & (sizeof (UINT16) - 1)) == 0); in MmioReadBuffer16() 99 while (Length != 0) { in MmioReadBuffer16() 102 Length -= sizeof (UINT16); in MmioReadBuffer16() [all …]
|
/device/linaro/bootloader/edk2/MdePkg/Library/DxeIoLibCpuIo2/ |
D | IoLibMmioBuffer.c | 39 IN UINTN Length, in MmioReadBuffer8() argument 45 ASSERT ((Length - 1) <= (MAX_ADDRESS - StartAddress)); in MmioReadBuffer8() 46 ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN) Buffer)); in MmioReadBuffer8() 50 while (Length-- > 0) { in MmioReadBuffer8() 84 IN UINTN Length, in MmioReadBuffer16() argument 92 ASSERT ((Length - 1) <= (MAX_ADDRESS - StartAddress)); in MmioReadBuffer16() 93 ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN) Buffer)); in MmioReadBuffer16() 95 ASSERT ((Length & (sizeof (UINT16) - 1)) == 0); in MmioReadBuffer16() 100 while (Length > 0) { in MmioReadBuffer16() 103 Length -= sizeof (UINT16); in MmioReadBuffer16() [all …]
|
/device/linaro/bootloader/edk2/MdePkg/Library/PeiIoLibCpuIo/ |
D | IoLibMmioBuffer.c | 46 IN UINTN Length, in MmioReadBuffer8() argument 52 ASSERT ((Length - 1) <= (MAX_ADDRESS - StartAddress)); in MmioReadBuffer8() 53 ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN) Buffer)); in MmioReadBuffer8() 57 while (Length-- != 0) { in MmioReadBuffer8() 90 IN UINTN Length, in MmioReadBuffer16() argument 98 ASSERT ((Length - 1) <= (MAX_ADDRESS - StartAddress)); in MmioReadBuffer16() 99 ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN) Buffer)); in MmioReadBuffer16() 101 ASSERT ((Length & (sizeof (UINT16) - 1)) == 0); in MmioReadBuffer16() 106 while (Length != 0) { in MmioReadBuffer16() 109 Length -= sizeof (UINT16); in MmioReadBuffer16() [all …]
|
/device/linaro/bootloader/edk2/MdePkg/Library/BaseMemoryLib/ |
D | CopyMem.c | 40 IN UINTN Length in InternalMemCopyMem() argument 56 …if ((((UINTN)DestinationBuffer & 0x7) == 0) && (((UINTN)SourceBuffer & 0x7) == 0) && (Length >= 8)… in InternalMemCopyMem() 60 while (Length >= 8) { in InternalMemCopyMem() 62 Length -= 8; in InternalMemCopyMem() 68 while (Length-- != 0) { in InternalMemCopyMem() 72 Destination64 = (UINT64*)((UINTN)DestinationBuffer + Length); in InternalMemCopyMem() 73 Source64 = (CONST UINT64*)((UINTN)SourceBuffer + Length); in InternalMemCopyMem() 79 Alignment = Length & 0x7; in InternalMemCopyMem() 86 --Length; in InternalMemCopyMem() 92 while (Length > 0) { in InternalMemCopyMem() [all …]
|
D | MemLibGeneric.c | 36 IN UINTN Length, in InternalMemSetMem16() argument 40 for (; Length != 0; Length--) { in InternalMemSetMem16() 41 ((UINT16*)Buffer)[Length - 1] = Value; in InternalMemSetMem16() 60 IN UINTN Length, in InternalMemSetMem32() argument 64 for (; Length != 0; Length--) { in InternalMemSetMem32() 65 ((UINT32*)Buffer)[Length - 1] = Value; in InternalMemSetMem32() 84 IN UINTN Length, in InternalMemSetMem64() argument 88 for (; Length != 0; Length--) { in InternalMemSetMem64() 89 ((UINT64*)Buffer)[Length - 1] = Value; in InternalMemSetMem64() 107 IN UINTN Length in InternalMemZeroMem() argument [all …]
|
/device/linaro/bootloader/edk2/MdePkg/Library/UefiMemoryLib/ |
D | MemLibGeneric.c | 36 IN UINTN Length, in InternalMemSetMem16() argument 40 for (; Length != 0; Length--) { in InternalMemSetMem16() 41 ((UINT16*)Buffer)[Length - 1] = Value; in InternalMemSetMem16() 60 IN UINTN Length, in InternalMemSetMem32() argument 64 for (; Length != 0; Length--) { in InternalMemSetMem32() 65 ((UINT32*)Buffer)[Length - 1] = Value; in InternalMemSetMem32() 84 IN UINTN Length, in InternalMemSetMem64() argument 88 for (; Length != 0; Length--) { in InternalMemSetMem64() 89 ((UINT64*)Buffer)[Length - 1] = Value; in InternalMemSetMem64() 107 IN UINTN Length in InternalMemZeroMem() argument [all …]
|
/device/linaro/bootloader/edk2/MdePkg/Library/PeiMemoryLib/ |
D | MemLibGeneric.c | 36 IN UINTN Length, in InternalMemSetMem16() argument 40 for (; Length != 0; Length--) { in InternalMemSetMem16() 41 ((UINT16*)Buffer)[Length - 1] = Value; in InternalMemSetMem16() 60 IN UINTN Length, in InternalMemSetMem32() argument 64 for (; Length != 0; Length--) { in InternalMemSetMem32() 65 ((UINT32*)Buffer)[Length - 1] = Value; in InternalMemSetMem32() 84 IN UINTN Length, in InternalMemSetMem64() argument 88 for (; Length != 0; Length--) { in InternalMemSetMem64() 89 ((UINT64*)Buffer)[Length - 1] = Value; in InternalMemSetMem64() 107 IN UINTN Length in InternalMemZeroMem() argument [all …]
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/ |
D | CheckSum.c | 42 IN UINTN Length in CalculateSum8() argument 49 ASSERT (Length <= (MAX_ADDRESS - ((UINTN) Buffer) + 1)); in CalculateSum8() 51 for (Sum = 0, Count = 0; Count < Length; Count++) { in CalculateSum8() 82 IN UINTN Length in CalculateCheckSum8() argument 87 CheckSum = CalculateSum8 (Buffer, Length); in CalculateCheckSum8() 118 IN UINTN Length in CalculateSum16() argument 126 ASSERT ((Length & 0x1) == 0); in CalculateSum16() 127 ASSERT (Length <= (MAX_ADDRESS - ((UINTN) Buffer) + 1)); in CalculateSum16() 130 for (Sum = 0, Count = 0; Count < Length; Count++) { in CalculateSum16() 162 IN UINTN Length in CalculateCheckSum16() argument [all …]
|
/device/linaro/bootloader/edk2/MdePkg/Library/BaseLib/ |
D | CheckSum.c | 40 IN UINTN Length in CalculateSum8() argument 47 ASSERT (Length <= (MAX_ADDRESS - ((UINTN) Buffer) + 1)); in CalculateSum8() 49 for (Sum = 0, Count = 0; Count < Length; Count++) { in CalculateSum8() 79 IN UINTN Length in CalculateCheckSum8() argument 84 CheckSum = CalculateSum8 (Buffer, Length); in CalculateCheckSum8() 115 IN UINTN Length in CalculateSum16() argument 124 ASSERT ((Length & 0x1) == 0); in CalculateSum16() 125 ASSERT (Length <= (MAX_ADDRESS - ((UINTN) Buffer) + 1)); in CalculateSum16() 127 Total = Length / sizeof (*Buffer); in CalculateSum16() 160 IN UINTN Length in CalculateCheckSum16() argument [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Library/PiDxeS3BootScriptLib/ |
D | BootScriptInternalFormat.h | 29 UINT8 Length; member 34 UINT8 Length; member 42 UINT8 Length; member 48 UINT8 Length; member 56 UINT8 Length; member 63 UINT8 Length; member 71 UINT8 Length; member 78 UINT8 Length; member 86 UINT8 Length; member 95 UINT8 Length; member [all …]
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseMemoryLib/Ebc/ |
D | MemLibGeneric.c | 39 IN UINTN Length, in InternalMemSetMem16() argument 44 ((UINT16*)Buffer)[--Length] = Value; in InternalMemSetMem16() 45 } while (Length != 0); in InternalMemSetMem16() 63 IN UINTN Length, in InternalMemSetMem32() argument 68 ((UINT32*)Buffer)[--Length] = Value; in InternalMemSetMem32() 69 } while (Length != 0); in InternalMemSetMem32() 87 IN UINTN Length, in InternalMemSetMem64() argument 92 ((UINT64*)Buffer)[--Length] = Value; in InternalMemSetMem64() 93 } while (Length != 0); in InternalMemSetMem64() 110 IN UINTN Length in InternalMemZeroMem() argument [all …]
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseMemoryLib/Ipf/ |
D | MemLibGeneric.c | 39 IN UINTN Length, in InternalMemSetMem16() argument 44 ((UINT16*)Buffer)[--Length] = Value; in InternalMemSetMem16() 45 } while (Length != 0); in InternalMemSetMem16() 63 IN UINTN Length, in InternalMemSetMem32() argument 68 ((UINT32*)Buffer)[--Length] = Value; in InternalMemSetMem32() 69 } while (Length != 0); in InternalMemSetMem32() 87 IN UINTN Length, in InternalMemSetMem64() argument 92 ((UINT64*)Buffer)[--Length] = Value; in InternalMemSetMem64() 93 } while (Length != 0); in InternalMemSetMem64() 110 IN UINTN Length in InternalMemZeroMem() argument [all …]
|
/device/linaro/bootloader/edk2/ArmPkg/Drivers/CpuDxe/ |
D | CpuMmuCommon.c | 40 IN UINT64 Length, in SearchGcdMemorySpaces() argument 51 (BaseAddress < (MemorySpaceMap[Index].BaseAddress + MemorySpaceMap[Index].Length))) { in SearchGcdMemorySpaces() 54 if (((BaseAddress + Length - 1) >= MemorySpaceMap[Index].BaseAddress) && in SearchGcdMemorySpaces() 55 …((BaseAddress + Length - 1) < (MemorySpaceMap[Index].BaseAddress + MemorySpaceMap[Index].Length)))… in SearchGcdMemorySpaces() 85 IN UINT64 Length, in SetGcdMemorySpaceAttributes() argument 97 BaseAddress, BaseAddress + Length, Attributes)); in SetGcdMemorySpaceAttributes() 100 if ((Length & EFI_PAGE_MASK) != 0) { in SetGcdMemorySpaceAttributes() 103 Length)); in SetGcdMemorySpaceAttributes() 113 Length, in SetGcdMemorySpaceAttributes() 136 …if ((BaseAddress + Length - 1) < (MemorySpaceMap[Index].BaseAddress + MemorySpaceMap[Index].Length… in SetGcdMemorySpaceAttributes() [all …]
|
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/Feature/Capsule/Library/PlatformFlashAccessLib/ |
D | PlatformFlashAccessLib.c | 51 IN UINTN Length in PerformFlashWrite() argument 56 …O, "PerformFlashWrite - 0x%x(%x) - 0x%x\n", (UINTN)FlashAddress, (UINTN)FlashAddressType, Length)); in PerformFlashWrite() 61 …O, " - 0x%x(%x) - 0x%x\n", (UINTN)FlashAddress, (UINTN)FlashAddressType, Length)); in PerformFlashWrite() 62 LibFvbFlashDeviceBlockLock((UINTN)FlashAddress, Length, FALSE); in PerformFlashWrite() 67 Status = LibFvbFlashDeviceBlockErase((UINTN)FlashAddress, Length); in PerformFlashWrite() 70 LibFvbFlashDeviceBlockLock((UINTN)FlashAddress, Length, TRUE); in PerformFlashWrite() 75 Status = LibFvbFlashDeviceWrite((UINTN)FlashAddress, &Length, Buffer); in PerformFlashWrite() 78 LibFvbFlashDeviceBlockLock((UINTN)FlashAddress, Length, TRUE); in PerformFlashWrite() 83 LibFvbFlashDeviceBlockLock((UINTN)FlashAddress, Length, TRUE); in PerformFlashWrite() 105 IN UINTN Length in MicrocodeFlashWrite() argument [all …]
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Framework/Include/ |
D | EfiBootScript.h | 78 UINT8 Length; member 83 UINT8 Length; member 91 UINT8 Length; member 97 UINT8 Length; member 105 UINT8 Length; member 112 UINT8 Length; member 120 UINT8 Length; member 127 UINT8 Length; member 135 UINT8 Length; member 144 UINT8 Length; member [all …]
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseCacheMaintenanceLib/ |
D | IpfCache.c | 71 IN UINTN Length in InvalidateInstructionCacheRange() argument 74 return AsmFlushCacheRange (Address, Length); in InvalidateInstructionCacheRange() 126 IN UINTN Length in WriteBackInvalidateDataCacheRange() argument 129 ASSERT (Length <= MAX_ADDRESS - (UINTN)Address + 1); in WriteBackInvalidateDataCacheRange() 131 return AsmFlushCacheRange (Address, Length); in WriteBackInvalidateDataCacheRange() 182 IN UINTN Length in WriteBackDataCacheRange() argument 185 ASSERT (Length <= MAX_ADDRESS - (UINTN)Address + 1); in WriteBackDataCacheRange() 187 return AsmFlushCacheRange (Address, Length); in WriteBackDataCacheRange() 241 IN UINTN Length in InvalidateDataCacheRange() argument 244 return AsmFlushCacheRange (Address, Length); in InvalidateDataCacheRange()
|
D | X86Cache.c | 76 IN UINTN Length in InvalidateInstructionCacheRange() argument 79 ASSERT (Length <= MAX_ADDRESS - (UINTN)Address + 1); in InvalidateInstructionCacheRange() 132 IN UINTN Length in WriteBackInvalidateDataCacheRange() argument 137 ASSERT (Length <= MAX_ADDRESS - (UINTN)Address + 1); in WriteBackInvalidateDataCacheRange() 139 if (Length == 0) { in WriteBackInvalidateDataCacheRange() 144 End = (Start + Length + (CACHE_LINE_SIZE - 1)) & ~(CACHE_LINE_SIZE - 1); in WriteBackInvalidateDataCacheRange() 201 IN UINTN Length in WriteBackDataCacheRange() argument 204 return WriteBackInvalidateDataCacheRange (Address, Length); in WriteBackDataCacheRange() 258 IN UINTN Length in InvalidateDataCacheRange() argument 261 return WriteBackInvalidateDataCacheRange (Address, Length); in InvalidateDataCacheRange()
|
/device/linaro/bootloader/edk2/ArmPkg/Library/SemihostLib/ |
D | SemihostLib.c | 89 IN OUT UINTN *Length, in SemihostFileRead() argument 96 if ((Length == NULL) || (Buffer == NULL)) { in SemihostFileRead() 102 ReadBlock.Length = *Length; in SemihostFileRead() 106 if ((*Length != 0) && (Result == *Length)) { in SemihostFileRead() 109 *Length -= Result; in SemihostFileRead() 117 IN OUT UINTN *Length, in SemihostFileWrite() argument 123 if ((Length == NULL) || (Buffer == NULL)) { in SemihostFileWrite() 129 WriteBlock.Length = *Length; in SemihostFileWrite() 131 *Length = Semihost_SYS_WRITE(&WriteBlock); in SemihostFileWrite() 133 if (*Length != 0) in SemihostFileWrite() [all …]
|
/device/linaro/bootloader/OpenPlatformPkg/Platforms/AMD/Styx/AcpiTables/ |
D | Dsdt.c | 45 UINTN Bytes, Length; in AmlGetPkgLength() local 50 Length = (UINTN)Buffer[0]; in AmlGetPkgLength() 54 Length = ShiftLeftByteToUlong(Buffer[1], 4) + in AmlGetPkgLength() 59 Length = ShiftLeftByteToUlong(Buffer[2], 12) + in AmlGetPkgLength() 65 Length = ShiftLeftByteToUlong(Buffer[3], 20) + in AmlGetPkgLength() 72 *PkgLength = Length; in AmlGetPkgLength() 79 IN UINTN Length, in AmlSearchStringPackage() argument 86 if (Length > StrLength ) { in AmlSearchStringPackage() 87 Length -= StrLength; in AmlSearchStringPackage() 88 while (AsciiStrCmp((CHAR8 *)Buffer, String) != 0 && Length) { in AmlSearchStringPackage() [all …]
|
/device/linaro/bootloader/edk2/MdePkg/Include/Library/ |
D | BaseMemoryLib.h | 44 IN UINTN Length 65 IN UINTN Length, 92 IN UINTN Length, 119 IN UINTN Length, 146 IN UINTN Length, 173 IN UINTN Length, 195 IN UINTN Length 225 IN UINTN Length 251 IN UINTN Length, 280 IN UINTN Length, [all …]
|
/device/linaro/bootloader/edk2/MdePkg/Library/BaseCacheMaintenanceLib/ |
D | X86Cache.c | 62 IN UINTN Length in InvalidateInstructionCacheRange() argument 65 if (Length == 0) { in InvalidateInstructionCacheRange() 69 ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Address)); in InvalidateInstructionCacheRange() 122 IN UINTN Length in WriteBackInvalidateDataCacheRange() argument 131 if (Length == 0) { in WriteBackInvalidateDataCacheRange() 135 ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Address)); in WriteBackInvalidateDataCacheRange() 156 End = (Start + Length + (CacheLineSize - 1)) & ~(CacheLineSize - 1); in WriteBackInvalidateDataCacheRange() 213 IN UINTN Length in WriteBackDataCacheRange() argument 216 return WriteBackInvalidateDataCacheRange (Address, Length); in WriteBackDataCacheRange() 270 IN UINTN Length in InvalidateDataCacheRange() argument [all …]
|
/device/linaro/bootloader/edk2/ArmPkg/Library/ArmCacheMaintenanceLib/ |
D | ArmCacheMaintenanceLib.c | 24 IN UINTN Length, in CacheRangeOperation() argument 33 UINTN EndAddress = (UINTN)Start + Length; in CacheRangeOperation() 65 IN UINTN Length in InvalidateInstructionCacheRange() argument 68 CacheRangeOperation (Address, Length, ArmCleanDataCacheEntryToPoUByMVA, in InvalidateInstructionCacheRange() 70 CacheRangeOperation (Address, Length, in InvalidateInstructionCacheRange() 92 IN UINTN Length in WriteBackInvalidateDataCacheRange() argument 95 CacheRangeOperation(Address, Length, ArmCleanInvalidateDataCacheEntryByMVA, in WriteBackInvalidateDataCacheRange() 113 IN UINTN Length in WriteBackDataCacheRange() argument 116 CacheRangeOperation(Address, Length, ArmCleanDataCacheEntryByMVA, in WriteBackDataCacheRange() 125 IN UINTN Length in InvalidateDataCacheRange() argument [all …]
|