nouveau: factor out device memory address calculation
authorChristoph Hellwig <hch@lst.de>
Wed, 14 Aug 2019 07:59:21 +0000 (09:59 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 20 Aug 2019 12:35:03 +0000 (09:35 -0300)
commit64de8b8d65f9bfd0fced9029bcec37257614ccaf
tree8dc03e81e6af427fa48e9aaec8426d61f1cb10ca
parentdea027f28209aa7a23a4e56b2ae270f16d48055d
nouveau: factor out device memory address calculation

Factor out the repeated device memory address calculation into
a helper.

Link: https://lore.kernel.org/r/20190814075928.23766-4-hch@lst.de
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Ralph Campbell <rcampbell@nvidia.com>
Tested-by: Ralph Campbell <rcampbell@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/gpu/drm/nouveau/nouveau_dmem.c