Lines Matching refs:aper_base
262 u64 aper_base = 0, last_aper_base = 0; in early_gart_iommu_check() local
291 aper_base = read_pci_config(bus, slot, 3, AMD64_GARTAPERTUREBASE) & 0x7fff; in early_gart_iommu_check()
292 aper_base <<= 25; in early_gart_iommu_check()
296 (aper_base != last_aper_base) || in early_gart_iommu_check()
304 last_aper_base = aper_base; in early_gart_iommu_check()
313 if (!aper_base || !aper_size || aper_base + aper_size > 0x100000000UL) in early_gart_iommu_check()
317 if (e820_any_mapped(aper_base, aper_base + aper_size, in early_gart_iommu_check()
321 aper_base, aper_base + aper_size - 1); in early_gart_iommu_check()
322 e820_add_region(aper_base, aper_size, E820_RESERVED); in early_gart_iommu_check()
357 u64 aper_base, last_aper_base = 0; in gart_iommu_hole_init() local
406 aper_base = read_pci_config(bus, slot, 3, AMD64_GARTAPERTUREBASE) & 0x7fff; in gart_iommu_hole_init()
407 aper_base <<= 25; in gart_iommu_hole_init()
410 node, aper_base, aper_base + aper_size - 1, in gart_iommu_hole_init()
414 if (!aperture_valid(aper_base, aper_size, 64<<20)) { in gart_iommu_hole_init()
416 agp_aper_base == aper_base && in gart_iommu_hole_init()
434 (last_aper_base && aper_base != last_aper_base)) { in gart_iommu_hole_init()
439 last_aper_base = aper_base; in gart_iommu_hole_init()