Lines Matching refs:state
24 struct drm_plane_state *state)
27 struct drm_plane_state *old_state = plane->state;
30 if (!state->crtc)
33 if (WARN_ON(!state->fb))
36 if (state->crtc_x || state->crtc_y) {
42 crtc_state = drm_atomic_get_existing_crtc_state(state->state,
43 state->crtc);
44 /* we should have a crtc state if the plane is attached to a crtc */
48 if (crtc_state->mode.hdisplay != state->crtc_w ||
49 crtc_state->mode.vdisplay != state->crtc_h) {
53 state->crtc_w, state->crtc_h);
58 state->fb->format->cpp[0];
59 if (state->fb->pitches[0] != pitch) {
65 if (old_state->fb && state->fb->format != old_state->fb->format) {
78 struct drm_plane_state *state = plane->state;
80 if (!state->crtc)
83 if (WARN_ON(!state->fb || !state->crtc->state))
86 if (tilcdc_crtc_update_fb(state->crtc,
87 state->fb,
88 state->crtc->state->event) == 0) {
89 state->crtc->state->event = NULL;