linux/drivers/gpu/drm/amd
Christian König f0ee63cbc5 drm/amdgpu: cleanup amdgpu_ttm_copy_mem_to_mem and amdgpu_map_buffer v2
Cleanup amdgpu_ttm_copy_mem_to_mem by using fewer variables
for the same value.

Rename amdgpu_map_buffer to amdgpu_ttm_map_buffer, move it
to avoid the forward decleration, cleanup by moving the map
decission into the function and add some documentation.

No functional change.

v2: add some more cleanup suggested by Felix

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Tested-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2020-04-28 16:20:30 -04:00
..
acp drm: amd/acp: fix broken menu structure 2020-03-13 11:52:35 -04:00
amdgpu drm/amdgpu: cleanup amdgpu_ttm_copy_mem_to_mem and amdgpu_map_buffer v2 2020-04-28 16:20:30 -04:00
amdkfd drm/amdkfd: Put ASIC revision into HSA capability 2020-04-28 11:04:56 -04:00
display drm/amd/display: Indicate use of TMZ buffers to DC 2020-04-28 16:20:29 -04:00
include drm/amd/powerplay: revise the way to retrieve the board parameters 2020-04-22 18:11:45 -04:00
powerplay drm/amd/powerplay: avoid using pm_en before it is initialized revised 2020-04-28 11:44:11 -04:00