Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
Dsmu7_thermal.c82 uint32_t tach_period; in smu7_fan_ctrl_get_fan_speed_rpm() local
89 tach_period = PHM_READ_VFPF_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, in smu7_fan_ctrl_get_fan_speed_rpm()
92 if (tach_period == 0) in smu7_fan_ctrl_get_fan_speed_rpm()
97 *speed = 60 * crystal_clock_freq * 10000 / tach_period; in smu7_fan_ctrl_get_fan_speed_rpm()
264 uint32_t tach_period; in smu7_fan_ctrl_set_fan_speed_rpm() local
280 tach_period = 60 * crystal_clock_freq * 10000 / (8 * speed); in smu7_fan_ctrl_set_fan_speed_rpm()
283 CG_TACH_CTRL, TARGET_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()
306 uint32_t tach_period; in vega10_fan_ctrl_set_fan_speed_rpm() local
321 tach_period = 60 * crystal_clock_freq * 10000 / (8 * speed); in vega10_fan_ctrl_set_fan_speed_rpm()
325 tach_period)); in vega10_fan_ctrl_set_fan_speed_rpm()
Dvega20_thermal.c191 uint32_t tach_period, crystal_clock_freq; in vega20_fan_ctrl_set_fan_speed_rpm() local
204 tach_period = 60 * crystal_clock_freq * 10000 / (8 * speed); in vega20_fan_ctrl_set_fan_speed_rpm()
208 tach_period)); in vega20_fan_ctrl_set_fan_speed_rpm()
/linux-5.19.10/drivers/hwmon/
Dmax31790.c138 static const u8 tach_period[8] = { 1, 2, 4, 8, 16, 32, 32, 32 }; variable
142 return tach_period[SR_FROM_REG(fan_dynamics)]; in get_tach_period()
/linux-5.19.10/drivers/gpu/drm/amd/pm/swsmu/smu11/
Dsmu_v11_0.c1229 uint32_t tach_period; in smu_v11_0_set_fan_speed_rpm() local
1241 tach_period = 60 * crystal_clock_freq * 10000 / (8 * speed); in smu_v11_0_set_fan_speed_rpm()
1245 tach_period)); in smu_v11_0_set_fan_speed_rpm()
Darcturus_ppt.c1273 uint32_t tach_period; in arcturus_set_fan_speed_rpm() local
1275 tach_period = 60 * crystal_clock_freq * 10000 / (8 * speed); in arcturus_set_fan_speed_rpm()
1279 tach_period)); in arcturus_set_fan_speed_rpm()
/linux-5.19.10/drivers/gpu/drm/amd/pm/swsmu/smu13/
Dsmu_v13_0.c1252 uint32_t tach_period, crystal_clock_freq; in smu_v13_0_set_fan_speed_rpm() local
1263 tach_period = 60 * crystal_clock_freq * 10000 / (8 * speed); in smu_v13_0_set_fan_speed_rpm()
1267 tach_period)); in smu_v13_0_set_fan_speed_rpm()
/linux-5.19.10/drivers/gpu/drm/radeon/
Dci_dpm.c1140 u32 tach_period;
1149 tach_period = (RREG32_SMC(CG_TACH_STATUS) & TACH_PERIOD_MASK) >> TACH_PERIOD_SHIFT;
1150 if (tach_period == 0)
1153 *speed = 60 * xclk * 10000 / tach_period;
1161 u32 tach_period, tmp;
1177 tach_period = 60 * xclk * 10000 / (8 * speed);
1179 tmp |= TARGET_PERIOD(tach_period);
Dsi_dpm.c6206 u32 tach_period;
6215 tach_period = (RREG32(CG_TACH_STATUS) & TACH_PERIOD_MASK) >> TACH_PERIOD_SHIFT;
6216 if (tach_period == 0)
6219 *speed = 60 * xclk * 10000 / tach_period;
6227 u32 tach_period, tmp;
6243 tach_period = 60 * xclk * 10000 / (8 * speed);
6245 tmp |= TARGET_PERIOD(tach_period);
/linux-5.19.10/drivers/gpu/drm/amd/pm/legacy-dpm/
Dsi_dpm.c6687 u32 tach_period;
6696 tach_period = (RREG32(CG_TACH_STATUS) & TACH_PERIOD_MASK) >> TACH_PERIOD_SHIFT;
6697 if (tach_period == 0)
6700 *speed = 60 * xclk * 10000 / tach_period;
6708 u32 tach_period, tmp;
6724 tach_period = 60 * xclk * 10000 / (8 * speed);
6726 tmp |= TARGET_PERIOD(tach_period);