Lines Matching refs:state

32 				       struct drm_plane_state *state)
36 offset += fb->format->cpp[0] * (state->src_x >> 16);
37 offset += fb->pitches[0] * (state->src_y >> 16);
51 struct drm_atomic_state *state)
53 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, plane);
60 new_crtc_state = drm_atomic_get_new_crtc_state(state, crtc);
70 struct drm_atomic_state *state)
74 struct drm_plane_state *old_plane_state = drm_atomic_get_old_plane_state(state, plane);
75 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, plane);
90 struct drm_atomic_state *state)
175 struct drm_atomic_state *state)
180 new_state = drm_atomic_get_new_plane_state(state, plane);
182 if (!plane->state || !plane->state->fb) {
183 drm_dbg(plane->dev, "%s: state is NULL\n", plane->name);
199 crtc_state = drm_atomic_get_existing_crtc_state(state, new_state->crtc);
203 if (plane->state->crtc != new_state->crtc ||
204 plane->state->src_w != new_state->src_w ||
205 plane->state->src_h != new_state->src_h ||
206 plane->state->crtc_w != new_state->crtc_w ||
207 plane->state->crtc_h != new_state->crtc_h)
210 if (new_state->visible != plane->state->visible)
213 return drm_atomic_helper_check_plane_state(plane->state,
221 struct drm_atomic_state *state)
225 struct drm_framebuffer *old_fb = plane->state->fb;
229 new_state = drm_atomic_get_new_plane_state(state, plane);
231 new_fb = plane->state->fb;
233 plane->state->crtc_x = new_state->crtc_x;
234 plane->state->crtc_y = new_state->crtc_y;
235 plane->state->crtc_h = new_state->crtc_h;
236 plane->state->crtc_w = new_state->crtc_w;
237 plane->state->src_x = new_state->src_x;
238 plane->state->src_y = new_state->src_y;
239 plane->state->src_h = new_state->src_h;
240 plane->state->src_w = new_state->src_w;
241 swap(plane->state->fb, new_state->fb);
270 struct drm_atomic_state *state)
276 new_plane_state = drm_atomic_get_new_plane_state(state, plane);
290 new_crtc_state = drm_atomic_get_new_crtc_state(state, crtc);
300 struct drm_atomic_state *state)
303 struct drm_plane_state *old_plane_state = drm_atomic_get_old_plane_state(state, plane);
304 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, plane);
322 struct drm_atomic_state *state)
343 struct drm_atomic_state *state)
349 new_plane_state = drm_atomic_get_new_plane_state(state, plane);
369 new_crtc_state = drm_atomic_get_new_crtc_state(state, crtc);
381 struct drm_atomic_state *state)
384 struct drm_plane_state *old_plane_state = drm_atomic_get_old_plane_state(state, plane);
385 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, plane);
418 struct drm_atomic_state *state)
437 const struct drm_plane_state *state)
439 struct drm_framebuffer *fb = state->fb;
566 * Update location, format, enable and disable state of the cursor,