Home
last modified time | relevance | path

Searched refs:new_plane_state (Results 1 – 25 of 66) sorted by relevance

123

/Linux-v6.6/drivers/gpu/drm/i915/display/
Dintel_atomic_plane.c437 const struct intel_plane_state *new_plane_state) in i9xx_must_disable_cxsr() argument
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() argument
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()
[all …]
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->uapi.crtc_y = crtc_y; in intel_legacy_cursor_update()
[all …]
/Linux-v6.6/drivers/gpu/drm/loongson/
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->crtc_w != 32 || new_plane_state->crtc_h != 32) { in ls7a1000_cursor_plane_atomic_check()
[all …]
/Linux-v6.6/drivers/gpu/drm/tidss/
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->src_y >> 16), finfo->vsub); in tidss_plane_atomic_check()
[all …]
/Linux-v6.6/drivers/gpu/drm/omapdrm/
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->crtc_x + new_plane_state->crtc_w > crtc_state->adjusted_mode.hdisplay) in omap_plane_atomic_check()
266 if (new_plane_state->crtc_y + new_plane_state->crtc_h > crtc_state->adjusted_mode.vdisplay) in omap_plane_atomic_check()
270 if (new_plane_state->src_h > max_height || new_plane_state->crtc_h > height) in omap_plane_atomic_check()
[all …]
/Linux-v6.6/drivers/gpu/drm/armada/
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->src) >> 17; in armada_drm_plane_atomic_check()
114 st->dst_yx = new_plane_state->dst.y1 >> 1; in armada_drm_plane_atomic_check()
115 st->dst_hw = drm_rect_height(&new_plane_state->dst) >> 1; in armada_drm_plane_atomic_check()
[all …]
/Linux-v6.6/include/drm/
Ddrm_atomic_helper.h225 struct drm_plane_state *new_plane_state) in drm_atomic_plane_enabling() argument
232 WARN_ON((!new_plane_state->crtc && new_plane_state->fb) || in drm_atomic_plane_enabling()
233 (new_plane_state->crtc && !new_plane_state->fb)); in drm_atomic_plane_enabling()
235 return !old_plane_state->crtc && new_plane_state->crtc; in drm_atomic_plane_enabling()
252 struct drm_plane_state *new_plane_state) in drm_atomic_plane_disabling() argument
259 WARN_ON((new_plane_state->crtc == NULL && new_plane_state->fb != NULL) || in drm_atomic_plane_disabling()
260 (new_plane_state->crtc != NULL && new_plane_state->fb == NULL)); in drm_atomic_plane_disabling()
262 return old_plane_state->crtc && !new_plane_state->crtc; in drm_atomic_plane_disabling()
Ddrm_atomic.h892 #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))
/Linux-v6.6/drivers/gpu/drm/mediatek/
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()
199 struct mtk_plane_state *new_plane_state = to_mtk_plane_state(plane->state); in mtk_plane_atomic_async_update() local
211 mtk_plane_update_new_state(new_state, new_plane_state); in mtk_plane_atomic_async_update()
213 new_plane_state->pending.async_dirty = true; in mtk_plane_atomic_async_update()
230 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, in mtk_plane_atomic_check() local
232 struct drm_framebuffer *fb = new_plane_state->fb; in mtk_plane_atomic_check()
[all …]
/Linux-v6.6/drivers/gpu/drm/renesas/rcar-du/
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->format ? in rcar_du_atomic_check_planes()
[all …]
/Linux-v6.6/drivers/gpu/drm/kmb/
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 = drm_atomic_get_new_plane_state(state, in kmb_plane_atomic_update() local
[all …]
/Linux-v6.6/drivers/gpu/drm/imx/dcss/
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->crtc_x < 0 || new_plane_state->crtc_y < 0 || in dcss_plane_atomic_check()
[all …]
/Linux-v6.6/drivers/gpu/drm/
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->src_y >> 16; in drm_atomic_helper_update_legacy_modeset_state()
1542 struct drm_plane_state *new_plane_state; in set_fence_deadline() local
[all …]
Ddrm_atomic.c576 const struct drm_plane_state *new_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()
603 const struct drm_plane_state *new_plane_state) in drm_atomic_plane_check() argument
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->crtc_x > INT_MAX - (int32_t) new_plane_state->crtc_w || in drm_atomic_plane_check()
651 new_plane_state->crtc_h > INT_MAX || in drm_atomic_plane_check()
[all …]
/Linux-v6.6/drivers/gpu/drm/hisilicon/hibmc/
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->crtc_x + new_plane_state->crtc_w > in hibmc_plane_atomic_check()
88 new_plane_state->crtc_y + new_plane_state->crtc_h > in hibmc_plane_atomic_check()
94 if (new_plane_state->fb->pitches[0] % 128 != 0) { in hibmc_plane_atomic_check()
/Linux-v6.6/drivers/gpu/drm/arm/
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->crtc_w > mp->hwdev->max_line_size) || in malidp_de_plane_check()
540 (new_plane_state->crtc_h > mp->hwdev->max_line_size) || in malidp_de_plane_check()
541 (new_plane_state->crtc_w < mp->hwdev->min_line_size) || in malidp_de_plane_check()
[all …]
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()
/Linux-v6.6/drivers/gpu/drm/ingenic/
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->crtc_h > crtc_state->mode.vdisplay) in ingenic_ipu_plane_atomic_check()
606 if ((new_plane_state->src_w >> 16) < 4 || (new_plane_state->src_h >> 16) < 4) in ingenic_ipu_plane_atomic_check()
610 if (((new_plane_state->src_w >> 16) & 1) || (new_plane_state->crtc_w & 1)) in ingenic_ipu_plane_atomic_check()
613 if (!osd_changed(new_plane_state, old_plane_state)) in ingenic_ipu_plane_atomic_check()
[all …]
/Linux-v6.6/drivers/gpu/drm/vc4/
Dvc4_plane.c1287 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, in vc4_plane_atomic_check() local
1289 struct vc4_plane_state *vc4_state = to_vc4_plane_state(new_plane_state); in vc4_plane_atomic_check()
1294 if (!plane_enabled(new_plane_state)) in vc4_plane_atomic_check()
1297 ret = vc4_plane_mode_set(plane, new_plane_state); in vc4_plane_atomic_check()
1301 return vc4_plane_allocate_lbm(new_plane_state); in vc4_plane_atomic_check()
1379 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, in vc4_plane_atomic_async_update() local
1387 swap(plane->state->fb, new_plane_state->fb); in vc4_plane_atomic_async_update()
1388 plane->state->crtc_x = new_plane_state->crtc_x; in vc4_plane_atomic_async_update()
1389 plane->state->crtc_y = new_plane_state->crtc_y; in vc4_plane_atomic_async_update()
1390 plane->state->crtc_w = new_plane_state->crtc_w; in vc4_plane_atomic_async_update()
[all …]
/Linux-v6.6/drivers/gpu/drm/sti/
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()
/Linux-v6.6/drivers/gpu/drm/vkms/
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()
/Linux-v6.6/drivers/gpu/drm/arm/display/komeda/
Dkomeda_plane.c74 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, in komeda_plane_atomic_check() local
77 struct komeda_plane_state *kplane_st = to_kplane_st(new_plane_state); in komeda_plane_atomic_check()
84 if (!new_plane_state->crtc || !new_plane_state->fb) in komeda_plane_atomic_check()
88 new_plane_state->crtc); in komeda_plane_atomic_check()
100 err = komeda_plane_init_data_flow(new_plane_state, kcrtc_st, &dflow); in komeda_plane_atomic_check()
/Linux-v6.6/drivers/gpu/drm/fsl-dcu/
Dfsl_dcu_drm_plane.c40 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, in fsl_dcu_drm_plane_atomic_check() local
42 struct drm_framebuffer *fb = new_plane_state->fb; in fsl_dcu_drm_plane_atomic_check()
44 if (!new_plane_state->fb || !new_plane_state->crtc) in fsl_dcu_drm_plane_atomic_check()
/Linux-v6.6/drivers/gpu/drm/msm/disp/mdp5/
Dmdp5_plane.c347 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, in mdp5_plane_atomic_check() local
352 crtc = new_plane_state->crtc ? new_plane_state->crtc : old_plane_state->crtc; in mdp5_plane_atomic_check()
361 return mdp5_plane_atomic_check_with_state(crtc_state, new_plane_state); in mdp5_plane_atomic_check()
386 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, in mdp5_plane_atomic_async_check() local
388 struct mdp5_plane_state *mdp5_state = to_mdp5_plane_state(new_plane_state); in mdp5_plane_atomic_async_check()
394 new_plane_state->crtc); in mdp5_plane_atomic_async_check()
406 if (plane->state->crtc != new_plane_state->crtc || in mdp5_plane_atomic_async_check()
407 plane->state->src_w != new_plane_state->src_w || in mdp5_plane_atomic_async_check()
408 plane->state->src_h != new_plane_state->src_h || in mdp5_plane_atomic_async_check()
409 plane->state->crtc_w != new_plane_state->crtc_w || in mdp5_plane_atomic_async_check()
[all …]
/Linux-v6.6/drivers/gpu/drm/tegra/
Ddc.c620 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, in tegra_plane_atomic_check() local
622 struct tegra_plane_state *plane_state = to_tegra_plane_state(new_plane_state); in tegra_plane_atomic_check()
626 unsigned int rotation = new_plane_state->rotation; in tegra_plane_atomic_check()
629 struct tegra_dc *dc = to_tegra_dc(new_plane_state->crtc); in tegra_plane_atomic_check()
636 if (!new_plane_state->crtc) { in tegra_plane_atomic_check()
641 err = tegra_plane_format(new_plane_state->fb->format->format, in tegra_plane_atomic_check()
659 err = tegra_fb_get_tiling(new_plane_state->fb, tiling); in tegra_plane_atomic_check()
675 if (tegra_fb_is_bottom_up(new_plane_state->fb)) in tegra_plane_atomic_check()
695 if (new_plane_state->fb->format->num_planes > 2) { in tegra_plane_atomic_check()
696 if (new_plane_state->fb->pitches[2] != new_plane_state->fb->pitches[1]) { in tegra_plane_atomic_check()
[all …]

123