iommu/vt-d: Rename iommu_disable_dev_iotlb()

Rename iommu_disable_dev_iotlb() to iommu_disable_pci_caps() to pair with
iommu_enable_pci_caps().

Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Link: https://lore.kernel.org/r/20221118132451.114406-5-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
This commit is contained in:
Lu Baolu 2022-11-22 08:29:46 +08:00 коммит произвёл Joerg Roedel
Родитель 35a99c54dd
Коммит ba502132f5
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -1441,7 +1441,7 @@ static void iommu_enable_pci_caps(struct device_domain_info *info)
} }
} }
static void iommu_disable_dev_iotlb(struct device_domain_info *info) static void iommu_disable_pci_caps(struct device_domain_info *info)
{ {
struct pci_dev *pdev; struct pci_dev *pdev;
@ -4099,7 +4099,7 @@ static void dmar_remove_one_dev_info(struct device *dev)
intel_pasid_tear_down_entry(iommu, info->dev, intel_pasid_tear_down_entry(iommu, info->dev,
PASID_RID2PASID, false); PASID_RID2PASID, false);
iommu_disable_dev_iotlb(info); iommu_disable_pci_caps(info);
domain_context_clear(info); domain_context_clear(info);
} }
@ -4122,7 +4122,7 @@ static void device_block_translation(struct device *dev)
struct intel_iommu *iommu = info->iommu; struct intel_iommu *iommu = info->iommu;
unsigned long flags; unsigned long flags;
iommu_disable_dev_iotlb(info); iommu_disable_pci_caps(info);
if (!dev_is_real_dma_subdevice(dev)) { if (!dev_is_real_dma_subdevice(dev)) {
if (sm_supported(iommu)) if (sm_supported(iommu))
intel_pasid_tear_down_entry(iommu, dev, intel_pasid_tear_down_entry(iommu, dev,