Searched refs:cap_ndoms (Results 1 – 2 of 2) sorted by relevance
1673 ndomains = cap_ndoms(iommu->cap); in iommu_init_domains()1713 if (WARN_ON(bitmap_weight(iommu->domain_ids, cap_ndoms(iommu->cap)) in disable_dmar_iommu()1804 ndomains = cap_ndoms(iommu->cap); in domain_attach_iommu()1973 if (did_old < cap_ndoms(iommu->cap)) { in domain_context_mapping_one()2739 if (did >= 0 && did < cap_ndoms(iommu->cap)) in copy_context_table()3838 return sprintf(buf, "%ld\n", cap_ndoms(iommu->cap)); in domains_supported_show()3847 cap_ndoms(iommu->cap))); in domains_used_show()
177 #define cap_ndoms(c) (((unsigned long)1) << (4 + 2 * ((c) & 0x7))) macro