Home
last modified time | relevance | path

Searched refs:new_crtc_state (Results 1 – 24 of 24) sorted by relevance

/Linux-v5.4/drivers/gpu/drm/i915/display/
Dintel_atomic_plane.c142 struct intel_crtc_state *new_crtc_state, in intel_plane_atomic_check_with_state() argument
149 new_crtc_state->active_planes &= ~BIT(plane->id); in intel_plane_atomic_check_with_state()
150 new_crtc_state->nv12_planes &= ~BIT(plane->id); in intel_plane_atomic_check_with_state()
151 new_crtc_state->c8_planes &= ~BIT(plane->id); in intel_plane_atomic_check_with_state()
152 new_crtc_state->data_rate[plane->id] = 0; in intel_plane_atomic_check_with_state()
158 ret = plane->check_plane(new_crtc_state, new_plane_state); in intel_plane_atomic_check_with_state()
164 new_crtc_state->active_planes |= BIT(plane->id); in intel_plane_atomic_check_with_state()
168 new_crtc_state->nv12_planes |= BIT(plane->id); in intel_plane_atomic_check_with_state()
172 new_crtc_state->c8_planes |= BIT(plane->id); in intel_plane_atomic_check_with_state()
175 new_crtc_state->update_planes |= BIT(plane->id); in intel_plane_atomic_check_with_state()
[all …]
Dintel_color.c993 static bool intel_can_preload_luts(const struct intel_crtc_state *new_crtc_state) in intel_can_preload_luts() argument
995 struct intel_crtc *crtc = to_intel_crtc(new_crtc_state->base.crtc); in intel_can_preload_luts()
997 to_intel_atomic_state(new_crtc_state->base.state); in intel_can_preload_luts()
1005 static bool chv_can_preload_luts(const struct intel_crtc_state *new_crtc_state) in chv_can_preload_luts() argument
1007 struct intel_crtc *crtc = to_intel_crtc(new_crtc_state->base.crtc); in chv_can_preload_luts()
1009 to_intel_atomic_state(new_crtc_state->base.state); in chv_can_preload_luts()
1018 if (old_crtc_state->cgm_mode || new_crtc_state->cgm_mode) in chv_can_preload_luts()
1024 static bool glk_can_preload_luts(const struct intel_crtc_state *new_crtc_state) in glk_can_preload_luts() argument
1026 struct intel_crtc *crtc = to_intel_crtc(new_crtc_state->base.crtc); in glk_can_preload_luts()
1028 to_intel_atomic_state(new_crtc_state->base.state); in glk_can_preload_luts()
[all …]
Dintel_sprite.h27 void intel_pipe_update_start(const struct intel_crtc_state *new_crtc_state);
28 void intel_pipe_update_end(struct intel_crtc_state *new_crtc_state);
Dintel_display.c1793 static void intel_enable_pipe(const struct intel_crtc_state *new_crtc_state) in intel_enable_pipe() argument
1795 struct intel_crtc *crtc = to_intel_crtc(new_crtc_state->base.crtc); in intel_enable_pipe()
1797 enum transcoder cpu_transcoder = new_crtc_state->cpu_transcoder; in intel_enable_pipe()
1812 if (intel_crtc_has_type(new_crtc_state, INTEL_OUTPUT_DSI)) in intel_enable_pipe()
1817 if (new_crtc_state->has_pch_encoder) { in intel_enable_pipe()
1847 if (intel_crtc_max_vblank_count(new_crtc_state) == 0) in intel_enable_pipe()
4398 const struct intel_crtc_state *new_crtc_state) in intel_update_pipe_config() argument
4400 struct intel_crtc *crtc = to_intel_crtc(new_crtc_state->base.crtc); in intel_update_pipe_config()
4404 crtc->base.mode = new_crtc_state->base.mode; in intel_update_pipe_config()
4416 ((new_crtc_state->pipe_src_w - 1) << 16) | in intel_update_pipe_config()
[all …]
Dintel_bw.c342 struct intel_crtc_state *new_crtc_state, *old_crtc_state; in intel_bw_atomic_check() local
354 new_crtc_state, i) { in intel_bw_atomic_check()
358 intel_bw_crtc_data_rate(new_crtc_state); in intel_bw_atomic_check()
362 intel_bw_crtc_num_active_planes(new_crtc_state); in intel_bw_atomic_check()
Dintel_psr.h36 int intel_psr_wait_for_idle(const struct intel_crtc_state *new_crtc_state,
Dintel_display.h388 #define for_each_new_intel_crtc_in_state(__state, crtc, new_crtc_state, __i) \ argument
392 (new_crtc_state) = to_intel_crtc_state((__state)->base.crtcs[__i].new_state), 1); \
405 #define for_each_oldnew_intel_crtc_in_state(__state, crtc, old_crtc_state, new_crtc_state, __i) \ argument
410 (new_crtc_state) = to_intel_crtc_state((__state)->base.crtcs[__i].new_state), 1); \
Dintel_sprite.c95 void intel_pipe_update_start(const struct intel_crtc_state *new_crtc_state) in intel_pipe_update_start() argument
97 struct intel_crtc *crtc = to_intel_crtc(new_crtc_state->base.crtc); in intel_pipe_update_start()
99 const struct drm_display_mode *adjusted_mode = &new_crtc_state->base.adjusted_mode; in intel_pipe_update_start()
104 intel_crtc_has_type(new_crtc_state, INTEL_OUTPUT_DSI); in intel_pipe_update_start()
128 if (intel_psr_wait_for_idle(new_crtc_state, &psr_status)) in intel_pipe_update_start()
204 void intel_pipe_update_end(struct intel_crtc_state *new_crtc_state) in intel_pipe_update_end() argument
206 struct intel_crtc *crtc = to_intel_crtc(new_crtc_state->base.crtc); in intel_pipe_update_end()
219 if (new_crtc_state->base.event) { in intel_pipe_update_end()
223 drm_crtc_arm_vblank_event(&crtc->base, new_crtc_state->base.event); in intel_pipe_update_end()
226 new_crtc_state->base.event = NULL; in intel_pipe_update_end()
Dintel_psr.c946 int intel_psr_wait_for_idle(const struct intel_crtc_state *new_crtc_state, in intel_psr_wait_for_idle() argument
949 struct intel_crtc *crtc = to_intel_crtc(new_crtc_state->base.crtc); in intel_psr_wait_for_idle()
952 if (!dev_priv->psr.enabled || !new_crtc_state->has_psr) in intel_psr_wait_for_idle()
Dintel_tv.c1827 struct drm_crtc_state *new_crtc_state; in intel_tv_atomic_check() local
1835 new_crtc_state = drm_atomic_get_new_crtc_state(state, new_state->crtc); in intel_tv_atomic_check()
1844 new_crtc_state->connectors_changed = true; in intel_tv_atomic_check()
Dintel_dpll_mgr.c328 struct intel_crtc_state *new_crtc_state = in intel_put_dpll() local
331 new_crtc_state->shared_dpll = NULL; in intel_put_dpll()
3021 struct intel_crtc_state *new_crtc_state = in icl_put_dplls() local
3025 new_crtc_state->shared_dpll = NULL; in icl_put_dplls()
3031 &new_crtc_state->icl_port_dplls[id]; in icl_put_dplls()
/Linux-v5.4/drivers/gpu/drm/
Ddrm_atomic_helper.c415 struct drm_crtc_state *new_crtc_state; in mode_fixup() local
421 for_each_new_crtc_in_state(state, crtc, new_crtc_state, i) { in mode_fixup()
422 if (!new_crtc_state->mode_changed && in mode_fixup()
423 !new_crtc_state->connectors_changed) in mode_fixup()
426 drm_mode_copy(&new_crtc_state->adjusted_mode, &new_crtc_state->mode); in mode_fixup()
438 new_crtc_state = in mode_fixup()
448 ret = drm_bridge_mode_fixup(encoder->bridge, &new_crtc_state->mode, in mode_fixup()
449 &new_crtc_state->adjusted_mode); in mode_fixup()
456 ret = funcs->atomic_check(encoder, new_crtc_state, in mode_fixup()
464 ret = funcs->mode_fixup(encoder, &new_crtc_state->mode, in mode_fixup()
[all …]
Ddrm_blend.c495 struct drm_crtc_state *old_crtc_state, *new_crtc_state; in drm_atomic_normalize_zpos() local
505 new_crtc_state = drm_atomic_get_new_crtc_state(state, crtc); in drm_atomic_normalize_zpos()
506 new_crtc_state->zpos_changed = true; in drm_atomic_normalize_zpos()
510 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in drm_atomic_normalize_zpos()
511 if (old_crtc_state->plane_mask != new_crtc_state->plane_mask || in drm_atomic_normalize_zpos()
512 new_crtc_state->zpos_changed) { in drm_atomic_normalize_zpos()
514 new_crtc_state); in drm_atomic_normalize_zpos()
Ddrm_atomic.c324 const struct drm_crtc_state *new_crtc_state) in drm_atomic_crtc_check() argument
326 struct drm_crtc *crtc = new_crtc_state->crtc; in drm_atomic_crtc_check()
336 if (new_crtc_state->active && !new_crtc_state->enable) { in drm_atomic_crtc_check()
346 WARN_ON(new_crtc_state->enable && !new_crtc_state->mode_blob)) { in drm_atomic_crtc_check()
353 WARN_ON(!new_crtc_state->enable && new_crtc_state->mode_blob)) { in drm_atomic_crtc_check()
369 if (new_crtc_state->event && in drm_atomic_crtc_check()
370 !new_crtc_state->active && !old_crtc_state->active) { in drm_atomic_crtc_check()
1142 struct drm_crtc_state *new_crtc_state; in drm_atomic_check_only() local
1158 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in drm_atomic_check_only()
1159 ret = drm_atomic_crtc_check(old_crtc_state, new_crtc_state); in drm_atomic_check_only()
[all …]
/Linux-v5.4/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm.c1167 struct drm_crtc_state *new_crtc_state; in dm_resume() local
1228 for_each_new_crtc_in_state(dm->cached_state, crtc, new_crtc_state, i) in dm_resume()
1229 new_crtc_state->active_changed = true; in dm_resume()
1236 for_each_new_crtc_in_state(dm->cached_state, crtc, new_crtc_state, i) { in dm_resume()
1237 dm_new_crtc_state = to_dm_crtc_state(new_crtc_state); in dm_resume()
4216 struct drm_crtc_state *new_crtc_state; in amdgpu_dm_connector_atomic_check() local
4229 new_crtc_state = drm_atomic_get_crtc_state(state, crtc); in amdgpu_dm_connector_atomic_check()
4230 if (IS_ERR(new_crtc_state)) in amdgpu_dm_connector_atomic_check()
4231 return PTR_ERR(new_crtc_state); in amdgpu_dm_connector_atomic_check()
4244 new_crtc_state->mode_changed = in amdgpu_dm_connector_atomic_check()
[all …]
/Linux-v5.4/drivers/gpu/drm/vc4/
Dvc4_kms.c351 struct drm_crtc_state *old_crtc_state, *new_crtc_state; in vc4_ctm_atomic_check() local
355 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in vc4_ctm_atomic_check()
357 if (!new_crtc_state->ctm && old_crtc_state->ctm) { in vc4_ctm_atomic_check()
365 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in vc4_ctm_atomic_check()
366 if (new_crtc_state->ctm == old_crtc_state->ctm) in vc4_ctm_atomic_check()
376 if (new_crtc_state->ctm) { in vc4_ctm_atomic_check()
392 ctm = new_crtc_state->ctm->data; in vc4_ctm_atomic_check()
/Linux-v5.4/drivers/gpu/drm/nouveau/dispnv50/
Ddisp.c1808 struct drm_crtc_state *new_crtc_state, *old_crtc_state; in nv50_disp_atomic_commit_tail() local
1828 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in nv50_disp_atomic_commit_tail()
1829 struct nv50_head_atom *asyh = nv50_head_atom(new_crtc_state); in nv50_disp_atomic_commit_tail()
1835 if (old_crtc_state->active && !new_crtc_state->active) { in nv50_disp_atomic_commit_tail()
1911 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in nv50_disp_atomic_commit_tail()
1912 struct nv50_head_atom *asyh = nv50_head_atom(new_crtc_state); in nv50_disp_atomic_commit_tail()
1923 if (new_crtc_state->active) { in nv50_disp_atomic_commit_tail()
1928 if (new_crtc_state->event) in nv50_disp_atomic_commit_tail()
1972 for_each_new_crtc_in_state(state, crtc, new_crtc_state, i) { in nv50_disp_atomic_commit_tail()
1973 if (new_crtc_state->event) { in nv50_disp_atomic_commit_tail()
[all …]
/Linux-v5.4/drivers/gpu/drm/rockchip/
Danalogix_dp-rockchip.c212 struct drm_crtc_state *new_crtc_state = NULL; in rockchip_dp_drm_encoder_disable() local
220 new_crtc_state = drm_atomic_get_new_crtc_state(state, crtc); in rockchip_dp_drm_encoder_disable()
222 if (!new_crtc_state || !new_crtc_state->self_refresh_active) in rockchip_dp_drm_encoder_disable()
/Linux-v5.4/include/drm/
Ddrm_atomic.h751 #define for_each_oldnew_crtc_in_state(__state, crtc, old_crtc_state, new_crtc_state, __i) \ argument
758 (new_crtc_state) = (__state)->crtcs[__i].new_state, 1))
790 #define for_each_new_crtc_in_state(__state, crtc, new_crtc_state, __i) \ argument
796 (new_crtc_state) = (__state)->crtcs[__i].new_state, 1))
/Linux-v5.4/drivers/gpu/drm/msm/disp/mdp5/
Dmdp5_crtc.c506 struct drm_crtc_state *new_crtc_state, in mdp5_crtc_setup_pipeline() argument
510 to_mdp5_crtc_state(new_crtc_state); in mdp5_crtc_setup_pipeline()
531 ret = mdp5_mixer_assign(new_crtc_state->state, crtc, caps, in mdp5_crtc_setup_pipeline()
537 mdp5_mixer_release(new_crtc_state->state, old_mixer); in mdp5_crtc_setup_pipeline()
539 mdp5_mixer_release(new_crtc_state->state, old_r_mixer); in mdp5_crtc_setup_pipeline()
588 struct drm_crtc_state *new_crtc_state, in get_start_stage() argument
592 to_mdp5_crtc_state(new_crtc_state); in get_start_stage()
604 if (!is_fullscreen(new_crtc_state, bpstate)) in get_start_stage()
/Linux-v5.4/drivers/gpu/drm/bridge/analogix/
Danalogix_dp_core.c1447 struct drm_crtc_state *new_crtc_state = NULL; in analogix_dp_bridge_atomic_disable() local
1453 new_crtc_state = drm_atomic_get_new_crtc_state(state, crtc); in analogix_dp_bridge_atomic_disable()
1454 if (!new_crtc_state) in analogix_dp_bridge_atomic_disable()
1458 if (new_crtc_state->self_refresh_active) in analogix_dp_bridge_atomic_disable()
1471 struct drm_crtc_state *new_crtc_state; in analogix_dp_bridge_atomic_post_disable() local
1478 new_crtc_state = drm_atomic_get_new_crtc_state(state, crtc); in analogix_dp_bridge_atomic_post_disable()
1479 if (!new_crtc_state || !new_crtc_state->self_refresh_active) in analogix_dp_bridge_atomic_post_disable()
/Linux-v5.4/drivers/gpu/drm/i915/
Dintel_pm.c1421 static int g4x_compute_intermediate_wm(struct intel_crtc_state *new_crtc_state) in g4x_compute_intermediate_wm() argument
1423 struct intel_crtc *crtc = to_intel_crtc(new_crtc_state->base.crtc); in g4x_compute_intermediate_wm()
1424 struct g4x_wm_state *intermediate = &new_crtc_state->wm.g4x.intermediate; in g4x_compute_intermediate_wm()
1425 const struct g4x_wm_state *optimal = &new_crtc_state->wm.g4x.optimal; in g4x_compute_intermediate_wm()
1427 to_intel_atomic_state(new_crtc_state->base.state); in g4x_compute_intermediate_wm()
1433 if (!new_crtc_state->base.active || drm_atomic_crtc_needs_modeset(&new_crtc_state->base)) { in g4x_compute_intermediate_wm()
1442 !new_crtc_state->disable_cxsr; in g4x_compute_intermediate_wm()
1444 !new_crtc_state->disable_cxsr; in g4x_compute_intermediate_wm()
1492 new_crtc_state->wm.need_postvbl_update = true; in g4x_compute_intermediate_wm()
2054 static int vlv_compute_intermediate_wm(struct intel_crtc_state *new_crtc_state) in vlv_compute_intermediate_wm() argument
[all …]
/Linux-v5.4/drivers/gpu/drm/omapdrm/
Domap_drv.c48 struct drm_crtc_state *new_crtc_state; in omap_atomic_wait_for_completion() local
53 for_each_new_crtc_in_state(old_state, crtc, new_crtc_state, i) { in omap_atomic_wait_for_completion()
54 if (!new_crtc_state->active) in omap_atomic_wait_for_completion()
/Linux-v5.4/drivers/gpu/drm/vmwgfx/
Dvmwgfx_kms.c1604 struct drm_crtc_state *old_crtc_state, *new_crtc_state; in vmw_kms_check_topology() local
1645 new_crtc_state, i) { in vmw_kms_check_topology()
1651 if (!du->pref_active && new_crtc_state->enable) { in vmw_kms_check_topology()