Home
last modified time | relevance | path

Searched refs:UnalignedPages (Results 1 – 12 of 12) sorted by relevance

/device/linaro/bootloader/edk2/MdeModulePkg/Core/Dxe/Misc/
DDebugImageInfo.c46 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/
DMemoryAllocationLib.c193 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/
DMemoryAllocationLib.c184 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/
DMemoryAllocationLib.c311 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/
DMemoryAllocationLib.c182 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/
DMemoryAllocationLib.c226 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/
DMemoryAllocationLib.c225 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/
DMemoryAllocationLib.c261 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/
DMemoryAllocationLib.c339 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/
DUsbHcMem.c634 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/
DDebugUncachedMemoryAllocationLib.c214 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/
DPiSmmCpuDxeSmm.c1236 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()