drm/amdgpu: add bo_list iterators
authorChristian König <christian.koenig@amd.com>
Mon, 30 Jul 2018 13:37:46 +0000 (15:37 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 31 Jul 2018 21:58:19 +0000 (16:58 -0500)
commit39f7f69a6054bb9777b47b6afdb5ce2fae30dbee
tree23e5c2c2753e734929735b61384d33b837f6b8a9
parenta0f208453b97565dab8c334ff013aa5ab3c66d0c
drm/amdgpu: add bo_list iterators

Add helpers to iterate over all entries in a bo_list.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Acked-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c
drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.h
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c