Lines Matching refs:domain_ids
1679 iommu->domain_ids = bitmap_zalloc(ndomains, GFP_KERNEL); in iommu_init_domains()
1680 if (!iommu->domain_ids) in iommu_init_domains()
1689 set_bit(0, iommu->domain_ids); in iommu_init_domains()
1699 set_bit(FLPT_DEFAULT_DID, iommu->domain_ids); in iommu_init_domains()
1706 if (!iommu->domain_ids) in disable_dmar_iommu()
1713 if (WARN_ON(bitmap_weight(iommu->domain_ids, cap_ndoms(iommu->cap)) in disable_dmar_iommu()
1723 if (iommu->domain_ids) { in free_dmar_iommu()
1724 bitmap_free(iommu->domain_ids); in free_dmar_iommu()
1725 iommu->domain_ids = NULL; in free_dmar_iommu()
1805 num = find_first_zero_bit(iommu->domain_ids, ndomains); in domain_attach_iommu()
1811 set_bit(num, iommu->domain_ids); in domain_attach_iommu()
1827 clear_bit(info->did, iommu->domain_ids); in domain_attach_iommu()
1842 clear_bit(info->did, iommu->domain_ids); in domain_detach_iommu()
2740 set_bit(did, iommu->domain_ids); in copy_context_table()
3846 return sprintf(buf, "%d\n", bitmap_weight(iommu->domain_ids, in domains_used_show()