swiotlb: Split size parameter to map/unmap APIs
authorLu Baolu <baolu.lu@linux.intel.com>
Fri, 6 Sep 2019 06:14:48 +0000 (14:14 +0800)
committerJoerg Roedel <jroedel@suse.de>
Wed, 11 Sep 2019 10:34:29 +0000 (12:34 +0200)
commit3fc1ca00653db6371585e3c21c4b873b2f20e60a
tree0c6b5431d51319a078b036284c81ed12b7f55b54
parent2c70010867f164d1b30e787e360e05d10cc40046
swiotlb: Split size parameter to map/unmap APIs

This splits the size parameter to swiotlb_tbl_map_single() and
swiotlb_tbl_unmap_single() into an alloc_size and a mapping_size
parameter, where the latter one is rounded up to the iommu page
size.

Suggested-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/xen/swiotlb-xen.c
include/linux/swiotlb.h
kernel/dma/direct.c
kernel/dma/swiotlb.c