Home
last modified time | relevance | path

Searched refs:mm_stats (Results 1 – 3 of 3) sorted by relevance

/drivers/gpu/drm/amd/amdgpu/
Damdgpu_cs.c255 if (us <= 0 || !adev->mm_stats.log2_max_MBps) in us_to_bytes()
261 return us << adev->mm_stats.log2_max_MBps; in us_to_bytes()
266 if (!adev->mm_stats.log2_max_MBps) in bytes_to_us()
269 return bytes >> adev->mm_stats.log2_max_MBps; in bytes_to_us()
301 if (!adev->mm_stats.log2_max_MBps) { in amdgpu_cs_get_threshold_for_moves()
311 spin_lock(&adev->mm_stats.lock); in amdgpu_cs_get_threshold_for_moves()
315 increment_us = time_us - adev->mm_stats.last_update_us; in amdgpu_cs_get_threshold_for_moves()
316 adev->mm_stats.last_update_us = time_us; in amdgpu_cs_get_threshold_for_moves()
317 adev->mm_stats.accum_us = min(adev->mm_stats.accum_us + increment_us, in amdgpu_cs_get_threshold_for_moves()
343 adev->mm_stats.accum_us = max(min_us, adev->mm_stats.accum_us); in amdgpu_cs_get_threshold_for_moves()
[all …]
Damdgpu.h916 } mm_stats; member
Damdgpu_device.c3599 spin_lock_init(&adev->mm_stats.lock); in amdgpu_device_init()
3810 adev->mm_stats.log2_max_MBps = ilog2(max(1u, max_MBps)); in amdgpu_device_init()