Searched refs:cap_ndoms (Results 1 – 2 of 2) sorted by relevance
1046 cap_ndoms(iommu->cap) - 1, GFP_KERNEL); in domain_attach_iommu()1110 if (did_old < cap_ndoms(iommu->cap)) { in copied_context_tear_down()1508 if (did >= 0 && did < cap_ndoms(iommu->cap)) in copy_context_table()2428 return sysfs_emit(buf, "%ld\n", cap_ndoms(iommu->cap)); in domains_supported_show()2439 for (id = 0; id < cap_ndoms(iommu->cap); id++) in domains_used_show()
189 #define cap_ndoms(c) (((unsigned long)1) << (4 + 2 * ((c) & 0x7))) macro