Home
last modified time | relevance | path

Searched refs:TranslationTable (Results 1 – 5 of 5) sorted by relevance

/device/linaro/bootloader/edk2/ArmPkg/Library/ArmLib/ArmV7/
DArmV7Mmu.c94 UINT32 TranslationTable; in PopulateLevel2PageTable() local
128 TranslationTable = *SectionEntry & TT_DESCRIPTOR_SECTION_PAGETABLE_ADDRESS_MASK; in PopulateLevel2PageTable()
133TranslationTable = (UINTN)AllocatePages(EFI_SIZE_TO_PAGES(TRANSLATION_TABLE_PAGE_SIZE + TRANSLATIO… in PopulateLevel2PageTable()
134TranslationTable = ((UINTN)TranslationTable + TRANSLATION_TABLE_PAGE_ALIGNMENT_MASK) & ~TRANSLATIO… in PopulateLevel2PageTable()
142 PageEntry = (UINT32*)TranslationTable; in PopulateLevel2PageTable()
148 *SectionEntry = (TranslationTable & TT_DESCRIPTOR_SECTION_PAGETABLE_ADDRESS_MASK) | in PopulateLevel2PageTable()
157TranslationTable = (UINTN)AllocatePages(EFI_SIZE_TO_PAGES(TRANSLATION_TABLE_PAGE_SIZE + TRANSLATIO… in PopulateLevel2PageTable()
158TranslationTable = ((UINTN)TranslationTable + TRANSLATION_TABLE_PAGE_ALIGNMENT_MASK) & ~TRANSLATIO… in PopulateLevel2PageTable()
160 ZeroMem ((VOID *)TranslationTable, TRANSLATION_TABLE_PAGE_SIZE); in PopulateLevel2PageTable()
162 *SectionEntry = (TranslationTable & TT_DESCRIPTOR_SECTION_PAGETABLE_ADDRESS_MASK) | in PopulateLevel2PageTable()
[all …]
/device/linaro/bootloader/edk2/ArmPlatformPkg/ArmJunoPkg/Drivers/PciHostBridgeDxe/
DXPressRich3.c69 UINTN TranslationTable; in HWPciRbInit() local
87 TranslationTable = VEXPRESS_ATR_PCIE_WIN0; in HWPciRbInit()
90 …SetTranslationAddressEntry (CpuIo, TranslationTable, ARM_JUNO_GIV2M_MSI_BASE, ARM_JUNO_GIV2M_MSI_B… in HWPciRbInit()
92 TranslationTable += PCI_ATR_ENTRY_SIZE; in HWPciRbInit()
95 …SetTranslationAddressEntry (CpuIo, TranslationTable, PcdGet64 (PcdSystemMemoryBase), PcdGet64 (Pcd… in HWPciRbInit()
97 TranslationTable += PCI_ATR_ENTRY_SIZE; in HWPciRbInit()
98 …SetTranslationAddressEntry (CpuIo, TranslationTable, ARM_JUNO_EXTRA_SYSTEM_MEMORY_BASE, ARM_JUNO_E… in HWPciRbInit()
104 TranslationTable = VEXPRESS_ATR_AXI4_SLV1; in HWPciRbInit()
107 …SetTranslationAddressEntry (CpuIo, TranslationTable, PCI_ECAM_BASE, PCI_ECAM_BASE, PCI_ECAM_SIZE, … in HWPciRbInit()
108 TranslationTable += PCI_ATR_ENTRY_SIZE; in HWPciRbInit()
[all …]
/device/linaro/bootloader/edk2/ArmPkg/Library/ArmLib/AArch64/
DAArch64Mmu.c212 UINT64 *TranslationTable; in GetBlockEntryListFromAddress() local
274 TranslationTable = RootTable; in GetBlockEntryListFromAddress()
276 BlockEntry = (UINT64*)TT_GET_ENTRY_FOR_ADDRESS (TranslationTable, IndexLevel, RegionStart); in GetBlockEntryListFromAddress()
280 TranslationTable = (UINT64*)(*BlockEntry & TT_ADDRESS_MASK_DESCRIPTION_TABLE); in GetBlockEntryListFromAddress()
320TranslationTable = (UINT64*)AllocateAlignedPages (EFI_SIZE_TO_PAGES(TT_ENTRY_COUNT * sizeof(UINT64… in GetBlockEntryListFromAddress()
321 if (TranslationTable == NULL) { in GetBlockEntryListFromAddress()
326 SubTableBlockEntry = TranslationTable; in GetBlockEntryListFromAddress()
333 …*BlockEntry = ((UINTN)TranslationTable & TT_ADDRESS_MASK_DESCRIPTION_TABLE) | TableAttributes | TT… in GetBlockEntryListFromAddress()
342TranslationTable = (UINT64*)AllocateAlignedPages (EFI_SIZE_TO_PAGES(TT_ENTRY_COUNT * sizeof(UINT64… in GetBlockEntryListFromAddress()
343 if (TranslationTable == NULL) { in GetBlockEntryListFromAddress()
[all …]
/device/linaro/bootloader/edk2/ArmPkg/Include/Chipset/
DAArch64Mmu.h39 #define TT_GET_ENTRY_FOR_ADDRESS(TranslationTable, Level, Address) \ argument
40 …((UINTN)(TranslationTable) + ((((UINTN)(Address) >> TT_ADDRESS_OFFSET_AT_LEVEL(Level)) & (BIT9-1))…
46 #define TT_LAST_BLOCK_ADDRESS(TranslationTable, EntryCount) \ argument
47 ((UINT64*)((EFI_PHYSICAL_ADDRESS)(TranslationTable) + (((EntryCount) - 1) * sizeof(UINT64))))
/device/linaro/bootloader/edk2/ArmPkg/Drivers/CpuDxe/AArch64/
DMmu.c243 IN UINT64 *TranslationTable, in GetMemoryRegionRec() argument
264 BlockEntry = (UINT64*)TT_GET_ENTRY_FOR_ADDRESS (TranslationTable, TableLevel, *BaseAddress); in GetMemoryRegionRec()
320 UINT64 *TranslationTable; in GetMemoryRegion() local
327 TranslationTable = ArmGetTTBR0BaseAddress (); in GetMemoryRegion()
333 Status = GetMemoryRegionRec (TranslationTable, TableLevel, in GetMemoryRegion()
334 (UINTN*)TT_LAST_BLOCK_ADDRESS(TranslationTable, EntryCount), in GetMemoryRegion()