Lines Matching refs:min_cdclk

477 static int vlv_calc_cdclk(struct drm_i915_private *dev_priv, int min_cdclk)  in vlv_calc_cdclk()  argument
487 if (IS_VALLEYVIEW(dev_priv) && min_cdclk > freq_320) in vlv_calc_cdclk()
489 else if (min_cdclk > 266667) in vlv_calc_cdclk()
491 else if (min_cdclk > 0) in vlv_calc_cdclk()
716 static int bdw_calc_cdclk(int min_cdclk) in bdw_calc_cdclk() argument
718 if (min_cdclk > 540000) in bdw_calc_cdclk()
720 else if (min_cdclk > 450000) in bdw_calc_cdclk()
722 else if (min_cdclk > 337500) in bdw_calc_cdclk()
840 static int skl_calc_cdclk(int min_cdclk, int vco) in skl_calc_cdclk() argument
843 if (min_cdclk > 540000) in skl_calc_cdclk()
845 else if (min_cdclk > 432000) in skl_calc_cdclk()
847 else if (min_cdclk > 308571) in skl_calc_cdclk()
852 if (min_cdclk > 540000) in skl_calc_cdclk()
854 else if (min_cdclk > 450000) in skl_calc_cdclk()
856 else if (min_cdclk > 337500) in skl_calc_cdclk()
1353 static int bxt_calc_cdclk(struct drm_i915_private *dev_priv, int min_cdclk) in bxt_calc_cdclk() argument
1360 table[i].cdclk >= min_cdclk) in bxt_calc_cdclk()
1365 min_cdclk, dev_priv->display.cdclk.hw.ref); in bxt_calc_cdclk()
2215 int min_cdclk = 0; in intel_planes_min_cdclk() local
2218 min_cdclk = max(crtc_state->min_cdclk[plane->id], min_cdclk); in intel_planes_min_cdclk()
2220 return min_cdclk; in intel_planes_min_cdclk()
2227 int min_cdclk; in intel_crtc_compute_min_cdclk() local
2232 min_cdclk = intel_pixel_rate_to_cdclk(crtc_state); in intel_crtc_compute_min_cdclk()
2236 min_cdclk = DIV_ROUND_UP(min_cdclk * 100, 95); in intel_crtc_compute_min_cdclk()
2249 min_cdclk = max(316800, min_cdclk); in intel_crtc_compute_min_cdclk()
2252 min_cdclk = max(432000, min_cdclk); in intel_crtc_compute_min_cdclk()
2261 min_cdclk = max(2 * 96000, min_cdclk); in intel_crtc_compute_min_cdclk()
2272 min_cdclk = max(crtc_state->port_clock, min_cdclk); in intel_crtc_compute_min_cdclk()
2280 min_cdclk = max(320000, min_cdclk); in intel_crtc_compute_min_cdclk()
2289 min_cdclk = max(158400, min_cdclk); in intel_crtc_compute_min_cdclk()
2292 min_cdclk = max(intel_planes_min_cdclk(crtc_state), min_cdclk); in intel_crtc_compute_min_cdclk()
2300 min_cdclk = max(min_cdclk, (int)crtc_state->pixel_rate); in intel_crtc_compute_min_cdclk()
2316 min_cdclk = max_t(int, min_cdclk, in intel_crtc_compute_min_cdclk()
2321 return min_cdclk; in intel_crtc_compute_min_cdclk()
2331 int min_cdclk, i; in intel_compute_min_cdclk() local
2337 min_cdclk = intel_crtc_compute_min_cdclk(crtc_state); in intel_compute_min_cdclk()
2338 if (min_cdclk < 0) in intel_compute_min_cdclk()
2339 return min_cdclk; in intel_compute_min_cdclk()
2341 if (cdclk_state->min_cdclk[crtc->pipe] == min_cdclk) in intel_compute_min_cdclk()
2344 cdclk_state->min_cdclk[crtc->pipe] = min_cdclk; in intel_compute_min_cdclk()
2353 min_cdclk = intel_bw_min_cdclk(dev_priv, bw_state); in intel_compute_min_cdclk()
2355 if (cdclk_state->bw_min_cdclk != min_cdclk) { in intel_compute_min_cdclk()
2358 cdclk_state->bw_min_cdclk = min_cdclk; in intel_compute_min_cdclk()
2366 min_cdclk = max(cdclk_state->force_min_cdclk, in intel_compute_min_cdclk()
2369 min_cdclk = max(cdclk_state->min_cdclk[pipe], min_cdclk); in intel_compute_min_cdclk()
2371 if (min_cdclk > dev_priv->display.cdclk.max_cdclk_freq) { in intel_compute_min_cdclk()
2374 min_cdclk, dev_priv->display.cdclk.max_cdclk_freq); in intel_compute_min_cdclk()
2378 return min_cdclk; in intel_compute_min_cdclk()
2434 int min_cdclk, cdclk; in vlv_modeset_calc_cdclk() local
2436 min_cdclk = intel_compute_min_cdclk(cdclk_state); in vlv_modeset_calc_cdclk()
2437 if (min_cdclk < 0) in vlv_modeset_calc_cdclk()
2438 return min_cdclk; in vlv_modeset_calc_cdclk()
2440 cdclk = vlv_calc_cdclk(dev_priv, min_cdclk); in vlv_modeset_calc_cdclk()
2461 int min_cdclk, cdclk; in bdw_modeset_calc_cdclk() local
2463 min_cdclk = intel_compute_min_cdclk(cdclk_state); in bdw_modeset_calc_cdclk()
2464 if (min_cdclk < 0) in bdw_modeset_calc_cdclk()
2465 return min_cdclk; in bdw_modeset_calc_cdclk()
2471 cdclk = bdw_calc_cdclk(min_cdclk); in bdw_modeset_calc_cdclk()
2529 int min_cdclk, cdclk, vco; in skl_modeset_calc_cdclk() local
2531 min_cdclk = intel_compute_min_cdclk(cdclk_state); in skl_modeset_calc_cdclk()
2532 if (min_cdclk < 0) in skl_modeset_calc_cdclk()
2533 return min_cdclk; in skl_modeset_calc_cdclk()
2541 cdclk = skl_calc_cdclk(min_cdclk, vco); in skl_modeset_calc_cdclk()
2566 int min_cdclk, min_voltage_level, cdclk, vco; in bxt_modeset_calc_cdclk() local
2568 min_cdclk = intel_compute_min_cdclk(cdclk_state); in bxt_modeset_calc_cdclk()
2569 if (min_cdclk < 0) in bxt_modeset_calc_cdclk()
2570 return min_cdclk; in bxt_modeset_calc_cdclk()
2576 cdclk = bxt_calc_cdclk(dev_priv, min_cdclk); in bxt_modeset_calc_cdclk()
2602 int min_cdclk; in fixed_modeset_calc_cdclk() local
2609 min_cdclk = intel_compute_min_cdclk(cdclk_state); in fixed_modeset_calc_cdclk()
2610 if (min_cdclk < 0) in fixed_modeset_calc_cdclk()
2611 return min_cdclk; in fixed_modeset_calc_cdclk()