Lines Matching refs:state
47 struct drm_plane_state *state = plane->state;
51 DBG("%s, crtc=%p fb=%p", omap_plane->name, state->crtc, state->fb);
56 info.global_alpha = state->alpha >> 8;
57 info.zorder = state->normalized_zpos;
58 if (state->pixel_blend_mode == DRM_MODE_BLEND_PREMULTI)
64 omap_framebuffer_update_scanout(state->fb, state, &info);
74 omap_crtc_timings(state->crtc), false,
75 omap_crtc_channel(state->crtc));
92 plane->state->rotation = DRM_MODE_ROTATE_0;
93 plane->state->zpos = plane->type == DRM_PLANE_TYPE_PRIMARY
100 struct drm_plane_state *state)
104 if (!state->fb)
107 /* crtc should only be NULL when disabling (i.e., !state->fb) */
108 if (WARN_ON(!state->crtc))
111 crtc_state = drm_atomic_get_existing_crtc_state(state->state, state->crtc);
112 /* we should have a crtc state if the plane is attached to a crtc */
119 if (state->crtc_x < 0 || state->crtc_y < 0)
122 if (state->crtc_x + state->crtc_w > crtc_state->adjusted_mode.hdisplay)
125 if (state->crtc_y + state->crtc_h > crtc_state->adjusted_mode.vdisplay)
128 if (state->rotation != DRM_MODE_ROTATE_0 &&
129 !omap_framebuffer_supports_rotation(state->fb))
183 if (!plane->state)
190 plane->state->zpos = plane->type == DRM_PLANE_TYPE_PRIMARY
195 struct drm_plane_state *state,
202 state->zpos = val;
210 const struct drm_plane_state *state,
217 *val = state->zpos;