Lines Matching refs:czclk_freq
7200 static int vlv_gpu_freq_div(unsigned int czclk_freq) in vlv_gpu_freq_div() argument
7202 switch (czclk_freq) { in vlv_gpu_freq_div()
7219 int div, czclk_freq = DIV_ROUND_CLOSEST(dev_priv->czclk_freq, 1000); in byt_gpu_freq() local
7221 div = vlv_gpu_freq_div(czclk_freq); 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() local
7232 mul = vlv_gpu_freq_div(czclk_freq); 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() local
7243 div = vlv_gpu_freq_div(czclk_freq) / 2; 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() local
7254 mul = vlv_gpu_freq_div(czclk_freq) / 2; in chv_freq_opcode()
7259 return DIV_ROUND_CLOSEST(val * 2 * mul, czclk_freq) * 2; in chv_freq_opcode()