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

123

/linux-master/drivers/gpu/drm/i915/display/
H A Dintel_atomic_plane.c440 const struct intel_plane_state *new_plane_state)
442 struct intel_plane *plane = to_intel_plane(new_plane_state->uapi.plane);
444 bool new_visible = new_plane_state->uapi.visible;
446 u32 new_ctl = new_plane_state->ctl;
482 struct intel_plane_state *new_plane_state)
485 struct intel_plane *plane = to_intel_plane(new_plane_state->uapi.plane);
494 ret = skl_update_scaler_plane(new_crtc_state, new_plane_state);
500 visible = new_plane_state->uapi.visible;
516 intel_plane_set_invisible(new_crtc_state, new_plane_state);
539 } else if (intel_wm_need_update(old_plane_state, new_plane_state)) {
438 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) argument
479 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) argument
602 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) argument
687 struct intel_plane_state *new_plane_state = local
807 struct intel_plane_state *new_plane_state; local
848 struct intel_plane_state *new_plane_state = local
869 struct intel_plane_state *new_plane_state; local
1018 add_dma_resv_fences(struct dma_resv *resv, struct drm_plane_state *new_plane_state) argument
1071 struct intel_plane_state *new_plane_state = local
[all...]
H A Dintel_cursor.c670 struct intel_plane_state *new_plane_state; local
714 new_plane_state = to_intel_plane_state(intel_plane_duplicate_state(&plane->base));
715 if (!new_plane_state)
724 drm_atomic_set_fb_for_plane(&new_plane_state->uapi, fb);
726 new_plane_state->uapi.src_x = src_x;
727 new_plane_state->uapi.src_y = src_y;
728 new_plane_state->uapi.src_w = src_w;
729 new_plane_state->uapi.src_h = src_h;
730 new_plane_state->uapi.crtc_x = crtc_x;
731 new_plane_state
[all...]
/linux-master/drivers/gpu/drm/tidss/
H A Dtidss_plane.c25 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, local
38 if (!new_plane_state->crtc) {
44 new_plane_state->visible = false;
49 new_plane_state->crtc);
53 ret = drm_atomic_helper_check_plane_state(new_plane_state, crtc_state,
71 finfo = drm_format_info(new_plane_state->fb->format->format);
73 if ((new_plane_state->src_x >> 16) % finfo->hsub != 0) {
76 __func__, (new_plane_state->src_x >> 16), finfo->hsub);
80 if ((new_plane_state->src_y >> 16) % finfo->vsub != 0) {
83 __func__, (new_plane_state
[all...]
/linux-master/drivers/gpu/drm/armada/
H A Darmada_plane.c84 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, local
86 struct armada_plane_state *st = to_armada_plane_state(new_plane_state);
87 struct drm_crtc *crtc = new_plane_state->crtc;
92 if (!new_plane_state->fb || WARN_ON(!new_plane_state->crtc)) {
93 new_plane_state->visible = false;
103 ret = drm_atomic_helper_check_plane_state(new_plane_state, crtc_state,
111 if ((new_plane_state->dst.y1 | new_plane_state->dst.y2) & 1)
113 st->src_hw = drm_rect_height(&new_plane_state
[all...]
/linux-master/drivers/gpu/drm/loongson/
H A Dlsdc_plane.c52 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, plane); local
53 struct drm_crtc *crtc = new_plane_state->crtc;
61 return drm_atomic_helper_check_plane_state(new_plane_state,
74 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, plane); local
75 struct drm_framebuffer *new_fb = new_plane_state->fb;
79 fb_addr += lsdc_get_fb_offset(new_fb, new_plane_state);
271 struct drm_plane_state *new_plane_state; local
275 new_plane_state = drm_atomic_get_new_plane_state(state, plane);
277 crtc = new_plane_state->crtc;
283 if (new_plane_state
303 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, plane); local
344 struct drm_plane_state *new_plane_state; local
384 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, plane); local
[all...]
/linux-master/drivers/gpu/drm/omapdrm/
H A Domap_plane.c203 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, local
208 struct omap_plane_state *omap_state = to_omap_plane_state(new_plane_state);
228 crtc = new_plane_state->crtc ? new_plane_state->crtc : plane->state->crtc;
243 ret = drm_atomic_helper_check_plane_state(new_plane_state, crtc_state,
250 old_plane_state->visible, new_plane_state->visible);
252 if (!new_plane_state->visible) {
260 if (new_plane_state->crtc_x < 0 || new_plane_state->crtc_y < 0)
263 if (new_plane_state
[all...]
/linux-master/include/drm/
H A Ddrm_atomic_helper.h216 * @new_plane_state: new atomic plane state
226 struct drm_plane_state *new_plane_state)
233 WARN_ON((!new_plane_state->crtc && new_plane_state->fb) ||
234 (new_plane_state->crtc && !new_plane_state->fb));
236 return !old_plane_state->crtc && new_plane_state->crtc;
242 * @new_plane_state: new atomic plane state
253 struct drm_plane_state *new_plane_state)
260 WARN_ON((new_plane_state
225 drm_atomic_plane_enabling(struct drm_plane_state *old_plane_state, struct drm_plane_state *new_plane_state) argument
252 drm_atomic_plane_disabling(struct drm_plane_state *old_plane_state, struct drm_plane_state *new_plane_state) argument
[all...]
H A Ddrm_atomic.h933 * @new_plane_state: &struct drm_plane_state iteration cursor for the new state
940 #define for_each_oldnew_plane_in_state(__state, plane, old_plane_state, new_plane_state, __i) \
948 (new_plane_state) = (__state)->planes[__i].new_state, 1))
956 * @new_plane_state: &struct drm_plane_state iteration cursor for the new state
963 #define for_each_oldnew_plane_in_state_reverse(__state, plane, old_plane_state, new_plane_state, __i) \
970 (new_plane_state) = (__state)->planes[__i].new_state, 1))
977 * @new_plane_state: &struct drm_plane_state iteration cursor for the new state
980 #define for_each_new_plane_in_state_reverse(__state, plane, new_plane_state, __i) \
986 (new_plane_state) = (__state)->planes[__i].new_state, 1))
1010 * @new_plane_state
[all...]
/linux-master/drivers/gpu/drm/mediatek/
H A Dmtk_drm_plane.c106 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, local
111 if (plane != new_plane_state->crtc->cursor)
120 ret = mtk_drm_crtc_plane_check(new_plane_state->crtc, plane,
121 to_mtk_plane_state(new_plane_state));
125 crtc_state = drm_atomic_get_existing_crtc_state(state, new_plane_state->crtc);
220 struct mtk_plane_state *new_plane_state = to_mtk_plane_state(plane->state); local
231 mtk_plane_update_new_state(new_state, new_plane_state);
234 new_plane_state->pending.async_dirty = true;
251 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, local
253 struct drm_framebuffer *fb = new_plane_state
[all...]
/linux-master/drivers/gpu/drm/renesas/shmobile/
H A Dshmob_drm_plane.c148 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, plane); local
149 struct shmob_drm_plane_state *sstate = to_shmob_plane_state(new_plane_state);
154 if (!new_plane_state->crtc) {
160 new_plane_state->visible = false;
165 crtc_state = drm_atomic_get_crtc_state(state, new_plane_state->crtc);
169 ret = drm_atomic_helper_check_plane_state(new_plane_state, crtc_state,
176 if (!new_plane_state->visible) {
181 sstate->format = shmob_drm_format_info(new_plane_state->fb->format->format);
185 &new_plane_state->fb->format->format);
197 struct drm_plane_state *new_plane_state local
[all...]
/linux-master/drivers/gpu/drm/renesas/rcar-du/
H A Drcar_du_plane.c146 struct rcar_du_plane_state *new_plane_state; local
152 new_plane_state = to_rcar_plane_state(new_drm_plane_state);
162 if (!new_plane_state->format) {
167 new_plane_state->hwindex = -1;
175 if (rcar_du_plane_needs_realloc(old_plane_state, new_plane_state)) {
183 new_plane_state->hwindex = -1;
209 struct rcar_du_plane_state *new_plane_state; local
232 new_plane_state = to_rcar_plane_state(s);
233 used_planes |= rcar_du_plane_hwmask(new_plane_state);
239 new_plane_state
255 struct rcar_du_plane_state *new_plane_state; local
640 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, local
[all...]
/linux-master/drivers/gpu/drm/imx/dcss/
H A Ddcss-plane.c144 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, local
148 struct drm_framebuffer *fb = new_plane_state->fb;
156 if (!fb || !new_plane_state->crtc)
163 new_plane_state->crtc);
168 if (!dcss_plane_is_source_size_allowed(new_plane_state->src_w >> 16,
169 new_plane_state->src_h >> 16,
178 ret = drm_atomic_helper_check_plane_state(new_plane_state, crtc_state,
184 if (!new_plane_state->visible)
190 new_plane_state->rotation)) {
195 if ((new_plane_state
[all...]
/linux-master/drivers/gpu/drm/kmb/
H A Dkmb_plane.c94 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, local
107 fb = new_plane_state->fb;
108 if (!fb || !new_plane_state->crtc)
115 if (new_plane_state->crtc_w > KMB_FB_MAX_WIDTH ||
116 new_plane_state->crtc_h > KMB_FB_MAX_HEIGHT ||
117 new_plane_state->crtc_w < KMB_FB_MIN_WIDTH ||
118 new_plane_state->crtc_h < KMB_FB_MIN_HEIGHT)
133 new_plane_state->crtc);
134 return drm_atomic_helper_check_plane_state(new_plane_state,
346 struct drm_plane_state *new_plane_state local
[all...]
/linux-master/drivers/gpu/drm/
H A Ddrm_atomic.c576 const struct drm_plane_state *new_plane_state)
578 if (!old_plane_state->crtc || !new_plane_state->crtc)
581 if (old_plane_state->crtc == new_plane_state->crtc)
595 * @new_plane_state: new plane state to check
603 const struct drm_plane_state *new_plane_state)
605 struct drm_plane *plane = new_plane_state->plane;
606 struct drm_crtc *crtc = new_plane_state->crtc;
607 const struct drm_framebuffer *fb = new_plane_state->fb;
649 if (new_plane_state->crtc_w > INT_MAX ||
650 new_plane_state
575 plane_switching_crtc(const struct drm_plane_state *old_plane_state, const struct drm_plane_state *new_plane_state) argument
602 drm_atomic_plane_check(const struct drm_plane_state *old_plane_state, const struct drm_plane_state *new_plane_state) argument
1394 struct drm_plane_state *new_plane_state; local
[all...]
H A Ddrm_atomic_helper.c991 struct drm_plane_state *new_plane_state, *old_plane_state; local
994 for_each_oldnew_plane_in_state(state, plane, old_plane_state, new_plane_state, i) {
1001 drm_atomic_helper_plane_changed(state, old_plane_state, new_plane_state, plane);
1003 drm_atomic_helper_check_plane_damage(state, new_plane_state);
1301 struct drm_plane_state *new_plane_state; local
1306 new_plane_state =
1309 if (new_plane_state && new_plane_state->crtc == crtc) {
1310 crtc->x = new_plane_state->src_x >> 16;
1311 crtc->y = new_plane_state
1544 struct drm_plane_state *new_plane_state; local
1601 struct drm_plane_state *new_plane_state; local
1875 struct drm_plane_state *new_plane_state = NULL; local
2280 struct drm_plane_state *old_plane_state, *new_plane_state; local
2582 struct drm_plane_state *new_plane_state; local
2669 struct drm_plane_state *new_plane_state; local
2741 struct drm_plane_state *old_plane_state, *new_plane_state; local
2874 struct drm_plane_state *new_plane_state = local
3024 struct drm_plane_state *old_plane_state, *new_plane_state; local
3558 struct drm_plane_state *new_plane_state; local
[all...]
H A Ddrm_blend.c516 struct drm_plane_state *old_plane_state, *new_plane_state; local
519 for_each_oldnew_plane_in_state(state, plane, old_plane_state, new_plane_state, i) {
520 crtc = new_plane_state->crtc;
523 if (old_plane_state->zpos != new_plane_state->zpos) {
/linux-master/drivers/gpu/drm/arm/
H A Dhdlcd_crtc.c233 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, local
238 u32 src_h = new_plane_state->src_h >> 16;
249 if (!new_plane_state->fb && crtc_state->active)
251 return drm_atomic_helper_check_plane_state(new_plane_state,
264 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, local
266 struct drm_framebuffer *fb = new_plane_state->fb;
274 dest_h = drm_rect_height(&new_plane_state->dst);
275 scanout_start = drm_fb_dma_get_gem_addr(fb, new_plane_state, 0);
H A Dmalidp_planes.c495 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, local
498 struct malidp_plane_state *ms = to_malidp_plane_state(new_plane_state);
499 bool rotated = new_plane_state->rotation & MALIDP_ROTATED_MASK;
501 u16 pixel_alpha = new_plane_state->pixel_blend_mode;
505 if (!new_plane_state->crtc || WARN_ON(!new_plane_state->fb))
508 fb = new_plane_state->fb;
534 if ((new_plane_state->src_x >> 16) % block_w || (new_plane_state->src_y >> 16) % block_h) {
539 if ((new_plane_state
[all...]
/linux-master/drivers/gpu/drm/vc4/
H A Dvc4_plane.c1287 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, local
1289 struct vc4_plane_state *vc4_state = to_vc4_plane_state(new_plane_state);
1294 if (!plane_enabled(new_plane_state))
1297 ret = vc4_plane_mode_set(plane, new_plane_state);
1301 return vc4_plane_allocate_lbm(new_plane_state);
1379 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, local
1387 swap(plane->state->fb, new_plane_state->fb);
1388 plane->state->crtc_x = new_plane_state->crtc_x;
1389 plane->state->crtc_y = new_plane_state->crtc_y;
1390 plane->state->crtc_w = new_plane_state
1455 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, local
[all...]
/linux-master/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, local
60 struct drm_framebuffer *fb = new_plane_state->fb;
61 struct drm_crtc *crtc = new_plane_state->crtc;
63 u32 src_w = new_plane_state->src_w >> 16;
64 u32 src_h = new_plane_state->src_h >> 16;
73 if (src_w != new_plane_state->crtc_w || src_h != new_plane_state->crtc_h) {
78 if (new_plane_state->crtc_x < 0 || new_plane_state->crtc_y < 0) {
86 if (new_plane_state
[all...]
/linux-master/drivers/gpu/drm/sti/
H A Dsti_cursor.c187 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, local
191 struct drm_crtc *crtc = new_plane_state->crtc;
192 struct drm_framebuffer *fb = new_plane_state->fb;
204 dst_x = new_plane_state->crtc_x;
205 dst_y = new_plane_state->crtc_y;
206 dst_w = clamp_val(new_plane_state->crtc_w, 0,
208 dst_h = clamp_val(new_plane_state->crtc_h, 0,
211 src_w = new_plane_state->src_w >> 16;
212 src_h = new_plane_state->src_h >> 16;
/linux-master/drivers/gpu/drm/vkms/
H A Dvkms_plane.c137 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, local
142 if (!new_plane_state->fb || WARN_ON(!new_plane_state->crtc))
146 new_plane_state->crtc);
150 ret = drm_atomic_helper_check_plane_state(new_plane_state, crtc_state,
/linux-master/drivers/gpu/drm/ingenic/
H A Dingenic-ipu.c572 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, local
576 struct drm_crtc *crtc = new_plane_state->crtc ?: old_plane_state->crtc;
592 if (!old_plane_state->crtc ^ !new_plane_state->crtc)
595 if (!new_plane_state->crtc ||
600 if (new_plane_state->crtc_x < 0 || new_plane_state->crtc_y < 0 ||
601 new_plane_state->crtc_x + new_plane_state->crtc_w > crtc_state->mode.hdisplay ||
602 new_plane_state->crtc_y + new_plane_state
[all...]
/linux-master/drivers/gpu/drm/arm/display/komeda/
H A Dkomeda_plane.c74 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, local
77 struct komeda_plane_state *kplane_st = to_kplane_st(new_plane_state);
84 if (!new_plane_state->crtc || !new_plane_state->fb)
88 new_plane_state->crtc);
100 err = komeda_plane_init_data_flow(new_plane_state, kcrtc_st, &dflow);
/linux-master/drivers/gpu/drm/fsl-dcu/
H A Dfsl_dcu_drm_plane.c40 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, local
42 struct drm_framebuffer *fb = new_plane_state->fb;
44 if (!new_plane_state->fb || !new_plane_state->crtc)

Completed in 212 milliseconds

123