Searched refs:mm_stats (Results 1 – 3 of 3) sorted by relevance
256 if (us <= 0 || !adev->mm_stats.log2_max_MBps) in us_to_bytes()262 return us << adev->mm_stats.log2_max_MBps; in us_to_bytes()267 if (!adev->mm_stats.log2_max_MBps) in bytes_to_us()270 return bytes >> adev->mm_stats.log2_max_MBps; in bytes_to_us()302 if (!adev->mm_stats.log2_max_MBps) { in amdgpu_cs_get_threshold_for_moves()312 spin_lock(&adev->mm_stats.lock); in amdgpu_cs_get_threshold_for_moves()316 increment_us = time_us - adev->mm_stats.last_update_us; in amdgpu_cs_get_threshold_for_moves()317 adev->mm_stats.last_update_us = time_us; in amdgpu_cs_get_threshold_for_moves()318 adev->mm_stats.accum_us = min(adev->mm_stats.accum_us + increment_us, in amdgpu_cs_get_threshold_for_moves()344 adev->mm_stats.accum_us = max(min_us, adev->mm_stats.accum_us); in amdgpu_cs_get_threshold_for_moves()[all …]
845 } mm_stats; member
3262 spin_lock_init(&adev->mm_stats.lock); in amdgpu_device_init()3474 adev->mm_stats.log2_max_MBps = ilog2(max(1u, max_MBps)); in amdgpu_device_init()