Lines Matching refs:crtc
33 struct drm_crtc *crtc, int target,
222 cdv_dpll_set_clock_cdv(struct drm_device *dev, struct drm_crtc *crtc, in cdv_dpll_set_clock_cdv() argument
225 struct gma_crtc *gma_crtc = to_gma_crtc(crtc); in cdv_dpll_set_clock_cdv()
373 static const struct gma_limit_t *cdv_intel_limit(struct drm_crtc *crtc, in cdv_intel_limit() argument
377 if (gma_pipe_has_type(crtc, INTEL_OUTPUT_LVDS)) { in cdv_intel_limit()
386 } else if (gma_pipe_has_type(crtc, INTEL_OUTPUT_DISPLAYPORT) || in cdv_intel_limit()
387 gma_pipe_has_type(crtc, INTEL_OUTPUT_EDP)) { in cdv_intel_limit()
411 struct drm_crtc *crtc, int target, in cdv_intel_find_dp_pll() argument
415 struct gma_crtc *gma_crtc = to_gma_crtc(crtc); in cdv_intel_find_dp_pll()
465 struct drm_crtc *crtc; in cdv_intel_pipe_enabled() local
469 crtc = dev_priv->pipe_to_crtc_mapping[pipe]; in cdv_intel_pipe_enabled()
470 gma_crtc = to_gma_crtc(crtc); in cdv_intel_pipe_enabled()
472 if (crtc->primary->fb == NULL || !gma_crtc->active) in cdv_intel_pipe_enabled()
498 void cdv_update_wm(struct drm_device *dev, struct drm_crtc *crtc) in cdv_update_wm() argument
501 struct gma_crtc *gma_crtc = to_gma_crtc(crtc); in cdv_update_wm()
527 gma_pipe_has_type(crtc, INTEL_OUTPUT_LVDS)) { in cdv_update_wm()
578 static int cdv_intel_crtc_mode_set(struct drm_crtc *crtc, in cdv_intel_crtc_mode_set() argument
584 struct drm_device *dev = crtc->dev; in cdv_intel_crtc_mode_set()
586 struct gma_crtc *gma_crtc = to_gma_crtc(crtc); in cdv_intel_crtc_mode_set()
606 || connector->encoder->crtc != crtc) in cdv_intel_crtc_mode_set()
663 limit = gma_crtc->clock_funcs->limit(crtc, refclk); in cdv_intel_crtc_mode_set()
665 ok = limit->find_pll(limit, crtc, adjusted_mode->clock, refclk, in cdv_intel_crtc_mode_set()
682 cdv_intel_dp_set_m_n(crtc, mode, adjusted_mode); in cdv_intel_crtc_mode_set()
739 cdv_dpll_set_clock_cdv(dev, crtc, &clock, is_lvds, ddi_select); in cdv_intel_crtc_mode_set()
827 crtc->helper_private; in cdv_intel_crtc_mode_set()
828 crtc_funcs->mode_set_base(crtc, x, y, old_fb); in cdv_intel_crtc_mode_set()
850 struct drm_crtc *crtc) in cdv_intel_crtc_clock_get() argument
853 struct gma_crtc *gma_crtc = to_gma_crtc(crtc); in cdv_intel_crtc_clock_get()
929 struct drm_crtc *crtc) in cdv_intel_crtc_mode_get() argument
931 struct gma_crtc *gma_crtc = to_gma_crtc(crtc); in cdv_intel_crtc_mode_get()
959 mode->clock = cdv_intel_crtc_clock_get(dev, crtc); in cdv_intel_crtc_mode_get()