Searched refs:tach_period (Results 1 – 4 of 4) sorted by relevance
| /linux-4.4.14/drivers/hwmon/ |
| D | max31790.c | 145 static const u8 tach_period[8] = { 1, 2, 4, 8, 16, 32, 32, 32 }; variable 149 return tach_period[SR_FROM_REG(fan_dynamics)]; in get_tach_period()
|
| /linux-4.4.14/drivers/gpu/drm/radeon/ |
| D | ci_dpm.c | 1156 u32 tach_period; 1165 tach_period = (RREG32_SMC(CG_TACH_STATUS) & TACH_PERIOD_MASK) >> TACH_PERIOD_SHIFT; 1166 if (tach_period == 0) 1169 *speed = 60 * xclk * 10000 / tach_period; 1177 u32 tach_period, tmp; 1193 tach_period = 60 * xclk * 10000 / (8 * speed); 1195 tmp |= TARGET_PERIOD(tach_period);
|
| D | si_dpm.c | 6236 u32 tach_period; 6245 tach_period = (RREG32(CG_TACH_STATUS) & TACH_PERIOD_MASK) >> TACH_PERIOD_SHIFT; 6246 if (tach_period == 0) 6249 *speed = 60 * xclk * 10000 / tach_period; 6257 u32 tach_period, tmp; 6273 tach_period = 60 * xclk * 10000 / (8 * speed); 6275 tmp |= TARGET_PERIOD(tach_period);
|
| /linux-4.4.14/drivers/gpu/drm/amd/amdgpu/ |
| D | ci_dpm.c | 1281 u32 tach_period; 1290 tach_period = (RREG32_SMC(ixCG_TACH_STATUS) & CG_TACH_STATUS__TACH_PERIOD_MASK) 1292 if (tach_period == 0) 1295 *speed = 60 * xclk * 10000 / tach_period; 1303 u32 tach_period, tmp; 1319 tach_period = 60 * xclk * 10000 / (8 * speed); 1321 tmp |= tach_period << CG_TACH_CTRL__TARGET_PERIOD__SHIFT;
|