Lines Matching refs:cap

553 	sagaw = cap_sagaw(iommu->cap);  in __iommu_calculate_agaw()
659 mask &= cap_super_page_val(iommu->cap); in domain_update_iommu_superpage()
1176 if (!rwbf_quirk && !cap_rwbf(iommu->cap)) in iommu_flush_write_buffer()
1253 if (cap_read_drain(iommu->cap)) in __iommu_flush_iotlb()
1256 if (cap_write_drain(iommu->cap)) in __iommu_flush_iotlb()
1375 if (!cap_pgsel_inv(iommu->cap) || mask > cap_max_amask_val(iommu->cap)) in iommu_flush_iotlb_psi()
1386 if (!cap_caching_mode(iommu->cap) || !map) in iommu_flush_iotlb_psi()
1445 ndomains = cap_ndoms(iommu->cap); in iommu_init_domains()
1475 if (cap_caching_mode(iommu->cap)) in iommu_init_domains()
1486 for_each_set_bit(i, iommu->domain_ids, cap_ndoms(iommu->cap)) { in disable_dmar_iommu()
1491 if (cap_caching_mode(iommu->cap) && i == 0) in disable_dmar_iommu()
1548 ndomains = cap_ndoms(iommu->cap); in __iommu_attach_domain()
1581 ndomains = cap_ndoms(iommu->cap); in iommu_attach_vm_domain()
1597 ndomains = cap_ndoms(iommu->cap); in iommu_detach_domain()
1717 if (guest_width > cap_mgaw(iommu->cap)) in domain_init()
1718 guest_width = cap_mgaw(iommu->cap); in domain_init()
1722 sagaw = cap_sagaw(iommu->cap); in domain_init()
1743 domain->iommu_superpage = fls(cap_super_page_val(iommu->cap)); in domain_init()
1878 if (cap_caching_mode(iommu->cap)) { in domain_context_mapping_one()
3078 !cap_zlr(iommu->cap)) in __intel_map_single()
3094 if (cap_caching_mode(iommu->cap)) in __intel_map_single()
3136 if (!cap_caching_mode(iommu->cap)) in flush_unmaps()
3145 if (cap_caching_mode(iommu->cap)) in flush_unmaps()
3371 !cap_zlr(iommu->cap)) in intel_map_sg()
3387 if (cap_caching_mode(iommu->cap)) in intel_map_sg()
3826 if (sp >= 0 && !(cap_super_page_val(iommu->cap) & (1 << sp))) { in intel_iommu_add()
4143 return sprintf(buf, "%llx\n", iommu->cap); in intel_iommu_show_cap()
4145 static DEVICE_ATTR(cap, S_IRUGO, intel_iommu_show_cap, NULL);
4438 if (addr_width > cap_mgaw(iommu->cap)) in intel_iommu_attach_device()
4439 addr_width = cap_mgaw(iommu->cap); in intel_iommu_attach_device()
4542 ndomains = cap_ndoms(iommu->cap); in intel_iommu_unmap()
4574 static bool intel_iommu_capable(enum iommu_cap cap) in intel_iommu_capable() argument
4576 if (cap == IOMMU_CAP_CACHE_COHERENCY) in intel_iommu_capable()
4578 if (cap == IOMMU_CAP_INTR_REMAP) in intel_iommu_capable()