/device/linaro/bootloader/edk2/DuetPkg/PciRootBridgeNoEnumerationDxe/ |
D | PcatPciRootBridge.c | 60 UINT64 Limit; in InitializePcatPciRootBridge() local 253 Limit = (((UINT32)PciConfigurationHeader.Bridge.IoLimit & 0xf0) << 8) | 0x0fff; in InitializePcatPciRootBridge() 256 Limit |= ((UINT32)PciConfigurationHeader.Bridge.IoLimitUpper16 << 16); in InitializePcatPciRootBridge() 258 if (Base < Limit) { in InitializePcatPciRootBridge() 262 if (PrivateData->IoLimit < Limit) { in InitializePcatPciRootBridge() 263 PrivateData->IoLimit = Limit; in InitializePcatPciRootBridge() 271 Limit = (((UINT32)PciConfigurationHeader.Bridge.MemoryLimit & 0xfff0) << 16) | 0xfffff; in InitializePcatPciRootBridge() 272 if (Base < Limit) { in InitializePcatPciRootBridge() 276 if (PrivateData->MemLimit < Limit) { in InitializePcatPciRootBridge() 277 PrivateData->MemLimit = Limit; in InitializePcatPciRootBridge() [all …]
|
/device/linaro/bootloader/edk2/UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/ |
D | SmmFuncsArch.c | 49 gcSmiGdtr.Limit += (UINT16)(2 * sizeof (IA32_SEGMENT_DESCRIPTOR)); in InitGdt() 51 GdtTssTableSize = (gcSmiGdtr.Limit + 1 + TSS_SIZE * 2 + 7) & ~7; // 8 bytes aligned in InitGdt() 57 …ables + GdtTableStepSize * Index, (VOID*)(UINTN)gcSmiGdtr.Base, gcSmiGdtr.Limit + 1 + TSS_SIZE * 2… in InitGdt() 61 TssBase = (UINTN)(GdtTssTables + GdtTableStepSize * Index + gcSmiGdtr.Limit + 1); in InitGdt() 84 GdtTssTableSize = gcSmiGdtr.Limit + 1; in InitGdt() 90 …pyMem (GdtTssTables + GdtTableStepSize * Index, (VOID*)(UINTN)gcSmiGdtr.Base, gcSmiGdtr.Limit + 1); in InitGdt()
|
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiDpLib/ |
D | DpInternal.h | 204 IN UINTN Limit, 228 IN UINTN Limit, 318 IN UINTN Limit, 342 IN UINTN Limit,
|
D | DpProfile.c | 52 IN UINTN Limit, in DumpAllProfile() argument 88 IN UINTN Limit, in DumpRawProfile() argument
|
/device/linaro/bootloader/edk2/PerformancePkg/Dp_App/ |
D | DpInternal.h | 221 IN UINTN Limit, 245 IN UINTN Limit, 335 IN UINTN Limit, 359 IN UINTN Limit,
|
D | DpProfile.c | 52 IN UINTN Limit, in DumpAllProfile() argument 89 IN UINTN Limit, in DumpRawProfile() argument
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/IScsiDxe/ |
D | Md5.c | 239 UINTN Limit; in MD5UpdateBlock() local 241 for (Limit = 64 - Md5Ctx->Count; DataLen >= 64 - Md5Ctx->Count; Limit = 64) { in MD5UpdateBlock() 242 CopyMem (Md5Ctx->M + Md5Ctx->Count, (VOID *)Data, Limit); in MD5UpdateBlock() 246 Data += Limit; in MD5UpdateBlock() 247 DataLen -= Limit; in MD5UpdateBlock()
|
/device/linaro/bootloader/edk2/UefiCpuPkg/PiSmmCpuDxeSmm/X64/ |
D | SmmFuncsArch.c | 43 GdtTssTableSize = (gcSmiGdtr.Limit + 1 + TSS_SIZE + 7) & ~7; // 8 bytes aligned in InitGdt() 49 …CopyMem (GdtTssTables + GdtTableStepSize * Index, (VOID*)(UINTN)gcSmiGdtr.Base, gcSmiGdtr.Limit + … in InitGdt() 54 TssBase = (UINTN)(GdtTssTables + GdtTableStepSize * Index + gcSmiGdtr.Limit + 1); in InitGdt()
|
/device/linaro/bootloader/edk2/StdLib/LibC/Locale/ |
D | multibyte_Utf8.c | 301 EstimateWtoM(const wchar_t * Src, size_t Limit, size_t *NumChar) in EstimateWtoM() argument 312 ((size_t)(Estimate + NumBytes) < Limit)) in EstimateWtoM() 712 size_t Limit in mbstowcs() argument 719 return mbsrtowcs(Dest, &Src, Limit, NULL); in mbstowcs() 896 size_t Limit, in wcsrtombs() argument 906 MaxBytes = (ssize_t)Limit; in wcsrtombs() 975 size_t Limit in wcstombs() argument 979 return wcsrtombs(Dest, &Src, Limit, NULL); in wcstombs()
|
/device/linaro/bootloader/edk2/EmulatorPkg/CpuRuntimeDxe/ |
D | CpuIo.c | 44 IN UINT64 Limit 301 IN UINT64 Limit in CpuIoCheckAddressRange() argument 306 if (Address > Limit) { in CpuIoCheckAddressRange() 318 if ((Address - 1 + LShiftU64 (Count, Width)) > Limit) { in CpuIoCheckAddressRange()
|
/device/linaro/bootloader/edk2/Nt32Pkg/CpuRuntimeDxe/ |
D | CpuIo.c | 37 IN UINT64 Limit 290 IN UINT64 Limit in CpuIoCheckAddressRange() argument 317 if (Address > Limit) { in CpuIoCheckAddressRange() 329 if (Address - 1 + ((UINTN)1 << Width) * Count > Limit) { in CpuIoCheckAddressRange()
|
/device/linaro/bootloader/edk2/ShellPkg/Library/UefiShellDebug1CommandsLib/ |
D | EditInputBar.c | 68 UINTN Limit; in InputBarPrintInput() local 75 Limit = LastColumn - mPromptLen - 1; in InputBarPrintInput() 82 if (Size <= Limit) { in InputBarPrintInput() 85 Buffer = mReturnString + Size - Limit; in InputBarPrintInput() 96 for (Index = Size; Index < Limit; Index++) { in InputBarPrintInput()
|
/device/linaro/bootloader/edk2/OvmfPkg/Library/LoadLinuxLib/ |
D | LinuxGdt.c | 174 GdtPtr.Limit = (UINT16) (sizeof (GdtTemplate) - 1); in SetLinuxDescriptorTables() 178 IdtPtr.Limit = (UINT16) 0; in SetLinuxDescriptorTables()
|
/device/linaro/bootloader/edk2/StdLib/Include/ |
D | stdlib.h | 832 size_t mbstowcs(wchar_t * __restrict Dest, const char * __restrict Src, size_t Limit); 859 size_t wcstombs(char * __restrict Dest, const wchar_t * __restrict Src, size_t Limit); 937 EstimateWtoM(const wchar_t * Src, size_t Limit, size_t *NumChar);
|
/device/linaro/bootloader/edk2/MdePkg/Library/PeiServicesTablePointerLibIdt/ |
D | PeiServicesTablePointer.c | 117 EFI_SIZE_TO_PAGES(Idtr.Limit + 1 + sizeof (UINTN)), in MigratePeiServicesTablePointer() 124 …CopyMem ((VOID *) (UINTN) IdtBase, (VOID *) (Idtr.Base - sizeof (UINTN)), Idtr.Limit + 1 + sizeof … in MigratePeiServicesTablePointer()
|
/device/linaro/bootloader/edk2/SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgent/ |
D | DxeDebugAgentLib.c | 271 IdtEntryCount = (UINT16) ((Idtr.Limit + 1) / sizeof (IA32_IDT_GATE_DESCRIPTOR)); in SetupDebugAgentEnvironment() 277 CopyMem (&mIdtEntryTable, (VOID *) Idtr.Base, Idtr.Limit + 1); in SetupDebugAgentEnvironment() 281 Idtr.Limit = (UINT16) (sizeof (IA32_IDT_GATE_DESCRIPTOR) * 33 - 1); in SetupDebugAgentEnvironment() 419 mSaveIdtTableSize = IdtDescriptor.Limit + 1; in InitializeDebugAgent() 470 IdtDescriptor.Limit = (UINT16) (mSaveIdtTableSize - 1); in InitializeDebugAgent()
|
/device/linaro/bootloader/edk2/UefiCpuPkg/CpuIo2Smm/ |
D | CpuIo2Smm.c | 73 UINT64 Limit; in CpuIoCheckParameter() local 111 Limit = (MmioOperation ? MAX_ADDRESS : MAX_IO_PORT_ADDRESS); in CpuIoCheckParameter() 113 if (Address > Limit) { in CpuIoCheckParameter() 117 MaxCount = RShiftU64 (Limit, Width); in CpuIoCheckParameter()
|
/device/linaro/bootloader/edk2/UefiCpuPkg/CpuIo2Dxe/ |
D | CpuIo2Dxe.c | 107 UINT64 Limit; in CpuIoCheckParameter() local 161 Limit = (MmioOperation ? MAX_ADDRESS : MAX_IO_PORT_ADDRESS); in CpuIoCheckParameter() 163 if (Address > Limit) { in CpuIoCheckParameter() 167 MaxCount = RShiftU64 (Limit, Width); in CpuIoCheckParameter()
|
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Universal/CpuIoDxe/ |
D | CpuIo.c | 107 UINT64 Limit; in CpuIoCheckParameter() local 161 Limit = (MmioOperation ? MAX_ADDRESS : MAX_IO_PORT_ADDRESS); in CpuIoCheckParameter() 163 if (Address > Limit) { in CpuIoCheckParameter() 167 MaxCount = RShiftU64 (Limit, Width); in CpuIoCheckParameter()
|
/device/linaro/bootloader/edk2/SourceLevelDebugPkg/Library/DebugAgent/SmmDebugAgent/ |
D | SmmDebugAgentLib.c | 339 IdtEntryCount = (UINT16) ((Idtr.Limit + 1) / sizeof (IA32_IDT_GATE_DESCRIPTOR)); in InitializeDebugAgent() 341 Idtr.Limit = (UINT16) (sizeof (IA32_IDT_GATE_DESCRIPTOR) * 33 - 1); in InitializeDebugAgent() 343 ZeroMem (&mIdtEntryTable, Idtr.Limit + 1); in InitializeDebugAgent()
|
/device/linaro/bootloader/edk2/UefiCpuPkg/Library/CpuExceptionHandlerLib/ |
D | DxeException.c | 99 IdtEntryCount = (IdtDescriptor.Limit + 1) / sizeof (IA32_IDT_GATE_DESCRIPTOR); in InitializeCpuInterruptHandlers() 133 IdtDescriptor.Limit = (UINT16) (sizeof (IA32_IDT_GATE_DESCRIPTOR) * CPU_INTERRUPT_NUM - 1); in InitializeCpuInterruptHandlers()
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Compatibility/MpServicesOnFrameworkMpServicesThunk/ |
D | MpServicesOnFrameworkMpServicesThunk.c | 1483 EFI_SIZE_TO_PAGES ((GdtrForBSP.Limit + 1) + (IdtrForBSP.Limit + 1)), in PrepareAPStartupVector() 1488 IdtForAP = (UINTN) GdtForAP + GdtrForBSP.Limit + 1; in PrepareAPStartupVector() 1490 CopyMem ((VOID *) (UINTN) GdtForAP, (VOID *) GdtrForBSP.Base, GdtrForBSP.Limit + 1); in PrepareAPStartupVector() 1491 CopyMem ((VOID *) (UINTN) IdtForAP, (VOID *) IdtrForBSP.Base, IdtrForBSP.Limit + 1); in PrepareAPStartupVector() 1494 mExchangeInfo->GdtrProfile.Limit = GdtrForBSP.Limit; in PrepareAPStartupVector() 1496 mExchangeInfo->IdtrProfile.Limit = IdtrForBSP.Limit; in PrepareAPStartupVector()
|
/device/linaro/bootloader/edk2/UefiCpuPkg/CpuDxe/ |
D | CpuGdt.c | 152 gdtPtr.Limit = (UINT16) (sizeof (GdtTemplate) - 1); in InitGlobalDescriptorTable()
|
/device/linaro/bootloader/edk2/UefiCpuPkg/PiSmmCpuDxeSmm/ |
D | PiSmmCpuDxeSmm.c | 408 gcSmiInitGdtr.Limit = gcSmiGdtr.Limit; in SmmRelocateBases() 510 X64Idtr.Limit = (UINT16) (sizeof (IA32_IDT_GATE_DESCRIPTOR) * 32 - 1); in SmmRestoreCpu() 724 …mGdtForAp = AllocatePool ((Gdtr->Limit + 1) + (Idtr->Limit + 1) + mAcpiCpuData.ApMachineCheckHand… in SmmReadyToLockEventNotify() 726 mIdtForAp = (VOID *) ((UINTN)mGdtForAp + (Gdtr->Limit + 1)); in SmmReadyToLockEventNotify() 727 mMachineCheckHandlerForAp = (VOID *) ((UINTN)mIdtForAp + (Idtr->Limit + 1)); in SmmReadyToLockEventNotify() 729 CopyMem (mGdtForAp, (VOID *)Gdtr->Base, Gdtr->Limit + 1); in SmmReadyToLockEventNotify() 730 CopyMem (mIdtForAp, (VOID *)Idtr->Base, Idtr->Limit + 1); in SmmReadyToLockEventNotify()
|
/device/linaro/bootloader/edk2/QuarkPlatformPkg/Library/PlatformHelperLib/ |
D | PlatformHelperLib.c | 175 UINT32 Limit; in PlatformIsSpiRangeProtected() local 184 Limit = SpiBaseAddress + (Length - 1); in PlatformIsSpiRangeProtected() 190 if (SpiBaseAddress >= ProtectedBase && Limit <= ProtectedLimit) { in PlatformIsSpiRangeProtected()
|