diff options
author | Suravee Suthikulpanit <suravee.suthikulpanit@amd.com> | 2024-02-05 14:56:01 +0300 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2024-02-09 15:16:22 +0300 |
commit | 6f35fe5d8a0ad0125c52fb20f5d67000e369eb3a (patch) | |
tree | b3f4d0d86e5c73049bfbf4563b82565b61bfe9e5 /drivers/iommu/amd/amd_iommu_types.h | |
parent | 8e017973317235468a330aa197134c1aebbf13da (diff) | |
download | linux-6f35fe5d8a0ad0125c52fb20f5d67000e369eb3a.tar.xz |
iommu/amd: Introduce get_amd_iommu_from_dev()
Introduce get_amd_iommu_from_dev() and get_amd_iommu_from_dev_data().
And replace rlookup_amd_iommu() with the new helper function where
applicable to avoid unnecessary loop to look up struct amd_iommu from
struct device.
Suggested-by: Jason Gunthorpe <jgg@ziepe.ca>
Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Signed-off-by: Vasant Hegde <vasant.hegde@amd.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20240205115615.6053-4-vasant.hegde@amd.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/amd/amd_iommu_types.h')
0 files changed, 0 insertions, 0 deletions