Home
last modified time | relevance | path

Searched refs:MemoryRegion (Results 1 – 2 of 2) sorted by relevance

/device/linaro/bootloader/edk2/ArmPkg/Library/ArmMmuLib/Arm/
DArmMmuLibCore.c206 IN ARM_MEMORY_REGION_DESCRIPTOR *MemoryRegion in FillTranslationTable() argument
214 ASSERT(MemoryRegion->Length > 0); in FillTranslationTable()
216 if (MemoryRegion->PhysicalBase >= SIZE_4GB) { in FillTranslationTable()
220 PhysicalBase = MemoryRegion->PhysicalBase; in FillTranslationTable()
221 RemainLength = MIN(MemoryRegion->Length, SIZE_4GB - PhysicalBase); in FillTranslationTable()
223 switch (MemoryRegion->Attributes) { in FillTranslationTable()
258 …SectionEntry = TRANSLATION_TABLE_ENTRY_FOR_VIRTUAL_ADDRESS(TranslationTable, MemoryRegion->Virt… in FillTranslationTable()
268 … PopulateLevel2PageTable (SectionEntry++, PhysicalBase, RemainLength, MemoryRegion->Attributes); in FillTranslationTable()
275 … PopulateLevel2PageTable (SectionEntry++, PhysicalBase, RemainLength, MemoryRegion->Attributes); in FillTranslationTable()
/device/linaro/bootloader/edk2/ArmPkg/Library/ArmMmuLib/AArch64/
DArmMmuLibCore.c415 IN ARM_MEMORY_REGION_DESCRIPTOR *MemoryRegion in FillTranslationTable() argument
420 MemoryRegion->VirtualBase, in FillTranslationTable()
421 MemoryRegion->Length, in FillTranslationTable()
422 ArmMemoryAttributeToPageAttribute (MemoryRegion->Attributes) | TT_AF, in FillTranslationTable()
436 ARM_MEMORY_REGION_DESCRIPTOR MemoryRegion; in SetMemoryAttributes() local
439 MemoryRegion.PhysicalBase = BaseAddress; in SetMemoryAttributes()
440 MemoryRegion.VirtualBase = BaseAddress; in SetMemoryAttributes()
441 MemoryRegion.Length = Length; in SetMemoryAttributes()
442 MemoryRegion.Attributes = GcdAttributeToArmAttribute (Attributes); in SetMemoryAttributes()
446 Status = FillTranslationTable (TranslationTable, &MemoryRegion); in SetMemoryAttributes()