/drivers/gpu/drm/i915/display/ |
D | intel_atomic_plane.c | 436 const struct intel_plane_state *old_plane_state, in i9xx_must_disable_cxsr() argument 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() 478 const struct intel_plane_state *old_plane_state, in intel_plane_atomic_calc_changes() argument 496 was_visible = old_plane_state->uapi.visible; in intel_plane_atomic_calc_changes() 536 } else if (intel_wm_need_update(old_plane_state, new_plane_state)) { in intel_plane_atomic_calc_changes() 548 i9xx_must_disable_cxsr(new_crtc_state, old_plane_state, new_plane_state)) in intel_plane_atomic_calc_changes() 587 (turn_on || (!intel_plane_is_scaled(old_plane_state) && in intel_plane_atomic_calc_changes() 601 const struct intel_plane_state *old_plane_state, in intel_plane_atomic_check_with_state() argument 611 if (!new_plane_state->hw.crtc && !old_plane_state->hw.crtc) in intel_plane_atomic_check_with_state() [all …]
|
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()
|
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() 647 !try_wait_for_completion(&old_plane_state->uapi.commit->hw_done)) 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() [all …]
|
D | intel_fb_pin.h | 26 void intel_plane_unpin_fb(struct intel_plane_state *old_plane_state);
|
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), \
|
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()
|
D | intel_atomic_plane.h | 54 const struct intel_plane_state *old_plane_state,
|
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 …]
|
D | intel_display.c | 1011 const struct intel_plane_state *old_plane_state; in intel_crtc_async_flip_disable_wa() local 1016 for_each_old_intel_plane_in_state(state, plane, old_plane_state, i) { in intel_crtc_async_flip_disable_wa() 1025 old_plane_state, false); in intel_crtc_async_flip_disable_wa() 1152 const struct intel_plane_state *old_plane_state; in intel_crtc_disable_planes() local 1159 for_each_old_intel_plane_in_state(state, plane, old_plane_state, i) { in intel_crtc_disable_planes() 1166 if (old_plane_state->uapi.visible) in intel_crtc_disable_planes() 5895 const struct intel_plane_state *old_plane_state; in intel_async_flip_check_uapi() local 5917 for_each_oldnew_intel_plane_in_state(state, plane, old_plane_state, in intel_async_flip_check_uapi() 5936 if (!old_plane_state->uapi.fb || !new_plane_state->uapi.fb) { in intel_async_flip_check_uapi() 5951 const struct intel_plane_state *new_plane_state, *old_plane_state; in intel_async_flip_check_hw() local [all …]
|
/drivers/gpu/drm/ |
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() 989 struct drm_plane_state *new_plane_state, *old_plane_state; in drm_atomic_helper_check_planes() local 992 for_each_oldnew_plane_in_state(state, plane, old_plane_state, new_plane_state, i) { in drm_atomic_helper_check_planes() 999 drm_atomic_helper_plane_changed(state, old_plane_state, new_plane_state, plane); in drm_atomic_helper_check_planes() 1872 struct drm_plane_state *old_plane_state = NULL; in drm_atomic_helper_async_check() local 1882 for_each_oldnew_plane_in_state(state, plane, old_plane_state, new_plane_state, i) in drm_atomic_helper_async_check() 1893 old_plane_state->crtc != new_plane_state->crtc) { in drm_atomic_helper_async_check() 1920 if (old_plane_state->commit && in drm_atomic_helper_async_check() [all …]
|
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()
|
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()
|
/drivers/gpu/drm/xen/ |
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()
|
/drivers/gpu/drm/imx/ipuv3/ |
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()
|
/drivers/gpu/drm/renesas/rcar-du/ |
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()
|
/drivers/gpu/drm/loongson/ |
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()
|
/drivers/gpu/drm/xlnx/ |
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()
|
/drivers/gpu/drm/vc4/ |
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()
|
/drivers/gpu/drm/ingenic/ |
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()
|
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()
|
/drivers/gpu/drm/amd/display/amdgpu_dm/ |
D | amdgpu_dm_plane.h | 33 struct drm_plane_state *old_plane_state);
|
D | amdgpu_dm.c | 5137 struct drm_plane_state *old_plane_state, in fill_dc_dirty_rects() argument 5186 fb_changed = old_plane_state->fb->base.id != in fill_dc_dirty_rects() 5188 bb_changed = (old_plane_state->crtc_x != new_plane_state->crtc_x || in fill_dc_dirty_rects() 5189 old_plane_state->crtc_y != new_plane_state->crtc_y || in fill_dc_dirty_rects() 5190 old_plane_state->crtc_w != new_plane_state->crtc_w || in fill_dc_dirty_rects() 5191 old_plane_state->crtc_h != new_plane_state->crtc_h); in fill_dc_dirty_rects() 5212 old_plane_state->crtc_x, in fill_dc_dirty_rects() 5213 old_plane_state->crtc_y, in fill_dc_dirty_rects() 5214 old_plane_state->crtc_w, in fill_dc_dirty_rects() 5215 old_plane_state->crtc_h, &i, false); in fill_dc_dirty_rects() [all …]
|
/drivers/gpu/drm/tiny/ |
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()
|
/drivers/gpu/drm/gud/ |
D | gud_pipe.c | 448 struct drm_plane_state *old_plane_state = pipe->plane.state; in gud_pipe_check() local 451 struct drm_framebuffer *old_fb = old_plane_state->fb; in gud_pipe_check() 464 if (old_plane_state->rotation != new_plane_state->rotation) in gud_pipe_check()
|
/drivers/gpu/drm/virtio/ |
D | virtgpu_plane.c | 128 struct drm_plane_state *old_plane_state = drm_atomic_get_old_plane_state(state, in virtio_gpu_plane_atomic_check() local 142 if (old_plane_state->fb != new_plane_state->fb) in virtio_gpu_plane_atomic_check()
|