diff options
author | Christoph Hellwig <hch@lst.de> | 2021-03-01 08:44:26 +0100 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2021-03-17 01:32:01 +0100 |
commit | 80808d273a3f075196d1a26463f65d4c9d2891c8 (patch) | |
tree | 3a0e72aa6d3a55bbe25534cfe14f695fdee2938c /kernel/dma/direct.h | |
parent | swiotlb: move orig addr and size validation into swiotlb_bounce (diff) | |
download | linux-80808d273a3f075196d1a26463f65d4c9d2891c8.tar.xz linux-80808d273a3f075196d1a26463f65d4c9d2891c8.zip |
swiotlb: split swiotlb_tbl_sync_single
Split swiotlb_tbl_sync_single into two separate funtions for the to device
and to cpu synchronization.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'kernel/dma/direct.h')
-rw-r--r-- | kernel/dma/direct.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/dma/direct.h b/kernel/dma/direct.h index e1bf721591c0..50afc05b6f1d 100644 --- a/kernel/dma/direct.h +++ b/kernel/dma/direct.h @@ -57,7 +57,7 @@ static inline void dma_direct_sync_single_for_device(struct device *dev, phys_addr_t paddr = dma_to_phys(dev, addr); if (unlikely(is_swiotlb_buffer(paddr))) - swiotlb_tbl_sync_single(dev, paddr, size, dir, SYNC_FOR_DEVICE); + swiotlb_sync_single_for_device(dev, paddr, size, dir); if (!dev_is_dma_coherent(dev)) arch_sync_dma_for_device(paddr, size, dir); @@ -74,7 +74,7 @@ static inline void dma_direct_sync_single_for_cpu(struct device *dev, } if (unlikely(is_swiotlb_buffer(paddr))) - swiotlb_tbl_sync_single(dev, paddr, size, dir, SYNC_FOR_CPU); + swiotlb_sync_single_for_cpu(dev, paddr, size, dir); if (dir == DMA_FROM_DEVICE) arch_dma_mark_clean(paddr, size); |