Home
last modified time | relevance | path

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

1234

/linux-6.15/drivers/gpu/drm/i915/display/
H A Dintel_atomic_plane.c293 new_crtc_state->min_cdclk[plane->id] = in intel_plane_calc_min_cdclk()
442 if (!new_crtc_state->uapi.async_flip) in intel_plane_do_async_flip()
616 new_crtc_state->disable_cxsr = true; in intel_plane_atomic_calc_changes()
620 new_crtc_state->disable_cxsr = true; in intel_plane_atomic_calc_changes()
623 new_crtc_state->do_async_flip = true; in intel_plane_atomic_calc_changes()
738 if (new_crtc_state && intel_crtc_is_joiner_secondary(new_crtc_state)) { in intel_plane_atomic_check()
740 intel_primary_crtc(new_crtc_state); in intel_plane_atomic_check()
762 if (!new_crtc_state) in intel_plane_atomic_check()
766 new_crtc_state, in intel_plane_atomic_check()
878 if (new_crtc_state->do_async_flip) in intel_crtc_planes_update_noarm()
[all …]
H A Dintel_display.c944 (!(new_crtc_state)->feature || intel_crtc_needs_modeset(new_crtc_state)))
996 (new_crtc_state->update_m_n || new_crtc_state->update_lrr || in intel_crtc_vrr_enabling()
1013 (new_crtc_state->update_m_n || new_crtc_state->update_lrr || in intel_crtc_vrr_disabling()
1057 if (new_crtc_state->update_wm_post && new_crtc_state->hw.active) in intel_post_plane_update()
6741 new_crtc_state->update_m_n || new_crtc_state->update_lrr) in intel_update_crtc()
7167 if (!new_crtc_state->use_dsb && !new_crtc_state->dsb_color_vblank) in intel_atomic_dsb_finish()
7186 new_crtc_state); in intel_atomic_dsb_finish()
7204 new_crtc_state); in intel_atomic_dsb_finish()
7217 intel_vrr_send_push(new_crtc_state->dsb_commit, new_crtc_state); in intel_atomic_dsb_finish()
7219 intel_vrr_check_push_sent(new_crtc_state->dsb_commit, new_crtc_state); in intel_atomic_dsb_finish()
[all …]
H A Dhsw_ips.c102 const struct intel_crtc_state *new_crtc_state = in hsw_ips_need_disable() local
108 if (intel_crtc_needs_modeset(new_crtc_state)) in hsw_ips_need_disable()
118 intel_crtc_needs_color_update(new_crtc_state) && in hsw_ips_need_disable()
119 new_crtc_state->gamma_mode == GAMMA_MODE_MODE_SPLIT) in hsw_ips_need_disable()
122 return !new_crtc_state->ips_enabled; in hsw_ips_need_disable()
143 const struct intel_crtc_state *new_crtc_state = in hsw_ips_need_enable() local
146 if (!new_crtc_state->ips_enabled) in hsw_ips_need_enable()
149 if (intel_crtc_needs_modeset(new_crtc_state)) in hsw_ips_need_enable()
159 intel_crtc_needs_color_update(new_crtc_state) && in hsw_ips_need_enable()
176 const struct intel_crtc_state *new_crtc_state = in hsw_ips_post_update() local
[all …]
H A Dintel_crtc.c520 struct intel_crtc_state *new_crtc_state = in intel_pipe_update_start() local
527 intel_psr_lock(new_crtc_state); in intel_pipe_update_start()
529 if (new_crtc_state->do_async_flip) { in intel_pipe_update_start()
536 intel_crtc_vblank_work_init(new_crtc_state); in intel_pipe_update_start()
561 intel_psr_wait_for_idle_locked(new_crtc_state); in intel_pipe_update_start()
657 struct intel_crtc_state *new_crtc_state = in intel_pipe_update_end() local
667 if (new_crtc_state->do_async_flip) in intel_pipe_update_end()
678 icl_dsi_frame_update(new_crtc_state); in intel_pipe_update_end()
689 intel_crtc_arm_vblank_event(new_crtc_state); in intel_pipe_update_end()
725 intel_vrr_send_push(NULL, new_crtc_state); in intel_pipe_update_end()
[all …]
H A Dintel_vblank.c620 const struct intel_crtc_state *new_crtc_state) in pre_commit_crtc_state() argument
626 if (intel_crtc_needs_modeset(new_crtc_state)) in pre_commit_crtc_state()
627 return new_crtc_state; in pre_commit_crtc_state()
638 const struct intel_crtc_state *new_crtc_state = in intel_pre_commit_crtc_state() local
641 return pre_commit_crtc_state(old_crtc_state, new_crtc_state); in intel_pre_commit_crtc_state()
645 const struct intel_crtc_state *new_crtc_state, in intel_vblank_evade_init() argument
648 struct intel_display *display = to_intel_display(new_crtc_state); in intel_vblank_evade_init()
658 intel_crtc_has_type(new_crtc_state, INTEL_OUTPUT_DSI); in intel_vblank_evade_init()
668 new_crtc_state->update_m_n || new_crtc_state->update_lrr); in intel_vblank_evade_init()
695 if (intel_color_uses_dsb(new_crtc_state) || in intel_vblank_evade_init()
[all …]
H A Dintel_display.h330 #define for_each_new_intel_crtc_in_state(__state, crtc, new_crtc_state, __i) \ argument
334 (new_crtc_state) = to_intel_crtc_state((__state)->base.crtcs[__i].new_state), 1); \
338 #define for_each_new_intel_crtc_in_state_reverse(__state, crtc, new_crtc_state, __i) \ argument
342 (new_crtc_state) = to_intel_crtc_state((__state)->base.crtcs[__i].new_state), 1); \
355 #define for_each_oldnew_intel_crtc_in_state(__state, crtc, old_crtc_state, new_crtc_state, __i) \ argument
360 (new_crtc_state) = to_intel_crtc_state((__state)->base.crtcs[__i].new_state), 1); \
364 #define for_each_oldnew_intel_crtc_in_state_reverse(__state, crtc, old_crtc_state, new_crtc_state, … argument
369 (new_crtc_state) = to_intel_crtc_state((__state)->base.crtcs[__i].new_state), 1); \
451 void intel_enable_transcoder(const struct intel_crtc_state *new_crtc_state);
H A Dskl_watermark.c456 struct intel_crtc_state *new_crtc_state; in intel_compute_sagv_mask() local
462 new_crtc_state, i) { in intel_compute_sagv_mask()
2610 if (new_crtc_state->do_async_flip) { in skl_ddb_add_affected_planes()
2621 new_crtc_state->async_flip_planes = 0; in skl_ddb_add_affected_planes()
2622 new_crtc_state->do_async_flip = false; in skl_ddb_add_affected_planes()
2772 new_crtc_state, i) { in skl_print_wm_changes()
2973 if (new_crtc_state->do_async_flip) { in skl_wm_add_affected_planes()
3019 if (!new_crtc_state->vrr.enable || in intel_program_dpkgc_latency()
3020 (new_crtc_state->vrr.vmin == new_crtc_state->vrr.vmax && in intel_program_dpkgc_latency()
3021 new_crtc_state->vrr.vmin == new_crtc_state->vrr.flipline)) in intel_program_dpkgc_latency()
[all …]
/linux-6.15/drivers/gpu/drm/
H A Ddrm_atomic_helper.c431 drm_mode_copy(&new_crtc_state->adjusted_mode, &new_crtc_state->mode); in mode_fixup()
444 new_crtc_state = in mode_fixup()
456 new_crtc_state, in mode_fixup()
487 if (!new_crtc_state->enable) in mode_fixup()
1190 new_crtc_state = NULL; in disable_outputs()
1370 if (new_crtc_state->enable) in drm_atomic_helper_calc_timestamping_constants()
1417 if (!new_crtc_state->mode_changed && !new_crtc_state->connectors_changed) in crtc_set_mode()
1517 if (!new_crtc_state->active) in drm_atomic_helper_commit_modeset_enables()
1593 if (!new_crtc_state->active) in set_fence_deadline()
1700 if (!new_crtc_state->active) in drm_atomic_helper_wait_for_vblanks()
[all …]
H A Ddrm_blend.c514 struct drm_crtc_state *old_crtc_state, *new_crtc_state; in drm_atomic_normalize_zpos() local
524 new_crtc_state = drm_atomic_get_new_crtc_state(state, crtc); in drm_atomic_normalize_zpos()
525 new_crtc_state->zpos_changed = true; in drm_atomic_normalize_zpos()
529 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in drm_atomic_normalize_zpos()
530 if (old_crtc_state->plane_mask != new_crtc_state->plane_mask || in drm_atomic_normalize_zpos()
531 new_crtc_state->zpos_changed) { in drm_atomic_normalize_zpos()
533 new_crtc_state); in drm_atomic_normalize_zpos()
H A Ddrm_atomic.c380 struct drm_crtc *crtc = new_crtc_state->crtc; in drm_atomic_crtc_check()
390 if (new_crtc_state->active && !new_crtc_state->enable) { in drm_atomic_crtc_check()
402 WARN_ON(new_crtc_state->enable && !new_crtc_state->mode_blob)) { in drm_atomic_crtc_check()
410 WARN_ON(!new_crtc_state->enable && new_crtc_state->mode_blob)) { in drm_atomic_crtc_check()
427 if (new_crtc_state->event && in drm_atomic_crtc_check()
1401 struct drm_crtc_state *new_crtc_state; in drm_atomic_check_only() local
1411 if (new_crtc_state->enable) in drm_atomic_check_only()
1463 if (new_crtc_state->enable) in drm_atomic_check_only()
1580 struct drm_crtc_state *new_crtc_state; in update_output_state() local
1630 if (!new_crtc_state->connector_mask) { in update_output_state()
[all …]
/linux-6.15/drivers/gpu/drm/vc4/
H A Dvc4_kms.c395 struct drm_crtc_state *new_crtc_state; in vc4_atomic_commit_tail() local
402 if (!new_crtc_state->commit) in vc4_atomic_commit_tail()
609 if (new_crtc_state->ctm) { in vc4_ctm_atomic_check()
611 to_vc4_crtc_state(new_crtc_state); in vc4_ctm_atomic_check()
628 ctm = new_crtc_state->ctm->data; in vc4_ctm_atomic_check()
940 if (!new_crtc_state) in vc4_pv_muxing_atomic_check()
948 if (new_crtc_state->enable) in vc4_pv_muxing_atomic_check()
961 if (!new_crtc_state->enable) { in vc4_pv_muxing_atomic_check()
1021 new_crtc_state, in vc4_core_clock_atomic_check()
1031 if (new_crtc_state->active) { in vc4_core_clock_atomic_check()
[all …]
/linux-6.15/drivers/gpu/drm/msm/dp/
H A Ddp_drm.c173 struct drm_crtc_state *new_crtc_state = NULL, *old_crtc_state = NULL; in msm_edp_bridge_atomic_disable() local
182 new_crtc_state = drm_atomic_get_new_crtc_state(atomic_state, crtc); in msm_edp_bridge_atomic_disable()
183 if (!new_crtc_state) in msm_edp_bridge_atomic_disable()
201 if (new_crtc_state->self_refresh_active) { in msm_edp_bridge_atomic_disable()
217 struct drm_crtc_state *new_crtc_state = NULL; in msm_edp_bridge_atomic_post_disable() local
224 new_crtc_state = drm_atomic_get_new_crtc_state(atomic_state, crtc); in msm_edp_bridge_atomic_post_disable()
225 if (!new_crtc_state) in msm_edp_bridge_atomic_post_disable()
231 if (new_crtc_state->self_refresh_active) in msm_edp_bridge_atomic_post_disable()
/linux-6.15/drivers/gpu/drm/amd/display/amdgpu_dm/
H A Damdgpu_dm.c7842 new_crtc_state->mode_changed = new_crtc_state->mode_changed || in amdgpu_dm_connector_atomic_check()
8820 if (new_crtc_state) in is_content_protection_different()
8839 if (new_crtc_state && new_crtc_state->mode_changed) { in is_content_protection_different()
8893 if (new_crtc_state && new_crtc_state->mode_changed) { in is_content_protection_different()
9693 if (!new_crtc_state) in amdgpu_dm_commit_audio()
9721 if (!new_crtc_state) in amdgpu_dm_commit_audio()
10152 if (new_crtc_state) in amdgpu_dm_atomic_commit_tail()
10215 if (new_crtc_state && new_crtc_state->mode_changed && in amdgpu_dm_atomic_commit_tail()
11040 new_crtc_state = in should_reset_plane()
11045 if (!new_crtc_state) in should_reset_plane()
[all …]
/linux-6.15/drivers/gpu/drm/bridge/
H A Dpanel.c155 struct drm_crtc_state *new_crtc_state; in panel_bridge_atomic_disable() local
161 new_crtc_state = drm_atomic_get_new_crtc_state(atomic_state, crtc); in panel_bridge_atomic_disable()
162 if (new_crtc_state && new_crtc_state->self_refresh_active) in panel_bridge_atomic_disable()
174 struct drm_crtc_state *new_crtc_state; in panel_bridge_atomic_post_disable() local
180 new_crtc_state = drm_atomic_get_new_crtc_state(atomic_state, crtc); in panel_bridge_atomic_post_disable()
181 if (new_crtc_state && new_crtc_state->self_refresh_active) in panel_bridge_atomic_post_disable()
/linux-6.15/drivers/gpu/drm/vkms/
H A Dvkms_drv.c116 struct drm_crtc_state *new_crtc_state; in vkms_atomic_check() local
119 for_each_new_crtc_in_state(state, crtc, new_crtc_state, i) { in vkms_atomic_check()
120 if (!new_crtc_state->gamma_lut || !new_crtc_state->color_mgmt_changed) in vkms_atomic_check()
123 if (new_crtc_state->gamma_lut->length / sizeof(struct drm_color_lut *) in vkms_atomic_check()
/linux-6.15/drivers/gpu/drm/mgag200/
H A Dmgag200_mode.c473 struct drm_crtc_state *new_crtc_state = NULL; in mgag200_primary_plane_helper_atomic_check() local
478 new_crtc_state = drm_atomic_get_new_crtc_state(new_state, new_crtc); in mgag200_primary_plane_helper_atomic_check()
480 ret = drm_atomic_helper_check_plane_state(new_plane_state, new_crtc_state, in mgag200_primary_plane_helper_atomic_check()
493 new_crtc_state->mode_changed = true; /* update PLL settings */ in mgag200_primary_plane_helper_atomic_check()
495 new_mgag200_crtc_state = to_mgag200_crtc_state(new_crtc_state); in mgag200_primary_plane_helper_atomic_check()
605 struct drm_crtc_state *new_crtc_state = drm_atomic_get_new_crtc_state(new_state, crtc); in mgag200_crtc_helper_atomic_check() local
606 struct drm_property_blob *new_gamma_lut = new_crtc_state->gamma_lut; in mgag200_crtc_helper_atomic_check()
609 if (!new_crtc_state->enable) in mgag200_crtc_helper_atomic_check()
612 ret = drm_atomic_helper_check_crtc_primary_plane(new_crtc_state); in mgag200_crtc_helper_atomic_check()
616 if (new_crtc_state->mode_changed) { in mgag200_crtc_helper_atomic_check()
[all …]
H A Dmgag200_g200eh3.c24 struct drm_crtc_state *new_crtc_state = drm_atomic_get_new_crtc_state(new_state, crtc); in mgag200_g200eh3_pixpllc_atomic_check() local
25 struct mgag200_crtc_state *new_mgag200_crtc_state = to_mgag200_crtc_state(new_crtc_state); in mgag200_g200eh3_pixpllc_atomic_check()
26 long clock = new_crtc_state->mode.clock; in mgag200_g200eh3_pixpllc_atomic_check()
H A Dmgag200_g200eh5.c26 struct drm_crtc_state *new_crtc_state = drm_atomic_get_new_crtc_state(new_state, crtc); in mgag200_g200eh5_pixpllc_atomic_check() local
27 struct mgag200_crtc_state *new_mgag200_crtc_state = to_mgag200_crtc_state(new_crtc_state); in mgag200_g200eh5_pixpllc_atomic_check()
28 long clock = new_crtc_state->mode.clock; in mgag200_g200eh5_pixpllc_atomic_check()
H A Dmgag200_g200ew3.c31 struct drm_crtc_state *new_crtc_state = drm_atomic_get_new_crtc_state(new_state, crtc); in mgag200_g200ew3_pixpllc_atomic_check() local
32 struct mgag200_crtc_state *new_mgag200_crtc_state = to_mgag200_crtc_state(new_crtc_state); in mgag200_g200ew3_pixpllc_atomic_check()
33 long clock = new_crtc_state->mode.clock; in mgag200_g200ew3_pixpllc_atomic_check()
H A Dmgag200_g200se.c121 struct drm_crtc_state *new_crtc_state = drm_atomic_get_new_crtc_state(new_state, crtc); in mgag200_g200se_00_pixpllc_atomic_check() local
122 struct mgag200_crtc_state *new_mgag200_crtc_state = to_mgag200_crtc_state(new_crtc_state); in mgag200_g200se_00_pixpllc_atomic_check()
123 long clock = new_crtc_state->mode.clock; in mgag200_g200se_00_pixpllc_atomic_check()
205 struct drm_crtc_state *new_crtc_state = drm_atomic_get_new_crtc_state(new_state, crtc); in mgag200_g200se_04_pixpllc_atomic_check() local
206 struct mgag200_crtc_state *new_mgag200_crtc_state = to_mgag200_crtc_state(new_crtc_state); in mgag200_g200se_04_pixpllc_atomic_check()
207 long clock = new_crtc_state->mode.clock; in mgag200_g200se_04_pixpllc_atomic_check()
/linux-6.15/drivers/gpu/drm/msm/
H A Dmsm_atomic.c188 struct drm_crtc_state *old_crtc_state, *new_crtc_state; in msm_atomic_check() local
197 new_crtc_state, i) { in msm_atomic_check()
198 if ((old_crtc_state->ctm && !new_crtc_state->ctm) || in msm_atomic_check()
199 (!old_crtc_state->ctm && new_crtc_state->ctm)) { in msm_atomic_check()
200 new_crtc_state->mode_changed = true; in msm_atomic_check()
/linux-6.15/drivers/gpu/drm/loongson/
H A Dlsdc_plane.c54 struct drm_crtc_state *new_crtc_state; in lsdc_primary_atomic_check() local
59 new_crtc_state = drm_atomic_get_new_crtc_state(state, crtc); in lsdc_primary_atomic_check()
62 new_crtc_state, in lsdc_primary_atomic_check()
273 struct drm_crtc_state *new_crtc_state; in ls7a1000_cursor_plane_atomic_check() local
290 new_crtc_state = drm_atomic_get_new_crtc_state(state, crtc); in ls7a1000_cursor_plane_atomic_check()
293 new_crtc_state, in ls7a1000_cursor_plane_atomic_check()
346 struct drm_crtc_state *new_crtc_state; in ls7a2000_cursor_plane_atomic_check() local
369 new_crtc_state = drm_atomic_get_new_crtc_state(state, crtc); in ls7a2000_cursor_plane_atomic_check()
372 new_crtc_state, in ls7a2000_cursor_plane_atomic_check()
/linux-6.15/drivers/gpu/drm/nouveau/dispnv50/
H A Dcrc.c274 struct drm_crtc_state *new_crtc_state; in nv50_crc_atomic_init_notifier_contexts() local
278 for_each_new_crtc_in_state(state, crtc, new_crtc_state, i) { in nv50_crc_atomic_init_notifier_contexts()
280 struct nv50_head_atom *asyh = nv50_head_atom(new_crtc_state); in nv50_crc_atomic_init_notifier_contexts()
298 struct drm_crtc_state *new_crtc_state; in nv50_crc_atomic_release_notifier_contexts() local
302 for_each_new_crtc_in_state(state, crtc, new_crtc_state, i) { in nv50_crc_atomic_release_notifier_contexts()
304 struct nv50_head_atom *asyh = nv50_head_atom(new_crtc_state); in nv50_crc_atomic_release_notifier_contexts()
384 struct drm_crtc_state *old_crtc_state, *new_crtc_state; in nv50_crc_atomic_check_outp() local
391 new_crtc_state, i) { in nv50_crc_atomic_check_outp()
393 struct nv50_head_atom *asyh = nv50_head_atom(new_crtc_state); in nv50_crc_atomic_check_outp()
H A Ddisp.c2284 if (new_crtc_state->active) { in nv50_disp_atomic_commit_tail()
2289 if (new_crtc_state->event) in nv50_disp_atomic_commit_tail()
2381 if (new_crtc_state->event) { in nv50_disp_atomic_commit_tail()
2384 if (new_crtc_state->active) in nv50_disp_atomic_commit_tail()
2390 new_crtc_state->event = NULL; in nv50_disp_atomic_commit_tail()
2391 if (new_crtc_state->active) in nv50_disp_atomic_commit_tail()
2534 struct drm_crtc_state *new_crtc_state; in nv50_disp_outp_atomic_check_set() local
2542 if (new_crtc_state->active && drm_atomic_crtc_needs_modeset(new_crtc_state)) { in nv50_disp_outp_atomic_check_set()
2561 struct drm_crtc_state *new_crtc_state; in nv50_disp_atomic_check() local
2571 if (IS_ERR(new_crtc_state)) in nv50_disp_atomic_check()
[all …]
/linux-6.15/include/drm/
H A Ddrm_atomic.h925 #define for_each_oldnew_crtc_in_state(__state, crtc, old_crtc_state, new_crtc_state, __i) \ argument
934 (new_crtc_state) = (__state)->crtcs[__i].new_state, \
935 (void)(new_crtc_state) /* Only to avoid unused-but-set-variable warning */, 1))
968 #define for_each_new_crtc_in_state(__state, crtc, new_crtc_state, __i) \ argument
975 (new_crtc_state) = (__state)->crtcs[__i].new_state, \
976 (void)(new_crtc_state) /* Only to avoid unused-but-set-variable warning */, 1))

1234