Searched refs:mm_stats (Results 1 – 5 of 5) sorted by relevance
644 if (us <= 0 || !adev->mm_stats.log2_max_MBps) in us_to_bytes()650 return us << adev->mm_stats.log2_max_MBps; in us_to_bytes()655 if (!adev->mm_stats.log2_max_MBps) in bytes_to_us()658 return bytes >> adev->mm_stats.log2_max_MBps; in bytes_to_us()689 if (!adev->mm_stats.log2_max_MBps) { in amdgpu_cs_get_threshold_for_moves()699 spin_lock(&adev->mm_stats.lock); in amdgpu_cs_get_threshold_for_moves()703 increment_us = time_us - adev->mm_stats.last_update_us; in amdgpu_cs_get_threshold_for_moves()704 adev->mm_stats.last_update_us = time_us; in amdgpu_cs_get_threshold_for_moves()705 adev->mm_stats.accum_us = min(adev->mm_stats.accum_us + increment_us, in amdgpu_cs_get_threshold_for_moves()731 adev->mm_stats.accum_us = max(min_us, adev->mm_stats.accum_us); in amdgpu_cs_get_threshold_for_moves()[all …]
879 } mm_stats; member
3583 spin_lock_init(&adev->mm_stats.lock); in amdgpu_device_init()3826 adev->mm_stats.log2_max_MBps = ilog2(max(1u, max_MBps)); in amdgpu_device_init()
3546 lruvec->mm_state.stats[hist][i] + walk->mm_stats[i]); in reset_mm_stats()3547 walk->mm_stats[i] = 0; in reset_mm_stats()4033 walk->mm_stats[MM_LEAF_TOTAL]++; in walk_pte_range()4040 walk->mm_stats[MM_LEAF_OLD]++; in walk_pte_range()4052 walk->mm_stats[MM_LEAF_YOUNG]++; in walk_pte_range()4132 walk->mm_stats[MM_LEAF_YOUNG]++; in walk_pmd_range_locked()4187 walk->mm_stats[MM_LEAF_TOTAL]++; in walk_pmd_range()4196 walk->mm_stats[MM_LEAF_TOTAL]++; in walk_pmd_range()4199 walk->mm_stats[MM_LEAF_OLD]++; in walk_pmd_range()4211 walk->mm_stats[MM_NONLEAF_TOTAL]++; in walk_pmd_range()[all …]
484 int mm_stats[NR_MM_STATS]; member