Searched refs:agaw (Results 1 – 5 of 5) sorted by relevance
/linux-5.19.10/drivers/iommu/intel/ |
D | pasid.c | 569 pasid_set_address_width(pte, iommu->agaw); in intel_pasid_setup_first_level() 588 int agaw; in iommu_skip_agaw() local 590 for (agaw = domain->agaw; agaw > iommu->agaw; agaw--) { in iommu_skip_agaw() 596 return agaw; in iommu_skip_agaw() 609 int agaw; in intel_pasid_setup_second_level() local 623 agaw = iommu_skip_agaw(domain, iommu, &pgd); in intel_pasid_setup_second_level() 624 if (agaw < 0) { in intel_pasid_setup_second_level() 645 pasid_set_address_width(pte, agaw); in intel_pasid_setup_second_level() 684 pasid_set_address_width(pte, iommu->agaw); in intel_pasid_setup_pass_through()
|
D | iommu.c | 69 static inline int agaw_to_level(int agaw) in agaw_to_level() argument 71 return agaw + 2; in agaw_to_level() 74 static inline int agaw_to_width(int agaw) in agaw_to_width() argument 76 return min_t(int, 30 + agaw * LEVEL_STRIDE, MAX_AGAW_WIDTH); in agaw_to_width() 408 int addr_width = agaw_to_width(domain->agaw) - VTD_PAGE_SHIFT; in domain_pfn_supported() 439 int agaw; in __iommu_calculate_agaw() local 442 for (agaw = width_to_agaw(max_gaw); agaw >= 0; agaw--) { in __iommu_calculate_agaw() 443 if (test_bit(agaw, &sagaw)) in __iommu_calculate_agaw() 447 return agaw; in __iommu_calculate_agaw() 879 level = agaw_to_level(domain->agaw); in pgtable_walk() [all …]
|
D | dmar.c | 1052 int agaw = -1; in alloc_iommu() local 1085 agaw = iommu_calculate_agaw(iommu); in alloc_iommu() 1086 if (agaw < 0) { in alloc_iommu() 1098 agaw = -1; in alloc_iommu() 1101 iommu->agaw = agaw; in alloc_iommu()
|
D | debugfs.c | 359 pgtable_walk_level(m, domain->pgd, domain->agaw + 2, 0, path); in show_device_domain_translation()
|
/linux-5.19.10/include/linux/ |
D | intel-iommu.h | 550 int agaw; member 572 int agaw; /* agaw of this iommu */ member
|