/device/linaro/bootloader/edk2/MdeModulePkg/Core/Dxe/Misc/ |
D | DebugImageInfo.c | 46 UINTN UnalignedPages; in CoreInitializeDebugImageInfoTable() local 98 UnalignedPages = EFI_SIZE_TO_PAGES (AlignedMemory - (UINTN)Memory); in CoreInitializeDebugImageInfoTable() 99 if (UnalignedPages > 0) { in CoreInitializeDebugImageInfoTable() 103 Status = CoreFreePages (Memory, UnalignedPages); in CoreInitializeDebugImageInfoTable() 107 UnalignedPages = RealPages - Pages - UnalignedPages; in CoreInitializeDebugImageInfoTable() 108 if (UnalignedPages > 0) { in CoreInitializeDebugImageInfoTable() 112 Status = CoreFreePages (Memory, UnalignedPages); in CoreInitializeDebugImageInfoTable()
|
/device/linaro/bootloader/edk2/EmulatorPkg/Library/GuardUefiMemoryAllocationLib/ |
D | MemoryAllocationLib.c | 193 UINTN UnalignedPages; in InternalAllocateAlignedPages() local 220 UnalignedPages = EFI_SIZE_TO_PAGES (AlignedMemory - (UINTN) Memory); in InternalAllocateAlignedPages() 221 if (UnalignedPages > 0) { in InternalAllocateAlignedPages() 225 FreePages (Memory, UnalignedPages); in InternalAllocateAlignedPages() 228 UnalignedPages = RealPages - Pages - UnalignedPages; in InternalAllocateAlignedPages() 229 if (UnalignedPages > 0) { in InternalAllocateAlignedPages() 233 FreePages (Memory, UnalignedPages); in InternalAllocateAlignedPages()
|
/device/linaro/bootloader/edk2/MdePkg/Library/UefiMemoryAllocationLib/ |
D | MemoryAllocationLib.c | 184 UINTN UnalignedPages; in InternalAllocateAlignedPages() local 211 UnalignedPages = EFI_SIZE_TO_PAGES (AlignedMemory - (UINTN) Memory); in InternalAllocateAlignedPages() 212 if (UnalignedPages > 0) { in InternalAllocateAlignedPages() 216 Status = gBS->FreePages (Memory, UnalignedPages); in InternalAllocateAlignedPages() 220 UnalignedPages = RealPages - Pages - UnalignedPages; in InternalAllocateAlignedPages() 221 if (UnalignedPages > 0) { in InternalAllocateAlignedPages() 225 Status = gBS->FreePages (Memory, UnalignedPages); in InternalAllocateAlignedPages()
|
/device/linaro/bootloader/edk2/MdePkg/Library/SmmMemoryAllocationLib/ |
D | MemoryAllocationLib.c | 311 UINTN UnalignedPages; in InternalAllocateAlignedPages() local 338 UnalignedPages = EFI_SIZE_TO_PAGES (AlignedMemory - (UINTN) Memory); in InternalAllocateAlignedPages() 339 if (UnalignedPages > 0) { in InternalAllocateAlignedPages() 343 Status = gSmst->SmmFreePages (Memory, UnalignedPages); in InternalAllocateAlignedPages() 347 UnalignedPages = RealPages - Pages - UnalignedPages; in InternalAllocateAlignedPages() 348 if (UnalignedPages > 0) { in InternalAllocateAlignedPages() 352 Status = gSmst->SmmFreePages (Memory, UnalignedPages); in InternalAllocateAlignedPages()
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/DxeMemoryAllocationLib/ |
D | MemoryAllocationLib.c | 182 UINTN UnalignedPages; in InternalAllocateAlignedPages() local 209 UnalignedPages = EFI_SIZE_TO_PAGES ((UINTN) Memory - AlignedMemory); in InternalAllocateAlignedPages() 210 if (UnalignedPages > 0) { in InternalAllocateAlignedPages() 214 Status = (gBS->FreePages) (Memory, UnalignedPages); in InternalAllocateAlignedPages() 218 UnalignedPages = RealPages - Pages - UnalignedPages; in InternalAllocateAlignedPages() 219 if (UnalignedPages > 0) { in InternalAllocateAlignedPages() 223 Status = (gBS->FreePages) (Memory, UnalignedPages); in InternalAllocateAlignedPages()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Library/DxeCoreMemoryAllocationLib/ |
D | MemoryAllocationLib.c | 226 UINTN UnalignedPages; in InternalAllocateAlignedPages() local 253 UnalignedPages = EFI_SIZE_TO_PAGES (AlignedMemory - (UINTN) Memory); in InternalAllocateAlignedPages() 254 if (UnalignedPages > 0) { in InternalAllocateAlignedPages() 258 Status = CoreFreePages (Memory, UnalignedPages); in InternalAllocateAlignedPages() 262 UnalignedPages = RealPages - Pages - UnalignedPages; in InternalAllocateAlignedPages() 263 if (UnalignedPages > 0) { in InternalAllocateAlignedPages() 267 Status = CoreFreePages (Memory, UnalignedPages); in InternalAllocateAlignedPages()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Library/UefiMemoryAllocationProfileLib/ |
D | MemoryAllocationLib.c | 225 UINTN UnalignedPages; in InternalAllocateAlignedPages() local 252 UnalignedPages = EFI_SIZE_TO_PAGES (AlignedMemory - (UINTN) Memory); in InternalAllocateAlignedPages() 253 if (UnalignedPages > 0) { in InternalAllocateAlignedPages() 257 Status = gBS->FreePages (Memory, UnalignedPages); in InternalAllocateAlignedPages() 261 UnalignedPages = RealPages - Pages - UnalignedPages; in InternalAllocateAlignedPages() 262 if (UnalignedPages > 0) { in InternalAllocateAlignedPages() 266 Status = gBS->FreePages (Memory, UnalignedPages); in InternalAllocateAlignedPages()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/ |
D | MemoryAllocationLib.c | 261 UINTN UnalignedPages; in InternalAllocateAlignedPages() local 288 UnalignedPages = EFI_SIZE_TO_PAGES (AlignedMemory - (UINTN) Memory); in InternalAllocateAlignedPages() 289 if (UnalignedPages > 0) { in InternalAllocateAlignedPages() 293 Status = SmmFreePages (Memory, UnalignedPages); in InternalAllocateAlignedPages() 297 UnalignedPages = RealPages - Pages - UnalignedPages; in InternalAllocateAlignedPages() 298 if (UnalignedPages > 0) { in InternalAllocateAlignedPages() 302 Status = SmmFreePages (Memory, UnalignedPages); in InternalAllocateAlignedPages()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Library/SmmMemoryAllocationProfileLib/ |
D | MemoryAllocationLib.c | 339 UINTN UnalignedPages; in InternalAllocateAlignedPages() local 366 UnalignedPages = EFI_SIZE_TO_PAGES (AlignedMemory - (UINTN) Memory); in InternalAllocateAlignedPages() 367 if (UnalignedPages > 0) { in InternalAllocateAlignedPages() 371 Status = gSmst->SmmFreePages (Memory, UnalignedPages); in InternalAllocateAlignedPages() 375 UnalignedPages = RealPages - Pages - UnalignedPages; in InternalAllocateAlignedPages() 376 if (UnalignedPages > 0) { in InternalAllocateAlignedPages() 380 Status = gSmst->SmmFreePages (Memory, UnalignedPages); in InternalAllocateAlignedPages()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/XhciDxe/ |
D | UsbHcMem.c | 634 UINTN UnalignedPages; in UsbHcAllocateAlignedPages() local 673 UnalignedPages = EFI_SIZE_TO_PAGES (AlignedMemory - (UINTN) Memory); in UsbHcAllocateAlignedPages() 674 if (UnalignedPages > 0) { in UsbHcAllocateAlignedPages() 678 Status = PciIo->FreeBuffer (PciIo, UnalignedPages, Memory); in UsbHcAllocateAlignedPages() 682 UnalignedPages = RealPages - Pages - UnalignedPages; in UsbHcAllocateAlignedPages() 683 if (UnalignedPages > 0) { in UsbHcAllocateAlignedPages() 687 Status = PciIo->FreeBuffer (PciIo, UnalignedPages, Memory); in UsbHcAllocateAlignedPages()
|
/device/linaro/bootloader/edk2/ArmPkg/Library/DebugUncachedMemoryAllocationLib/ |
D | DebugUncachedMemoryAllocationLib.c | 214 UINTN UnalignedPages; in UncachedInternalAllocateAlignedPages() local 241 UnalignedPages = EFI_SIZE_TO_PAGES (AlignedMemory - (UINTN) Memory); in UncachedInternalAllocateAlignedPages() 242 if (UnalignedPages > 0) { in UncachedInternalAllocateAlignedPages() 246 Status = gBS->FreePages (Memory, UnalignedPages); in UncachedInternalAllocateAlignedPages() 250 UnalignedPages = RealPages - Pages - UnalignedPages; in UncachedInternalAllocateAlignedPages() 251 if (UnalignedPages > 0) { in UncachedInternalAllocateAlignedPages() 255 Status = gBS->FreePages (Memory, UnalignedPages); in UncachedInternalAllocateAlignedPages()
|
/device/linaro/bootloader/edk2/UefiCpuPkg/PiSmmCpuDxeSmm/ |
D | PiSmmCpuDxeSmm.c | 1236 UINTN UnalignedPages; in AllocateAlignedCodePages() local 1263 UnalignedPages = EFI_SIZE_TO_PAGES (AlignedMemory - (UINTN) Memory); in AllocateAlignedCodePages() 1264 if (UnalignedPages > 0) { in AllocateAlignedCodePages() 1268 Status = gSmst->SmmFreePages (Memory, UnalignedPages); in AllocateAlignedCodePages() 1272 UnalignedPages = RealPages - Pages - UnalignedPages; in AllocateAlignedCodePages() 1273 if (UnalignedPages > 0) { in AllocateAlignedCodePages() 1277 Status = gSmst->SmmFreePages (Memory, UnalignedPages); in AllocateAlignedCodePages()
|