Searched refs:tach_period (Results 1 – 10 of 10) sorted by relevance
/linux-5.19.10/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
D | smu7_thermal.c | 82 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()
|
D | vega10_thermal.c | 94 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()
|
D | vega20_thermal.c | 191 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/ |
D | max31790.c | 138 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/ |
D | smu_v11_0.c | 1229 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()
|
D | arcturus_ppt.c | 1273 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/ |
D | smu_v13_0.c | 1252 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/ |
D | ci_dpm.c | 1140 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);
|
D | si_dpm.c | 6206 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/ |
D | si_dpm.c | 6687 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);
|