Home
last modified time | relevance | path

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

12

/openbsd/sys/dev/pci/drm/i915/display/
H A Dintel_atomic_plane.c270 new_crtc_state->min_cdclk[plane->id] = in intel_plane_calc_min_cdclk()
422 if (!new_crtc_state->uapi.async_flip) in intel_plane_do_async_flip()
549 new_crtc_state->disable_cxsr = true; in intel_plane_atomic_calc_changes()
589 new_crtc_state->disable_lp_wm = true; in intel_plane_atomic_calc_changes()
592 new_crtc_state->do_async_flip = true; in intel_plane_atomic_calc_changes()
695 if (new_crtc_state && intel_crtc_is_bigjoiner_slave(new_crtc_state)) { in intel_plane_atomic_check()
697 intel_master_crtc(new_crtc_state); in intel_plane_atomic_check()
712 if (!new_crtc_state) in intel_plane_atomic_check()
716 new_crtc_state, in intel_plane_atomic_check()
808 if (new_crtc_state->do_async_flip) in intel_crtc_planes_update_noarm()
[all …]
H A Dintel_modeset_verify.c161 struct intel_crtc_state *new_crtc_state) in verify_crtc_state() argument
193 new_crtc_state->hw.active, crtc->active); in verify_crtc_state()
195 master_crtc = intel_master_crtc(new_crtc_state); in verify_crtc_state()
205 new_crtc_state->hw.active); in verify_crtc_state()
215 if (!new_crtc_state->hw.active) in verify_crtc_state()
220 if (!intel_pipe_config_compare(new_crtc_state, in verify_crtc_state()
231 struct intel_crtc_state *new_crtc_state) in intel_modeset_verify_crtc() argument
233 if (!intel_crtc_needs_modeset(new_crtc_state) && in intel_modeset_verify_crtc()
234 !intel_crtc_needs_fastset(new_crtc_state)) in intel_modeset_verify_crtc()
237 intel_wm_state_verify(crtc, new_crtc_state); in intel_modeset_verify_crtc()
[all …]
H A Dintel_display.c899 (new_crtc_state)->feature)
902 (!(new_crtc_state)->feature || intel_crtc_needs_modeset(new_crtc_state)))
943 if (new_crtc_state->update_wm_post && new_crtc_state->hw.active) in intel_post_plane_update()
5694 new_crtc_state, i) { in intel_atomic_check_planes()
6204 new_crtc_state, i) { in intel_atomic_check()
6237 new_crtc_state, i) { in intel_atomic_check()
6268 new_crtc_state, i) { in intel_atomic_check()
6293 if (!new_crtc_state->hw.enable || intel_crtc_needs_modeset(new_crtc_state)) in intel_atomic_check()
6423 new_crtc_state, i) in intel_atomic_check()
6638 if (vrr_enabling(old_crtc_state, new_crtc_state) || new_crtc_state->update_m_n) in intel_update_crtc()
[all …]
H A Dhsw_ips.c97 const struct intel_crtc_state *new_crtc_state = in hsw_ips_need_disable() local
103 if (intel_crtc_needs_modeset(new_crtc_state)) in hsw_ips_need_disable()
113 intel_crtc_needs_color_update(new_crtc_state) && in hsw_ips_need_disable()
114 new_crtc_state->gamma_mode == GAMMA_MODE_MODE_SPLIT) in hsw_ips_need_disable()
117 return !new_crtc_state->ips_enabled; in hsw_ips_need_disable()
138 const struct intel_crtc_state *new_crtc_state = in hsw_ips_need_enable() local
141 if (!new_crtc_state->ips_enabled) in hsw_ips_need_enable()
144 if (intel_crtc_needs_modeset(new_crtc_state)) in hsw_ips_need_enable()
154 intel_crtc_needs_color_update(new_crtc_state) && in hsw_ips_need_enable()
171 const struct intel_crtc_state *new_crtc_state = in hsw_ips_post_update() local
[all …]
H A Dintel_crtc.c489 crtc_state = new_crtc_state; in intel_crtc_vblank_evade_scanlines()
513 if (new_crtc_state->update_m_n) in intel_crtc_vblank_evade_scanlines()
543 intel_psr_lock(new_crtc_state); in intel_pipe_update_start()
545 if (new_crtc_state->do_async_flip) in intel_pipe_update_start()
680 intel_psr_unlock(new_crtc_state); in intel_pipe_update_end()
682 if (new_crtc_state->do_async_flip) in intel_pipe_update_end()
693 icl_dsi_frame_update(new_crtc_state); in intel_pipe_update_end()
703 } else if (new_crtc_state->uapi.event) { in intel_pipe_update_end()
709 new_crtc_state->uapi.event); in intel_pipe_update_end()
712 new_crtc_state->uapi.event = NULL; in intel_pipe_update_end()
[all …]
H A Dskl_watermark.c439 struct intel_crtc_state *new_crtc_state; in intel_compute_sagv_mask() local
445 new_crtc_state, i) { in intel_compute_sagv_mask()
482 new_crtc_state, i) { in intel_compute_sagv_mask()
2533 new_crtc_state->async_flip_planes = 0; in skl_ddb_add_affected_planes()
2534 new_crtc_state->do_async_flip = false; in skl_ddb_add_affected_planes()
2653 new_crtc_state, i) { in skl_compute_ddb()
2659 new_crtc_state); in skl_compute_ddb()
2686 new_crtc_state, i) { in skl_print_wm_changes()
2884 &new_crtc_state->wm.skl.optimal)) in skl_wm_add_affected_planes()
2892 new_crtc_state->async_flip_planes = 0; in skl_wm_add_affected_planes()
[all …]
H A Dintel_vrr.c49 struct intel_crtc_state *old_crtc_state, *new_crtc_state; in intel_vrr_check_modeset() local
53 new_crtc_state, i) { in intel_vrr_check_modeset()
54 if (new_crtc_state->uapi.vrr_enabled != in intel_vrr_check_modeset()
56 new_crtc_state->uapi.mode_changed = true; in intel_vrr_check_modeset()
H A Dintel_display.h344 #define for_each_new_intel_crtc_in_state(__state, crtc, new_crtc_state, __i) \ argument
348 (new_crtc_state) = to_intel_crtc_state((__state)->base.crtcs[__i].new_state), 1); \
361 #define for_each_oldnew_intel_crtc_in_state(__state, crtc, old_crtc_state, new_crtc_state, __i) \ argument
366 (new_crtc_state) = to_intel_crtc_state((__state)->base.crtcs[__i].new_state), 1); \
370 #define for_each_oldnew_intel_crtc_in_state_reverse(__state, crtc, old_crtc_state, new_crtc_state, … argument
375 (new_crtc_state) = to_intel_crtc_state((__state)->base.crtcs[__i].new_state), 1); \
428 void intel_enable_transcoder(const struct intel_crtc_state *new_crtc_state);
H A Dintel_pmdemand.c149 const struct intel_crtc_state *new_crtc_state; in intel_pmdemand_update_max_ddiclk() local
153 for_each_new_intel_crtc_in_state(state, crtc, new_crtc_state, i) in intel_pmdemand_update_max_ddiclk()
156 new_crtc_state->port_clock); in intel_pmdemand_update_max_ddiclk()
269 const struct intel_crtc_state *new_crtc_state, *old_crtc_state; in intel_pmdemand_needs_update() local
299 new_crtc_state, i) in intel_pmdemand_needs_update()
300 if (new_crtc_state->port_clock != old_crtc_state->port_clock) in intel_pmdemand_needs_update()
H A Dintel_cursor.c623 struct intel_crtc_state *new_crtc_state; in intel_legacy_cursor_update() local
667 new_crtc_state = to_intel_crtc_state(intel_crtc_duplicate_state(&crtc->base)); in intel_legacy_cursor_update()
668 if (!new_crtc_state) { in intel_legacy_cursor_update()
686 ret = intel_plane_atomic_check_with_state(crtc_state, new_crtc_state, in intel_legacy_cursor_update()
714 crtc_state->active_planes = new_crtc_state->active_planes; in intel_legacy_cursor_update()
736 if (new_crtc_state) in intel_legacy_cursor_update()
737 intel_crtc_destroy_state(&crtc->base, &new_crtc_state->uapi); in intel_legacy_cursor_update()
H A Dintel_modeset_verify.h17 struct intel_crtc_state *new_crtc_state);
H A Dintel_color.c1844 to_intel_atomic_state(new_crtc_state->uapi.state); in intel_can_preload_luts()
1856 to_intel_atomic_state(new_crtc_state->uapi.state); in vlv_can_preload_luts()
1868 to_intel_atomic_state(new_crtc_state->uapi.state); in chv_can_preload_luts()
1880 return vlv_can_preload_luts(new_crtc_state); in chv_can_preload_luts()
1944 if (!new_crtc_state->hw.active || in intel_color_add_affected_planes()
1945 intel_crtc_needs_modeset(new_crtc_state)) in intel_color_add_affected_planes()
1955 if (!need_plane_update(plane, new_crtc_state)) in intel_color_add_affected_planes()
1962 new_crtc_state->update_planes |= BIT(plane->id); in intel_color_add_affected_planes()
1963 new_crtc_state->async_flip_planes = 0; in intel_color_add_affected_planes()
1964 new_crtc_state->do_async_flip = false; in intel_color_add_affected_planes()
[all …]
H A Dintel_snps_phy.h36 struct intel_crtc_state *new_crtc_state);
H A Dintel_cx0_phy.h36 struct intel_crtc_state *new_crtc_state);
H A Dintel_psr.h45 void intel_psr_wait_for_idle_locked(const struct intel_crtc_state *new_crtc_state);
/openbsd/sys/dev/pci/drm/
H A Ddrm_atomic_helper.c430 drm_mode_copy(&new_crtc_state->adjusted_mode, &new_crtc_state->mode); in mode_fixup()
443 new_crtc_state = in mode_fixup()
455 new_crtc_state, in mode_fixup()
486 if (!new_crtc_state->enable) in mode_fixup()
1155 new_crtc_state = NULL; in disable_outputs()
1335 if (new_crtc_state->enable) in drm_atomic_helper_calc_timestamping_constants()
1379 mode = &new_crtc_state->mode; in crtc_set_mode()
1482 if (!new_crtc_state->active) in drm_atomic_helper_commit_modeset_enables()
1558 if (!new_crtc_state->active) in set_fence_deadline()
1665 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.c382 struct drm_crtc *crtc = new_crtc_state->crtc; in drm_atomic_crtc_check()
392 if (new_crtc_state->active && !new_crtc_state->enable) { in drm_atomic_crtc_check()
404 WARN_ON(new_crtc_state->enable && !new_crtc_state->mode_blob)) { in drm_atomic_crtc_check()
412 WARN_ON(!new_crtc_state->enable && new_crtc_state->mode_blob)) { in drm_atomic_crtc_check()
429 if (new_crtc_state->event && in drm_atomic_crtc_check()
1415 struct drm_crtc_state *new_crtc_state; in drm_atomic_check_only() local
1425 if (new_crtc_state->enable) in drm_atomic_check_only()
1477 if (new_crtc_state->enable) in drm_atomic_check_only()
1594 struct drm_crtc_state *new_crtc_state; in update_output_state() local
1644 if (!new_crtc_state->connector_mask) { in update_output_state()
[all …]
H A Ddrm_plane_helper.c303 struct drm_crtc_state *new_crtc_state = NULL; in drm_plane_helper_atomic_check() local
306 new_crtc_state = drm_atomic_get_new_crtc_state(state, new_crtc); in drm_plane_helper_atomic_check()
308 return drm_atomic_helper_check_plane_state(new_plane_state, new_crtc_state, in drm_plane_helper_atomic_check()
/openbsd/sys/dev/pci/drm/amd/display/amdgpu_dm/
H A Damdgpu_dm.c6822 new_crtc_state->mode_changed = new_crtc_state->mode_changed || in amdgpu_dm_connector_atomic_check()
7742 if (new_crtc_state) in is_content_protection_different()
7761 if (new_crtc_state && new_crtc_state->mode_changed) { in is_content_protection_different()
7815 if (new_crtc_state && new_crtc_state->mode_changed) { in is_content_protection_different()
8490 if (!new_crtc_state) in amdgpu_dm_commit_audio()
8518 if (!new_crtc_state) in amdgpu_dm_commit_audio()
8781 if (new_crtc_state) in amdgpu_dm_atomic_commit_tail()
8844 if (new_crtc_state && new_crtc_state->mode_changed && in amdgpu_dm_atomic_commit_tail()
9598 new_crtc_state = in should_reset_plane()
9601 if (!new_crtc_state) in should_reset_plane()
[all …]
H A Damdgpu_dm_crtc.c316 static int count_crtc_active_planes(struct drm_crtc_state *new_crtc_state) in count_crtc_active_planes() argument
318 struct drm_atomic_state *state = new_crtc_state->state; in count_crtc_active_planes()
322 drm_for_each_plane_mask(plane, state->dev, new_crtc_state->plane_mask) { in count_crtc_active_planes()
349 struct drm_crtc_state *new_crtc_state) in dm_update_crtc_active_planes() argument
352 to_dm_crtc_state(new_crtc_state); in dm_update_crtc_active_planes()
360 count_crtc_active_planes(new_crtc_state); in dm_update_crtc_active_planes()
H A Damdgpu_dm_mst_types.c1231 struct drm_crtc_state *new_crtc_state; in is_dsc_need_re_compute() local
1259 new_crtc_state = drm_atomic_get_new_crtc_state(state, new_conn_state->crtc); in is_dsc_need_re_compute()
1260 if (!new_crtc_state) in is_dsc_need_re_compute()
1263 if (IS_ERR(new_crtc_state)) in is_dsc_need_re_compute()
1266 if (new_crtc_state->enable && new_crtc_state->active) { in is_dsc_need_re_compute()
1267 if (new_crtc_state->mode_changed || new_crtc_state->active_changed || in is_dsc_need_re_compute()
1268 new_crtc_state->connectors_changed) in is_dsc_need_re_compute()
1455 struct drm_crtc_state *old_crtc_state, *new_crtc_state; in is_dsc_precompute_needed() local
1458 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state, new_crtc_state, i) { in is_dsc_precompute_needed()
1459 struct dm_crtc_state *dm_crtc_state = to_dm_crtc_state(new_crtc_state); in is_dsc_precompute_needed()
H A Damdgpu_dm_plane.c999 struct drm_crtc_state *new_crtc_state) in amdgpu_dm_plane_helper_check_state() argument
1015 else if (state->crtc_x + state->crtc_w > new_crtc_state->mode.crtc_hdisplay) in amdgpu_dm_plane_helper_check_state()
1016 viewport_width = new_crtc_state->mode.crtc_hdisplay - state->crtc_x; in amdgpu_dm_plane_helper_check_state()
1020 else if (state->crtc_y + state->crtc_h > new_crtc_state->mode.crtc_vdisplay) in amdgpu_dm_plane_helper_check_state()
1021 viewport_height = new_crtc_state->mode.crtc_vdisplay - state->crtc_y; in amdgpu_dm_plane_helper_check_state()
1049 state, new_crtc_state, min_scale, max_scale, true, true); in amdgpu_dm_plane_helper_check_state()
1144 struct drm_crtc_state *new_crtc_state; in dm_plane_atomic_check() local
1154 new_crtc_state = in dm_plane_atomic_check()
1157 if (!new_crtc_state) in dm_plane_atomic_check()
1160 ret = amdgpu_dm_plane_helper_check_state(new_plane_state, new_crtc_state); in dm_plane_atomic_check()
H A Damdgpu_dm_plane.h40 struct drm_crtc_state *new_crtc_state);
/openbsd/sys/dev/pci/drm/include/drm/
H A Ddrm_atomic.h827 #define for_each_oldnew_crtc_in_state(__state, crtc, old_crtc_state, new_crtc_state, __i) \ argument
836 (new_crtc_state) = (__state)->crtcs[__i].new_state, \
837 (void)(new_crtc_state) /* Only to avoid unused-but-set-variable warning */, 1))
870 #define for_each_new_crtc_in_state(__state, crtc, new_crtc_state, __i) \ argument
877 (new_crtc_state) = (__state)->crtcs[__i].new_state, \
878 (void)(new_crtc_state) /* Only to avoid unused-but-set-variable warning */, 1))

12