Searched refs:tach_period (Results 1 - 7 of 7) sorted by relevance

/netbsd-current/sys/external/bsd/drm2/dist/drm/amd/powerplay/hwmgr/
H A Damdgpu_smu7_thermal.c90 uint32_t tach_period; local
97 tach_period = PHM_READ_VFPF_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC,
100 if (tach_period == 0)
105 *speed = 60 * crystal_clock_freq * 10000 / tach_period;
262 uint32_t tach_period; local
278 tach_period = 60 * crystal_clock_freq * 10000 / (8 * speed);
281 CG_TACH_CTRL, TARGET_PERIOD, tach_period);
H A Damdgpu_vega10_thermal.c100 uint32_t tach_period; local
110 tach_period =
115 if (tach_period == 0)
120 *speed = 60 * crystal_clock_freq * 10000 / tach_period;
315 uint32_t tach_period; local
330 tach_period = 60 * crystal_clock_freq * 10000 / (8 * speed);
334 tach_period));
H A Damdgpu_vega20_thermal.c194 uint32_t tach_period, crystal_clock_freq; local
207 tach_period = 60 * crystal_clock_freq * 10000 / (8 * speed);
211 tach_period));
/netbsd-current/sys/external/bsd/drm2/dist/drm/amd/powerplay/
H A Damdgpu_smu_v11_0.c1494 uint32_t tach_period, crystal_clock_freq; local
1504 tach_period = 60 * crystal_clock_freq * 10000 / (8 * speed);
1508 tach_period));
/netbsd-current/sys/external/bsd/drm2/dist/drm/radeon/
H A Dradeon_ci_dpm.c1169 u32 tach_period;
1178 tach_period = (RREG32_SMC(CG_TACH_STATUS) & TACH_PERIOD_MASK) >> TACH_PERIOD_SHIFT;
1179 if (tach_period == 0)
1182 *speed = 60 * xclk * 10000 / tach_period;
1190 u32 tach_period, tmp;
1206 tach_period = 60 * xclk * 10000 / (8 * speed);
1208 tmp |= TARGET_PERIOD(tach_period);
H A Dradeon_si_dpm.c6229 u32 tach_period;
6238 tach_period = (RREG32(CG_TACH_STATUS) & TACH_PERIOD_MASK) >> TACH_PERIOD_SHIFT;
6239 if (tach_period == 0)
6242 *speed = 60 * xclk * 10000 / tach_period;
6250 u32 tach_period, tmp;
6266 tach_period = 60 * xclk * 10000 / (8 * speed);
6268 tmp |= TARGET_PERIOD(tach_period);
/netbsd-current/sys/external/bsd/drm2/dist/drm/amd/amdgpu/
H A Damdgpu_si_dpm.c6663 u32 tach_period;
6672 tach_period = (RREG32(CG_TACH_STATUS) & TACH_PERIOD_MASK) >> TACH_PERIOD_SHIFT;
6673 if (tach_period == 0)
6676 *speed = 60 * xclk * 10000 / tach_period;
6684 u32 tach_period, tmp;
6700 tach_period = 60 * xclk * 10000 / (8 * speed);
6702 tmp |= TARGET_PERIOD(tach_period);

Completed in 179 milliseconds