/openbmc/linux/drivers/gpu/drm/i915/display/ |
H A D | intel_fb_pin.c | 292 void intel_plane_unpin_fb(struct intel_plane_state *old_plane_state) in intel_plane_unpin_fb() argument 294 struct drm_framebuffer *fb = old_plane_state->hw.fb; in intel_plane_unpin_fb() 298 vma = fetch_and_zero(&old_plane_state->ggtt_vma); in intel_plane_unpin_fb() 300 intel_unpin_fb_vma(vma, old_plane_state->flags); in intel_plane_unpin_fb() 304 vma = fetch_and_zero(&old_plane_state->dpt_vma); in intel_plane_unpin_fb() 306 intel_unpin_fb_vma(vma, old_plane_state->flags); in intel_plane_unpin_fb() 308 vma = fetch_and_zero(&old_plane_state->ggtt_vma); in intel_plane_unpin_fb()
|
H A D | intel_atomic_plane.c | 440 bool old_visible = old_plane_state->uapi.visible; in i9xx_must_disable_cxsr() 442 u32 old_ctl = old_plane_state->ctl; in i9xx_must_disable_cxsr() 496 was_visible = old_plane_state->uapi.visible; in intel_plane_atomic_calc_changes() 601 const struct intel_plane_state *old_plane_state, in intel_plane_atomic_check_with_state() argument 663 old_plane_state, new_plane_state); in intel_plane_atomic_check_with_state() 686 const struct intel_plane_state *old_plane_state = in intel_plane_atomic_check() local 717 old_plane_state, in intel_plane_atomic_check() 1030 const struct intel_plane_state *old_plane_state = in intel_prepare_plane_fb() local 1039 to_intel_crtc(old_plane_state->hw.crtc)); in intel_prepare_plane_fb() 1135 struct intel_plane_state *old_plane_state = in intel_cleanup_plane_fb() local [all …]
|
H A D | intel_cursor.c | 618 struct intel_plane_state *old_plane_state = in intel_legacy_cursor_update() local 646 if (old_plane_state->uapi.commit && in intel_legacy_cursor_update() 655 if (old_plane_state->uapi.crtc != &crtc->base || in intel_legacy_cursor_update() 656 old_plane_state->uapi.src_w != src_w || in intel_legacy_cursor_update() 657 old_plane_state->uapi.src_h != src_h || in intel_legacy_cursor_update() 658 old_plane_state->uapi.crtc_w != crtc_w || in intel_legacy_cursor_update() 659 old_plane_state->uapi.crtc_h != crtc_h || in intel_legacy_cursor_update() 660 !old_plane_state->uapi.fb != !fb) in intel_legacy_cursor_update() 687 old_plane_state, new_plane_state); in intel_legacy_cursor_update() 733 intel_plane_unpin_fb(old_plane_state); in intel_legacy_cursor_update() [all …]
|
H A D | intel_fb_pin.h | 26 void intel_plane_unpin_fb(struct intel_plane_state *old_plane_state);
|
H A D | intel_display.h | 318 #define for_each_old_intel_plane_in_state(__state, plane, old_plane_state, __i) \ argument 322 (old_plane_state) = to_intel_plane_state((__state)->base.planes[__i].old_state), 1); \ 350 #define for_each_oldnew_intel_plane_in_state(__state, plane, old_plane_state, new_plane_state, __i)… argument 354 (old_plane_state) = to_intel_plane_state((__state)->base.planes[__i].old_state), \
|
H A D | intel_atomic_plane.h | 54 const struct intel_plane_state *old_plane_state,
|
H A D | intel_fbc.c | 1185 const struct intel_plane_state *old_plane_state = in intel_fbc_can_flip_nuke() local 1189 const struct drm_framebuffer *old_fb = old_plane_state->hw.fb; in intel_fbc_can_flip_nuke() 1195 if (!intel_fbc_is_ok(old_plane_state) || in intel_fbc_can_flip_nuke() 1205 if (intel_fbc_plane_stride(old_plane_state) != in intel_fbc_can_flip_nuke() 1209 if (intel_fbc_cfb_stride(old_plane_state) != in intel_fbc_can_flip_nuke() 1213 if (intel_fbc_cfb_size(old_plane_state) != in intel_fbc_can_flip_nuke() 1217 if (intel_fbc_override_cfb_stride(old_plane_state) != in intel_fbc_can_flip_nuke()
|
H A D | intel_psr.c | 2005 struct intel_plane_state *new_plane_state, *old_plane_state; in intel_psr2_sel_fetch_update() local 2024 for_each_oldnew_intel_plane_in_state(state, plane, old_plane_state, in intel_psr2_sel_fetch_update() 2033 !old_plane_state->uapi.visible) in intel_psr2_sel_fetch_update() 2046 if (new_plane_state->uapi.visible != old_plane_state->uapi.visible || in intel_psr2_sel_fetch_update() 2048 &old_plane_state->uapi.dst)) { in intel_psr2_sel_fetch_update() 2049 if (old_plane_state->uapi.visible) { in intel_psr2_sel_fetch_update() 2050 damaged_area.y1 = old_plane_state->uapi.dst.y1; in intel_psr2_sel_fetch_update() 2051 damaged_area.y2 = old_plane_state->uapi.dst.y2; in intel_psr2_sel_fetch_update() 2063 } else if (new_plane_state->uapi.alpha != old_plane_state->uapi.alpha) { in intel_psr2_sel_fetch_update() 2075 if (!drm_atomic_helper_damage_merged(&old_plane_state->uapi, in intel_psr2_sel_fetch_update() [all …]
|
/openbmc/linux/drivers/gpu/drm/ |
H A D | drm_atomic_helper.c | 78 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() 1920 if (old_plane_state->commit && in drm_atomic_helper_async_check() 2401 struct drm_plane_state *old_plane_state; in drm_atomic_helper_wait_for_dependencies() local 2870 struct drm_plane_state *old_plane_state = in drm_atomic_helper_commit_planes_on_crtc() local 2879 if (!old_plane_state || !plane_funcs) in drm_atomic_helper_commit_planes_on_crtc() 2966 struct drm_plane_state *old_plane_state; in drm_atomic_helper_cleanup_planes() local 3060 commit = old_plane_state->commit; in drm_atomic_helper_swap_state() 3101 WARN_ON(plane->state != old_plane_state); in drm_atomic_helper_swap_state() [all …]
|
H A D | drm_blend.c | 516 struct drm_plane_state *old_plane_state, *new_plane_state; in drm_atomic_normalize_zpos() local 519 for_each_oldnew_plane_in_state(state, plane, old_plane_state, new_plane_state, i) { in drm_atomic_normalize_zpos() 523 if (old_plane_state->zpos != new_plane_state->zpos) { in drm_atomic_normalize_zpos()
|
H A D | drm_atomic.c | 575 plane_switching_crtc(const struct drm_plane_state *old_plane_state, in plane_switching_crtc() argument 578 if (!old_plane_state->crtc || !new_plane_state->crtc) in plane_switching_crtc() 581 if (old_plane_state->crtc == new_plane_state->crtc) in plane_switching_crtc() 602 static int drm_atomic_plane_check(const struct drm_plane_state *old_plane_state, in drm_atomic_plane_check() argument 706 if (plane_switching_crtc(old_plane_state, new_plane_state)) { in drm_atomic_plane_check() 1392 struct drm_plane_state *old_plane_state; in drm_atomic_check_only() local 1410 for_each_oldnew_plane_in_state(state, plane, old_plane_state, new_plane_state, i) { in drm_atomic_check_only() 1411 ret = drm_atomic_plane_check(old_plane_state, new_plane_state); in drm_atomic_check_only()
|
/openbmc/linux/include/drm/ |
H A D | drm_atomic_helper.h | 226 static inline bool drm_atomic_plane_enabling(struct drm_plane_state *old_plane_state, in drm_atomic_plane_enabling() argument 237 return !old_plane_state->crtc && new_plane_state->crtc; in drm_atomic_plane_enabling() 253 drm_atomic_plane_disabling(struct drm_plane_state *old_plane_state, in drm_atomic_plane_disabling() argument 264 return old_plane_state->crtc && !new_plane_state->crtc; in drm_atomic_plane_disabling()
|
H A D | drm_atomic.h | 892 #define for_each_oldnew_plane_in_state(__state, plane, old_plane_state, new_plane_state, __i) \ argument 899 (old_plane_state) = (__state)->planes[__i].old_state,\ 915 #define for_each_oldnew_plane_in_state_reverse(__state, plane, old_plane_state, new_plane_state, __… argument 921 (old_plane_state) = (__state)->planes[__i].old_state,\ 951 #define for_each_old_plane_in_state(__state, plane, old_plane_state, __i) \ argument 957 (old_plane_state) = (__state)->planes[__i].old_state, 1))
|
H A D | drm_simple_kms_helper.h | 110 struct drm_plane_state *old_plane_state);
|
/openbmc/linux/drivers/gpu/drm/xen/ |
H A D | xen_drm_front_kms.c | 179 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()
|
/openbmc/linux/drivers/gpu/drm/imx/ipuv3/ |
H A D | imx-drm-core.c | 79 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()
|
/openbmc/linux/drivers/gpu/drm/loongson/ |
H A D | lsdc_plane.c | 74 struct drm_plane_state *old_plane_state = drm_atomic_get_old_plane_state(state, plane); in lsdc_primary_atomic_update() local 77 struct drm_framebuffer *old_fb = old_plane_state->fb; in lsdc_primary_atomic_update() 303 struct drm_plane_state *old_plane_state = drm_atomic_get_old_plane_state(state, plane); in ls7a1000_cursor_plane_atomic_update() local 306 struct drm_framebuffer *old_fb = old_plane_state->fb; in ls7a1000_cursor_plane_atomic_update() 384 struct drm_plane_state *old_plane_state = drm_atomic_get_old_plane_state(state, plane); in ls7a2000_cursor_plane_atomic_update() local 387 struct drm_framebuffer *old_fb = old_plane_state->fb; in ls7a2000_cursor_plane_atomic_update()
|
/openbmc/linux/drivers/gpu/drm/renesas/rcar-du/ |
H A D | rcar_du_plane.c | 145 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()
|
/openbmc/linux/drivers/gpu/drm/amd/display/amdgpu_dm/ |
H A D | amdgpu_dm_plane.h | 33 struct drm_plane_state *old_plane_state);
|
H A D | amdgpu_dm.c | 5237 old_plane_state->crtc_x, in fill_dc_dirty_rects() 5238 old_plane_state->crtc_y, in fill_dc_dirty_rects() 5239 old_plane_state->crtc_w, in fill_dc_dirty_rects() 8048 struct drm_plane_state *old_plane_state; in amdgpu_dm_commit_cursors() local 8126 (old_plane_state->fb && old_plane_state->crtc == pcrtc)) in amdgpu_dm_commit_planes() 9754 old_plane_crtc = old_plane_state->crtc; in dm_update_plane_state() 9962 if (!old_plane_state || !old_plane_state->fb || old_plane_state->crtc != crtc) { in dm_check_crtc_cursor() 10191 old_plane_state->crtc == crtc) { in amdgpu_dm_atomic_check() 10230 get_mem_type(old_plane_state->fb) != in amdgpu_dm_atomic_check() 10235 old_plane_state, in amdgpu_dm_atomic_check() [all …]
|
/openbmc/linux/drivers/gpu/drm/xlnx/ |
H A D | zynqmp_kms.c | 220 struct drm_plane_state *old_plane_state; in zynqmp_dpsub_crtc_atomic_disable() local 227 old_plane_state = drm_atomic_get_old_plane_state(state, crtc->primary); in zynqmp_dpsub_crtc_atomic_disable() 228 if (old_plane_state) in zynqmp_dpsub_crtc_atomic_disable()
|
/openbmc/linux/drivers/gpu/drm/vc4/ |
H A D | vc4_kms.c | 573 struct drm_plane_state *old_plane_state, *new_plane_state; in vc4_load_tracker_atomic_check() local 586 for_each_oldnew_plane_in_state(state, plane, old_plane_state, in vc4_load_tracker_atomic_check() 590 if (old_plane_state->fb && old_plane_state->crtc) { in vc4_load_tracker_atomic_check() 591 vc4_plane_state = to_vc4_plane_state(old_plane_state); in vc4_load_tracker_atomic_check()
|
/openbmc/linux/drivers/gpu/drm/ingenic/ |
H A D | ingenic-drm-drv.c | 457 struct drm_plane_state *old_plane_state = drm_atomic_get_old_plane_state(state, in ingenic_drm_plane_atomic_check() local 464 struct drm_crtc *crtc = new_plane_state->crtc ?: old_plane_state->crtc; in ingenic_drm_plane_atomic_check() 508 (!old_plane_state->fb || !new_plane_state->fb || in ingenic_drm_plane_atomic_check() 509 old_plane_state->crtc_x != new_plane_state->crtc_x || in ingenic_drm_plane_atomic_check() 510 old_plane_state->crtc_y != new_plane_state->crtc_y || in ingenic_drm_plane_atomic_check() 511 old_plane_state->crtc_w != new_plane_state->crtc_w || in ingenic_drm_plane_atomic_check() 512 old_plane_state->crtc_h != new_plane_state->crtc_h || in ingenic_drm_plane_atomic_check() 513 old_plane_state->fb->format->format != new_plane_state->fb->format->format)) in ingenic_drm_plane_atomic_check()
|
H A D | ingenic-ipu.c | 570 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()
|
/openbmc/linux/drivers/gpu/drm/tiny/ |
H A D | cirrus.c | 390 struct drm_plane_state *old_plane_state = drm_atomic_get_old_plane_state(state, plane); in cirrus_primary_plane_helper_atomic_update() local 392 to_cirrus_primary_plane_state(old_plane_state); in cirrus_primary_plane_helper_atomic_update() 409 drm_atomic_helper_damage_iter_init(&iter, old_plane_state, plane_state); in cirrus_primary_plane_helper_atomic_update()
|