Lines Matching refs:aper_size
496 static __init unsigned long check_iommu_size(unsigned long aper, u64 aper_size) in check_iommu_size() argument
501 iommu_size = aper_size; in check_iommu_size()
520 unsigned aper_size = 0, aper_base_32, aper_order; in read_aperture() local
530 aper_size = (32 * 1024 * 1024) << aper_order; in read_aperture()
531 if (aper_base + aper_size > 0x100000000UL || !aper_size) in read_aperture()
534 *size = aper_size; in read_aperture()
614 unsigned aper_size, gatt_size, new_aper_size; in init_amd_gatt() local
622 aper_size = aper_base = info->aper_size = 0; in init_amd_gatt()
631 aper_size = new_aper_size; in init_amd_gatt()
634 if (aper_size != new_aper_size || aper_base != new_aper_base) in init_amd_gatt()
641 info->aper_size = aper_size >> 20; in init_amd_gatt()
643 gatt_size = (aper_size >> PAGE_SHIFT) * sizeof(u32); in init_amd_gatt()
658 aper_base, aper_size>>10); in init_amd_gatt()
711 unsigned long aper_base, aper_size; in gart_iommu_init() local
740 aper_size = info.aper_size << 20; in gart_iommu_init()
742 end_pfn = (aper_base>>PAGE_SHIFT) + (aper_size>>PAGE_SHIFT); in gart_iommu_init()
750 iommu_size = check_iommu_size(info.aper_base, aper_size); in gart_iommu_init()
762 iommu_start = aper_size - iommu_size; in gart_iommu_init()