On 11/4/25 10:30 AM, Jason Gunthorpe wrote:
> +/**
> + * iova_to_phys() - Return the output address for the given IOVA
> + * @iommu_table: Table to query
@domain: (as below)
> + * @iova: IO virtual address to query
> + *
> + * Determine the output address from the given IOVA. @iova may have any
> + * alignment, the returned physical will be adjusted with any sub page
> offset.
> + *
> + * Context: The caller must hold a read range lock that includes @iova.
> + *
> + * Return: 0 if there is no translation for the given iova.
> + */
> +phys_addr_t DOMAIN_NS(iova_to_phys)(struct iommu_domain *domain,
> + dma_addr_t iova)
> +{
--
~Randy
- [PATCH v8 00/15] Consolidate iommu page table implementati... Jason Gunthorpe
- [PATCH v8 08/15] iommupt: Add read_and_clear_dirty op Jason Gunthorpe
- Re: [PATCH v8 08/15] iommupt: Add read_and_clear_... Randy Dunlap
- Re: [PATCH v8 08/15] iommupt: Add read_and_cl... Jason Gunthorpe
- Re: [PATCH v8 08/15] iommupt: Add read_an... Randy Dunlap
- [PATCH v8 02/15] genpt: Add Documentation/ files Jason Gunthorpe
- Re: [PATCH v8 02/15] genpt: Add Documentation/ fi... Randy Dunlap
- [PATCH v8 12/15] iommupt: Add the x86 64 bit page tab... Jason Gunthorpe
- [PATCH v8 05/15] iommupt: Add iova_to_phys op Jason Gunthorpe
- Re: [PATCH v8 05/15] iommupt: Add iova_to_phys op Randy Dunlap
- Re: [PATCH v8 05/15] iommupt: Add iova_to_phy... Jason Gunthorpe
- [PATCH v8 04/15] iommupt: Add the AMD IOMMU v1 page t... Jason Gunthorpe
- Re: [PATCH v8 04/15] iommupt: Add the AMD IOMMU v... Randy Dunlap
- [PATCH v8 15/15] iommupt: Add a kunit test for the IO... Jason Gunthorpe
- [PATCH v8 10/15] iommupt: Add a mock pagetable format... Jason Gunthorpe
- [PATCH v8 06/15] iommupt: Add unmap_pages op Jason Gunthorpe
- [PATCH v8 03/15] iommupt: Add the basic structure of ... Jason Gunthorpe
- [PATCH v8 13/15] iommu/amd: Use the generic iommu pag... Jason Gunthorpe
- Re: [PATCH v8 13/15] iommu/amd: Use the generic i... Ankit Soni
- Re: [PATCH v8 13/15] iommu/amd: Use the gener... Jason Gunthorpe
