Home
last modified time | relevance | path

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

/linux/drivers/gpu/drm/amd/amdgpu/
H A Dsmuio_v14_0_2.c42 u64 clock_counter_lo, clock_counter_hi_pre, clock_counter_hi_after; in smuio_v14_0_2_get_gpu_clock_counter() local
48 clock_counter_hi_after = (u64)RREG32_SOC15(SMUIO, 0, regGOLDEN_TSC_COUNT_UPPER); in smuio_v14_0_2_get_gpu_clock_counter()
49 if (clock_counter_hi_pre != clock_counter_hi_after) in smuio_v14_0_2_get_gpu_clock_counter()
53 clock = clock_counter_lo | (clock_counter_hi_after << 32ULL); in smuio_v14_0_2_get_gpu_clock_counter()
H A Dgfx_v11_0.c5002 uint64_t clock_counter_lo, clock_counter_hi_pre, clock_counter_hi_after; in gfx_v11_0_get_gpu_clock_counter() local
5009 clock_counter_hi_after = (uint64_t)RREG32_SOC15(GC, 0, regCP_MES_MTIME_HI); in gfx_v11_0_get_gpu_clock_counter()
5010 if (clock_counter_hi_pre != clock_counter_hi_after) in gfx_v11_0_get_gpu_clock_counter()
5018 clock_counter_hi_after = (uint64_t)RREG32_SOC15(SMUIO, 0, regGOLDEN_TSC_COUNT_UPPER); in gfx_v11_0_get_gpu_clock_counter()
5019 if (clock_counter_hi_pre != clock_counter_hi_after) in gfx_v11_0_get_gpu_clock_counter()
5023 clock = clock_counter_lo | (clock_counter_hi_after << 32ULL); in gfx_v11_0_get_gpu_clock_counter()