diff options
author | 2025-05-05 10:01:44 +0300 | |
---|---|---|
committer | 2025-05-06 08:36:53 +0200 | |
commit | 433a76207dcf5facc0183acb790f6e8398585258 (patch) | |
tree | 54753813f201b592314cabf19ac74316162d9c13 /scripts/lib/kdoc/kdoc_parser.py | |
parent | iommu/dma: Factor out a iommu_dma_map_swiotlb helper (diff) | |
download | linux-rng-433a76207dcf5facc0183acb790f6e8398585258.tar.xz linux-rng-433a76207dcf5facc0183acb790f6e8398585258.zip |
dma-mapping: Implement link/unlink ranges API
Introduce new DMA APIs to perform DMA linkage of buffers
in layers higher than DMA.
In proposed API, the callers will perform the following steps.
In map path:
if (dma_can_use_iova(...))
dma_iova_alloc()
for (page in range)
dma_iova_link_next(...)
dma_iova_sync(...)
else
/* Fallback to legacy map pages */
for (all pages)
dma_map_page(...)
In unmap path:
if (dma_can_use_iova(...))
dma_iova_destroy()
else
for (all pages)
dma_unmap_page(...)
Reviewed-by: Christoph Hellwig <hch@lst.de>
Tested-by: Jens Axboe <axboe@kernel.dk>
Reviewed-by: Luis Chamberlain <mcgrof@kernel.org>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions