drm/i915: Introduce i915_gem_object_get_dma_address()
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 10 Jun 2016 08:53:00 +0000 (14:23 +0530)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Mon, 13 Jun 2016 09:03:55 +0000 (10:03 +0100)
commit341be1cd61826a8a143c2fc4cf3e418d1d5efc02
tree80d0517df8b1c3435afa0972110657e4a65068ca
parentd6473f566417a507b9ea5b0fc44ff26d930d0e5d
drm/i915: Introduce i915_gem_object_get_dma_address()

This utility function is a companion to i915_gem_object_get_page() that
uses the same cached iterator for the scatterlist to perform fast
sequential lookup of the dma address associated with any page within the
object.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Ankitprasad Sharma <ankitprasad.r.sharma@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
drivers/gpu/drm/i915/i915_drv.h