Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/gpu/drm/
Ddrm_atomic_helper.c372 struct drm_crtc_state *new_crtc_state; in mode_fixup() local
378 for_each_new_crtc_in_state(state, crtc, new_crtc_state, i) { in mode_fixup()
379 if (!new_crtc_state->mode_changed && in mode_fixup()
380 !new_crtc_state->connectors_changed) in mode_fixup()
383 drm_mode_copy(&new_crtc_state->adjusted_mode, &new_crtc_state->mode); in mode_fixup()
395 new_crtc_state = in mode_fixup()
405 ret = drm_bridge_mode_fixup(encoder->bridge, &new_crtc_state->mode, in mode_fixup()
406 &new_crtc_state->adjusted_mode); in mode_fixup()
413 ret = funcs->atomic_check(encoder, new_crtc_state, in mode_fixup()
421 ret = funcs->mode_fixup(encoder, &new_crtc_state->mode, in mode_fixup()
[all …]
Ddrm_blend.c424 struct drm_crtc_state *old_crtc_state, *new_crtc_state; in drm_atomic_normalize_zpos() local
434 new_crtc_state = drm_atomic_get_new_crtc_state(state, crtc); in drm_atomic_normalize_zpos()
435 new_crtc_state->zpos_changed = true; in drm_atomic_normalize_zpos()
439 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in drm_atomic_normalize_zpos()
440 if (old_crtc_state->plane_mask != new_crtc_state->plane_mask || in drm_atomic_normalize_zpos()
441 new_crtc_state->zpos_changed) { in drm_atomic_normalize_zpos()
443 new_crtc_state); in drm_atomic_normalize_zpos()
/Linux-v4.19/drivers/gpu/drm/vc4/
Dvc4_kms.c326 struct drm_crtc_state *old_crtc_state, *new_crtc_state; in vc4_ctm_atomic_check() local
330 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in vc4_ctm_atomic_check()
332 if (!new_crtc_state->ctm && old_crtc_state->ctm) { in vc4_ctm_atomic_check()
340 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in vc4_ctm_atomic_check()
341 if (new_crtc_state->ctm == old_crtc_state->ctm) in vc4_ctm_atomic_check()
351 if (new_crtc_state->ctm) { in vc4_ctm_atomic_check()
367 ctm = new_crtc_state->ctm->data; in vc4_ctm_atomic_check()
/Linux-v4.19/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm.c733 struct drm_crtc_state *new_crtc_state; in dm_resume() local
786 for_each_new_crtc_in_state(dm->cached_state, crtc, new_crtc_state, i) in dm_resume()
787 new_crtc_state->active_changed = true; in dm_resume()
794 for_each_new_crtc_in_state(dm->cached_state, crtc, new_crtc_state, i) { in dm_resume()
795 dm_new_crtc_state = to_dm_crtc_state(new_crtc_state); in dm_resume()
4244 struct drm_crtc_state *new_crtc_state; in amdgpu_dm_commit_planes() local
4257 new_crtc_state = drm_atomic_get_new_crtc_state(state, crtc); in amdgpu_dm_commit_planes()
4258 if (!new_crtc_state->active) in amdgpu_dm_commit_planes()
4281 } else if (new_crtc_state->planes_changed) { in amdgpu_dm_commit_planes()
4347 struct drm_crtc_state *old_crtc_state, *new_crtc_state; in amdgpu_dm_atomic_commit() local
[all …]
/Linux-v4.19/drivers/gpu/drm/msm/
Dmsm_atomic.c26 struct drm_crtc_state *new_crtc_state; in msm_atomic_wait_for_commit_done() local
31 for_each_new_crtc_in_state(old_state, crtc, new_crtc_state, i) { in msm_atomic_wait_for_commit_done()
32 if (!new_crtc_state->active) in msm_atomic_wait_for_commit_done()
/Linux-v4.19/drivers/gpu/drm/i915/
Dintel_atomic_plane.c204 struct drm_crtc_state *new_crtc_state; in intel_plane_atomic_check() local
210 new_crtc_state = drm_atomic_get_new_crtc_state(state, crtc); in intel_plane_atomic_check()
213 to_intel_crtc_state(new_crtc_state), in intel_plane_atomic_check()
228 const struct intel_crtc_state *new_crtc_state = in intel_plane_atomic_update() local
235 new_crtc_state, new_plane_state); in intel_plane_atomic_update()
Dintel_sprite.c75 void intel_pipe_update_start(const struct intel_crtc_state *new_crtc_state) in intel_pipe_update_start() argument
77 struct intel_crtc *crtc = to_intel_crtc(new_crtc_state->base.crtc); in intel_pipe_update_start()
79 const struct drm_display_mode *adjusted_mode = &new_crtc_state->base.adjusted_mode; in intel_pipe_update_start()
84 intel_crtc_has_type(new_crtc_state, INTEL_OUTPUT_DSI); in intel_pipe_update_start()
107 if (intel_psr_wait_for_idle(new_crtc_state)) in intel_pipe_update_start()
182 void intel_pipe_update_end(struct intel_crtc_state *new_crtc_state) in intel_pipe_update_end() argument
184 struct intel_crtc *crtc = to_intel_crtc(new_crtc_state->base.crtc); in intel_pipe_update_end()
197 if (new_crtc_state->base.event) { in intel_pipe_update_end()
201 drm_crtc_arm_vblank_event(&crtc->base, new_crtc_state->base.event); in intel_pipe_update_end()
204 new_crtc_state->base.event = NULL; in intel_pipe_update_end()
Dintel_display.c1819 static void intel_enable_pipe(const struct intel_crtc_state *new_crtc_state) in intel_enable_pipe() argument
1821 struct intel_crtc *crtc = to_intel_crtc(new_crtc_state->base.crtc); in intel_enable_pipe()
1823 enum transcoder cpu_transcoder = new_crtc_state->cpu_transcoder; in intel_enable_pipe()
1838 if (intel_crtc_has_type(new_crtc_state, INTEL_OUTPUT_DSI)) in intel_enable_pipe()
1843 if (new_crtc_state->has_pch_encoder) { in intel_enable_pipe()
3830 const struct intel_crtc_state *new_crtc_state) in intel_update_pipe_config() argument
3832 struct intel_crtc *crtc = to_intel_crtc(new_crtc_state->base.crtc); in intel_update_pipe_config()
3836 crtc->base.mode = new_crtc_state->base.mode; in intel_update_pipe_config()
3848 ((new_crtc_state->pipe_src_w - 1) << 16) | in intel_update_pipe_config()
3849 (new_crtc_state->pipe_src_h - 1)); in intel_update_pipe_config()
[all …]
Dintel_display.h363 #define for_each_new_intel_crtc_in_state(__state, crtc, new_crtc_state, __i) \ argument
367 (new_crtc_state) = to_intel_crtc_state((__state)->base.crtcs[__i].new_state), 1); \
Dintel_psr.c720 int intel_psr_wait_for_idle(const struct intel_crtc_state *new_crtc_state) in intel_psr_wait_for_idle() argument
722 struct intel_crtc *crtc = to_intel_crtc(new_crtc_state->base.crtc); in intel_psr_wait_for_idle()
727 if (!new_crtc_state->has_psr) in intel_psr_wait_for_idle()
Dintel_tv.c1399 struct drm_crtc_state *new_crtc_state; in intel_tv_atomic_check() local
1406 new_crtc_state = drm_atomic_get_new_crtc_state(new_state->state, new_state->crtc); in intel_tv_atomic_check()
1415 new_crtc_state->connectors_changed = true; in intel_tv_atomic_check()
Dintel_pm.c1403 struct intel_crtc_state *new_crtc_state) in g4x_compute_intermediate_wm() argument
1405 struct g4x_wm_state *intermediate = &new_crtc_state->wm.g4x.intermediate; in g4x_compute_intermediate_wm()
1406 const struct g4x_wm_state *optimal = &new_crtc_state->wm.g4x.optimal; in g4x_compute_intermediate_wm()
1408 to_intel_atomic_state(new_crtc_state->base.state); in g4x_compute_intermediate_wm()
1414 if (!new_crtc_state->base.active || drm_atomic_crtc_needs_modeset(&new_crtc_state->base)) { in g4x_compute_intermediate_wm()
1423 !new_crtc_state->disable_cxsr; in g4x_compute_intermediate_wm()
1425 !new_crtc_state->disable_cxsr; in g4x_compute_intermediate_wm()
1473 new_crtc_state->wm.need_postvbl_update = true; in g4x_compute_intermediate_wm()
2036 struct intel_crtc_state *new_crtc_state) in vlv_compute_intermediate_wm() argument
2038 struct vlv_wm_state *intermediate = &new_crtc_state->wm.vlv.intermediate; in vlv_compute_intermediate_wm()
[all …]
Dintel_drv.h1945 int intel_psr_wait_for_idle(const struct intel_crtc_state *new_crtc_state);
2100 void intel_pipe_update_start(const struct intel_crtc_state *new_crtc_state);
2101 void intel_pipe_update_end(struct intel_crtc_state *new_crtc_state);
/Linux-v4.19/drivers/gpu/drm/nouveau/dispnv50/
Ddisp.c1710 struct drm_crtc_state *new_crtc_state, *old_crtc_state; in nv50_disp_atomic_commit_tail() local
1730 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in nv50_disp_atomic_commit_tail()
1731 struct nv50_head_atom *asyh = nv50_head_atom(new_crtc_state); in nv50_disp_atomic_commit_tail()
1736 if (old_crtc_state->active && !new_crtc_state->active) in nv50_disp_atomic_commit_tail()
1810 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in nv50_disp_atomic_commit_tail()
1811 struct nv50_head_atom *asyh = nv50_head_atom(new_crtc_state); in nv50_disp_atomic_commit_tail()
1822 if (new_crtc_state->active) { in nv50_disp_atomic_commit_tail()
1825 if (new_crtc_state->event) in nv50_disp_atomic_commit_tail()
1869 for_each_new_crtc_in_state(state, crtc, new_crtc_state, i) { in nv50_disp_atomic_commit_tail()
1870 if (new_crtc_state->event) { in nv50_disp_atomic_commit_tail()
[all …]
/Linux-v4.19/include/drm/
Ddrm_atomic.h707 #define for_each_oldnew_crtc_in_state(__state, crtc, old_crtc_state, new_crtc_state, __i) \ argument
714 (new_crtc_state) = (__state)->crtcs[__i].new_state, 1))
746 #define for_each_new_crtc_in_state(__state, crtc, new_crtc_state, __i) \ argument
752 (new_crtc_state) = (__state)->crtcs[__i].new_state, 1))
/Linux-v4.19/drivers/gpu/drm/msm/disp/mdp5/
Dmdp5_crtc.c509 struct drm_crtc_state *new_crtc_state, in mdp5_crtc_setup_pipeline() argument
513 to_mdp5_crtc_state(new_crtc_state); in mdp5_crtc_setup_pipeline()
534 ret = mdp5_mixer_assign(new_crtc_state->state, crtc, caps, in mdp5_crtc_setup_pipeline()
540 mdp5_mixer_release(new_crtc_state->state, old_mixer); in mdp5_crtc_setup_pipeline()
542 mdp5_mixer_release(new_crtc_state->state, old_r_mixer); in mdp5_crtc_setup_pipeline()
591 struct drm_crtc_state *new_crtc_state, in get_start_stage() argument
595 to_mdp5_crtc_state(new_crtc_state); in get_start_stage()
607 if (!is_fullscreen(new_crtc_state, bpstate)) in get_start_stage()
/Linux-v4.19/drivers/gpu/drm/omapdrm/
Domap_drv.c50 struct drm_crtc_state *new_crtc_state; in omap_atomic_wait_for_completion() local
55 for_each_new_crtc_in_state(old_state, crtc, new_crtc_state, i) { in omap_atomic_wait_for_completion()
56 if (!new_crtc_state->active) in omap_atomic_wait_for_completion()
/Linux-v4.19/drivers/gpu/drm/vmwgfx/
Dvmwgfx_kms.c1581 struct drm_crtc_state *old_crtc_state, *new_crtc_state; in vmw_kms_check_topology() local
1610 new_crtc_state, i) { in vmw_kms_check_topology()
1616 if (!new_crtc_state->enable) { in vmw_kms_check_topology()
1647 rects[i].x2 = du->gui_x + new_crtc_state->mode.hdisplay; in vmw_kms_check_topology()
1648 rects[i].y2 = du->gui_y + new_crtc_state->mode.vdisplay; in vmw_kms_check_topology()