Lines Matching defs:domains
481 struct dmar_domain **domains;
484 domains = iommu->domains[idx];
485 if (!domains)
488 return domains[did & 0xff];
494 struct dmar_domain **domains;
497 if (!iommu->domains[idx]) {
499 iommu->domains[idx] = kzalloc(size, GFP_ATOMIC);
502 domains = iommu->domains[idx];
503 if (WARN_ON(!domains))
506 domains[did & 0xff] = domain;
1820 iommu->domains = kzalloc(size, GFP_KERNEL);
1822 if (iommu->domains) {
1824 iommu->domains[0] = kzalloc(size, GFP_KERNEL);
1827 if (!iommu->domains || !iommu->domains[0]) {
1831 kfree(iommu->domains);
1833 iommu->domains = NULL;
1863 if (!iommu->domains || !iommu->domain_ids)
1884 if ((iommu->domains) && (iommu->domain_ids)) {
1889 kfree(iommu->domains[i]);
1890 kfree(iommu->domains);
1892 iommu->domains = NULL;
2074 /* Remove associated devices and clear attached or cached domains */
2968 * of domains and their respective RMRR information is lost. This means that
3001 * - 0: both identity and dynamic domains work for this device