mm_stats 891 drivers/gpu/drm/amd/amdgpu/amdgpu.h } mm_stats; mm_stats 264 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c if (us <= 0 || !adev->mm_stats.log2_max_MBps) mm_stats 270 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c return us << adev->mm_stats.log2_max_MBps; mm_stats 275 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c if (!adev->mm_stats.log2_max_MBps) mm_stats 278 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c return bytes >> adev->mm_stats.log2_max_MBps; mm_stats 310 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c if (!adev->mm_stats.log2_max_MBps) { mm_stats 320 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c spin_lock(&adev->mm_stats.lock); mm_stats 324 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c increment_us = time_us - adev->mm_stats.last_update_us; mm_stats 325 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c adev->mm_stats.last_update_us = time_us; mm_stats 326 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c adev->mm_stats.accum_us = min(adev->mm_stats.accum_us + increment_us, mm_stats 352 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c adev->mm_stats.accum_us = max(min_us, adev->mm_stats.accum_us); mm_stats 358 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c *max_bytes = us_to_bytes(adev, adev->mm_stats.accum_us); mm_stats 368 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c adev->mm_stats.accum_us_vis = min(adev->mm_stats.accum_us_vis + mm_stats 372 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c adev->mm_stats.accum_us_vis = mm_stats 374 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c adev->mm_stats.accum_us_vis); mm_stats 377 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c *max_vis_bytes = us_to_bytes(adev, adev->mm_stats.accum_us_vis); mm_stats 382 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c spin_unlock(&adev->mm_stats.lock); mm_stats 392 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c spin_lock(&adev->mm_stats.lock); mm_stats 393 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c adev->mm_stats.accum_us -= bytes_to_us(adev, num_bytes); mm_stats 394 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c adev->mm_stats.accum_us_vis -= bytes_to_us(adev, num_vis_bytes); mm_stats 395 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c spin_unlock(&adev->mm_stats.lock); mm_stats 2651 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c spin_lock_init(&adev->mm_stats.lock); mm_stats 2844 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->mm_stats.log2_max_MBps = ilog2(max(1u, max_MBps));