Home
last modified time | relevance | path

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

/openbmc/linux/drivers/gpu/drm/i915/gt/
H A Dintel_rc6.c800 u64 time_hw, prev_hw, overflow_hw; in intel_rc6_residency_ns() local
819 time_hw = vlv_residency_raw(uncore, reg); in intel_rc6_residency_ns()
831 time_hw = intel_uncore_read_fw(uncore, reg); in intel_rc6_residency_ns()
841 rc6->prev_hw_residency[id] = time_hw; in intel_rc6_residency_ns()
844 if (time_hw >= prev_hw) in intel_rc6_residency_ns()
845 time_hw -= prev_hw; in intel_rc6_residency_ns()
847 time_hw += overflow_hw - prev_hw; in intel_rc6_residency_ns()
850 time_hw += rc6->cur_residency[id]; in intel_rc6_residency_ns()
851 rc6->cur_residency[id] = time_hw; in intel_rc6_residency_ns()
856 return mul_u64_u32_div(time_hw, mul, div); in intel_rc6_residency_ns()