Commit 845bd6ac authored by Vasant Hegde's avatar Vasant Hegde Committed by Joerg Roedel

iommu/amd: Make amd_iommu_dev_flush_pasid_all() static

As its not used outside iommu.c. Also rename it as dev_flush_pasid_all().

No functional change intended.
Signed-off-by: default avatarVasant Hegde <vasant.hegde@amd.com>
Reviewed-by: default avatarSuravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Link: https://lore.kernel.org/r/20240828111029.5429-6-vasant.hegde@amd.comSigned-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent 293aa9ec
...@@ -93,8 +93,6 @@ void amd_iommu_domain_flush_pages(struct protection_domain *domain, ...@@ -93,8 +93,6 @@ void amd_iommu_domain_flush_pages(struct protection_domain *domain,
u64 address, size_t size); u64 address, size_t size);
void amd_iommu_dev_flush_pasid_pages(struct iommu_dev_data *dev_data, void amd_iommu_dev_flush_pasid_pages(struct iommu_dev_data *dev_data,
ioasid_t pasid, u64 address, size_t size); ioasid_t pasid, u64 address, size_t size);
void amd_iommu_dev_flush_pasid_all(struct iommu_dev_data *dev_data,
ioasid_t pasid);
#ifdef CONFIG_IRQ_REMAP #ifdef CONFIG_IRQ_REMAP
int amd_iommu_create_irq_domain(struct amd_iommu *iommu); int amd_iommu_create_irq_domain(struct amd_iommu *iommu);
......
...@@ -1551,8 +1551,8 @@ void amd_iommu_dev_flush_pasid_pages(struct iommu_dev_data *dev_data, ...@@ -1551,8 +1551,8 @@ void amd_iommu_dev_flush_pasid_pages(struct iommu_dev_data *dev_data,
iommu_completion_wait(iommu); iommu_completion_wait(iommu);
} }
void amd_iommu_dev_flush_pasid_all(struct iommu_dev_data *dev_data, static void dev_flush_pasid_all(struct iommu_dev_data *dev_data,
ioasid_t pasid) ioasid_t pasid)
{ {
amd_iommu_dev_flush_pasid_pages(dev_data, 0, amd_iommu_dev_flush_pasid_pages(dev_data, 0,
CMD_INV_IOMMU_ALL_PAGES_ADDRESS, pasid); CMD_INV_IOMMU_ALL_PAGES_ADDRESS, pasid);
...@@ -1818,7 +1818,7 @@ static int update_gcr3(struct iommu_dev_data *dev_data, ...@@ -1818,7 +1818,7 @@ static int update_gcr3(struct iommu_dev_data *dev_data,
else else
*pte = 0; *pte = 0;
amd_iommu_dev_flush_pasid_all(dev_data, pasid); dev_flush_pasid_all(dev_data, pasid);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment