Lines Matching refs:state

49 	const struct drm_display_mode *mode = &crtc->crtc.state->adjusted_mode;
119 struct rzg2l_du_vsp_plane_state *state =
120 to_rzg2l_vsp_plane_state(plane->plane.state);
121 struct rzg2l_du_crtc *crtc = to_rzg2l_crtc(state->state.crtc);
122 struct drm_framebuffer *fb = plane->plane.state->fb;
127 .alpha = state->state.alpha >> 8,
128 .zpos = state->state.zpos,
130 u32 fourcc = state->format->fourcc;
133 cfg.src.left = state->state.src.x1 >> 16;
134 cfg.src.top = state->state.src.y1 >> 16;
135 cfg.src.width = drm_rect_width(&state->state.src) >> 16;
136 cfg.src.height = drm_rect_height(&state->state.src) >> 16;
138 cfg.dst.left = state->state.dst.x1;
139 cfg.dst.top = state->state.dst.y1;
140 cfg.dst.width = drm_rect_width(&state->state.dst);
141 cfg.dst.height = drm_rect_height(&state->state.dst);
143 for (i = 0; i < state->format->planes; ++i) {
150 if (state->state.pixel_blend_mode == DRM_MODE_BLEND_PIXEL_NONE) {
169 cfg.premult = state->state.pixel_blend_mode == DRM_MODE_BLEND_PREMULTI;
176 struct drm_plane_state *state,
182 if (!state->crtc) {
188 state->visible = false;
193 crtc_state = drm_atomic_get_crtc_state(state->state, state->crtc);
197 ret = drm_atomic_helper_check_plane_state(state, crtc_state,
204 if (!state->visible) {
209 *format = rzg2l_du_format_info(state->fb->format->format);
215 struct drm_atomic_state *state)
217 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state,
225 struct drm_atomic_state *state)
227 struct drm_plane_state *old_state = drm_atomic_get_old_plane_state(state, plane);
228 struct drm_plane_state *new_state = drm_atomic_get_new_plane_state(state, plane);
249 if (WARN_ON(!plane->state))
256 __drm_atomic_helper_plane_duplicate_state(plane, &copy->state);
258 return &copy->state;
262 struct drm_plane_state *state)
264 __drm_atomic_helper_plane_destroy_state(state);
265 kfree(to_rzg2l_vsp_plane_state(state));
270 struct rzg2l_du_vsp_plane_state *state;
272 if (plane->state) {
273 rzg2l_du_vsp_plane_atomic_destroy_state(plane, plane->state);
274 plane->state = NULL;
277 state = kzalloc(sizeof(*state), GFP_KERNEL);
278 if (!state)
281 __drm_atomic_helper_plane_reset(plane, &state->state);