Lines Matching refs:DIV_ROUND_CLOSEST
2036 linetime = DIV_ROUND_CLOSEST(adjusted_mode->crtc_htotal * 1000 * 8, in hsw_compute_linetime_wm()
2038 ips_linetime = DIV_ROUND_CLOSEST(adjusted_mode->crtc_htotal * 1000 * 8, in hsw_compute_linetime_wm()
5103 ia_freq = DIV_ROUND_CLOSEST(ia_freq, 100); in __gen6_update_ring_freq()
7219 int div, czclk_freq = DIV_ROUND_CLOSEST(dev_priv->czclk_freq, 1000); in byt_gpu_freq()
7225 return DIV_ROUND_CLOSEST(czclk_freq * (val + 6 - 0xbd), div); in byt_gpu_freq()
7230 int mul, czclk_freq = DIV_ROUND_CLOSEST(dev_priv->czclk_freq, 1000); in byt_freq_opcode()
7236 return DIV_ROUND_CLOSEST(mul * val, czclk_freq) + 0xbd - 6; in byt_freq_opcode()
7241 int div, czclk_freq = DIV_ROUND_CLOSEST(dev_priv->czclk_freq, 1000); in chv_gpu_freq()
7247 return DIV_ROUND_CLOSEST(czclk_freq * val, 2 * div) / 2; in chv_gpu_freq()
7252 int mul, czclk_freq = DIV_ROUND_CLOSEST(dev_priv->czclk_freq, 1000); in chv_freq_opcode()
7259 return DIV_ROUND_CLOSEST(val * 2 * mul, czclk_freq) * 2; in chv_freq_opcode()
7265 return DIV_ROUND_CLOSEST(val * GT_FREQUENCY_MULTIPLIER, in intel_gpu_freq()
7278 return DIV_ROUND_CLOSEST(val * GEN9_FREQ_SCALER, in intel_freq_opcode()
7285 return DIV_ROUND_CLOSEST(val, GT_FREQUENCY_MULTIPLIER); in intel_freq_opcode()