Searched refs:tach_period (Results 1 – 10 of 10) sorted by relevance
/linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
H A 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()
|
H A D | vega10_thermal.c | 93 uint32_t tach_period; in vega10_fan_ctrl_get_fan_speed_rpm() local 103 tach_period = in vega10_fan_ctrl_get_fan_speed_rpm() 108 if (tach_period == 0) in vega10_fan_ctrl_get_fan_speed_rpm() 113 *speed = 60 * crystal_clock_freq * 10000 / tach_period; in vega10_fan_ctrl_get_fan_speed_rpm() 305 uint32_t tach_period; in vega10_fan_ctrl_set_fan_speed_rpm() local 320 tach_period = 60 * crystal_clock_freq * 10000 / (8 * speed); in vega10_fan_ctrl_set_fan_speed_rpm() 324 tach_period)); in vega10_fan_ctrl_set_fan_speed_rpm()
|
H A 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/drivers/hwmon/ |
H A D | max31790.c | 141 static const u8 tach_period[8] = { 1, 2, 4, 8, 16, 32, 32, 32 }; variable 145 return tach_period[SR_FROM_REG(fan_dynamics)]; in get_tach_period()
|
/linux/drivers/gpu/drm/amd/pm/swsmu/smu11/ |
H A D | arcturus_ppt.c | 1268 uint32_t tach_period; in arcturus_set_fan_speed_rpm() local 1270 tach_period = 60 * crystal_clock_freq * 10000 / (8 * speed); in arcturus_set_fan_speed_rpm() 1274 tach_period)); in arcturus_set_fan_speed_rpm()
|
H A D | smu_v11_0.c | 1201 uint32_t tach_period; in smu_v11_0_set_fan_speed_rpm() local 1213 tach_period = 60 * crystal_clock_freq * 10000 / (8 * speed); in smu_v11_0_set_fan_speed_rpm() 1217 tach_period)); in smu_v11_0_set_fan_speed_rpm()
|
/linux/drivers/gpu/drm/amd/pm/swsmu/smu13/ |
H A D | smu_v13_0.c | 1229 uint32_t tach_period; in smu_v13_0_set_fan_speed_rpm() local 1239 tach_period = 60 * crystal_clock_freq * 10000 / (8 * speed); in smu_v13_0_set_fan_speed_rpm() 1243 tach_period)); in smu_v13_0_set_fan_speed_rpm()
|
/linux/drivers/gpu/drm/radeon/ |
H A D | ci_dpm.c | 1135 u32 tach_period; 1144 tach_period = (RREG32_SMC(CG_TACH_STATUS) & TACH_PERIOD_MASK) >> TACH_PERIOD_SHIFT; 1145 if (tach_period == 0) 1148 *speed = 60 * xclk * 10000 / tach_period; 1156 u32 tach_period, tmp; 1172 tach_period = 60 * xclk * 10000 / (8 * speed); 1174 tmp |= TARGET_PERIOD(tach_period);
|
H A D | si_dpm.c | 6162 u32 tach_period; 6171 tach_period = (RREG32(CG_TACH_STATUS) & TACH_PERIOD_MASK) >> TACH_PERIOD_SHIFT; 6172 if (tach_period == 0) 6175 *speed = 60 * xclk * 10000 / tach_period; 6183 u32 tach_period, tmp; 6199 tach_period = 60 * xclk * 10000 / (8 * speed); 6201 tmp |= TARGET_PERIOD(tach_period);
|
/linux/drivers/gpu/drm/amd/pm/legacy-dpm/ |
H A D | si_dpm.c | 6685 u32 tach_period; 6694 tach_period = (RREG32(CG_TACH_STATUS) & TACH_PERIOD_MASK) >> TACH_PERIOD_SHIFT; 6695 if (tach_period == 0) 6698 *speed = 60 * xclk * 10000 / tach_period; 6706 u32 tach_period, tmp; 6722 tach_period = 60 * xclk * 10000 / (8 * speed); 6724 tmp |= TARGET_PERIOD(tach_period);
|