agaw 1022 drivers/iommu/dmar.c int agaw = 0; agaw 1048 drivers/iommu/dmar.c agaw = iommu_calculate_agaw(iommu); agaw 1049 drivers/iommu/dmar.c if (agaw < 0) { agaw 1060 drivers/iommu/dmar.c iommu->agaw = agaw; agaw 106 drivers/iommu/intel-iommu.c static inline int agaw_to_level(int agaw) agaw 108 drivers/iommu/intel-iommu.c return agaw + 2; agaw 111 drivers/iommu/intel-iommu.c static inline int agaw_to_width(int agaw) agaw 113 drivers/iommu/intel-iommu.c return min_t(int, 30 + agaw * LEVEL_STRIDE, MAX_AGAW_WIDTH); agaw 558 drivers/iommu/intel-iommu.c int addr_width = agaw_to_width(domain->agaw) - VTD_PAGE_SHIFT; agaw 566 drivers/iommu/intel-iommu.c int agaw = -1; agaw 569 drivers/iommu/intel-iommu.c for (agaw = width_to_agaw(max_gaw); agaw 570 drivers/iommu/intel-iommu.c agaw >= 0; agaw--) { agaw 571 drivers/iommu/intel-iommu.c if (test_bit(agaw, &sagaw)) agaw 575 drivers/iommu/intel-iommu.c return agaw; agaw 885 drivers/iommu/intel-iommu.c int level = agaw_to_level(domain->agaw); agaw 941 drivers/iommu/intel-iommu.c int total = agaw_to_level(domain->agaw); agaw 1054 drivers/iommu/intel-iommu.c dma_pte_free_level(domain, agaw_to_level(domain->agaw), retain_level, agaw 1157 drivers/iommu/intel-iommu.c freelist = dma_pte_clear_level(domain, agaw_to_level(domain->agaw), agaw 1835 drivers/iommu/intel-iommu.c int agaw; agaw 1839 drivers/iommu/intel-iommu.c agaw = gaw; agaw 1841 drivers/iommu/intel-iommu.c agaw = gaw + 9 - r; agaw 1842 drivers/iommu/intel-iommu.c if (agaw > 64) agaw 1843 drivers/iommu/intel-iommu.c agaw = 64; agaw 1844 drivers/iommu/intel-iommu.c return agaw; agaw 1850 drivers/iommu/intel-iommu.c int adjust_width, agaw; agaw 1868 drivers/iommu/intel-iommu.c agaw = width_to_agaw(adjust_width); agaw 1870 drivers/iommu/intel-iommu.c if (!test_bit(agaw, &sagaw)) { agaw 1872 drivers/iommu/intel-iommu.c pr_debug("Hardware doesn't support agaw %d\n", agaw); agaw 1873 drivers/iommu/intel-iommu.c agaw = find_next_bit(&sagaw, 5, agaw); agaw 1874 drivers/iommu/intel-iommu.c if (agaw >= 5) agaw 1877 drivers/iommu/intel-iommu.c domain->agaw = agaw; agaw 2055 drivers/iommu/intel-iommu.c int agaw; agaw 2064 drivers/iommu/intel-iommu.c for (agaw = domain->agaw; agaw > iommu->agaw; agaw--) { agaw 2078 drivers/iommu/intel-iommu.c context_set_address_width(context, agaw); agaw 2719 drivers/iommu/intel-iommu.c if (end >> agaw_to_width(domain->agaw)) { agaw 2722 drivers/iommu/intel-iommu.c agaw_to_width(domain->agaw), agaw 2775 drivers/iommu/intel-iommu.c end >> agaw_to_width(si_domain->agaw))) agaw 3757 drivers/iommu/intel-iommu.c agaw_to_level(domain->agaw) + 1); agaw 5148 drivers/iommu/intel-iommu.c domain->agaw = width_to_agaw(adjust_width); agaw 5352 drivers/iommu/intel-iommu.c addr_width = agaw_to_width(iommu->agaw); agaw 5367 drivers/iommu/intel-iommu.c while (iommu->agaw < dmar_domain->agaw) { agaw 5376 drivers/iommu/intel-iommu.c dmar_domain->agaw--; agaw 515 drivers/iommu/intel-pasid.c pasid_set_address_width(pte, iommu->agaw); agaw 545 drivers/iommu/intel-pasid.c int agaw; agaw 563 drivers/iommu/intel-pasid.c for (agaw = domain->agaw; agaw > iommu->agaw; agaw--) { agaw 583 drivers/iommu/intel-pasid.c pasid_set_address_width(pte, agaw); agaw 626 drivers/iommu/intel-pasid.c pasid_set_address_width(pte, iommu->agaw); agaw 500 include/linux/intel-iommu.h int agaw; agaw 530 include/linux/intel-iommu.h int agaw; /* agaw of this iommu */