Home
last modified time | relevance | path

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

/linux/drivers/gpu/drm/amd/amdgpu/
A Damdgpu_cs.c276 if (!adev->mm_stats.log2_max_MBps) in bytes_to_us()
311 if (!adev->mm_stats.log2_max_MBps) { in amdgpu_cs_get_threshold_for_moves()
321 spin_lock(&adev->mm_stats.lock); in amdgpu_cs_get_threshold_for_moves()
327 adev->mm_stats.accum_us = min(adev->mm_stats.accum_us + increment_us, in amdgpu_cs_get_threshold_for_moves()
353 adev->mm_stats.accum_us = max(min_us, adev->mm_stats.accum_us); in amdgpu_cs_get_threshold_for_moves()
369 adev->mm_stats.accum_us_vis = min(adev->mm_stats.accum_us_vis + in amdgpu_cs_get_threshold_for_moves()
373 adev->mm_stats.accum_us_vis = in amdgpu_cs_get_threshold_for_moves()
375 adev->mm_stats.accum_us_vis); in amdgpu_cs_get_threshold_for_moves()
383 spin_unlock(&adev->mm_stats.lock); in amdgpu_cs_get_threshold_for_moves()
393 spin_lock(&adev->mm_stats.lock); in amdgpu_cs_report_moved_bytes()
[all …]
A Damdgpu.h924 } mm_stats; member
A Damdgpu_device.c3480 spin_lock_init(&adev->mm_stats.lock); in amdgpu_device_init()
3694 adev->mm_stats.log2_max_MBps = ilog2(max(1u, max_MBps)); in amdgpu_device_init()

Completed in 34 milliseconds