Lines Matching defs:plane
54 static int zynqmp_dpsub_plane_atomic_check(struct drm_plane *plane,
58 plane);
75 static void zynqmp_dpsub_plane_atomic_disable(struct drm_plane *plane,
79 plane);
80 struct zynqmp_dpsub *dpsub = to_zynqmp_dpsub(plane->dev);
81 struct zynqmp_disp_layer *layer = dpsub->layers[plane->index];
88 if (plane->index == ZYNQMP_DPSUB_LAYER_GFX)
90 plane->state->alpha >> 8);
93 static void zynqmp_dpsub_plane_atomic_update(struct drm_plane *plane,
96 struct drm_plane_state *old_state = drm_atomic_get_old_plane_state(state, plane);
97 struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state, plane);
98 struct zynqmp_dpsub *dpsub = to_zynqmp_dpsub(plane->dev);
99 struct zynqmp_disp_layer *layer = dpsub->layers[plane->index];
109 * plane first if needed.
120 if (plane->index == ZYNQMP_DPSUB_LAYER_GFX)
122 plane->state->alpha >> 8);
124 /* Enable or re-enable the plane if the format has changed. */
151 struct drm_plane *plane = &dpsub->drm->planes[i];
163 ret = drm_universal_plane_init(&dpsub->drm->dev, plane, 0,
171 drm_plane_helper_add(plane, &zynqmp_dpsub_plane_helper_funcs);
173 drm_plane_create_zpos_immutable_property(plane, i);
175 drm_plane_create_alpha_property(plane);
223 * Disable the plane if active. The old plane state can be NULL in the
224 * .shutdown() path if the plane is already disabled, skip
315 struct drm_plane *plane = &dpsub->drm->planes[ZYNQMP_DPSUB_LAYER_GFX];
319 ret = drm_crtc_init_with_planes(&dpsub->drm->dev, crtc, plane,