iommu/vt-d: Rename dmar_insert_dev_info()
Rename this function to dmar_insert_one_dev_info() to match the name better with its counter part function domain_remove_one_dev_info(). Signed-off-by: Joerg Roedel <jroedel@suse.de>
This commit is contained in:
parent
cc4e2575cc
commit
5db31569e9
1 changed files with 8 additions and 8 deletions
|
@ -2286,10 +2286,10 @@ dmar_search_domain_by_dev_info(int segment, int bus, int devfn)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct dmar_domain *dmar_insert_dev_info(struct intel_iommu *iommu,
|
static struct dmar_domain *dmar_insert_one_dev_info(struct intel_iommu *iommu,
|
||||||
int bus, int devfn,
|
int bus, int devfn,
|
||||||
struct device *dev,
|
struct device *dev,
|
||||||
struct dmar_domain *domain)
|
struct dmar_domain *domain)
|
||||||
{
|
{
|
||||||
struct dmar_domain *found = NULL;
|
struct dmar_domain *found = NULL;
|
||||||
struct device_domain_info *info;
|
struct device_domain_info *info;
|
||||||
|
@ -2396,8 +2396,8 @@ static struct dmar_domain *get_domain_for_dev(struct device *dev, int gaw)
|
||||||
|
|
||||||
/* register PCI DMA alias device */
|
/* register PCI DMA alias device */
|
||||||
if (dev_is_pci(dev)) {
|
if (dev_is_pci(dev)) {
|
||||||
tmp = dmar_insert_dev_info(iommu, PCI_BUS_NUM(dma_alias),
|
tmp = dmar_insert_one_dev_info(iommu, PCI_BUS_NUM(dma_alias),
|
||||||
dma_alias & 0xff, NULL, domain);
|
dma_alias & 0xff, NULL, domain);
|
||||||
|
|
||||||
if (!tmp || tmp != domain) {
|
if (!tmp || tmp != domain) {
|
||||||
domain_exit(domain);
|
domain_exit(domain);
|
||||||
|
@ -2409,7 +2409,7 @@ static struct dmar_domain *get_domain_for_dev(struct device *dev, int gaw)
|
||||||
}
|
}
|
||||||
|
|
||||||
found_domain:
|
found_domain:
|
||||||
tmp = dmar_insert_dev_info(iommu, bus, devfn, dev, domain);
|
tmp = dmar_insert_one_dev_info(iommu, bus, devfn, dev, domain);
|
||||||
|
|
||||||
if (!tmp || tmp != domain) {
|
if (!tmp || tmp != domain) {
|
||||||
domain_exit(domain);
|
domain_exit(domain);
|
||||||
|
@ -2598,7 +2598,7 @@ static int domain_add_dev_info(struct dmar_domain *domain, struct device *dev)
|
||||||
if (!iommu)
|
if (!iommu)
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
|
|
||||||
ndomain = dmar_insert_dev_info(iommu, bus, devfn, dev, domain);
|
ndomain = dmar_insert_one_dev_info(iommu, bus, devfn, dev, domain);
|
||||||
if (ndomain != domain)
|
if (ndomain != domain)
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue