diff options
author | Robin Murphy <robin.murphy@arm.com> | 2022-11-15 15:26:43 +0000 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2022-11-19 10:44:16 +0100 |
commit | b169a180bef26679b44484ad24b7d8ae32623a10 (patch) | |
tree | 50a4c1ce1266d0674204c1ecb4d15a63ea45b8c0 | |
parent | b9bf41e249f8c8bf79389cec9d29faf03f79aad2 (diff) | |
download | lwn-b169a180bef26679b44484ad24b7d8ae32623a10.tar.gz lwn-b169a180bef26679b44484ad24b7d8ae32623a10.zip |
iommu/io-pgtable: Remove map/unmap
With all users now calling {map,unmap}_pages, retire the redundant
single-page callbacks.
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Acked-by: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/a5a3cbf95c3279982e378cc43dad830322a59868.1668100209.git.robin.murphy@arm.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
-rw-r--r-- | include/linux/io-pgtable.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/include/linux/io-pgtable.h b/include/linux/io-pgtable.h index 1f068dfdb140..1b7a44b35616 100644 --- a/include/linux/io-pgtable.h +++ b/include/linux/io-pgtable.h @@ -150,9 +150,7 @@ struct io_pgtable_cfg { /** * struct io_pgtable_ops - Page table manipulation API for IOMMU drivers. * - * @map: Map a physically contiguous memory region. * @map_pages: Map a physically contiguous range of pages of the same size. - * @unmap: Unmap a physically contiguous memory region. * @unmap_pages: Unmap a range of virtually contiguous pages of the same size. * @iova_to_phys: Translate iova to physical address. * @@ -160,13 +158,9 @@ struct io_pgtable_cfg { * the same names. */ struct io_pgtable_ops { - int (*map)(struct io_pgtable_ops *ops, unsigned long iova, - phys_addr_t paddr, size_t size, int prot, gfp_t gfp); int (*map_pages)(struct io_pgtable_ops *ops, unsigned long iova, phys_addr_t paddr, size_t pgsize, size_t pgcount, int prot, gfp_t gfp, size_t *mapped); - size_t (*unmap)(struct io_pgtable_ops *ops, unsigned long iova, - size_t size, struct iommu_iotlb_gather *gather); size_t (*unmap_pages)(struct io_pgtable_ops *ops, unsigned long iova, size_t pgsize, size_t pgcount, struct iommu_iotlb_gather *gather); |