/linux/drivers/gpu/drm/ |
A D | drm_atomic_helper.c | 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() 472 if (!new_crtc_state->enable) in mode_fixup() 1036 new_crtc_state = NULL; in disable_outputs() 1207 if (new_crtc_state->enable) in drm_atomic_helper_calc_timestamping_constants() 1251 mode = &new_crtc_state->mode; in crtc_set_mode() 1354 if (!new_crtc_state->active) in drm_atomic_helper_commit_modeset_enables() 1359 if (new_crtc_state->enable) { in drm_atomic_helper_commit_modeset_enables() 1494 if (!new_crtc_state->active) in drm_atomic_helper_wait_for_vblanks() [all …]
|
A D | drm_blend.c | 515 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()
|
A D | drm_atomic.c | 369 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() 1304 struct drm_crtc_state *new_crtc_state; in drm_atomic_check_only() local 1355 if (drm_atomic_crtc_needs_modeset(new_crtc_state)) { in drm_atomic_check_only() 1474 struct drm_crtc_state *new_crtc_state; in update_output_state() local 1524 if (!new_crtc_state->connector_mask) { in update_output_state() [all …]
|
/linux/drivers/gpu/drm/i915/display/ |
A D | intel_atomic_plane.c | 216 struct intel_crtc_state *new_crtc_state; in intel_plane_calc_min_cdclk() local 224 new_crtc_state->min_cdclk[plane->id] = in intel_plane_calc_min_cdclk() 235 if (new_crtc_state->min_cdclk[plane->id] <= in intel_plane_calc_min_cdclk() 258 new_crtc_state->min_cdclk[plane->id], in intel_plane_calc_min_cdclk() 367 new_crtc_state->data_rate[plane->id] = in intel_plane_atomic_check_with_state() 400 struct intel_crtc_state *new_crtc_state = in intel_plane_atomic_check() local 403 if (new_crtc_state && new_crtc_state->bigjoiner_slave) { in intel_plane_atomic_check() 419 if (!new_crtc_state) in intel_plane_atomic_check() 423 new_crtc_state, in intel_plane_atomic_check() 500 struct intel_crtc_state *new_crtc_state = in skl_update_planes_on_crtc() local [all …]
|
A D | intel_display.c | 1937 (!new_crtc_state->active_planes || intel_crtc_needs_modeset(new_crtc_state)); in planes_disabling() 1952 if (new_crtc_state->update_wm_post && new_crtc_state->hw.active) in intel_post_plane_update() 8194 verify_single_dpll_state(dev_priv, new_crtc_state->shared_dpll, crtc, new_crtc_state); in verify_shared_dpll_state() 8265 if (!intel_crtc_needs_modeset(new_crtc_state) && !new_crtc_state->update_pipe) in intel_modeset_verify_crtc() 8653 new_crtc_state, i) { in intel_atomic_check_planes() 9088 new_crtc_state); in intel_atomic_check() 9117 if (!new_crtc_state->hw.enable || intel_crtc_needs_modeset(new_crtc_state)) in intel_atomic_check() 9240 new_crtc_state, i) in intel_atomic_check() 9631 (new_crtc_state->bigjoiner && !new_crtc_state->bigjoiner_slave)) in skl_commit_modeset_enables() 9728 new_crtc_state, i) in intel_cleanup_dsbs() [all …]
|
A D | intel_crtc.c | 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() 426 intel_psr_wait_for_idle(new_crtc_state); in intel_pipe_update_start() 540 if (new_crtc_state->uapi.async_flip) in intel_pipe_update_end() 550 intel_crtc_has_type(new_crtc_state, INTEL_OUTPUT_DSI)) in intel_pipe_update_end() 551 icl_dsi_frame_update(new_crtc_state); in intel_pipe_update_end() 557 if (new_crtc_state->uapi.event) { in intel_pipe_update_end() 563 new_crtc_state->uapi.event); in intel_pipe_update_end() 566 new_crtc_state->uapi.event = NULL; in intel_pipe_update_end() [all …]
|
A D | intel_vrr.c | 38 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()
|
A D | intel_sprite.h | 36 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);
|
A D | intel_display.h | 465 #define for_each_new_intel_crtc_in_state(__state, crtc, new_crtc_state, __i) \ argument 469 (new_crtc_state) = to_intel_crtc_state((__state)->base.crtcs[__i].new_state), 1); \ 482 #define for_each_oldnew_intel_crtc_in_state(__state, crtc, old_crtc_state, new_crtc_state, __i) \ argument 487 (new_crtc_state) = to_intel_crtc_state((__state)->base.crtcs[__i].new_state), 1); \ 491 #define for_each_oldnew_intel_crtc_in_state_reverse(__state, crtc, old_crtc_state, new_crtc_state, … argument 496 (new_crtc_state) = to_intel_crtc_state((__state)->base.crtcs[__i].new_state), 1); \ 535 void intel_enable_transcoder(const struct intel_crtc_state *new_crtc_state);
|
A D | intel_color.c | 1154 struct intel_crtc *crtc = to_intel_crtc(new_crtc_state->uapi.crtc); in intel_can_preload_luts() 1156 to_intel_atomic_state(new_crtc_state->uapi.state); in intel_can_preload_luts() 1168 to_intel_atomic_state(new_crtc_state->uapi.state); in chv_can_preload_luts() 1177 if (old_crtc_state->cgm_mode || new_crtc_state->cgm_mode) in chv_can_preload_luts() 1187 to_intel_atomic_state(new_crtc_state->uapi.state); in glk_can_preload_luts() 1237 to_intel_atomic_state(new_crtc_state->uapi.state); in intel_color_add_affected_planes() 1242 if (!new_crtc_state->hw.active || in intel_color_add_affected_planes() 1243 drm_atomic_crtc_needs_modeset(&new_crtc_state->uapi)) in intel_color_add_affected_planes() 1247 new_crtc_state->csc_enable == old_crtc_state->csc_enable) in intel_color_add_affected_planes() 1253 if (!need_plane_update(plane, new_crtc_state)) in intel_color_add_affected_planes() [all …]
|
A D | intel_cursor.c | 629 struct intel_crtc_state *new_crtc_state; in intel_legacy_cursor_update() local 671 new_crtc_state = to_intel_crtc_state(intel_crtc_duplicate_state(&crtc->base)); in intel_legacy_cursor_update() 672 if (!new_crtc_state) { in intel_legacy_cursor_update() 690 ret = intel_plane_atomic_check_with_state(crtc_state, new_crtc_state, in intel_legacy_cursor_update() 718 crtc_state->active_planes = new_crtc_state->active_planes; in intel_legacy_cursor_update() 728 if (new_crtc_state) in intel_legacy_cursor_update() 729 intel_crtc_destroy_state(&crtc->base, &new_crtc_state->uapi); in intel_legacy_cursor_update()
|
A D | intel_bw.c | 673 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()
|
A D | intel_psr.h | 42 void intel_psr_wait_for_idle(const struct intel_crtc_state *new_crtc_state);
|
/linux/drivers/gpu/drm/vc4/ |
A D | vc4_kms.c | 340 struct drm_crtc_state *new_crtc_state; in vc4_atomic_commit_tail() local 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() 492 if (!new_crtc_state->ctm && old_crtc_state->ctm) { in vc4_ctm_atomic_check() 501 if (new_crtc_state->ctm == old_crtc_state->ctm) in vc4_ctm_atomic_check() 511 if (new_crtc_state->ctm) { in vc4_ctm_atomic_check() 513 to_vc4_crtc_state(new_crtc_state); in vc4_ctm_atomic_check() 530 ctm = new_crtc_state->ctm->data; in vc4_ctm_atomic_check() 772 to_vc4_crtc_state(new_crtc_state); in vc4_pv_muxing_atomic_check() 778 if (old_crtc_state->enable == new_crtc_state->enable) in vc4_pv_muxing_atomic_check() [all …]
|
/linux/drivers/gpu/drm/amd/display/amdgpu_dm/ |
A D | amdgpu_dm.c | 7602 new_crtc_state = in dm_plane_atomic_check() 7605 if (!new_crtc_state) in dm_plane_atomic_check() 9342 if (!new_crtc_state) in amdgpu_dm_commit_audio() 9367 if (!new_crtc_state) in amdgpu_dm_commit_audio() 9591 new_crtc_state = NULL; in amdgpu_dm_atomic_commit_tail() 10180 new_crtc_state->enable, in dm_update_crtc_state() 10358 new_crtc_state = in should_reset_plane() 10361 if (!new_crtc_state) in should_reset_plane() 10618 new_crtc_state); in dm_update_plane_state() 10908 new_crtc_state, in amdgpu_dm_atomic_check() [all …]
|
A D | amdgpu_dm_mst_types.c | 339 struct drm_crtc_state *new_crtc_state; in dm_dp_mst_atomic_check() local 350 new_crtc_state = drm_atomic_get_new_crtc_state(state, new_conn_state->crtc); in dm_dp_mst_atomic_check() 351 if (!new_crtc_state || in dm_dp_mst_atomic_check() 352 !drm_atomic_crtc_needs_modeset(new_crtc_state) || in dm_dp_mst_atomic_check() 353 new_crtc_state->enable) in dm_dp_mst_atomic_check() 902 struct drm_crtc_state *new_crtc_state; in is_dsc_need_re_compute() local 931 if (!new_crtc_state) in is_dsc_need_re_compute() 934 if (IS_ERR(new_crtc_state)) in is_dsc_need_re_compute() 937 if (new_crtc_state->enable && new_crtc_state->active) { in is_dsc_need_re_compute() 938 if (new_crtc_state->mode_changed || new_crtc_state->active_changed || in is_dsc_need_re_compute() [all …]
|
/linux/drivers/gpu/drm/nouveau/dispnv50/ |
A D | crc.c | 268 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()
|
A D | disp.c | 2246 if (new_crtc_state->active) { in nv50_disp_atomic_commit_tail() 2251 if (new_crtc_state->event) in nv50_disp_atomic_commit_tail() 2338 if (new_crtc_state->event) { in nv50_disp_atomic_commit_tail() 2341 if (new_crtc_state->active) in nv50_disp_atomic_commit_tail() 2347 new_crtc_state->event = NULL; in nv50_disp_atomic_commit_tail() 2348 if (new_crtc_state->active) in nv50_disp_atomic_commit_tail() 2492 struct drm_crtc_state *new_crtc_state; in nv50_disp_outp_atomic_check_set() local 2500 if (new_crtc_state->active && drm_atomic_crtc_needs_modeset(new_crtc_state)) { in nv50_disp_outp_atomic_check_set() 2519 struct drm_crtc_state *new_crtc_state; in nv50_disp_atomic_check() local 2529 if (IS_ERR(new_crtc_state)) in nv50_disp_atomic_check() [all …]
|
/linux/include/drm/ |
A D | drm_atomic.h | 801 #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/drivers/gpu/drm/gud/ |
A D | gud_pipe.c | 446 struct drm_crtc_state *new_crtc_state) in gud_pipe_check() argument 450 const struct drm_display_mode *mode = &new_crtc_state->mode; in gud_pipe_check() 466 new_crtc_state->mode_changed = true; in gud_pipe_check() 469 new_crtc_state->mode_changed = true; in gud_pipe_check() 471 if (!new_crtc_state->mode_changed && !new_crtc_state->connectors_changed) in gud_pipe_check() 475 if (hweight32(new_crtc_state->connector_mask) != 1) in gud_pipe_check()
|
/linux/drivers/gpu/drm/rockchip/ |
A D | analogix_dp-rockchip.c | 213 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/drivers/gpu/drm/i915/ |
A D | intel_pm.c | 1474 if (!new_crtc_state->hw.active || in g4x_compute_intermediate_wm() 1484 !new_crtc_state->disable_cxsr; in g4x_compute_intermediate_wm() 1486 !new_crtc_state->disable_cxsr; in g4x_compute_intermediate_wm() 2118 if (!new_crtc_state->hw.active || in vlv_compute_intermediate_wm() 2128 !new_crtc_state->disable_cxsr; in vlv_compute_intermediate_wm() 3256 if (!new_crtc_state->hw.active || in ilk_compute_intermediate_wm() 3997 new_crtc_state, i) { in intel_compute_sagv_mask() 4023 new_crtc_state, i) { in intel_compute_sagv_mask() 6173 new_crtc_state, i) { in skl_compute_ddb() 6179 new_crtc_state); in skl_compute_ddb() [all …]
|
/linux/drivers/gpu/drm/msm/disp/mdp5/ |
A D | mdp5_crtc.c | 584 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/drivers/gpu/drm/bridge/analogix/ |
A D | analogix_dp_core.c | 1452 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/drivers/gpu/drm/omapdrm/ |
A D | omap_drv.c | 50 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()
|