Searched refs:duty100 (Results 1 - 2 of 2) sorted by relevance

/linux-4.1.27/drivers/gpu/drm/radeon/
H A Dci_dpm.c952 u32 duty100; ci_thermal_setup_fan_table() local
964 duty100 = (RREG32_SMC(CG_FDO_CTRL1) & FMAX_DUTY100_MASK) >> FMAX_DUTY100_SHIFT; ci_thermal_setup_fan_table()
966 if (duty100 == 0) { ci_thermal_setup_fan_table()
971 tmp64 = (u64)rdev->pm.dpm.fan.pwm_min * duty100; ci_thermal_setup_fan_table()
981 slope1 = (u16)((50 + ((16 * duty100 * pwm_diff1) / t_diff1)) / 100); ci_thermal_setup_fan_table()
982 slope2 = (u16)((50 + ((16 * duty100 * pwm_diff2) / t_diff2)) / 100); ci_thermal_setup_fan_table()
1006 fan_table.FdoMax = cpu_to_be16((u16)duty100); ci_thermal_setup_fan_table()
1069 u32 duty, duty100; ci_fan_ctrl_get_fan_speed_percent() local
1075 duty100 = (RREG32_SMC(CG_FDO_CTRL1) & FMAX_DUTY100_MASK) >> FMAX_DUTY100_SHIFT; ci_fan_ctrl_get_fan_speed_percent()
1078 if (duty100 == 0) ci_fan_ctrl_get_fan_speed_percent()
1082 do_div(tmp64, duty100); ci_fan_ctrl_get_fan_speed_percent()
1095 u32 duty, duty100; ci_fan_ctrl_set_fan_speed_percent() local
1108 duty100 = (RREG32_SMC(CG_FDO_CTRL1) & FMAX_DUTY100_MASK) >> FMAX_DUTY100_SHIFT; ci_fan_ctrl_set_fan_speed_percent()
1110 if (duty100 == 0) ci_fan_ctrl_set_fan_speed_percent()
1113 tmp64 = (u64)speed * duty100; ci_fan_ctrl_set_fan_speed_percent()
H A Dsi_dpm.c5955 u32 duty100; si_thermal_setup_fan_table() local
5967 duty100 = (RREG32(CG_FDO_CTRL1) & FMAX_DUTY100_MASK) >> FMAX_DUTY100_SHIFT; si_thermal_setup_fan_table()
5969 if (duty100 == 0) { si_thermal_setup_fan_table()
5974 tmp64 = (u64)rdev->pm.dpm.fan.pwm_min * duty100; si_thermal_setup_fan_table()
5984 slope1 = (u16)((50 + ((16 * duty100 * pwm_diff1) / t_diff1)) / 100); si_thermal_setup_fan_table()
5985 slope2 = (u16)((50 + ((16 * duty100 * pwm_diff2) / t_diff2)) / 100); si_thermal_setup_fan_table()
6009 fan_table.fdo_max = cpu_to_be16((u16)duty100); si_thermal_setup_fan_table()
6060 u32 duty, duty100; si_fan_ctrl_get_fan_speed_percent() local
6066 duty100 = (RREG32(CG_FDO_CTRL1) & FMAX_DUTY100_MASK) >> FMAX_DUTY100_SHIFT; si_fan_ctrl_get_fan_speed_percent()
6069 if (duty100 == 0) si_fan_ctrl_get_fan_speed_percent()
6073 do_div(tmp64, duty100); si_fan_ctrl_get_fan_speed_percent()
6087 u32 duty, duty100; si_fan_ctrl_set_fan_speed_percent() local
6099 duty100 = (RREG32(CG_FDO_CTRL1) & FMAX_DUTY100_MASK) >> FMAX_DUTY100_SHIFT; si_fan_ctrl_set_fan_speed_percent()
6101 if (duty100 == 0) si_fan_ctrl_set_fan_speed_percent()
6104 tmp64 = (u64)speed * duty100; si_fan_ctrl_set_fan_speed_percent()

Completed in 126 milliseconds