Home
last modified time | relevance | path

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

12

/Linux-v6.1/drivers/gpu/drm/i915/display/
Dintel_fb_pin.c283 void intel_plane_unpin_fb(struct intel_plane_state *old_plane_state) in intel_plane_unpin_fb() argument
285 struct drm_framebuffer *fb = old_plane_state->hw.fb; in intel_plane_unpin_fb()
289 vma = fetch_and_zero(&old_plane_state->ggtt_vma); in intel_plane_unpin_fb()
291 intel_unpin_fb_vma(vma, old_plane_state->flags); in intel_plane_unpin_fb()
295 vma = fetch_and_zero(&old_plane_state->dpt_vma); in intel_plane_unpin_fb()
297 intel_unpin_fb_vma(vma, old_plane_state->flags); in intel_plane_unpin_fb()
299 vma = fetch_and_zero(&old_plane_state->ggtt_vma); in intel_plane_unpin_fb()
Dintel_atomic_plane.c430 const struct intel_plane_state *old_plane_state, in intel_plane_atomic_calc_changes() argument
448 was_visible = old_plane_state->uapi.visible; in intel_plane_atomic_calc_changes()
496 } else if (intel_wm_need_update(old_plane_state, new_plane_state)) { in intel_plane_atomic_calc_changes()
543 (turn_on || (!intel_plane_is_scaled(old_plane_state) && in intel_plane_atomic_calc_changes()
555 const struct intel_plane_state *old_plane_state, in intel_plane_atomic_check_with_state() argument
565 if (!new_plane_state->hw.crtc && !old_plane_state->hw.crtc) in intel_plane_atomic_check_with_state()
591 if (new_plane_state->uapi.visible || old_plane_state->uapi.visible) in intel_plane_atomic_check_with_state()
617 old_plane_state, new_plane_state); in intel_plane_atomic_check_with_state()
640 const struct intel_plane_state *old_plane_state = in intel_plane_atomic_check() local
671 old_plane_state, in intel_plane_atomic_check()
[all …]
Dintel_cursor.c617 struct intel_plane_state *old_plane_state = in intel_legacy_cursor_update() local
643 if (old_plane_state->uapi.commit && in intel_legacy_cursor_update()
644 !try_wait_for_completion(&old_plane_state->uapi.commit->hw_done)) in intel_legacy_cursor_update()
652 if (old_plane_state->uapi.crtc != &crtc->base || in intel_legacy_cursor_update()
653 old_plane_state->uapi.src_w != src_w || in intel_legacy_cursor_update()
654 old_plane_state->uapi.src_h != src_h || in intel_legacy_cursor_update()
655 old_plane_state->uapi.crtc_w != crtc_w || in intel_legacy_cursor_update()
656 old_plane_state->uapi.crtc_h != crtc_h || in intel_legacy_cursor_update()
657 !old_plane_state->uapi.fb != !fb) in intel_legacy_cursor_update()
684 old_plane_state, new_plane_state); in intel_legacy_cursor_update()
[all …]
Dintel_fb_pin.h26 void intel_plane_unpin_fb(struct intel_plane_state *old_plane_state);
Dintel_atomic_plane.h54 const struct intel_plane_state *old_plane_state,
Dintel_display.h476 #define for_each_old_intel_plane_in_state(__state, plane, old_plane_state, __i) \ argument
480 (old_plane_state) = to_intel_plane_state((__state)->base.planes[__i].old_state), 1); \
500 #define for_each_oldnew_intel_plane_in_state(__state, plane, old_plane_state, new_plane_state, __i)… argument
504 (old_plane_state) = to_intel_plane_state((__state)->base.planes[__i].old_state), \
Dintel_psr.c1718 struct intel_plane_state *new_plane_state, *old_plane_state; in intel_psr2_sel_fetch_update() local
1737 for_each_oldnew_intel_plane_in_state(state, plane, old_plane_state, in intel_psr2_sel_fetch_update()
1746 !old_plane_state->uapi.visible) in intel_psr2_sel_fetch_update()
1759 if (new_plane_state->uapi.visible != old_plane_state->uapi.visible || in intel_psr2_sel_fetch_update()
1761 &old_plane_state->uapi.dst)) { in intel_psr2_sel_fetch_update()
1762 if (old_plane_state->uapi.visible) { in intel_psr2_sel_fetch_update()
1763 damaged_area.y1 = old_plane_state->uapi.dst.y1; in intel_psr2_sel_fetch_update()
1764 damaged_area.y2 = old_plane_state->uapi.dst.y2; in intel_psr2_sel_fetch_update()
1776 } else if (new_plane_state->uapi.alpha != old_plane_state->uapi.alpha) { in intel_psr2_sel_fetch_update()
1788 if (!drm_atomic_helper_damage_merged(&old_plane_state->uapi, in intel_psr2_sel_fetch_update()
[all …]
Dintel_fbc.c1183 const struct intel_plane_state *old_plane_state = in intel_fbc_can_flip_nuke() local
1187 const struct drm_framebuffer *old_fb = old_plane_state->hw.fb; in intel_fbc_can_flip_nuke()
1193 if (!intel_fbc_is_ok(old_plane_state) || in intel_fbc_can_flip_nuke()
1203 if (intel_fbc_plane_stride(old_plane_state) != in intel_fbc_can_flip_nuke()
1207 if (intel_fbc_cfb_stride(old_plane_state) != in intel_fbc_can_flip_nuke()
1211 if (intel_fbc_cfb_size(old_plane_state) != in intel_fbc_can_flip_nuke()
1215 if (intel_fbc_override_cfb_stride(old_plane_state) != in intel_fbc_can_flip_nuke()
/Linux-v6.1/drivers/gpu/drm/
Ddrm_atomic_helper.c78 struct drm_plane_state *old_plane_state, in drm_atomic_helper_plane_changed() argument
84 if (old_plane_state->crtc) { in drm_atomic_helper_plane_changed()
86 old_plane_state->crtc); in drm_atomic_helper_plane_changed()
1004 struct drm_plane_state *new_plane_state, *old_plane_state; in drm_atomic_helper_check_planes() local
1007 for_each_oldnew_plane_in_state(state, plane, old_plane_state, new_plane_state, i) { in drm_atomic_helper_check_planes()
1014 drm_atomic_helper_plane_changed(state, old_plane_state, new_plane_state, plane); in drm_atomic_helper_check_planes()
1835 struct drm_plane_state *old_plane_state = NULL; in drm_atomic_helper_async_check() local
1845 for_each_oldnew_plane_in_state(state, plane, old_plane_state, new_plane_state, i) in drm_atomic_helper_async_check()
1856 old_plane_state->crtc != new_plane_state->crtc) { in drm_atomic_helper_async_check()
1883 if (old_plane_state->commit && in drm_atomic_helper_async_check()
[all …]
Ddrm_blend.c517 struct drm_plane_state *old_plane_state, *new_plane_state; in drm_atomic_normalize_zpos() local
520 for_each_oldnew_plane_in_state(state, plane, old_plane_state, new_plane_state, i) { in drm_atomic_normalize_zpos()
524 if (old_plane_state->zpos != new_plane_state->zpos) { in drm_atomic_normalize_zpos()
Ddrm_atomic.c566 plane_switching_crtc(const struct drm_plane_state *old_plane_state, in plane_switching_crtc() argument
569 if (!old_plane_state->crtc || !new_plane_state->crtc) in plane_switching_crtc()
572 if (old_plane_state->crtc == new_plane_state->crtc) in plane_switching_crtc()
593 static int drm_atomic_plane_check(const struct drm_plane_state *old_plane_state, in drm_atomic_plane_check() argument
697 if (plane_switching_crtc(old_plane_state, new_plane_state)) { in drm_atomic_plane_check()
1321 struct drm_plane_state *old_plane_state; in drm_atomic_check_only() local
1339 for_each_oldnew_plane_in_state(state, plane, old_plane_state, new_plane_state, i) { in drm_atomic_check_only()
1340 ret = drm_atomic_plane_check(old_plane_state, new_plane_state); in drm_atomic_check_only()
/Linux-v6.1/drivers/gpu/drm/xen/
Dxen_drm_front_kms.c179 struct drm_plane_state *old_plane_state) in display_send_page_flip() argument
182 drm_atomic_get_new_plane_state(old_plane_state->state, in display_send_page_flip()
193 if (old_plane_state->fb && plane_state->fb) { in display_send_page_flip()
244 struct drm_plane_state *old_plane_state) in display_update() argument
279 if (!display_send_page_flip(pipe, old_plane_state)) in display_update()
/Linux-v6.1/drivers/gpu/drm/imx/
Dimx-drm-core.c79 struct drm_plane_state *old_plane_state, *new_plane_state; in imx_drm_atomic_commit_tail() local
91 for_each_oldnew_plane_in_state(state, plane, old_plane_state, new_plane_state, i) { in imx_drm_atomic_commit_tail()
92 if (drm_atomic_plane_disabling(old_plane_state, new_plane_state)) in imx_drm_atomic_commit_tail()
106 for_each_old_plane_in_state(state, plane, old_plane_state, i) in imx_drm_atomic_commit_tail()
/Linux-v6.1/include/drm/
Ddrm_atomic.h885 #define for_each_oldnew_plane_in_state(__state, plane, old_plane_state, new_plane_state, __i) \ argument
892 (old_plane_state) = (__state)->planes[__i].old_state,\
908 #define for_each_oldnew_plane_in_state_reverse(__state, plane, old_plane_state, new_plane_state, __… argument
914 (old_plane_state) = (__state)->planes[__i].old_state,\
944 #define for_each_old_plane_in_state(__state, plane, old_plane_state, __i) \ argument
950 (old_plane_state) = (__state)->planes[__i].old_state, 1))
Ddrm_atomic_helper.h226 drm_atomic_plane_disabling(struct drm_plane_state *old_plane_state, in drm_atomic_plane_disabling() argument
237 return old_plane_state->crtc && !new_plane_state->crtc; in drm_atomic_plane_disabling()
Ddrm_simple_kms_helper.h110 struct drm_plane_state *old_plane_state);
/Linux-v6.1/drivers/gpu/drm/rcar-du/
Drcar_du_plane.c145 struct rcar_du_plane_state *old_plane_state; in rcar_du_atomic_check_planes() local
151 old_plane_state = to_rcar_plane_state(old_drm_plane_state); in rcar_du_atomic_check_planes()
175 if (rcar_du_plane_needs_realloc(old_plane_state, new_plane_state)) { in rcar_du_atomic_check_planes()
254 struct rcar_du_plane_state *old_plane_state; in rcar_du_atomic_check_planes() local
262 old_plane_state = to_rcar_plane_state(old_drm_plane_state); in rcar_du_atomic_check_planes()
273 !rcar_du_plane_needs_realloc(old_plane_state, new_plane_state)) in rcar_du_atomic_check_planes()
/Linux-v6.1/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm_plane.h33 struct drm_plane_state *old_plane_state);
Damdgpu_dm.c4908 struct drm_plane_state *old_plane_state, in fill_dc_dirty_rects() argument
4954 fb_changed = old_plane_state->fb->base.id != in fill_dc_dirty_rects()
4956 bb_changed = (old_plane_state->crtc_x != new_plane_state->crtc_x || in fill_dc_dirty_rects()
4957 old_plane_state->crtc_y != new_plane_state->crtc_y || in fill_dc_dirty_rects()
4958 old_plane_state->crtc_w != new_plane_state->crtc_w || in fill_dc_dirty_rects()
4959 old_plane_state->crtc_h != new_plane_state->crtc_h); in fill_dc_dirty_rects()
4979 dirty_rects[i].x = old_plane_state->crtc_x; in fill_dc_dirty_rects()
4980 dirty_rects[i].y = old_plane_state->crtc_y; in fill_dc_dirty_rects()
4981 dirty_rects[i].width = old_plane_state->crtc_w; in fill_dc_dirty_rects()
4982 dirty_rects[i].height = old_plane_state->crtc_h; in fill_dc_dirty_rects()
[all …]
/Linux-v6.1/drivers/gpu/drm/ingenic/
Dingenic-drm-drv.c458 struct drm_plane_state *old_plane_state = drm_atomic_get_old_plane_state(state, in ingenic_drm_plane_atomic_check() local
465 struct drm_crtc *crtc = new_plane_state->crtc ?: old_plane_state->crtc; in ingenic_drm_plane_atomic_check()
509 (!old_plane_state->fb || !new_plane_state->fb || in ingenic_drm_plane_atomic_check()
510 old_plane_state->crtc_x != new_plane_state->crtc_x || in ingenic_drm_plane_atomic_check()
511 old_plane_state->crtc_y != new_plane_state->crtc_y || in ingenic_drm_plane_atomic_check()
512 old_plane_state->crtc_w != new_plane_state->crtc_w || in ingenic_drm_plane_atomic_check()
513 old_plane_state->crtc_h != new_plane_state->crtc_h || in ingenic_drm_plane_atomic_check()
514 old_plane_state->fb->format->format != new_plane_state->fb->format->format)) in ingenic_drm_plane_atomic_check()
Dingenic-ipu.c570 struct drm_plane_state *old_plane_state = drm_atomic_get_old_plane_state(state, in ingenic_ipu_plane_atomic_check() local
576 struct drm_crtc *crtc = new_plane_state->crtc ?: old_plane_state->crtc; in ingenic_ipu_plane_atomic_check()
592 if (!old_plane_state->crtc ^ !new_plane_state->crtc) in ingenic_ipu_plane_atomic_check()
613 if (!osd_changed(new_plane_state, old_plane_state)) in ingenic_ipu_plane_atomic_check()
/Linux-v6.1/drivers/gpu/drm/vc4/
Dvc4_kms.c594 struct drm_plane_state *old_plane_state, *new_plane_state; in vc4_load_tracker_atomic_check() local
607 for_each_oldnew_plane_in_state(state, plane, old_plane_state, in vc4_load_tracker_atomic_check()
611 if (old_plane_state->fb && old_plane_state->crtc) { in vc4_load_tracker_atomic_check()
612 vc4_plane_state = to_vc4_plane_state(old_plane_state); in vc4_load_tracker_atomic_check()
/Linux-v6.1/drivers/gpu/drm/udl/
Dudl_modeset.c384 struct drm_plane_state *old_plane_state) in udl_simple_display_pipe_update() argument
394 if (drm_atomic_helper_damage_merged(old_plane_state, state, &rect)) in udl_simple_display_pipe_update()
/Linux-v6.1/drivers/gpu/drm/gud/
Dgud_pipe.c457 struct drm_plane_state *old_plane_state = pipe->plane.state; in gud_pipe_check() local
460 struct drm_framebuffer *old_fb = old_plane_state->fb; in gud_pipe_check()
473 if (old_plane_state->rotation != new_plane_state->rotation) in gud_pipe_check()
/Linux-v6.1/drivers/gpu/drm/mgag200/
Dmgag200_mode.c499 struct drm_plane_state *old_plane_state = drm_atomic_get_old_plane_state(old_state, plane); in mgag200_primary_plane_helper_atomic_update() local
509 drm_atomic_helper_damage_iter_init(&iter, old_plane_state, plane_state); in mgag200_primary_plane_helper_atomic_update()
518 if (!old_plane_state->crtc && plane_state->crtc) { // enabling in mgag200_primary_plane_helper_atomic_update()

12