Home
last modified time | relevance | path

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

/linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
H A 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()
H A Dvega10_thermal.c93 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 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/drivers/hwmon/
H A Dmax31790.c141 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 Darcturus_ppt.c1268 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 Dsmu_v11_0.c1201 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 Dsmu_v13_0.c1229 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 Dci_dpm.c1135 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 Dsi_dpm.c6162 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 Dsi_dpm.c6685 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);