]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
iommu/amd: Rename iommu_flush_all_caches() -> amd_iommu_flush_all_caches()
authorVasant Hegde <vasant.hegde@amd.com>
Wed, 22 Nov 2023 09:02:07 +0000 (09:02 +0000)
committerJoerg Roedel <jroedel@suse.de>
Mon, 11 Dec 2023 14:25:33 +0000 (15:25 +0100)
Rename function inline with driver naming convention.

No functional changes.

Signed-off-by: Vasant Hegde <vasant.hegde@amd.com>
Reviewed-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20231122090215.6191-2-vasant.hegde@amd.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd/amd_iommu.h
drivers/iommu/amd/amd_iommu_types.h
drivers/iommu/amd/init.c
drivers/iommu/amd/iommu.c

index 86be1edd50ee9afe027addc7c0c1fcbb4f536de5..234db57cd3209a1c45b2b7b3765709436d7b7881 100644 (file)
@@ -53,6 +53,11 @@ int amd_iommu_pdev_enable_cap_pri(struct pci_dev *pdev);
 void amd_iommu_pdev_disable_cap_pri(struct pci_dev *pdev);
 
 int amd_iommu_flush_page(struct iommu_domain *dom, u32 pasid, u64 address);
+/*
+ * This function flushes all internal caches of
+ * the IOMMU used by this driver.
+ */
+void amd_iommu_flush_all_caches(struct amd_iommu *iommu);
 void amd_iommu_update_and_flush_device_table(struct protection_domain *domain);
 void amd_iommu_domain_update(struct protection_domain *domain);
 void amd_iommu_domain_flush_complete(struct protection_domain *domain);
index 90b7d7950a9efa032f116a448db3c96fb7570004..809d74faa1a5d1513b12e8f964575d212996a35a 100644 (file)
@@ -902,12 +902,6 @@ extern int amd_iommu_max_glx_val;
 extern u64 amd_iommu_efr;
 extern u64 amd_iommu_efr2;
 
-/*
- * This function flushes all internal caches of
- * the IOMMU used by this driver.
- */
-void iommu_flush_all_caches(struct amd_iommu *iommu);
-
 static inline int get_ioapic_devid(int id)
 {
        struct devid_map *entry;
index 64bcf3df37ee5e3813f2bc71d19c6c18e9540cd2..c83bd0c2a1c9214df007c7ac29e31641adf23702 100644 (file)
@@ -2223,7 +2223,7 @@ static int __init amd_iommu_init_pci(void)
                init_device_table_dma(pci_seg);
 
        for_each_iommu(iommu)
-               iommu_flush_all_caches(iommu);
+               amd_iommu_flush_all_caches(iommu);
 
        print_iommu_info();
 
@@ -2773,7 +2773,7 @@ static void early_enable_iommu(struct amd_iommu *iommu)
        iommu_enable_xt(iommu);
        iommu_enable_irtcachedis(iommu);
        iommu_enable(iommu);
-       iommu_flush_all_caches(iommu);
+       amd_iommu_flush_all_caches(iommu);
 }
 
 /*
@@ -2829,7 +2829,7 @@ static void early_enable_iommus(void)
                        iommu_enable_xt(iommu);
                        iommu_enable_irtcachedis(iommu);
                        iommu_set_device_table(iommu);
-                       iommu_flush_all_caches(iommu);
+                       amd_iommu_flush_all_caches(iommu);
                }
        }
 }
@@ -3293,7 +3293,7 @@ static int __init state_next(void)
                                uninit_device_table_dma(pci_seg);
 
                        for_each_iommu(iommu)
-                               iommu_flush_all_caches(iommu);
+                               amd_iommu_flush_all_caches(iommu);
                }
        }
        return ret;
index b14046b6e1e774b5f7a452ad7a3604d1e9c83085..c2578b567e35c2e5391b1b1f7c5f0fd1ff06c5e3 100644 (file)
@@ -1392,7 +1392,7 @@ static void amd_iommu_flush_irt_all(struct amd_iommu *iommu)
        iommu_completion_wait(iommu);
 }
 
-void iommu_flush_all_caches(struct amd_iommu *iommu)
+void amd_iommu_flush_all_caches(struct amd_iommu *iommu)
 {
        if (check_feature(FEATURE_IA)) {
                amd_iommu_flush_all(iommu);