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
..
2020-02-17 10:34:34 +01:00
2019-09-16 09:59:21 -05:00
2020-04-24 11:42:11 -04:00
2019-06-20 11:36:22 -05:00
2020-04-24 11:42:11 -04:00
2020-04-09 10:43:33 -04:00
2019-06-10 23:00:01 +02:00
2020-04-24 11:42:11 -04:00
2020-03-16 16:17:55 -04:00