swiotlb-xen: simplify the DMA sync method implementations
authorChristoph Hellwig <hch@lst.de>
Thu, 11 Apr 2019 07:19:59 +0000 (09:19 +0200)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 2 May 2019 23:51:47 +0000 (19:51 -0400)
commit2e12dceef3d3fb8d796e384aa242062d1643cad4
treeb19dd8bb8c250b2bf0439952dac3ee95a292e8b4
parent8b35d9feed8e4e66dc4048f776c356e26e2a8216
swiotlb-xen: simplify the DMA sync method implementations

Get rid of the grand multiplexer and implement the sync_single_for_cpu
and sync_single_for_device methods directly, and then loop over them
for the scatterlist based variants.

Note that this also loses a few comments related to highlevel DMA API
concepts, which have nothing to do with the swiotlb-xen implementation
details.

Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/swiotlb-xen.c