Lines Matching refs:DIV_ROUND_CLOSEST
409 clock->vco = DIV_ROUND_CLOSEST(refclk * clock->m, clock->n); in vlv_clock()
410 clock->dot = DIV_ROUND_CLOSEST(clock->vco, clock->p); in vlv_clock()
550 clock->vco = DIV_ROUND_CLOSEST(refclk * clock->m, clock->n); in pineview_clock()
551 clock->dot = DIV_ROUND_CLOSEST(clock->vco, clock->p); in pineview_clock()
565 clock->vco = DIV_ROUND_CLOSEST(refclk * clock->m, clock->n + 2); in i9xx_clock()
566 clock->dot = DIV_ROUND_CLOSEST(clock->vco, clock->p); in i9xx_clock()
577 clock->dot = DIV_ROUND_CLOSEST(clock->vco, clock->p); in chv_clock()
872 clock.m2 = DIV_ROUND_CLOSEST(target * clock.p * clock.n, in vlv_find_best_dpll()
5059 divider = DIV_ROUND_CLOSEST(dev_priv->hpll_freq << 1, cdclk) - 1; in valleyview_set_cdclk()
5117 cmd = DIV_ROUND_CLOSEST(dev_priv->hpll_freq << 1, cdclk) - 1; in cherryview_set_cdclk()
5206 if (DIV_ROUND_CLOSEST(dev_priv->vlv_cdclk_freq, 1000) >= dev_priv->rps.cz_freq) { in vlv_program_pfi_credits()
5897 return DIV_ROUND_CLOSEST(dev_priv->hpll_freq << 1, divider + 1); in valleyview_get_display_clock_speed()