Searched refs:agaw (Results 1 – 4 of 4) sorted by relevance
/drivers/iommu/intel/ |
D | pasid.c | 649 pasid_set_address_width(pte, iommu->agaw); in intel_pasid_setup_first_level() 669 int agaw; in iommu_skip_agaw() local 671 for (agaw = domain->agaw; agaw > iommu->agaw; agaw--) { in iommu_skip_agaw() 677 return agaw; in iommu_skip_agaw() 690 int agaw; in intel_pasid_setup_second_level() local 704 agaw = iommu_skip_agaw(domain, iommu, &pgd); in intel_pasid_setup_second_level() 705 if (agaw < 0) { in intel_pasid_setup_second_level() 726 pasid_set_address_width(pte, agaw); in intel_pasid_setup_second_level() 768 pasid_set_address_width(pte, iommu->agaw); in intel_pasid_setup_pass_through() 853 int agaw; in intel_pasid_setup_nested() local [all …]
|
D | iommu.c | 89 static inline int agaw_to_level(int agaw) in agaw_to_level() argument 91 return agaw + 2; in agaw_to_level() 94 static inline int agaw_to_width(int agaw) in agaw_to_width() argument 96 return min_t(int, 30 + agaw * LEVEL_STRIDE, MAX_AGAW_WIDTH); in agaw_to_width() 528 int addr_width = agaw_to_width(domain->agaw) - VTD_PAGE_SHIFT; in domain_pfn_supported() 559 int agaw; in __iommu_calculate_agaw() local 562 for (agaw = width_to_agaw(max_gaw); agaw >= 0; agaw--) { in __iommu_calculate_agaw() 563 if (test_bit(agaw, &sagaw)) in __iommu_calculate_agaw() 567 return agaw; in __iommu_calculate_agaw() 1020 int level = agaw_to_level(domain->agaw); in pfn_to_dma_pte() [all …]
|
D | dmar.c | 1057 int agaw = -1; in alloc_iommu() local 1091 agaw = iommu_calculate_agaw(iommu); in alloc_iommu() 1092 if (agaw < 0) { in alloc_iommu() 1104 agaw = -1; in alloc_iommu() 1107 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()
|