aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iommu/intel-iommu.c
diff options
context:
space:
mode:
authorJoerg Roedel <jroedel@suse.de>2015-07-22 10:30:36 -0400
committerJoerg Roedel <jroedel@suse.de>2015-08-12 10:23:35 -0400
commite6de0f8dfcd0395efee874db97536531555d91af (patch)
tree4740f455a1505197df542c0d083def64cf210673 /drivers/iommu/intel-iommu.c
parent5db31569e9503654477b504de7161d01f85f7261 (diff)
iommu/vt-d: Rename domain_remove_one_dev_info()
Rename the function to dmar_remove_one_dev_info to match is name better with its dmar_insert_one_dev_info counterpart. Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/intel-iommu.c')
-rw-r--r--drivers/iommu/intel-iommu.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c
index 4a7fc0aebded..faa95d15fe0a 100644
--- a/drivers/iommu/intel-iommu.c
+++ b/drivers/iommu/intel-iommu.c
@@ -472,8 +472,8 @@ static long list_size;
472 472
473static void domain_exit(struct dmar_domain *domain); 473static void domain_exit(struct dmar_domain *domain);
474static void domain_remove_dev_info(struct dmar_domain *domain); 474static void domain_remove_dev_info(struct dmar_domain *domain);
475static void domain_remove_one_dev_info(struct dmar_domain *domain, 475static void dmar_remove_one_dev_info(struct dmar_domain *domain,
476 struct device *dev); 476 struct device *dev);
477static void iommu_detach_dependent_devices(struct intel_iommu *iommu, 477static void iommu_detach_dependent_devices(struct intel_iommu *iommu,
478 struct device *dev); 478 struct device *dev);
479static int domain_detach_iommu(struct dmar_domain *domain, 479static int domain_detach_iommu(struct dmar_domain *domain,
@@ -1631,7 +1631,7 @@ static void disable_dmar_iommu(struct intel_iommu *iommu)
1631 1631
1632 domain = info->domain; 1632 domain = info->domain;
1633 1633
1634 domain_remove_one_dev_info(domain, info->dev); 1634 dmar_remove_one_dev_info(domain, info->dev);
1635 1635
1636 if (!domain_type_is_vm_or_si(domain)) 1636 if (!domain_type_is_vm_or_si(domain))
1637 domain_exit(domain); 1637 domain_exit(domain);
@@ -2255,7 +2255,7 @@ static void domain_remove_dev_info(struct dmar_domain *domain)
2255 struct device_domain_info *info, *tmp; 2255 struct device_domain_info *info, *tmp;
2256 2256
2257 list_for_each_entry_safe(info, tmp, &domain->devices, link) 2257 list_for_each_entry_safe(info, tmp, &domain->devices, link)
2258 domain_remove_one_dev_info(domain, info->dev); 2258 dmar_remove_one_dev_info(domain, info->dev);
2259} 2259}
2260 2260
2261/* 2261/*
@@ -2329,7 +2329,7 @@ static struct dmar_domain *dmar_insert_one_dev_info(struct intel_iommu *iommu,
2329 2329
2330 if (dev && domain_context_mapping(domain, dev)) { 2330 if (dev && domain_context_mapping(domain, dev)) {
2331 pr_err("Domain context map for %s failed\n", dev_name(dev)); 2331 pr_err("Domain context map for %s failed\n", dev_name(dev));
2332 domain_remove_one_dev_info(domain, dev); 2332 dmar_remove_one_dev_info(domain, dev);
2333 return NULL; 2333 return NULL;
2334 } 2334 }
2335 2335
@@ -3300,7 +3300,7 @@ static int iommu_no_mapping(struct device *dev)
3300 * 32 bit DMA is removed from si_domain and fall back 3300 * 32 bit DMA is removed from si_domain and fall back
3301 * to non-identity mapping. 3301 * to non-identity mapping.
3302 */ 3302 */
3303 domain_remove_one_dev_info(si_domain, dev); 3303 dmar_remove_one_dev_info(si_domain, dev);
3304 pr_info("32bit %s uses non-identity mapping\n", 3304 pr_info("32bit %s uses non-identity mapping\n",
3305 dev_name(dev)); 3305 dev_name(dev));
3306 return 0; 3306 return 0;
@@ -4307,7 +4307,7 @@ static int device_notifier(struct notifier_block *nb,
4307 return 0; 4307 return 0;
4308 4308
4309 down_read(&dmar_global_lock); 4309 down_read(&dmar_global_lock);
4310 domain_remove_one_dev_info(domain, dev); 4310 dmar_remove_one_dev_info(domain, dev);
4311 if (!domain_type_is_vm_or_si(domain) && list_empty(&domain->devices)) 4311 if (!domain_type_is_vm_or_si(domain) && list_empty(&domain->devices))
4312 domain_exit(domain); 4312 domain_exit(domain);
4313 up_read(&dmar_global_lock); 4313 up_read(&dmar_global_lock);
@@ -4574,8 +4574,8 @@ static void iommu_detach_dependent_devices(struct intel_iommu *iommu,
4574 pci_for_each_dma_alias(to_pci_dev(dev), &iommu_detach_dev_cb, iommu); 4574 pci_for_each_dma_alias(to_pci_dev(dev), &iommu_detach_dev_cb, iommu);
4575} 4575}
4576 4576
4577static void domain_remove_one_dev_info(struct dmar_domain *domain, 4577static void dmar_remove_one_dev_info(struct dmar_domain *domain,
4578 struct device *dev) 4578 struct device *dev)
4579{ 4579{
4580 struct device_domain_info *info; 4580 struct device_domain_info *info;
4581 struct intel_iommu *iommu; 4581 struct intel_iommu *iommu;
@@ -4686,7 +4686,7 @@ static int intel_iommu_attach_device(struct iommu_domain *domain,
4686 old_domain = find_domain(dev); 4686 old_domain = find_domain(dev);
4687 if (old_domain) { 4687 if (old_domain) {
4688 if (domain_type_is_vm_or_si(dmar_domain)) 4688 if (domain_type_is_vm_or_si(dmar_domain))
4689 domain_remove_one_dev_info(old_domain, dev); 4689 dmar_remove_one_dev_info(old_domain, dev);
4690 else 4690 else
4691 domain_remove_dev_info(old_domain); 4691 domain_remove_dev_info(old_domain);
4692 4692
@@ -4734,7 +4734,7 @@ static int intel_iommu_attach_device(struct iommu_domain *domain,
4734static void intel_iommu_detach_device(struct iommu_domain *domain, 4734static void intel_iommu_detach_device(struct iommu_domain *domain,
4735 struct device *dev) 4735 struct device *dev)
4736{ 4736{
4737 domain_remove_one_dev_info(to_dmar_domain(domain), dev); 4737 dmar_remove_one_dev_info(to_dmar_domain(domain), dev);
4738} 4738}
4739 4739
4740static int intel_iommu_map(struct iommu_domain *domain, 4740static int intel_iommu_map(struct iommu_domain *domain,