swiotlb: Update is_swiotlb_active to add a struct device argument
authorClaire Chang <tientzu@chromium.org>
Sat, 19 Jun 2021 03:40:36 +0000 (11:40 +0800)
committerKonrad Rzeszutek Wilk <konrad@kernel.org>
Wed, 14 Jul 2021 00:04:41 +0000 (20:04 -0400)
commit6f2beb268a5d35504a636c4a3b7aaa76ec32d96c
treeaff684fdf7ca87ab1c74c84aa0c0b0c7a6d59f19
parent7fd856aa7f4261ddac62ea59d8383fef22a0690e
swiotlb: Update is_swiotlb_active to add a struct device argument

Update is_swiotlb_active to add a struct device argument. This will be
useful later to allow for different pools.

Signed-off-by: Claire Chang <tientzu@chromium.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Tested-by: Stefano Stabellini <sstabellini@kernel.org>
Tested-by: Will Deacon <will@kernel.org>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/gpu/drm/i915/gem/i915_gem_internal.c
drivers/gpu/drm/nouveau/nouveau_ttm.c
drivers/pci/xen-pcifront.c
include/linux/swiotlb.h
kernel/dma/direct.c
kernel/dma/swiotlb.c