Lines Matching refs:crtc
99 struct intel_crtc *crtc,
102 struct intel_crtc *crtc,
105 struct intel_crtc *crtc);
107 struct intel_crtc *crtc,
223 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in intel_enable_shared_dpll() local
224 struct drm_i915_private *dev_priv = to_i915(crtc->base.dev); in intel_enable_shared_dpll()
226 unsigned int pipe_mask = BIT(crtc->pipe); in intel_enable_shared_dpll()
244 crtc->base.base.id, crtc->base.name); in intel_enable_shared_dpll()
269 struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc); in intel_disable_shared_dpll() local
270 struct drm_i915_private *dev_priv = to_i915(crtc->base.dev); in intel_disable_shared_dpll()
272 unsigned int pipe_mask = BIT(crtc->pipe); in intel_disable_shared_dpll()
284 crtc->base.base.id, crtc->base.name)) in intel_disable_shared_dpll()
290 crtc->base.base.id, crtc->base.name); in intel_disable_shared_dpll()
309 const struct intel_crtc *crtc, in intel_find_shared_dpll() argument
313 struct drm_i915_private *dev_priv = to_i915(crtc->base.dev); in intel_find_shared_dpll()
337 crtc->base.base.id, crtc->base.name, in intel_find_shared_dpll()
348 crtc->base.base.id, crtc->base.name, in intel_find_shared_dpll()
365 intel_reference_shared_dpll_crtc(const struct intel_crtc *crtc, in intel_reference_shared_dpll_crtc() argument
369 struct drm_i915_private *i915 = to_i915(crtc->base.dev); in intel_reference_shared_dpll_crtc()
371 drm_WARN_ON(&i915->drm, (shared_dpll_state->pipe_mask & BIT(crtc->pipe)) != 0); in intel_reference_shared_dpll_crtc()
373 shared_dpll_state->pipe_mask |= BIT(crtc->pipe); in intel_reference_shared_dpll_crtc()
376 crtc->base.base.id, crtc->base.name, pll->info->name); in intel_reference_shared_dpll_crtc()
381 const struct intel_crtc *crtc, in intel_reference_shared_dpll() argument
393 intel_reference_shared_dpll_crtc(crtc, pll, &shared_dpll[id]); in intel_reference_shared_dpll()
405 intel_unreference_shared_dpll_crtc(const struct intel_crtc *crtc, in intel_unreference_shared_dpll_crtc() argument
409 struct drm_i915_private *i915 = to_i915(crtc->base.dev); in intel_unreference_shared_dpll_crtc()
411 drm_WARN_ON(&i915->drm, (shared_dpll_state->pipe_mask & BIT(crtc->pipe)) == 0); in intel_unreference_shared_dpll_crtc()
413 shared_dpll_state->pipe_mask &= ~BIT(crtc->pipe); in intel_unreference_shared_dpll_crtc()
416 crtc->base.base.id, crtc->base.name, pll->info->name); in intel_unreference_shared_dpll_crtc()
420 const struct intel_crtc *crtc, in intel_unreference_shared_dpll() argument
428 intel_unreference_shared_dpll_crtc(crtc, pll, &shared_dpll[id]); in intel_unreference_shared_dpll()
432 struct intel_crtc *crtc) in intel_put_dpll() argument
435 intel_atomic_get_old_crtc_state(state, crtc); in intel_put_dpll()
437 intel_atomic_get_new_crtc_state(state, crtc); in intel_put_dpll()
444 intel_unreference_shared_dpll(state, crtc, old_crtc_state->shared_dpll); in intel_put_dpll()
548 struct intel_crtc *crtc, in ibx_compute_dpll() argument
555 struct intel_crtc *crtc, in ibx_get_dpll() argument
559 intel_atomic_get_new_crtc_state(state, crtc); in ibx_get_dpll()
560 struct drm_i915_private *dev_priv = to_i915(crtc->base.dev); in ibx_get_dpll()
566 i = (enum intel_dpll_id) crtc->pipe; in ibx_get_dpll()
571 crtc->base.base.id, crtc->base.name, in ibx_get_dpll()
574 pll = intel_find_shared_dpll(state, crtc, in ibx_get_dpll()
584 intel_reference_shared_dpll(state, crtc, in ibx_get_dpll()
963 struct intel_crtc *crtc) in hsw_ddi_wrpll_compute_dpll() argument
967 intel_atomic_get_new_crtc_state(state, crtc); in hsw_ddi_wrpll_compute_dpll()
985 struct intel_crtc *crtc) in hsw_ddi_wrpll_get_dpll() argument
988 intel_atomic_get_new_crtc_state(state, crtc); in hsw_ddi_wrpll_get_dpll()
990 return intel_find_shared_dpll(state, crtc, in hsw_ddi_wrpll_get_dpll()
999 struct drm_i915_private *dev_priv = to_i915(crtc_state->uapi.crtc->dev); in hsw_ddi_lcpll_compute_dpll()
1017 struct drm_i915_private *dev_priv = to_i915(crtc_state->uapi.crtc->dev); in hsw_ddi_lcpll_get_dpll()
1071 struct intel_crtc *crtc) in hsw_ddi_spll_compute_dpll() argument
1074 intel_atomic_get_new_crtc_state(state, crtc); in hsw_ddi_spll_compute_dpll()
1076 if (drm_WARN_ON(crtc->base.dev, crtc_state->port_clock / 2 != 135000)) in hsw_ddi_spll_compute_dpll()
1087 struct intel_crtc *crtc) in hsw_ddi_spll_get_dpll() argument
1090 intel_atomic_get_new_crtc_state(state, crtc); in hsw_ddi_spll_get_dpll()
1092 return intel_find_shared_dpll(state, crtc, &crtc_state->dpll_hw_state, in hsw_ddi_spll_get_dpll()
1121 struct intel_crtc *crtc, in hsw_compute_dpll() argument
1125 intel_atomic_get_new_crtc_state(state, crtc); in hsw_compute_dpll()
1128 return hsw_ddi_wrpll_compute_dpll(state, crtc); in hsw_compute_dpll()
1132 return hsw_ddi_spll_compute_dpll(state, crtc); in hsw_compute_dpll()
1138 struct intel_crtc *crtc, in hsw_get_dpll() argument
1142 intel_atomic_get_new_crtc_state(state, crtc); in hsw_get_dpll()
1146 pll = hsw_ddi_wrpll_get_dpll(state, crtc); in hsw_get_dpll()
1150 pll = hsw_ddi_spll_get_dpll(state, crtc); in hsw_get_dpll()
1155 intel_reference_shared_dpll(state, crtc, in hsw_get_dpll()
1703 struct drm_i915_private *i915 = to_i915(crtc_state->uapi.crtc->dev); in skl_ddi_hdmi_pll_dividers()
1813 struct intel_crtc *crtc, in skl_compute_dpll() argument
1817 intel_atomic_get_new_crtc_state(state, crtc); in skl_compute_dpll()
1828 struct intel_crtc *crtc, in skl_get_dpll() argument
1832 intel_atomic_get_new_crtc_state(state, crtc); in skl_get_dpll()
1836 pll = intel_find_shared_dpll(state, crtc, in skl_get_dpll()
1840 pll = intel_find_shared_dpll(state, crtc, in skl_get_dpll()
1848 intel_reference_shared_dpll(state, crtc, in skl_get_dpll()
2133 struct drm_i915_private *i915 = to_i915(crtc_state->uapi.crtc->dev); in bxt_ddi_hdmi_pll_dividers()
2151 struct drm_i915_private *i915 = to_i915(crtc_state->uapi.crtc->dev); in bxt_ddi_dp_pll_dividers()
2171 struct drm_i915_private *i915 = to_i915(crtc_state->uapi.crtc->dev); in bxt_ddi_set_dpll_hw_state()
2266 struct drm_i915_private *i915 = to_i915(crtc_state->uapi.crtc->dev); in bxt_ddi_hdmi_set_dpll_hw_state()
2283 struct intel_crtc *crtc, in bxt_compute_dpll() argument
2287 intel_atomic_get_new_crtc_state(state, crtc); in bxt_compute_dpll()
2298 struct intel_crtc *crtc, in bxt_get_dpll() argument
2302 intel_atomic_get_new_crtc_state(state, crtc); in bxt_get_dpll()
2303 struct drm_i915_private *dev_priv = to_i915(crtc->base.dev); in bxt_get_dpll()
2312 crtc->base.base.id, crtc->base.name, pll->info->name); in bxt_get_dpll()
2314 intel_reference_shared_dpll(state, crtc, in bxt_get_dpll()
2560 struct drm_i915_private *dev_priv = to_i915(crtc_state->uapi.crtc->dev); in icl_calc_dp_combo_pll()
2582 struct drm_i915_private *dev_priv = to_i915(crtc_state->uapi.crtc->dev); in icl_calc_tbt_pll()
2646 struct drm_i915_private *i915 = to_i915(crtc_state->uapi.crtc->dev); in icl_calc_wrpll()
2856 struct drm_i915_private *dev_priv = to_i915(crtc_state->uapi.crtc->dev); in icl_calc_mg_pll_state()
3147 struct intel_crtc *crtc, in icl_update_active_dpll() argument
3151 intel_atomic_get_new_crtc_state(state, crtc); in icl_update_active_dpll()
3168 struct intel_crtc *crtc) in icl_compute_combo_phy_dpll() argument
3170 struct drm_i915_private *dev_priv = to_i915(crtc->base.dev); in icl_compute_combo_phy_dpll()
3172 intel_atomic_get_new_crtc_state(state, crtc); in icl_compute_combo_phy_dpll()
3199 struct intel_crtc *crtc, in icl_get_combo_phy_dpll() argument
3202 struct drm_i915_private *dev_priv = to_i915(crtc->base.dev); in icl_get_combo_phy_dpll()
3204 intel_atomic_get_new_crtc_state(state, crtc); in icl_get_combo_phy_dpll()
3244 port_dpll->pll = intel_find_shared_dpll(state, crtc, in icl_get_combo_phy_dpll()
3250 intel_reference_shared_dpll(state, crtc, in icl_get_combo_phy_dpll()
3253 icl_update_active_dpll(state, crtc, encoder); in icl_get_combo_phy_dpll()
3259 struct intel_crtc *crtc) in icl_compute_tc_phy_dplls() argument
3263 intel_atomic_get_new_crtc_state(state, crtc); in icl_compute_tc_phy_dplls()
3291 struct intel_crtc *crtc, in icl_get_tc_phy_dplls() argument
3296 intel_atomic_get_new_crtc_state(state, crtc); in icl_get_tc_phy_dplls()
3303 port_dpll->pll = intel_find_shared_dpll(state, crtc, in icl_get_tc_phy_dplls()
3308 intel_reference_shared_dpll(state, crtc, in icl_get_tc_phy_dplls()
3315 port_dpll->pll = intel_find_shared_dpll(state, crtc, in icl_get_tc_phy_dplls()
3322 intel_reference_shared_dpll(state, crtc, in icl_get_tc_phy_dplls()
3325 icl_update_active_dpll(state, crtc, encoder); in icl_get_tc_phy_dplls()
3331 intel_unreference_shared_dpll(state, crtc, port_dpll->pll); in icl_get_tc_phy_dplls()
3337 struct intel_crtc *crtc, in icl_compute_dplls() argument
3344 return icl_compute_combo_phy_dpll(state, crtc); in icl_compute_dplls()
3346 return icl_compute_tc_phy_dplls(state, crtc); in icl_compute_dplls()
3354 struct intel_crtc *crtc, in icl_get_dplls() argument
3361 return icl_get_combo_phy_dpll(state, crtc, encoder); in icl_get_dplls()
3363 return icl_get_tc_phy_dplls(state, crtc, encoder); in icl_get_dplls()
3371 struct intel_crtc *crtc) in icl_put_dplls() argument
3374 intel_atomic_get_old_crtc_state(state, crtc); in icl_put_dplls()
3376 intel_atomic_get_new_crtc_state(state, crtc); in icl_put_dplls()
3392 intel_unreference_shared_dpll(state, crtc, old_port_dpll->pll); in icl_put_dplls()
4206 struct intel_crtc *crtc, in intel_compute_shared_dplls() argument
4215 return dpll_mgr->compute_dplls(state, crtc, encoder); in intel_compute_shared_dplls()
4239 struct intel_crtc *crtc, in intel_reserve_shared_dplls() argument
4248 return dpll_mgr->get_dplls(state, crtc, encoder); in intel_reserve_shared_dplls()
4263 struct intel_crtc *crtc) in intel_release_shared_dplls() argument
4277 dpll_mgr->put_dplls(state, crtc); in intel_release_shared_dplls()
4291 struct intel_crtc *crtc, in intel_update_active_dpll() argument
4300 dpll_mgr->update_active_dpll(state, crtc, encoder); in intel_update_active_dpll()
4339 struct intel_crtc *crtc; in readout_dpll_hw_state() local
4351 for_each_intel_crtc(&i915->drm, crtc) { in readout_dpll_hw_state()
4353 to_intel_crtc_state(crtc->base.state); in readout_dpll_hw_state()
4356 intel_reference_shared_dpll_crtc(crtc, pll, &pll->state); in readout_dpll_hw_state()
4435 struct intel_crtc *crtc, in verify_single_dpll_state() argument
4458 if (!crtc) { in verify_single_dpll_state()
4467 pipe_mask = BIT(crtc->pipe); in verify_single_dpll_state()
4472 pipe_name(crtc->pipe), pll->active_mask); in verify_single_dpll_state()
4476 pipe_name(crtc->pipe), pll->active_mask); in verify_single_dpll_state()
4488 void intel_shared_dpll_state_verify(struct intel_crtc *crtc, in intel_shared_dpll_state_verify() argument
4492 struct drm_i915_private *dev_priv = to_i915(crtc->base.dev); in intel_shared_dpll_state_verify()
4496 crtc, new_crtc_state); in intel_shared_dpll_state_verify()
4500 u8 pipe_mask = BIT(crtc->pipe); in intel_shared_dpll_state_verify()
4505 pipe_name(crtc->pipe), pll->active_mask); in intel_shared_dpll_state_verify()
4508 pipe_name(crtc->pipe), pll->state.pipe_mask); in intel_shared_dpll_state_verify()