Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/gpu/drm/amd/powerplay/hwmgr/
Dsmu7_thermal.c85 uint32_t tach_period; in smu7_fan_ctrl_get_fan_speed_rpm() local
92 tach_period = PHM_READ_VFPF_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, in smu7_fan_ctrl_get_fan_speed_rpm()
95 if (tach_period == 0) in smu7_fan_ctrl_get_fan_speed_rpm()
100 *speed = 60 * crystal_clock_freq * 10000 / tach_period; in smu7_fan_ctrl_get_fan_speed_rpm()
257 uint32_t tach_period; in smu7_fan_ctrl_set_fan_speed_rpm() local
272 tach_period = 60 * crystal_clock_freq * 10000 / (8 * speed); in smu7_fan_ctrl_set_fan_speed_rpm()
275 CG_TACH_STATUS, TACH_PERIOD, tach_period); in smu7_fan_ctrl_set_fan_speed_rpm()
Dvega10_thermal.c94 uint32_t tach_period; in vega10_fan_ctrl_get_fan_speed_rpm() local
104 tach_period = in vega10_fan_ctrl_get_fan_speed_rpm()
109 if (tach_period == 0) in vega10_fan_ctrl_get_fan_speed_rpm()
114 *speed = 60 * crystal_clock_freq * 10000 / tach_period; in vega10_fan_ctrl_get_fan_speed_rpm()
309 uint32_t tach_period; in vega10_fan_ctrl_set_fan_speed_rpm() local
323 tach_period = 60 * crystal_clock_freq * 10000 / (8 * speed); in vega10_fan_ctrl_set_fan_speed_rpm()
327 tach_period)); in vega10_fan_ctrl_set_fan_speed_rpm()
/Linux-v4.19/drivers/hwmon/
Dmax31790.c144 static const u8 tach_period[8] = { 1, 2, 4, 8, 16, 32, 32, 32 }; variable
148 return tach_period[SR_FROM_REG(fan_dynamics)]; in get_tach_period()
/Linux-v4.19/drivers/gpu/drm/radeon/
Dsi_dpm.c6221 u32 tach_period;
6230 tach_period = (RREG32(CG_TACH_STATUS) & TACH_PERIOD_MASK) >> TACH_PERIOD_SHIFT;
6231 if (tach_period == 0)
6234 *speed = 60 * xclk * 10000 / tach_period;
6242 u32 tach_period, tmp;
6258 tach_period = 60 * xclk * 10000 / (8 * speed);
6260 tmp |= TARGET_PERIOD(tach_period);
Dci_dpm.c1163 u32 tach_period;
1172 tach_period = (RREG32_SMC(CG_TACH_STATUS) & TACH_PERIOD_MASK) >> TACH_PERIOD_SHIFT;
1173 if (tach_period == 0)
1176 *speed = 60 * xclk * 10000 / tach_period;
1184 u32 tach_period, tmp;
1200 tach_period = 60 * xclk * 10000 / (8 * speed);
1202 tmp |= TARGET_PERIOD(tach_period);
/Linux-v4.19/drivers/gpu/drm/amd/amdgpu/
Dci_dpm.c1317 u32 tach_period;
1326 tach_period = (RREG32_SMC(ixCG_TACH_STATUS) & CG_TACH_STATUS__TACH_PERIOD_MASK)
1328 if (tach_period == 0)
1331 *speed = 60 * xclk * 10000 / tach_period;
1339 u32 tach_period, tmp;
1355 tach_period = 60 * xclk * 10000 / (8 * speed);
1357 tmp |= tach_period << CG_TACH_CTRL__TARGET_PERIOD__SHIFT;
Dsi_dpm.c6655 u32 tach_period;
6664 tach_period = (RREG32(CG_TACH_STATUS) & TACH_PERIOD_MASK) >> TACH_PERIOD_SHIFT;
6665 if (tach_period == 0)
6668 *speed = 60 * xclk * 10000 / tach_period;
6676 u32 tach_period, tmp;
6692 tach_period = 60 * xclk * 10000 / (8 * speed);
6694 tmp |= TARGET_PERIOD(tach_period);