Lines Matching refs:aper_base
262 u64 aper_base = 0, last_aper_base = 0; in early_gart_iommu_check() local
288 aper_base = read_pci_config(bus, slot, 3, AMD64_GARTAPERTUREBASE) & 0x7fff; in early_gart_iommu_check()
289 aper_base <<= 25; in early_gart_iommu_check()
293 (aper_base != last_aper_base) || in early_gart_iommu_check()
301 last_aper_base = aper_base; in early_gart_iommu_check()
310 if (!aper_base || !aper_size || aper_base + aper_size > 0x100000000UL) in early_gart_iommu_check()
314 if (e820_any_mapped(aper_base, aper_base + aper_size, in early_gart_iommu_check()
318 aper_base, aper_base + aper_size - 1); in early_gart_iommu_check()
319 e820_add_region(aper_base, aper_size, E820_RESERVED); in early_gart_iommu_check()
354 u64 aper_base, last_aper_base = 0; in gart_iommu_hole_init() local
400 aper_base = read_pci_config(bus, slot, 3, AMD64_GARTAPERTUREBASE) & 0x7fff; in gart_iommu_hole_init()
401 aper_base <<= 25; in gart_iommu_hole_init()
404 node, aper_base, aper_base + aper_size - 1, in gart_iommu_hole_init()
408 if (!aperture_valid(aper_base, aper_size, 64<<20)) { in gart_iommu_hole_init()
410 agp_aper_base == aper_base && in gart_iommu_hole_init()
428 (last_aper_base && aper_base != last_aper_base)) { in gart_iommu_hole_init()
433 last_aper_base = aper_base; in gart_iommu_hole_init()