Home
last modified time | relevance | path

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

12

/Linux-v5.15/drivers/gpu/drm/
Ddrm_atomic_helper.c407 struct drm_crtc_state *new_crtc_state; in mode_fixup() local
413 for_each_new_crtc_in_state(state, crtc, new_crtc_state, i) { in mode_fixup()
414 if (!new_crtc_state->mode_changed && in mode_fixup()
415 !new_crtc_state->connectors_changed) in mode_fixup()
418 drm_mode_copy(&new_crtc_state->adjusted_mode, &new_crtc_state->mode); in mode_fixup()
431 new_crtc_state = in mode_fixup()
443 new_crtc_state, in mode_fixup()
451 ret = funcs->atomic_check(encoder, new_crtc_state, in mode_fixup()
459 ret = funcs->mode_fixup(encoder, &new_crtc_state->mode, in mode_fixup()
460 &new_crtc_state->adjusted_mode); in mode_fixup()
[all …]
Ddrm_blend.c515 struct drm_crtc_state *old_crtc_state, *new_crtc_state; in drm_atomic_normalize_zpos() local
525 new_crtc_state = drm_atomic_get_new_crtc_state(state, crtc); in drm_atomic_normalize_zpos()
526 new_crtc_state->zpos_changed = true; in drm_atomic_normalize_zpos()
530 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in drm_atomic_normalize_zpos()
531 if (old_crtc_state->plane_mask != new_crtc_state->plane_mask || in drm_atomic_normalize_zpos()
532 new_crtc_state->zpos_changed) { in drm_atomic_normalize_zpos()
534 new_crtc_state); in drm_atomic_normalize_zpos()
Ddrm_atomic.c369 const struct drm_crtc_state *new_crtc_state) in drm_atomic_crtc_check() argument
371 struct drm_crtc *crtc = new_crtc_state->crtc; in drm_atomic_crtc_check()
381 if (new_crtc_state->active && !new_crtc_state->enable) { in drm_atomic_crtc_check()
392 WARN_ON(new_crtc_state->enable && !new_crtc_state->mode_blob)) { in drm_atomic_crtc_check()
399 WARN_ON(!new_crtc_state->enable && new_crtc_state->mode_blob)) { in drm_atomic_crtc_check()
415 if (new_crtc_state->event && in drm_atomic_crtc_check()
416 !new_crtc_state->active && !old_crtc_state->active) { in drm_atomic_crtc_check()
1304 struct drm_crtc_state *new_crtc_state; in drm_atomic_check_only() local
1313 for_each_new_crtc_in_state(state, crtc, new_crtc_state, i) in drm_atomic_check_only()
1325 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in drm_atomic_check_only()
[all …]
/Linux-v5.15/drivers/gpu/drm/i915/display/
Dintel_atomic_plane.c214 struct intel_crtc_state *new_crtc_state; in intel_plane_calc_min_cdclk() local
220 new_crtc_state = intel_atomic_get_new_crtc_state(state, crtc); in intel_plane_calc_min_cdclk()
222 new_crtc_state->min_cdclk[plane->id] = in intel_plane_calc_min_cdclk()
223 plane->min_cdclk(new_crtc_state, plane_state); in intel_plane_calc_min_cdclk()
233 if (new_crtc_state->min_cdclk[plane->id] <= in intel_plane_calc_min_cdclk()
249 if (new_crtc_state->min_cdclk[plane->id] <= in intel_plane_calc_min_cdclk()
256 new_crtc_state->min_cdclk[plane->id], in intel_plane_calc_min_cdclk()
329 struct intel_crtc_state *new_crtc_state, in intel_plane_atomic_check_with_state() argument
337 intel_plane_set_invisible(new_crtc_state, new_plane_state); in intel_plane_atomic_check_with_state()
338 new_crtc_state->enabled_planes &= ~BIT(plane->id); in intel_plane_atomic_check_with_state()
[all …]
Dintel_display.c945 void intel_enable_pipe(const struct intel_crtc_state *new_crtc_state) in intel_enable_pipe() argument
947 struct intel_crtc *crtc = to_intel_crtc(new_crtc_state->uapi.crtc); in intel_enable_pipe()
949 enum transcoder cpu_transcoder = new_crtc_state->cpu_transcoder; in intel_enable_pipe()
964 if (intel_crtc_has_type(new_crtc_state, INTEL_OUTPUT_DSI)) in intel_enable_pipe()
969 if (new_crtc_state->has_pch_encoder) { in intel_enable_pipe()
1002 if (intel_crtc_max_vblank_count(new_crtc_state) == 0) in intel_enable_pipe()
2760 const struct intel_crtc_state *new_crtc_state) in hsw_pre_update_disable_ips() argument
2762 struct intel_crtc *crtc = to_intel_crtc(new_crtc_state->uapi.crtc); in hsw_pre_update_disable_ips()
2768 if (intel_crtc_needs_modeset(new_crtc_state)) in hsw_pre_update_disable_ips()
2778 (new_crtc_state->uapi.color_mgmt_changed || in hsw_pre_update_disable_ips()
[all …]
Dintel_crtc.c390 void intel_pipe_update_start(const struct intel_crtc_state *new_crtc_state) in intel_pipe_update_start() argument
392 struct intel_crtc *crtc = to_intel_crtc(new_crtc_state->uapi.crtc); in intel_pipe_update_start()
394 const struct drm_display_mode *adjusted_mode = &new_crtc_state->hw.adjusted_mode; in intel_pipe_update_start()
399 intel_crtc_has_type(new_crtc_state, INTEL_OUTPUT_DSI); in intel_pipe_update_start()
402 if (new_crtc_state->uapi.async_flip) in intel_pipe_update_start()
405 if (new_crtc_state->vrr.enable) in intel_pipe_update_start()
406 vblank_start = intel_vrr_vmax_vblank_start(new_crtc_state); in intel_pipe_update_start()
426 intel_psr_wait_for_idle(new_crtc_state); in intel_pipe_update_start()
531 void intel_pipe_update_end(struct intel_crtc_state *new_crtc_state) in intel_pipe_update_end() argument
533 struct intel_crtc *crtc = to_intel_crtc(new_crtc_state->uapi.crtc); in intel_pipe_update_end()
[all …]
Dintel_sprite.h36 void intel_pipe_update_start(const struct intel_crtc_state *new_crtc_state);
37 void intel_pipe_update_end(struct intel_crtc_state *new_crtc_state);
Dintel_vrr.c38 struct intel_crtc_state *old_crtc_state, *new_crtc_state; in intel_vrr_check_modeset() local
42 new_crtc_state, i) { in intel_vrr_check_modeset()
43 if (new_crtc_state->uapi.vrr_enabled != in intel_vrr_check_modeset()
45 new_crtc_state->uapi.mode_changed = true; in intel_vrr_check_modeset()
Dintel_display.h464 #define for_each_new_intel_crtc_in_state(__state, crtc, new_crtc_state, __i) \ argument
468 (new_crtc_state) = to_intel_crtc_state((__state)->base.crtcs[__i].new_state), 1); \
481 #define for_each_oldnew_intel_crtc_in_state(__state, crtc, old_crtc_state, new_crtc_state, __i) \ argument
486 (new_crtc_state) = to_intel_crtc_state((__state)->base.crtcs[__i].new_state), 1); \
490 #define for_each_oldnew_intel_crtc_in_state_reverse(__state, crtc, old_crtc_state, new_crtc_state, … argument
495 (new_crtc_state) = to_intel_crtc_state((__state)->base.crtcs[__i].new_state), 1); \
534 void intel_enable_pipe(const struct intel_crtc_state *new_crtc_state);
Dintel_color.c1150 static bool intel_can_preload_luts(const struct intel_crtc_state *new_crtc_state) in intel_can_preload_luts() argument
1152 struct intel_crtc *crtc = to_intel_crtc(new_crtc_state->uapi.crtc); in intel_can_preload_luts()
1154 to_intel_atomic_state(new_crtc_state->uapi.state); in intel_can_preload_luts()
1162 static bool chv_can_preload_luts(const struct intel_crtc_state *new_crtc_state) in chv_can_preload_luts() argument
1164 struct intel_crtc *crtc = to_intel_crtc(new_crtc_state->uapi.crtc); in chv_can_preload_luts()
1166 to_intel_atomic_state(new_crtc_state->uapi.state); in chv_can_preload_luts()
1175 if (old_crtc_state->cgm_mode || new_crtc_state->cgm_mode) in chv_can_preload_luts()
1181 static bool glk_can_preload_luts(const struct intel_crtc_state *new_crtc_state) in glk_can_preload_luts() argument
1183 struct intel_crtc *crtc = to_intel_crtc(new_crtc_state->uapi.crtc); in glk_can_preload_luts()
1185 to_intel_atomic_state(new_crtc_state->uapi.state); in glk_can_preload_luts()
[all …]
Dintel_cursor.c627 struct intel_crtc_state *new_crtc_state; in intel_legacy_cursor_update() local
670 new_crtc_state = to_intel_crtc_state(intel_crtc_duplicate_state(&crtc->base)); in intel_legacy_cursor_update()
671 if (!new_crtc_state) { in intel_legacy_cursor_update()
689 ret = intel_plane_atomic_check_with_state(crtc_state, new_crtc_state, in intel_legacy_cursor_update()
717 crtc_state->active_planes = new_crtc_state->active_planes; in intel_legacy_cursor_update()
727 if (new_crtc_state) in intel_legacy_cursor_update()
728 intel_crtc_destroy_state(&crtc->base, &new_crtc_state->uapi); in intel_legacy_cursor_update()
Dintel_psr.h45 void intel_psr_wait_for_idle(const struct intel_crtc_state *new_crtc_state);
Dintel_bw.c673 struct intel_crtc_state *new_crtc_state, *old_crtc_state; in intel_bw_atomic_check() local
702 new_crtc_state, i) { in intel_bw_atomic_check()
706 intel_bw_crtc_data_rate(new_crtc_state); in intel_bw_atomic_check()
710 intel_bw_crtc_num_active_planes(new_crtc_state); in intel_bw_atomic_check()
/Linux-v5.15/drivers/gpu/drm/vc4/
Dvc4_kms.c341 struct drm_crtc_state *new_crtc_state; in vc4_atomic_commit_tail() local
346 for_each_new_crtc_in_state(state, crtc, new_crtc_state, i) { in vc4_atomic_commit_tail()
349 if (!new_crtc_state->commit) in vc4_atomic_commit_tail()
352 vc4_crtc_state = to_vc4_crtc_state(new_crtc_state); in vc4_atomic_commit_tail()
484 struct drm_crtc_state *old_crtc_state, *new_crtc_state; in vc4_ctm_atomic_check() local
488 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in vc4_ctm_atomic_check()
490 if (!new_crtc_state->ctm && old_crtc_state->ctm) { in vc4_ctm_atomic_check()
498 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in vc4_ctm_atomic_check()
499 if (new_crtc_state->ctm == old_crtc_state->ctm) in vc4_ctm_atomic_check()
509 if (new_crtc_state->ctm) { in vc4_ctm_atomic_check()
[all …]
/Linux-v5.15/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm.c220 struct drm_crtc_state *new_crtc_state);
2196 struct drm_crtc_state *new_crtc_state; in dm_resume() local
2309 for_each_new_crtc_in_state(dm->cached_state, crtc, new_crtc_state, i) in dm_resume()
2310 new_crtc_state->active_changed = true; in dm_resume()
2317 for_each_new_crtc_in_state(dm->cached_state, crtc, new_crtc_state, i) { in dm_resume()
2318 dm_new_crtc_state = to_dm_crtc_state(new_crtc_state); in dm_resume()
6563 struct drm_crtc_state *new_crtc_state; in amdgpu_dm_connector_atomic_check() local
6578 new_crtc_state = drm_atomic_get_crtc_state(state, crtc); in amdgpu_dm_connector_atomic_check()
6579 if (IS_ERR(new_crtc_state)) in amdgpu_dm_connector_atomic_check()
6580 return PTR_ERR(new_crtc_state); in amdgpu_dm_connector_atomic_check()
[all …]
Damdgpu_dm_mst_types.c325 struct drm_crtc_state *new_crtc_state; in dm_dp_mst_atomic_check() local
336 new_crtc_state = drm_atomic_get_new_crtc_state(state, new_conn_state->crtc); in dm_dp_mst_atomic_check()
337 if (!new_crtc_state || in dm_dp_mst_atomic_check()
338 !drm_atomic_crtc_needs_modeset(new_crtc_state) || in dm_dp_mst_atomic_check()
339 new_crtc_state->enable) in dm_dp_mst_atomic_check()
/Linux-v5.15/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.c2119 struct drm_crtc_state *new_crtc_state, *old_crtc_state; in nv50_disp_atomic_commit_tail() local
2143 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in nv50_disp_atomic_commit_tail()
2144 struct nv50_head_atom *asyh = nv50_head_atom(new_crtc_state); in nv50_disp_atomic_commit_tail()
2150 if (old_crtc_state->active && !new_crtc_state->active) { in nv50_disp_atomic_commit_tail()
2234 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in nv50_disp_atomic_commit_tail()
2235 struct nv50_head_atom *asyh = nv50_head_atom(new_crtc_state); in nv50_disp_atomic_commit_tail()
2246 if (new_crtc_state->active) { in nv50_disp_atomic_commit_tail()
2251 if (new_crtc_state->event) in nv50_disp_atomic_commit_tail()
2285 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in nv50_disp_atomic_commit_tail()
2286 struct nv50_head_atom *asyh = nv50_head_atom(new_crtc_state); in nv50_disp_atomic_commit_tail()
[all …]
/Linux-v5.15/include/drm/
Ddrm_atomic.h801 #define for_each_oldnew_crtc_in_state(__state, crtc, old_crtc_state, new_crtc_state, __i) \ argument
810 (new_crtc_state) = (__state)->crtcs[__i].new_state, \
811 (void)(new_crtc_state) /* Only to avoid unused-but-set-variable warning */, 1))
844 #define for_each_new_crtc_in_state(__state, crtc, new_crtc_state, __i) \ argument
851 (new_crtc_state) = (__state)->crtcs[__i].new_state, \
852 (void)(new_crtc_state) /* Only to avoid unused-but-set-variable warning */, 1))
/Linux-v5.15/drivers/gpu/drm/gud/
Dgud_pipe.c440 struct drm_crtc_state *new_crtc_state) in gud_pipe_check() argument
444 const struct drm_display_mode *mode = &new_crtc_state->mode; in gud_pipe_check()
460 new_crtc_state->mode_changed = true; in gud_pipe_check()
463 new_crtc_state->mode_changed = true; in gud_pipe_check()
465 if (!new_crtc_state->mode_changed && !new_crtc_state->connectors_changed) in gud_pipe_check()
469 if (hweight32(new_crtc_state->connector_mask) != 1) in gud_pipe_check()
/Linux-v5.15/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()
/Linux-v5.15/drivers/gpu/drm/i915/
Dintel_pm.c1470 struct intel_crtc_state *new_crtc_state = in g4x_compute_intermediate_wm() local
1474 struct g4x_wm_state *intermediate = &new_crtc_state->wm.g4x.intermediate; in g4x_compute_intermediate_wm()
1475 const struct g4x_wm_state *optimal = &new_crtc_state->wm.g4x.optimal; in g4x_compute_intermediate_wm()
1479 if (!new_crtc_state->hw.active || in g4x_compute_intermediate_wm()
1480 drm_atomic_crtc_needs_modeset(&new_crtc_state->uapi)) { in g4x_compute_intermediate_wm()
1489 !new_crtc_state->disable_cxsr; in g4x_compute_intermediate_wm()
1491 !new_crtc_state->disable_cxsr; in g4x_compute_intermediate_wm()
1543 new_crtc_state->wm.need_postvbl_update = true; in g4x_compute_intermediate_wm()
2114 struct intel_crtc_state *new_crtc_state = in vlv_compute_intermediate_wm() local
2118 struct vlv_wm_state *intermediate = &new_crtc_state->wm.vlv.intermediate; in vlv_compute_intermediate_wm()
[all …]
/Linux-v5.15/drivers/gpu/drm/msm/disp/mdp5/
Dmdp5_crtc.c584 struct drm_crtc_state *new_crtc_state, in mdp5_crtc_setup_pipeline() argument
588 to_mdp5_crtc_state(new_crtc_state); in mdp5_crtc_setup_pipeline()
609 ret = mdp5_mixer_assign(new_crtc_state->state, crtc, caps, in mdp5_crtc_setup_pipeline()
615 mdp5_mixer_release(new_crtc_state->state, old_mixer); in mdp5_crtc_setup_pipeline()
617 mdp5_mixer_release(new_crtc_state->state, old_r_mixer); in mdp5_crtc_setup_pipeline()
666 struct drm_crtc_state *new_crtc_state, in get_start_stage() argument
670 to_mdp5_crtc_state(new_crtc_state); in get_start_stage()
682 if (!is_fullscreen(new_crtc_state, bpstate)) in get_start_stage()
/Linux-v5.15/drivers/gpu/drm/bridge/analogix/
Danalogix_dp_core.c1452 struct drm_crtc_state *new_crtc_state = NULL; in analogix_dp_bridge_atomic_disable() local
1458 new_crtc_state = drm_atomic_get_new_crtc_state(old_state, crtc); in analogix_dp_bridge_atomic_disable()
1459 if (!new_crtc_state) in analogix_dp_bridge_atomic_disable()
1463 if (new_crtc_state->self_refresh_active) in analogix_dp_bridge_atomic_disable()
1477 struct drm_crtc_state *new_crtc_state; in analogix_dp_bridge_atomic_post_disable() local
1484 new_crtc_state = drm_atomic_get_new_crtc_state(old_state, crtc); in analogix_dp_bridge_atomic_post_disable()
1485 if (!new_crtc_state || !new_crtc_state->self_refresh_active) in analogix_dp_bridge_atomic_post_disable()
/Linux-v5.15/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()

12