Searched refs:tach_period (Results 1 – 8 of 8) sorted by relevance
/Linux-v5.4/drivers/gpu/drm/amd/powerplay/hwmgr/ |
D | smu7_thermal.c | 85 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 273 tach_period = 60 * crystal_clock_freq * 10000 / (8 * speed); in smu7_fan_ctrl_set_fan_speed_rpm() 276 CG_TACH_CTRL, TARGET_PERIOD, tach_period); in smu7_fan_ctrl_set_fan_speed_rpm()
|
D | vega10_thermal.c | 95 uint32_t tach_period; in vega10_fan_ctrl_get_fan_speed_rpm() local 105 tach_period = in vega10_fan_ctrl_get_fan_speed_rpm() 110 if (tach_period == 0) in vega10_fan_ctrl_get_fan_speed_rpm() 115 *speed = 60 * crystal_clock_freq * 10000 / tach_period; in vega10_fan_ctrl_get_fan_speed_rpm() 310 uint32_t tach_period; in vega10_fan_ctrl_set_fan_speed_rpm() local 325 tach_period = 60 * crystal_clock_freq * 10000 / (8 * speed); in vega10_fan_ctrl_set_fan_speed_rpm() 329 tach_period)); in vega10_fan_ctrl_set_fan_speed_rpm()
|
D | vega20_thermal.c | 189 uint32_t tach_period, crystal_clock_freq; in vega20_fan_ctrl_set_fan_speed_rpm() local 202 tach_period = 60 * crystal_clock_freq * 10000 / (8 * speed); in vega20_fan_ctrl_set_fan_speed_rpm() 206 tach_period)); in vega20_fan_ctrl_set_fan_speed_rpm()
|
/Linux-v5.4/drivers/hwmon/ |
D | max31790.c | 135 static const u8 tach_period[8] = { 1, 2, 4, 8, 16, 32, 32, 32 }; variable 139 return tach_period[SR_FROM_REG(fan_dynamics)]; in get_tach_period()
|
/Linux-v5.4/drivers/gpu/drm/amd/powerplay/ |
D | smu_v11_0.c | 1480 uint32_t tach_period, crystal_clock_freq; in smu_v11_0_set_fan_speed_rpm() local 1491 tach_period = 60 * crystal_clock_freq * 10000 / (8 * speed); in smu_v11_0_set_fan_speed_rpm() 1495 tach_period)); in smu_v11_0_set_fan_speed_rpm()
|
/Linux-v5.4/drivers/gpu/drm/radeon/ |
D | si_dpm.c | 6226 u32 tach_period; 6235 tach_period = (RREG32(CG_TACH_STATUS) & TACH_PERIOD_MASK) >> TACH_PERIOD_SHIFT; 6236 if (tach_period == 0) 6239 *speed = 60 * xclk * 10000 / tach_period; 6247 u32 tach_period, tmp; 6263 tach_period = 60 * xclk * 10000 / (8 * speed); 6265 tmp |= TARGET_PERIOD(tach_period);
|
D | ci_dpm.c | 1165 u32 tach_period; 1174 tach_period = (RREG32_SMC(CG_TACH_STATUS) & TACH_PERIOD_MASK) >> TACH_PERIOD_SHIFT; 1175 if (tach_period == 0) 1178 *speed = 60 * xclk * 10000 / tach_period; 1186 u32 tach_period, tmp; 1202 tach_period = 60 * xclk * 10000 / (8 * speed); 1204 tmp |= TARGET_PERIOD(tach_period);
|
/Linux-v5.4/drivers/gpu/drm/amd/amdgpu/ |
D | si_dpm.c | 6658 u32 tach_period; 6667 tach_period = (RREG32(CG_TACH_STATUS) & TACH_PERIOD_MASK) >> TACH_PERIOD_SHIFT; 6668 if (tach_period == 0) 6671 *speed = 60 * xclk * 10000 / tach_period; 6679 u32 tach_period, tmp; 6695 tach_period = 60 * xclk * 10000 / (8 * speed); 6697 tmp |= TARGET_PERIOD(tach_period);
|