/openbsd/sys/dev/pci/drm/i915/display/ |
H A D | intel_atomic_plane.c | 443 u32 new_ctl = new_plane_state->ctl; in i9xx_must_disable_cxsr() 622 if (new_plane_state->uapi.visible) in intel_plane_atomic_check_with_state() 625 if (new_plane_state->uapi.visible && in intel_plane_atomic_check_with_state() 629 if (new_plane_state->uapi.visible && in intel_plane_atomic_check_with_state() 649 new_plane_state, 0); in intel_plane_atomic_check_with_state() 652 new_plane_state, 1); in intel_plane_atomic_check_with_state() 659 new_plane_state, 0); in intel_plane_atomic_check_with_state() 718 new_plane_state); in intel_plane_atomic_check() 822 new_plane_state->planar_slave) in intel_crtc_planes_update_noarm() 853 new_plane_state->planar_slave) in skl_crtc_planes_update_arm() [all …]
|
H A D | intel_cursor.c | 664 if (!new_plane_state) in intel_legacy_cursor_update() 675 new_plane_state->uapi.src_x = src_x; in intel_legacy_cursor_update() 676 new_plane_state->uapi.src_y = src_y; in intel_legacy_cursor_update() 677 new_plane_state->uapi.src_w = src_w; in intel_legacy_cursor_update() 678 new_plane_state->uapi.src_h = src_h; in intel_legacy_cursor_update() 679 new_plane_state->uapi.crtc_x = crtc_x; in intel_legacy_cursor_update() 680 new_plane_state->uapi.crtc_y = crtc_y; in intel_legacy_cursor_update() 681 new_plane_state->uapi.crtc_w = crtc_w; in intel_legacy_cursor_update() 682 new_plane_state->uapi.crtc_h = crtc_h; in intel_legacy_cursor_update() 684 intel_plane_copy_uapi_to_hw_state(new_plane_state, new_plane_state, crtc); in intel_legacy_cursor_update() [all …]
|
H A D | intel_psr.c | 2025 new_plane_state, i) { in intel_psr2_sel_fetch_update() 2032 if (!new_plane_state->uapi.visible && in intel_psr2_sel_fetch_update() 2047 !drm_rect_equals(&new_plane_state->uapi.dst, in intel_psr2_sel_fetch_update() 2056 if (new_plane_state->uapi.visible) { in intel_psr2_sel_fetch_update() 2057 damaged_area.y1 = new_plane_state->uapi.dst.y1; in intel_psr2_sel_fetch_update() 2058 damaged_area.y2 = new_plane_state->uapi.dst.y2; in intel_psr2_sel_fetch_update() 2065 damaged_area.y1 = new_plane_state->uapi.dst.y1; in intel_psr2_sel_fetch_update() 2066 damaged_area.y2 = new_plane_state->uapi.dst.y2; in intel_psr2_sel_fetch_update() 2076 &new_plane_state->uapi, &damaged_area)) in intel_psr2_sel_fetch_update() 2120 new_plane_state, i) { in intel_psr2_sel_fetch_update() [all …]
|
H A D | intel_display.h | 336 #define for_each_new_intel_plane_in_state(__state, plane, new_plane_state, __i) \ argument 340 (new_plane_state) = to_intel_plane_state((__state)->base.planes[__i].new_state), 1); \ 352 #define for_each_oldnew_intel_plane_in_state(__state, plane, old_plane_state, new_plane_state, __i)… argument 357 (new_plane_state) = to_intel_plane_state((__state)->base.planes[__i].new_state), 1); \
|
H A D | intel_fbc.c | 1187 const struct intel_plane_state *new_plane_state = in intel_fbc_can_flip_nuke() local 1190 const struct drm_framebuffer *new_fb = new_plane_state->hw.fb; in intel_fbc_can_flip_nuke() 1196 !intel_fbc_is_ok(new_plane_state)) in intel_fbc_can_flip_nuke() 1206 intel_fbc_plane_stride(new_plane_state)) in intel_fbc_can_flip_nuke() 1210 intel_fbc_cfb_stride(new_plane_state)) in intel_fbc_can_flip_nuke() 1214 intel_fbc_cfb_size(new_plane_state)) in intel_fbc_can_flip_nuke() 1218 intel_fbc_override_cfb_stride(new_plane_state)) in intel_fbc_can_flip_nuke()
|
H A D | intel_display.c | 5896 struct intel_plane_state *new_plane_state; in intel_async_flip_check_uapi() local 5918 new_plane_state, i) { in intel_async_flip_check_uapi() 5994 new_plane_state, i) { in intel_async_flip_check_hw() 6023 switch (new_plane_state->hw.fb->modifier) { in intel_async_flip_check_hw() 6049 new_plane_state->hw.fb->modifier); in intel_async_flip_check_hw() 6069 new_plane_state->hw.fb->modifier) { in intel_async_flip_check_hw() 6077 new_plane_state->hw.fb->format) { in intel_async_flip_check_hw() 6085 new_plane_state->hw.rotation) { in intel_async_flip_check_hw() 6108 new_plane_state->hw.pixel_blend_mode) { in intel_async_flip_check_hw() 7236 new_plane_state, i) in intel_atomic_track_fbs() [all …]
|
H A D | i9xx_wm.c | 1171 const struct intel_plane_state *new_plane_state; in g4x_compute_pipe_wm() local 1178 new_plane_state, i) { in g4x_compute_pipe_wm() 1179 if (new_plane_state->hw.crtc != &crtc->base && in g4x_compute_pipe_wm() 1183 if (g4x_raw_plane_wm_compute(crtc_state, new_plane_state)) in g4x_compute_pipe_wm() 1694 const struct intel_plane_state *new_plane_state; in vlv_compute_pipe_wm() local 1701 new_plane_state, i) { in vlv_compute_pipe_wm() 1702 if (new_plane_state->hw.crtc != &crtc->base && in vlv_compute_pipe_wm() 1706 if (vlv_raw_plane_wm_compute(crtc_state, new_plane_state)) in vlv_compute_pipe_wm()
|
/openbsd/sys/dev/pci/drm/include/drm/ |
H A D | drm_atomic_helper.h | 227 struct drm_plane_state *new_plane_state) in drm_atomic_plane_enabling() argument 234 WARN_ON((!new_plane_state->crtc && new_plane_state->fb) || in drm_atomic_plane_enabling() 235 (new_plane_state->crtc && !new_plane_state->fb)); in drm_atomic_plane_enabling() 237 return !old_plane_state->crtc && new_plane_state->crtc; in drm_atomic_plane_enabling() 254 struct drm_plane_state *new_plane_state) in drm_atomic_plane_disabling() argument 261 WARN_ON((new_plane_state->crtc == NULL && new_plane_state->fb != NULL) || in drm_atomic_plane_disabling() 262 (new_plane_state->crtc != NULL && new_plane_state->fb == NULL)); in drm_atomic_plane_disabling() 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 900 (new_plane_state) = (__state)->planes[__i].new_state, 1)) 915 #define for_each_oldnew_plane_in_state_reverse(__state, plane, old_plane_state, new_plane_state, __… argument 922 (new_plane_state) = (__state)->planes[__i].new_state, 1)) 932 #define for_each_new_plane_in_state_reverse(__state, plane, new_plane_state, __i) \ argument 938 (new_plane_state) = (__state)->planes[__i].new_state, 1)) 969 #define for_each_new_plane_in_state(__state, plane, new_plane_state, __i) \ argument 976 (new_plane_state) = (__state)->planes[__i].new_state, \ 977 (void)(new_plane_state) /* Only to avoid unused-but-set-variable warning */, 1))
|
H A D | drm_modeset_helper_vtables.h | 1266 int (*begin_fb_access)(struct drm_plane *plane, struct drm_plane_state *new_plane_state); 1274 void (*end_fb_access)(struct drm_plane *plane, struct drm_plane_state *new_plane_state);
|
/openbsd/sys/dev/pci/drm/ |
H A D | drm_atomic_helper.c | 1310 new_plane_state = in drm_atomic_helper_update_legacy_modeset_state() 1313 if (new_plane_state && new_plane_state->crtc == crtc) { in drm_atomic_helper_update_legacy_modeset_state() 1573 if (!new_plane_state->fence) in set_fence_deadline() 1611 if (!new_plane_state->fence) in drm_atomic_helper_wait_for_fences() 1614 WARN_ON(!new_plane_state->fb); in drm_atomic_helper_wait_for_fences() 1626 new_plane_state->fence = NULL; in drm_atomic_helper_wait_for_fences() 1898 if (!new_plane_state->crtc || in drm_atomic_helper_async_check() 1914 if (new_plane_state->fence) { in drm_atomic_helper_async_check() 2774 new_plane_state); in drm_atomic_helper_commit_planes() 3110 new_plane_state->state = NULL; in drm_atomic_helper_swap_state() [all …]
|
H A D | drm_atomic.c | 649 if (new_plane_state->crtc_w > INT_MAX || in drm_atomic_plane_check() 650 new_plane_state->crtc_x > INT_MAX - (int32_t) new_plane_state->crtc_w || in drm_atomic_plane_check() 652 new_plane_state->crtc_y > INT_MAX - (int32_t) new_plane_state->crtc_h) { in drm_atomic_plane_check() 656 new_plane_state->crtc_w, new_plane_state->crtc_h, in drm_atomic_plane_check() 657 new_plane_state->crtc_x, new_plane_state->crtc_y); in drm_atomic_plane_check() 666 new_plane_state->src_x > fb_width - new_plane_state->src_w || in drm_atomic_plane_check() 668 new_plane_state->src_y > fb_height - new_plane_state->src_h) { in drm_atomic_plane_check() 673 new_plane_state->src_w >> 16, in drm_atomic_plane_check() 675 new_plane_state->src_h >> 16, in drm_atomic_plane_check() 677 new_plane_state->src_x >> 16, in drm_atomic_plane_check() [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() 520 crtc = new_plane_state->crtc; in drm_atomic_normalize_zpos() 523 if (old_plane_state->zpos != new_plane_state->zpos) { in drm_atomic_normalize_zpos()
|
H A D | drm_plane_helper.c | 301 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, plane); in drm_plane_helper_atomic_check() local 302 struct drm_crtc *new_crtc = new_plane_state->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 D | amdgpu_dm.c | 8172 dm->adev, new_plane_state, in amdgpu_dm_commit_planes() 9595 if (!new_plane_state->crtc) in should_reset_plane() 9771 if (new_plane_state->src_x != 0 || new_plane_state->src_y != 0) { in dm_update_plane_state() 9776 if (new_plane_state->fb) { in dm_update_plane_state() 9778 new_plane_state->fb); in dm_update_plane_state() 9787 new_plane_state); in dm_update_plane_state() 9869 new_plane_state, in dm_update_plane_state() 9965 if (!new_plane_state || !new_plane_state->fb || new_plane_state->crtc != crtc) in dm_check_crtc_cursor() 10210 new_plane_state = in amdgpu_dm_atomic_check() 10242 new_plane_state, in amdgpu_dm_atomic_check() [all …]
|
H A D | amdgpu_dm_crtc.c | 323 struct drm_plane_state *new_plane_state; in count_crtc_active_planes() local 329 new_plane_state = drm_atomic_get_new_plane_state(state, plane); in count_crtc_active_planes() 331 if (!new_plane_state) { in count_crtc_active_planes() 342 num_active += (new_plane_state->fb != NULL); in count_crtc_active_planes()
|
H A D | amdgpu_dm_plane.c | 1138 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, in dm_plane_atomic_check() local 1147 trace_amdgpu_dm_plane_atomic_check(new_plane_state); in dm_plane_atomic_check() 1149 dm_plane_state = to_dm_plane_state(new_plane_state); in dm_plane_atomic_check() 1156 new_plane_state->crtc); in dm_plane_atomic_check() 1160 ret = amdgpu_dm_plane_helper_check_state(new_plane_state, new_crtc_state); in dm_plane_atomic_check() 1164 ret = amdgpu_dm_plane_fill_dc_scaling_info(adev, new_plane_state, &scaling_info); in dm_plane_atomic_check()
|
/openbsd/sys/dev/pci/drm/apple/ |
H A D | apple_drv.c | 79 struct drm_plane_state *new_plane_state; in apple_plane_atomic_check() local 82 new_plane_state = drm_atomic_get_new_plane_state(state, plane); in apple_plane_atomic_check() 84 if (!new_plane_state->crtc) in apple_plane_atomic_check() 87 crtc_state = drm_atomic_get_crtc_state(state, new_plane_state->crtc); in apple_plane_atomic_check() 103 return drm_atomic_helper_check_plane_state(new_plane_state, in apple_plane_atomic_check()
|