Home
last modified time | relevance | path

Searched refs:new_plane_state (Results 1 - 25 of 81) sorted by relevance

1234

/kernel/linux/linux-6.6/drivers/gpu/drm/omapdrm/
H A Domap_plane.c203 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, in omap_plane_atomic_check() local
208 struct omap_plane_state *omap_state = to_omap_plane_state(new_plane_state); in omap_plane_atomic_check()
228 crtc = new_plane_state->crtc ? new_plane_state->crtc : plane->state->crtc; in omap_plane_atomic_check()
243 ret = drm_atomic_helper_check_plane_state(new_plane_state, crtc_state, in omap_plane_atomic_check()
250 old_plane_state->visible, new_plane_state->visible); in omap_plane_atomic_check()
252 if (!new_plane_state->visible) { in omap_plane_atomic_check()
260 if (new_plane_state->crtc_x < 0 || new_plane_state->crtc_y < 0) in omap_plane_atomic_check()
263 if (new_plane_state in omap_plane_atomic_check()
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/loongson/
H A Dlsdc_plane.c53 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, plane); in lsdc_primary_atomic_check() local
54 struct drm_crtc *crtc = new_plane_state->crtc; in lsdc_primary_atomic_check()
62 return drm_atomic_helper_check_plane_state(new_plane_state, in lsdc_primary_atomic_check()
75 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, plane); in lsdc_primary_atomic_update() local
76 struct drm_framebuffer *new_fb = new_plane_state->fb; in lsdc_primary_atomic_update()
80 fb_addr += lsdc_get_fb_offset(new_fb, new_plane_state); in lsdc_primary_atomic_update()
272 struct drm_plane_state *new_plane_state; in ls7a1000_cursor_plane_atomic_check() local
276 new_plane_state = drm_atomic_get_new_plane_state(state, plane); in ls7a1000_cursor_plane_atomic_check()
278 crtc = new_plane_state->crtc; in ls7a1000_cursor_plane_atomic_check()
284 if (new_plane_state in ls7a1000_cursor_plane_atomic_check()
304 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, plane); ls7a1000_cursor_plane_atomic_update() local
345 struct drm_plane_state *new_plane_state; ls7a2000_cursor_plane_atomic_check() local
385 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, plane); ls7a2000_cursor_plane_atomic_update() local
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/
H A Dintel_atomic_plane.c284 struct intel_plane_state *new_plane_state) in intel_plane_atomic_check_with_state()
286 struct intel_plane *plane = to_intel_plane(new_plane_state->uapi.plane); in intel_plane_atomic_check_with_state()
287 const struct drm_framebuffer *fb = new_plane_state->hw.fb; in intel_plane_atomic_check_with_state()
290 intel_plane_set_invisible(new_crtc_state, new_plane_state); in intel_plane_atomic_check_with_state()
292 if (!new_plane_state->hw.crtc && !old_plane_state->hw.crtc) in intel_plane_atomic_check_with_state()
295 ret = plane->check_plane(new_crtc_state, new_plane_state); in intel_plane_atomic_check_with_state()
300 if (new_plane_state->uapi.visible) in intel_plane_atomic_check_with_state()
303 if (new_plane_state->uapi.visible && in intel_plane_atomic_check_with_state()
307 if (new_plane_state->uapi.visible && in intel_plane_atomic_check_with_state()
311 if (new_plane_state in intel_plane_atomic_check_with_state()
281 intel_plane_atomic_check_with_state(const struct intel_crtc_state *old_crtc_state, struct intel_crtc_state *new_crtc_state, const struct intel_plane_state *old_plane_state, struct intel_plane_state *new_plane_state) intel_plane_atomic_check_with_state() argument
322 get_crtc_from_states(const struct intel_plane_state *old_plane_state, const struct intel_plane_state *new_plane_state) get_crtc_from_states() argument
337 struct intel_plane_state *new_plane_state = intel_plane_atomic_check() local
443 struct intel_plane_state *new_plane_state = skl_update_planes_on_crtc() local
461 struct intel_plane_state *new_plane_state; i9xx_update_planes_on_crtc() local
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/display/
H A Dintel_atomic_plane.c437 const struct intel_plane_state *new_plane_state) in i9xx_must_disable_cxsr()
439 struct intel_plane *plane = to_intel_plane(new_plane_state->uapi.plane); in i9xx_must_disable_cxsr()
441 bool new_visible = new_plane_state->uapi.visible; in i9xx_must_disable_cxsr()
443 u32 new_ctl = new_plane_state->ctl; in i9xx_must_disable_cxsr()
479 struct intel_plane_state *new_plane_state) in intel_plane_atomic_calc_changes()
482 struct intel_plane *plane = to_intel_plane(new_plane_state->uapi.plane); in intel_plane_atomic_calc_changes()
491 ret = skl_update_scaler_plane(new_crtc_state, new_plane_state); in intel_plane_atomic_calc_changes()
497 visible = new_plane_state->uapi.visible; in intel_plane_atomic_calc_changes()
513 intel_plane_set_invisible(new_crtc_state, new_plane_state); 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()
435 i9xx_must_disable_cxsr(const struct intel_crtc_state *new_crtc_state, const struct intel_plane_state *old_plane_state, const struct intel_plane_state *new_plane_state) i9xx_must_disable_cxsr() argument
476 intel_plane_atomic_calc_changes(const struct intel_crtc_state *old_crtc_state, struct intel_crtc_state *new_crtc_state, const struct intel_plane_state *old_plane_state, struct intel_plane_state *new_plane_state) intel_plane_atomic_calc_changes() argument
599 intel_plane_atomic_check_with_state(const struct intel_crtc_state *old_crtc_state, struct intel_crtc_state *new_crtc_state, const struct intel_plane_state *old_plane_state, struct intel_plane_state *new_plane_state) intel_plane_atomic_check_with_state() argument
684 struct intel_plane_state *new_plane_state = intel_plane_atomic_check() local
804 struct intel_plane_state *new_plane_state; intel_crtc_planes_update_noarm() local
845 struct intel_plane_state *new_plane_state = skl_crtc_planes_update_arm() local
866 struct intel_plane_state *new_plane_state; i9xx_crtc_planes_update_arm() local
1025 struct intel_plane_state *new_plane_state = intel_prepare_plane_fb() local
[all...]
H A Dintel_cursor.c620 struct intel_plane_state *new_plane_state; in intel_legacy_cursor_update() local
663 new_plane_state = to_intel_plane_state(intel_plane_duplicate_state(&plane->base)); in intel_legacy_cursor_update()
664 if (!new_plane_state) in intel_legacy_cursor_update()
673 drm_atomic_set_fb_for_plane(&new_plane_state->uapi, fb); 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 in intel_legacy_cursor_update()
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/tidss/
H A Dtidss_plane.c25 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, in tidss_plane_atomic_check() local
38 if (!new_plane_state->crtc) { in tidss_plane_atomic_check()
44 new_plane_state->visible = false; in tidss_plane_atomic_check()
49 new_plane_state->crtc); in tidss_plane_atomic_check()
53 ret = drm_atomic_helper_check_plane_state(new_plane_state, crtc_state, in tidss_plane_atomic_check()
71 finfo = drm_format_info(new_plane_state->fb->format->format); in tidss_plane_atomic_check()
73 if ((new_plane_state->src_x >> 16) % finfo->hsub != 0) { in tidss_plane_atomic_check()
76 __func__, (new_plane_state->src_x >> 16), finfo->hsub); in tidss_plane_atomic_check()
80 if ((new_plane_state->src_y >> 16) % finfo->vsub != 0) { in tidss_plane_atomic_check()
83 __func__, (new_plane_state in tidss_plane_atomic_check()
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/armada/
H A Darmada_plane.c84 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, in armada_drm_plane_atomic_check() local
86 struct armada_plane_state *st = to_armada_plane_state(new_plane_state); in armada_drm_plane_atomic_check()
87 struct drm_crtc *crtc = new_plane_state->crtc; in armada_drm_plane_atomic_check()
92 if (!new_plane_state->fb || WARN_ON(!new_plane_state->crtc)) { in armada_drm_plane_atomic_check()
93 new_plane_state->visible = false; in armada_drm_plane_atomic_check()
103 ret = drm_atomic_helper_check_plane_state(new_plane_state, crtc_state, in armada_drm_plane_atomic_check()
111 if ((new_plane_state->dst.y1 | new_plane_state->dst.y2) & 1) in armada_drm_plane_atomic_check()
113 st->src_hw = drm_rect_height(&new_plane_state in armada_drm_plane_atomic_check()
[all...]
/kernel/linux/linux-6.6/include/drm/
H A Ddrm_atomic_helper.h217 * @new_plane_state: new atomic plane state
227 struct drm_plane_state *new_plane_state) in drm_atomic_plane_enabling()
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()
243 * @new_plane_state: new atomic plane state
254 struct drm_plane_state *new_plane_state) in drm_atomic_plane_disabling()
261 WARN_ON((new_plane_state in drm_atomic_plane_disabling()
226 drm_atomic_plane_enabling(struct drm_plane_state *old_plane_state, struct drm_plane_state *new_plane_state) drm_atomic_plane_enabling() argument
253 drm_atomic_plane_disabling(struct drm_plane_state *old_plane_state, struct drm_plane_state *new_plane_state) drm_atomic_plane_disabling() argument
[all...]
H A Ddrm_atomic.h885 * @new_plane_state: &struct drm_plane_state iteration cursor for the new state
892 #define for_each_oldnew_plane_in_state(__state, plane, old_plane_state, new_plane_state, __i) \
900 (new_plane_state) = (__state)->planes[__i].new_state, 1))
908 * @new_plane_state: &struct drm_plane_state iteration cursor for the new state
915 #define for_each_oldnew_plane_in_state_reverse(__state, plane, old_plane_state, new_plane_state, __i) \
922 (new_plane_state) = (__state)->planes[__i].new_state, 1))
929 * @new_plane_state: &struct drm_plane_state iteration cursor for the new state
932 #define for_each_new_plane_in_state_reverse(__state, plane, new_plane_state, __i) \
938 (new_plane_state) = (__state)->planes[__i].new_state, 1))
962 * @new_plane_state
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/mediatek/
H A Dmtk_drm_plane.c106 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, in mtk_plane_atomic_async_check() local
111 if (plane != new_plane_state->crtc->cursor) in mtk_plane_atomic_async_check()
120 ret = mtk_drm_crtc_plane_check(new_plane_state->crtc, plane, in mtk_plane_atomic_async_check()
121 to_mtk_plane_state(new_plane_state)); in mtk_plane_atomic_async_check()
125 crtc_state = drm_atomic_get_existing_crtc_state(state, new_plane_state->crtc); in mtk_plane_atomic_async_check()
220 struct mtk_plane_state *new_plane_state = to_mtk_plane_state(plane->state); in mtk_plane_atomic_async_update() local
231 mtk_plane_update_new_state(new_state, new_plane_state); in mtk_plane_atomic_async_update()
234 new_plane_state->pending.async_dirty = true; in mtk_plane_atomic_async_update()
251 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, in mtk_plane_atomic_check() local
253 struct drm_framebuffer *fb = new_plane_state in mtk_plane_atomic_check()
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/renesas/rcar-du/
H A Drcar_du_plane.c146 struct rcar_du_plane_state *new_plane_state; in rcar_du_atomic_check_planes() local
152 new_plane_state = to_rcar_plane_state(new_drm_plane_state); in rcar_du_atomic_check_planes()
162 if (!new_plane_state->format) { in rcar_du_atomic_check_planes()
167 new_plane_state->hwindex = -1; 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()
183 new_plane_state->hwindex = -1; in rcar_du_atomic_check_planes()
209 struct rcar_du_plane_state *new_plane_state; in rcar_du_atomic_check_planes() local
232 new_plane_state = to_rcar_plane_state(s); in rcar_du_atomic_check_planes()
233 used_planes |= rcar_du_plane_hwmask(new_plane_state); in rcar_du_atomic_check_planes()
239 new_plane_state in rcar_du_atomic_check_planes()
255 struct rcar_du_plane_state *new_plane_state; rcar_du_atomic_check_planes() local
640 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, rcar_du_plane_atomic_check() local
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/kmb/
H A Dkmb_plane.c94 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, in kmb_plane_atomic_check() local
107 fb = new_plane_state->fb; in kmb_plane_atomic_check()
108 if (!fb || !new_plane_state->crtc) in kmb_plane_atomic_check()
115 if (new_plane_state->crtc_w > KMB_FB_MAX_WIDTH || in kmb_plane_atomic_check()
116 new_plane_state->crtc_h > KMB_FB_MAX_HEIGHT || in kmb_plane_atomic_check()
117 new_plane_state->crtc_w < KMB_FB_MIN_WIDTH || in kmb_plane_atomic_check()
118 new_plane_state->crtc_h < KMB_FB_MIN_HEIGHT) in kmb_plane_atomic_check()
133 new_plane_state->crtc); in kmb_plane_atomic_check()
134 return drm_atomic_helper_check_plane_state(new_plane_state, in kmb_plane_atomic_check()
346 struct drm_plane_state *new_plane_state in kmb_plane_atomic_update() local
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/rcar-du/
H A Drcar_du_plane.c145 struct rcar_du_plane_state *new_plane_state; in rcar_du_atomic_check_planes() local
151 new_plane_state = to_rcar_plane_state(new_drm_plane_state); in rcar_du_atomic_check_planes()
161 if (!new_plane_state->format) { in rcar_du_atomic_check_planes()
166 new_plane_state->hwindex = -1; in rcar_du_atomic_check_planes()
174 if (rcar_du_plane_needs_realloc(old_plane_state, new_plane_state)) { in rcar_du_atomic_check_planes()
182 new_plane_state->hwindex = -1; in rcar_du_atomic_check_planes()
208 struct rcar_du_plane_state *new_plane_state; in rcar_du_atomic_check_planes() local
231 new_plane_state = to_rcar_plane_state(s); in rcar_du_atomic_check_planes()
232 used_planes |= rcar_du_plane_hwmask(new_plane_state); in rcar_du_atomic_check_planes()
238 new_plane_state in rcar_du_atomic_check_planes()
254 struct rcar_du_plane_state *new_plane_state; rcar_du_atomic_check_planes() local
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/
H A Ddrm_atomic.c522 const struct drm_plane_state *new_plane_state) in plane_switching_crtc()
524 if (!old_plane_state->crtc || !new_plane_state->crtc) in plane_switching_crtc()
527 if (old_plane_state->crtc == new_plane_state->crtc) in plane_switching_crtc()
541 * @new_plane_state: new plane state to check
549 const struct drm_plane_state *new_plane_state) in drm_atomic_plane_check()
551 struct drm_plane *plane = new_plane_state->plane; in drm_atomic_plane_check()
552 struct drm_crtc *crtc = new_plane_state->crtc; in drm_atomic_plane_check()
553 const struct drm_framebuffer *fb = new_plane_state->fb; in drm_atomic_plane_check()
597 if (new_plane_state->crtc_w > INT_MAX || in drm_atomic_plane_check()
598 new_plane_state in drm_atomic_plane_check()
521 plane_switching_crtc(const struct drm_plane_state *old_plane_state, const struct drm_plane_state *new_plane_state) plane_switching_crtc() argument
548 drm_atomic_plane_check(const struct drm_plane_state *old_plane_state, const struct drm_plane_state *new_plane_state) drm_atomic_plane_check() argument
1269 struct drm_plane_state *new_plane_state; drm_atomic_check_only() local
[all...]
H A Ddrm_atomic_helper.c888 struct drm_plane_state *new_plane_state, *old_plane_state; in drm_atomic_helper_check_planes() local
891 for_each_oldnew_plane_in_state(state, plane, old_plane_state, new_plane_state, i) { in drm_atomic_helper_check_planes()
898 drm_atomic_helper_plane_changed(state, old_plane_state, new_plane_state, plane); in drm_atomic_helper_check_planes()
900 drm_atomic_helper_check_plane_damage(state, new_plane_state); in drm_atomic_helper_check_planes()
905 ret = funcs->atomic_check(plane, new_plane_state); in drm_atomic_helper_check_planes()
1194 struct drm_plane_state *new_plane_state; in drm_atomic_helper_update_legacy_modeset_state() local
1199 new_plane_state = in drm_atomic_helper_update_legacy_modeset_state()
1202 if (new_plane_state && new_plane_state->crtc == crtc) { in drm_atomic_helper_update_legacy_modeset_state()
1203 crtc->x = new_plane_state in drm_atomic_helper_update_legacy_modeset_state()
1453 struct drm_plane_state *new_plane_state; drm_atomic_helper_wait_for_fences() local
1725 struct drm_plane_state *new_plane_state = NULL; drm_atomic_helper_async_check() local
2097 struct drm_plane_state *old_plane_state, *new_plane_state; drm_atomic_helper_setup_commit() local
2417 struct drm_plane_state *new_plane_state; drm_atomic_helper_prepare_planes() local
2513 struct drm_plane_state *old_plane_state, *new_plane_state; drm_atomic_helper_commit_planes() local
2630 struct drm_plane_state *new_plane_state = drm_atomic_helper_commit_planes_on_crtc() local
2716 struct drm_plane_state *old_plane_state, *new_plane_state; drm_atomic_helper_cleanup_planes() local
2784 struct drm_plane_state *old_plane_state, *new_plane_state; drm_atomic_helper_swap_state() local
3313 struct drm_plane_state *new_plane_state; drm_atomic_helper_commit_duplicated_state() local
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/
H A Ddrm_atomic.c576 const struct drm_plane_state *new_plane_state) in plane_switching_crtc()
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()
595 * @new_plane_state: new plane state to check
603 const struct drm_plane_state *new_plane_state) in drm_atomic_plane_check()
605 struct drm_plane *plane = new_plane_state->plane; in drm_atomic_plane_check()
606 struct drm_crtc *crtc = new_plane_state->crtc; in drm_atomic_plane_check()
607 const struct drm_framebuffer *fb = new_plane_state->fb; in drm_atomic_plane_check()
649 if (new_plane_state->crtc_w > INT_MAX || in drm_atomic_plane_check()
650 new_plane_state in drm_atomic_plane_check()
575 plane_switching_crtc(const struct drm_plane_state *old_plane_state, const struct drm_plane_state *new_plane_state) plane_switching_crtc() argument
602 drm_atomic_plane_check(const struct drm_plane_state *old_plane_state, const struct drm_plane_state *new_plane_state) drm_atomic_plane_check() argument
1393 struct drm_plane_state *new_plane_state; drm_atomic_check_only() local
[all...]
H A Ddrm_atomic_helper.c989 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()
1001 drm_atomic_helper_check_plane_damage(state, new_plane_state); in drm_atomic_helper_check_planes()
1299 struct drm_plane_state *new_plane_state; in drm_atomic_helper_update_legacy_modeset_state() local
1304 new_plane_state = in drm_atomic_helper_update_legacy_modeset_state()
1307 if (new_plane_state && new_plane_state->crtc == crtc) { in drm_atomic_helper_update_legacy_modeset_state()
1308 crtc->x = new_plane_state->src_x >> 16; in drm_atomic_helper_update_legacy_modeset_state()
1309 crtc->y = new_plane_state in drm_atomic_helper_update_legacy_modeset_state()
1542 struct drm_plane_state *new_plane_state; set_fence_deadline() local
1599 struct drm_plane_state *new_plane_state; drm_atomic_helper_wait_for_fences() local
1873 struct drm_plane_state *new_plane_state = NULL; drm_atomic_helper_async_check() local
2278 struct drm_plane_state *old_plane_state, *new_plane_state; drm_atomic_helper_setup_commit() local
2580 struct drm_plane_state *new_plane_state; drm_atomic_helper_prepare_planes() local
2667 struct drm_plane_state *new_plane_state; drm_atomic_helper_unprepare_planes() local
2739 struct drm_plane_state *old_plane_state, *new_plane_state; drm_atomic_helper_commit_planes() local
2872 struct drm_plane_state *new_plane_state = drm_atomic_helper_commit_planes_on_crtc() local
3022 struct drm_plane_state *old_plane_state, *new_plane_state; drm_atomic_helper_swap_state() local
3553 struct drm_plane_state *new_plane_state; drm_atomic_helper_commit_duplicated_state() local
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/imx/dcss/
H A Ddcss-plane.c144 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, in dcss_plane_atomic_check() local
148 struct drm_framebuffer *fb = new_plane_state->fb; in dcss_plane_atomic_check()
156 if (!fb || !new_plane_state->crtc) in dcss_plane_atomic_check()
163 new_plane_state->crtc); in dcss_plane_atomic_check()
168 if (!dcss_plane_is_source_size_allowed(new_plane_state->src_w >> 16, in dcss_plane_atomic_check()
169 new_plane_state->src_h >> 16, in dcss_plane_atomic_check()
178 ret = drm_atomic_helper_check_plane_state(new_plane_state, crtc_state, in dcss_plane_atomic_check()
184 if (!new_plane_state->visible) in dcss_plane_atomic_check()
190 new_plane_state->rotation)) { in dcss_plane_atomic_check()
195 if ((new_plane_state in dcss_plane_atomic_check()
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/hisilicon/hibmc/
H A Dhibmc_drm_de.c58 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, in hibmc_plane_atomic_check() local
60 struct drm_framebuffer *fb = new_plane_state->fb; in hibmc_plane_atomic_check()
61 struct drm_crtc *crtc = new_plane_state->crtc; in hibmc_plane_atomic_check()
63 u32 src_w = new_plane_state->src_w >> 16; in hibmc_plane_atomic_check()
64 u32 src_h = new_plane_state->src_h >> 16; in hibmc_plane_atomic_check()
73 if (src_w != new_plane_state->crtc_w || src_h != new_plane_state->crtc_h) { in hibmc_plane_atomic_check()
78 if (new_plane_state->crtc_x < 0 || new_plane_state->crtc_y < 0) { in hibmc_plane_atomic_check()
86 if (new_plane_state in hibmc_plane_atomic_check()
[all...]
/kernel/linux/linux-5.10/include/drm/
H A Ddrm_atomic_helper.h206 * @new_plane_state: new atomic plane state
217 struct drm_plane_state *new_plane_state) in drm_atomic_plane_disabling()
224 WARN_ON((new_plane_state->crtc == NULL && new_plane_state->fb != NULL) || in drm_atomic_plane_disabling()
225 (new_plane_state->crtc != NULL && new_plane_state->fb == NULL)); in drm_atomic_plane_disabling()
227 return old_plane_state->crtc && !new_plane_state->crtc; in drm_atomic_plane_disabling()
216 drm_atomic_plane_disabling(struct drm_plane_state *old_plane_state, struct drm_plane_state *new_plane_state) drm_atomic_plane_disabling() argument
/kernel/linux/linux-6.6/drivers/gpu/drm/arm/
H A Dmalidp_planes.c495 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, in malidp_de_plane_check() local
498 struct malidp_plane_state *ms = to_malidp_plane_state(new_plane_state); in malidp_de_plane_check()
499 bool rotated = new_plane_state->rotation & MALIDP_ROTATED_MASK; in malidp_de_plane_check()
501 u16 pixel_alpha = new_plane_state->pixel_blend_mode; in malidp_de_plane_check()
505 if (!new_plane_state->crtc || WARN_ON(!new_plane_state->fb)) in malidp_de_plane_check()
508 fb = new_plane_state->fb; in malidp_de_plane_check()
534 if ((new_plane_state->src_x >> 16) % block_w || (new_plane_state->src_y >> 16) % block_h) { in malidp_de_plane_check()
539 if ((new_plane_state in malidp_de_plane_check()
[all...]
H A Dhdlcd_crtc.c233 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, in hdlcd_plane_atomic_check() local
238 u32 src_h = new_plane_state->src_h >> 16; in hdlcd_plane_atomic_check()
249 if (!new_plane_state->fb && crtc_state->active) in hdlcd_plane_atomic_check()
251 return drm_atomic_helper_check_plane_state(new_plane_state, in hdlcd_plane_atomic_check()
264 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, in hdlcd_plane_atomic_update() local
266 struct drm_framebuffer *fb = new_plane_state->fb; in hdlcd_plane_atomic_update()
274 dest_h = drm_rect_height(&new_plane_state->dst); in hdlcd_plane_atomic_update()
275 scanout_start = drm_fb_dma_get_gem_addr(fb, new_plane_state, 0); in hdlcd_plane_atomic_update()
/kernel/linux/linux-6.6/drivers/gpu/drm/ingenic/
H A Dingenic-ipu.c572 struct drm_plane_state *new_plane_state = drm_atomic_get_new_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()
595 if (!new_plane_state->crtc || in ingenic_ipu_plane_atomic_check()
600 if (new_plane_state->crtc_x < 0 || new_plane_state->crtc_y < 0 || in ingenic_ipu_plane_atomic_check()
601 new_plane_state->crtc_x + new_plane_state->crtc_w > crtc_state->mode.hdisplay || in ingenic_ipu_plane_atomic_check()
602 new_plane_state->crtc_y + new_plane_state in ingenic_ipu_plane_atomic_check()
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/sti/
H A Dsti_cursor.c187 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, in sti_cursor_atomic_check() local
191 struct drm_crtc *crtc = new_plane_state->crtc; in sti_cursor_atomic_check()
192 struct drm_framebuffer *fb = new_plane_state->fb; in sti_cursor_atomic_check()
204 dst_x = new_plane_state->crtc_x; in sti_cursor_atomic_check()
205 dst_y = new_plane_state->crtc_y; in sti_cursor_atomic_check()
206 dst_w = clamp_val(new_plane_state->crtc_w, 0, in sti_cursor_atomic_check()
208 dst_h = clamp_val(new_plane_state->crtc_h, 0, in sti_cursor_atomic_check()
211 src_w = new_plane_state->src_w >> 16; in sti_cursor_atomic_check()
212 src_h = new_plane_state->src_h >> 16; in sti_cursor_atomic_check()
/kernel/linux/linux-6.6/drivers/gpu/drm/vkms/
H A Dvkms_plane.c137 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, in vkms_plane_atomic_check() local
142 if (!new_plane_state->fb || WARN_ON(!new_plane_state->crtc)) in vkms_plane_atomic_check()
146 new_plane_state->crtc); in vkms_plane_atomic_check()
150 ret = drm_atomic_helper_check_plane_state(new_plane_state, crtc_state, in vkms_plane_atomic_check()

Completed in 26 milliseconds

1234