Lines Matching defs:state
91 * attached IDMACs will be left in undefined state, possibly hanging
101 if (crtc->state->event && !crtc->state->active) {
102 drm_crtc_send_vblank_event(crtc, crtc->state->event);
103 crtc->state->event = NULL;
110 struct imx_crtc_state *state;
112 if (crtc->state)
113 __drm_atomic_helper_crtc_destroy_state(crtc->state);
115 kfree(to_imx_crtc_state(crtc->state));
116 crtc->state = NULL;
118 state = kzalloc(sizeof(*state), GFP_KERNEL);
119 if (state)
120 __drm_atomic_helper_crtc_reset(crtc, &state->base);
125 struct imx_crtc_state *state;
127 state = kzalloc(sizeof(*state), GFP_KERNEL);
128 if (!state)
131 __drm_atomic_helper_crtc_duplicate_state(crtc, &state->base);
133 WARN_ON(state->base.crtc != crtc);
134 state->base.crtc = crtc;
136 return &state->base;
140 struct drm_crtc_state *state)
142 __drm_atomic_helper_crtc_destroy_state(state);
143 kfree(to_imx_crtc_state(state));
228 struct drm_crtc_state *state)
232 if (state->active && (primary_plane_mask & state->plane_mask) == 0)
248 if (crtc->state->event) {
252 ipu_crtc->event = crtc->state->event;
253 crtc->state->event = NULL;
263 struct drm_display_mode *mode = &crtc->state->adjusted_mode;
264 struct imx_crtc_state *imx_crtc_state = to_imx_crtc_state(crtc->state);