Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/
Dintel_atomic_plane.c191 struct intel_crtc_state *new_crtc_state; in intel_plane_calc_min_cdclk() local
197 new_crtc_state = intel_atomic_get_new_crtc_state(state, crtc); in intel_plane_calc_min_cdclk()
199 new_crtc_state->min_cdclk[plane->id] = in intel_plane_calc_min_cdclk()
200 plane->min_cdclk(new_crtc_state, plane_state); in intel_plane_calc_min_cdclk()
210 if (new_crtc_state->min_cdclk[plane->id] <= in intel_plane_calc_min_cdclk()
226 if (new_crtc_state->min_cdclk[plane->id] <= in intel_plane_calc_min_cdclk()
233 new_crtc_state->min_cdclk[plane->id], in intel_plane_calc_min_cdclk()
282 struct intel_crtc_state *new_crtc_state, in intel_plane_atomic_check_with_state() argument
290 intel_plane_set_invisible(new_crtc_state, new_plane_state); in intel_plane_atomic_check_with_state()
295 ret = plane->check_plane(new_crtc_state, new_plane_state); in intel_plane_atomic_check_with_state()
[all …]
Dintel_display.c1846 void intel_enable_pipe(const struct intel_crtc_state *new_crtc_state) in intel_enable_pipe() argument
1848 struct intel_crtc *crtc = to_intel_crtc(new_crtc_state->uapi.crtc); in intel_enable_pipe()
1850 enum transcoder cpu_transcoder = new_crtc_state->cpu_transcoder; in intel_enable_pipe()
1865 if (intel_crtc_has_type(new_crtc_state, INTEL_OUTPUT_DSI)) in intel_enable_pipe()
1870 if (new_crtc_state->has_pch_encoder) { in intel_enable_pipe()
1900 if (intel_crtc_max_vblank_count(new_crtc_state) == 0) in intel_enable_pipe()
6434 const struct intel_crtc_state *new_crtc_state) in hsw_pre_update_disable_ips() argument
6436 struct intel_crtc *crtc = to_intel_crtc(new_crtc_state->uapi.crtc); in hsw_pre_update_disable_ips()
6442 if (needs_modeset(new_crtc_state)) in hsw_pre_update_disable_ips()
6452 (new_crtc_state->uapi.color_mgmt_changed || in hsw_pre_update_disable_ips()
[all …]
Dintel_sprite.h26 void intel_pipe_update_start(const struct intel_crtc_state *new_crtc_state);
27 void intel_pipe_update_end(struct intel_crtc_state *new_crtc_state);
Dintel_color.c1116 static bool intel_can_preload_luts(const struct intel_crtc_state *new_crtc_state) in intel_can_preload_luts() argument
1118 struct intel_crtc *crtc = to_intel_crtc(new_crtc_state->uapi.crtc); in intel_can_preload_luts()
1120 to_intel_atomic_state(new_crtc_state->uapi.state); in intel_can_preload_luts()
1128 static bool chv_can_preload_luts(const struct intel_crtc_state *new_crtc_state) in chv_can_preload_luts() argument
1130 struct intel_crtc *crtc = to_intel_crtc(new_crtc_state->uapi.crtc); in chv_can_preload_luts()
1132 to_intel_atomic_state(new_crtc_state->uapi.state); in chv_can_preload_luts()
1141 if (old_crtc_state->cgm_mode || new_crtc_state->cgm_mode) in chv_can_preload_luts()
1147 static bool glk_can_preload_luts(const struct intel_crtc_state *new_crtc_state) in glk_can_preload_luts() argument
1149 struct intel_crtc *crtc = to_intel_crtc(new_crtc_state->uapi.crtc); in glk_can_preload_luts()
1151 to_intel_atomic_state(new_crtc_state->uapi.state); in glk_can_preload_luts()
[all …]
Dintel_display.h434 #define for_each_new_intel_crtc_in_state(__state, crtc, new_crtc_state, __i) \ argument
438 (new_crtc_state) = to_intel_crtc_state((__state)->base.crtcs[__i].new_state), 1); \
451 #define for_each_oldnew_intel_crtc_in_state(__state, crtc, old_crtc_state, new_crtc_state, __i) \ argument
456 (new_crtc_state) = to_intel_crtc_state((__state)->base.crtcs[__i].new_state), 1); \
460 #define for_each_oldnew_intel_crtc_in_state_reverse(__state, crtc, old_crtc_state, new_crtc_state, … argument
465 (new_crtc_state) = to_intel_crtc_state((__state)->base.crtcs[__i].new_state), 1); \
504 void intel_enable_pipe(const struct intel_crtc_state *new_crtc_state);
Dintel_bw.c569 struct intel_crtc_state *new_crtc_state, *old_crtc_state; in intel_bw_atomic_check() local
586 new_crtc_state, i) { in intel_bw_atomic_check()
590 intel_bw_crtc_data_rate(new_crtc_state); in intel_bw_atomic_check()
594 intel_bw_crtc_num_active_planes(new_crtc_state); in intel_bw_atomic_check()
Dintel_psr.h41 int intel_psr_wait_for_idle(const struct intel_crtc_state *new_crtc_state,
Dintel_sprite.c83 void intel_pipe_update_start(const struct intel_crtc_state *new_crtc_state) in intel_pipe_update_start() argument
85 struct intel_crtc *crtc = to_intel_crtc(new_crtc_state->uapi.crtc); in intel_pipe_update_start()
87 const struct drm_display_mode *adjusted_mode = &new_crtc_state->hw.adjusted_mode; in intel_pipe_update_start()
92 intel_crtc_has_type(new_crtc_state, INTEL_OUTPUT_DSI); in intel_pipe_update_start()
116 if (intel_psr_wait_for_idle(new_crtc_state, &psr_status)) in intel_pipe_update_start()
194 void intel_pipe_update_end(struct intel_crtc_state *new_crtc_state) in intel_pipe_update_end() argument
196 struct intel_crtc *crtc = to_intel_crtc(new_crtc_state->uapi.crtc); in intel_pipe_update_end()
209 if (new_crtc_state->uapi.event) { in intel_pipe_update_end()
215 new_crtc_state->uapi.event); in intel_pipe_update_end()
218 new_crtc_state->uapi.event = NULL; in intel_pipe_update_end()
Dintel_psr.c1265 int intel_psr_wait_for_idle(const struct intel_crtc_state *new_crtc_state, in intel_psr_wait_for_idle() argument
1268 struct intel_crtc *crtc = to_intel_crtc(new_crtc_state->uapi.crtc); in intel_psr_wait_for_idle()
1271 if (!dev_priv->psr.enabled || !new_crtc_state->has_psr) in intel_psr_wait_for_idle()
Dintel_tv.c1838 struct drm_crtc_state *new_crtc_state; in intel_tv_atomic_check() local
1846 new_crtc_state = drm_atomic_get_new_crtc_state(state, new_state->crtc); in intel_tv_atomic_check()
1855 new_crtc_state->connectors_changed = true; in intel_tv_atomic_check()
/kernel/linux/linux-5.10/drivers/gpu/drm/
Ddrm_atomic_helper.c406 struct drm_crtc_state *new_crtc_state; in mode_fixup() local
412 for_each_new_crtc_in_state(state, crtc, new_crtc_state, i) { in mode_fixup()
413 if (!new_crtc_state->mode_changed && in mode_fixup()
414 !new_crtc_state->connectors_changed) in mode_fixup()
417 drm_mode_copy(&new_crtc_state->adjusted_mode, &new_crtc_state->mode); in mode_fixup()
430 new_crtc_state = in mode_fixup()
442 new_crtc_state, in mode_fixup()
450 ret = funcs->atomic_check(encoder, new_crtc_state, in mode_fixup()
458 ret = funcs->mode_fixup(encoder, &new_crtc_state->mode, in mode_fixup()
459 &new_crtc_state->adjusted_mode); in mode_fixup()
[all …]
Ddrm_blend.c508 struct drm_crtc_state *old_crtc_state, *new_crtc_state; in drm_atomic_normalize_zpos() local
518 new_crtc_state = drm_atomic_get_new_crtc_state(state, crtc); in drm_atomic_normalize_zpos()
519 new_crtc_state->zpos_changed = true; in drm_atomic_normalize_zpos()
523 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in drm_atomic_normalize_zpos()
524 if (old_crtc_state->plane_mask != new_crtc_state->plane_mask || in drm_atomic_normalize_zpos()
525 new_crtc_state->zpos_changed) { in drm_atomic_normalize_zpos()
527 new_crtc_state); in drm_atomic_normalize_zpos()
Ddrm_atomic.c334 const struct drm_crtc_state *new_crtc_state) in drm_atomic_crtc_check() argument
336 struct drm_crtc *crtc = new_crtc_state->crtc; in drm_atomic_crtc_check()
346 if (new_crtc_state->active && !new_crtc_state->enable) { in drm_atomic_crtc_check()
356 WARN_ON(new_crtc_state->enable && !new_crtc_state->mode_blob)) { in drm_atomic_crtc_check()
363 WARN_ON(!new_crtc_state->enable && new_crtc_state->mode_blob)) { in drm_atomic_crtc_check()
379 if (new_crtc_state->event && in drm_atomic_crtc_check()
380 !new_crtc_state->active && !old_crtc_state->active) { in drm_atomic_crtc_check()
1271 struct drm_crtc_state *new_crtc_state; in drm_atomic_check_only() local
1287 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in drm_atomic_check_only()
1288 ret = drm_atomic_crtc_check(old_crtc_state, new_crtc_state); in drm_atomic_check_only()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/vc4/
Dvc4_kms.c311 struct drm_crtc_state *new_crtc_state; in vc4_atomic_complete_commit() local
315 for_each_new_crtc_in_state(state, crtc, new_crtc_state, i) { in vc4_atomic_complete_commit()
318 if (!new_crtc_state->commit) in vc4_atomic_complete_commit()
321 vc4_crtc_state = to_vc4_crtc_state(new_crtc_state); in vc4_atomic_complete_commit()
524 struct drm_crtc_state *old_crtc_state, *new_crtc_state; in vc4_ctm_atomic_check() local
528 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in vc4_ctm_atomic_check()
530 if (!new_crtc_state->ctm && old_crtc_state->ctm) { in vc4_ctm_atomic_check()
538 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in vc4_ctm_atomic_check()
539 if (new_crtc_state->ctm == old_crtc_state->ctm) in vc4_ctm_atomic_check()
549 if (new_crtc_state->ctm) { in vc4_ctm_atomic_check()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm.c1978 struct drm_crtc_state *new_crtc_state; in dm_resume() local
2083 for_each_new_crtc_in_state(dm->cached_state, crtc, new_crtc_state, i) in dm_resume()
2084 new_crtc_state->active_changed = true; in dm_resume()
2091 for_each_new_crtc_in_state(dm->cached_state, crtc, new_crtc_state, i) { in dm_resume()
2092 dm_new_crtc_state = to_dm_crtc_state(new_crtc_state); in dm_resume()
5540 struct drm_crtc_state *new_crtc_state; in amdgpu_dm_connector_atomic_check() local
5553 new_crtc_state = drm_atomic_get_crtc_state(state, crtc); in amdgpu_dm_connector_atomic_check()
5554 if (IS_ERR(new_crtc_state)) in amdgpu_dm_connector_atomic_check()
5555 return PTR_ERR(new_crtc_state); in amdgpu_dm_connector_atomic_check()
5568 new_crtc_state->mode_changed = in amdgpu_dm_connector_atomic_check()
[all …]
Damdgpu_dm_mst_types.c298 struct drm_crtc_state *new_crtc_state; in dm_dp_mst_atomic_check() local
309 new_crtc_state = drm_atomic_get_new_crtc_state(state, new_conn_state->crtc); in dm_dp_mst_atomic_check()
310 if (!new_crtc_state || in dm_dp_mst_atomic_check()
311 !drm_atomic_crtc_needs_modeset(new_crtc_state) || in dm_dp_mst_atomic_check()
312 new_crtc_state->enable) in dm_dp_mst_atomic_check()
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/dispnv50/
Dcrc.c268 struct drm_crtc_state *new_crtc_state; in nv50_crc_atomic_init_notifier_contexts() local
272 for_each_new_crtc_in_state(state, crtc, new_crtc_state, i) { in nv50_crc_atomic_init_notifier_contexts()
274 struct nv50_head_atom *asyh = nv50_head_atom(new_crtc_state); in nv50_crc_atomic_init_notifier_contexts()
292 struct drm_crtc_state *new_crtc_state; in nv50_crc_atomic_release_notifier_contexts() local
296 for_each_new_crtc_in_state(state, crtc, new_crtc_state, i) { in nv50_crc_atomic_release_notifier_contexts()
298 struct nv50_head_atom *asyh = nv50_head_atom(new_crtc_state); in nv50_crc_atomic_release_notifier_contexts()
403 struct drm_crtc_state *old_crtc_state, *new_crtc_state; in nv50_crc_atomic_check_outp() local
410 new_crtc_state, i) { in nv50_crc_atomic_check_outp()
412 struct nv50_head_atom *asyh = nv50_head_atom(new_crtc_state); in nv50_crc_atomic_check_outp()
Ddisp.c2053 struct drm_crtc_state *new_crtc_state, *old_crtc_state; in nv50_disp_atomic_commit_tail() local
2077 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in nv50_disp_atomic_commit_tail()
2078 struct nv50_head_atom *asyh = nv50_head_atom(new_crtc_state); in nv50_disp_atomic_commit_tail()
2084 if (old_crtc_state->active && !new_crtc_state->active) { in nv50_disp_atomic_commit_tail()
2168 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in nv50_disp_atomic_commit_tail()
2169 struct nv50_head_atom *asyh = nv50_head_atom(new_crtc_state); in nv50_disp_atomic_commit_tail()
2180 if (new_crtc_state->active) { in nv50_disp_atomic_commit_tail()
2185 if (new_crtc_state->event) in nv50_disp_atomic_commit_tail()
2219 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in nv50_disp_atomic_commit_tail()
2220 struct nv50_head_atom *asyh = nv50_head_atom(new_crtc_state); in nv50_disp_atomic_commit_tail()
[all …]
/kernel/linux/linux-5.10/include/drm/
Ddrm_atomic.h767 #define for_each_oldnew_crtc_in_state(__state, crtc, old_crtc_state, new_crtc_state, __i) \ argument
776 (new_crtc_state) = (__state)->crtcs[__i].new_state, 1))
808 #define for_each_new_crtc_in_state(__state, crtc, new_crtc_state, __i) \ argument
815 (new_crtc_state) = (__state)->crtcs[__i].new_state, \
816 (void)(new_crtc_state) /* Only to avoid unused-but-set-variable warning */, 1))
/kernel/linux/linux-5.10/drivers/gpu/drm/rockchip/
Danalogix_dp-rockchip.c213 struct drm_crtc_state *new_crtc_state = NULL; in rockchip_dp_drm_encoder_disable() local
221 new_crtc_state = drm_atomic_get_new_crtc_state(state, crtc); in rockchip_dp_drm_encoder_disable()
223 if (!new_crtc_state || !new_crtc_state->self_refresh_active) in rockchip_dp_drm_encoder_disable()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/
Dintel_pm.c1451 static int g4x_compute_intermediate_wm(struct intel_crtc_state *new_crtc_state) in g4x_compute_intermediate_wm() argument
1453 struct intel_crtc *crtc = to_intel_crtc(new_crtc_state->uapi.crtc); in g4x_compute_intermediate_wm()
1455 struct g4x_wm_state *intermediate = &new_crtc_state->wm.g4x.intermediate; in g4x_compute_intermediate_wm()
1456 const struct g4x_wm_state *optimal = &new_crtc_state->wm.g4x.optimal; in g4x_compute_intermediate_wm()
1458 to_intel_atomic_state(new_crtc_state->uapi.state); in g4x_compute_intermediate_wm()
1464 if (!new_crtc_state->hw.active || drm_atomic_crtc_needs_modeset(&new_crtc_state->uapi)) { in g4x_compute_intermediate_wm()
1473 !new_crtc_state->disable_cxsr; in g4x_compute_intermediate_wm()
1475 !new_crtc_state->disable_cxsr; in g4x_compute_intermediate_wm()
1527 new_crtc_state->wm.need_postvbl_update = true; in g4x_compute_intermediate_wm()
2095 static int vlv_compute_intermediate_wm(struct intel_crtc_state *new_crtc_state) in vlv_compute_intermediate_wm() argument
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/disp/mdp5/
Dmdp5_crtc.c580 struct drm_crtc_state *new_crtc_state, in mdp5_crtc_setup_pipeline() argument
584 to_mdp5_crtc_state(new_crtc_state); in mdp5_crtc_setup_pipeline()
605 ret = mdp5_mixer_assign(new_crtc_state->state, crtc, caps, in mdp5_crtc_setup_pipeline()
611 ret = mdp5_mixer_release(new_crtc_state->state, old_mixer); in mdp5_crtc_setup_pipeline()
616 ret = mdp5_mixer_release(new_crtc_state->state, old_r_mixer); in mdp5_crtc_setup_pipeline()
668 struct drm_crtc_state *new_crtc_state, in get_start_stage() argument
672 to_mdp5_crtc_state(new_crtc_state); in get_start_stage()
684 if (!is_fullscreen(new_crtc_state, bpstate)) in get_start_stage()
/kernel/linux/linux-5.10/drivers/gpu/drm/bridge/analogix/
Danalogix_dp_core.c1472 struct drm_crtc_state *new_crtc_state = NULL; in analogix_dp_bridge_atomic_disable() local
1479 new_crtc_state = drm_atomic_get_new_crtc_state(old_state, new_crtc); in analogix_dp_bridge_atomic_disable()
1480 if (!new_crtc_state) in analogix_dp_bridge_atomic_disable()
1484 if (new_crtc_state->self_refresh_active) in analogix_dp_bridge_atomic_disable()
1511 struct drm_crtc_state *new_crtc_state; in analogix_dp_bridge_atomic_post_disable() local
1518 new_crtc_state = drm_atomic_get_new_crtc_state(old_state, crtc); in analogix_dp_bridge_atomic_post_disable()
1519 if (!new_crtc_state || !new_crtc_state->self_refresh_active) in analogix_dp_bridge_atomic_post_disable()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/gpu/drm/vmwgfx/
Dvmwgfx_kms.c1597 struct drm_crtc_state *old_crtc_state, *new_crtc_state; in vmw_kms_check_topology() local
1638 new_crtc_state, i) { in vmw_kms_check_topology()
1644 if (!du->pref_active && new_crtc_state->enable) { in vmw_kms_check_topology()

12