Lines Matching defs:state
50 struct drm_atomic_state *state)
82 struct drm_atomic_state *state)
84 struct drm_crtc_state *old_crtc_state = drm_atomic_get_old_crtc_state(state,
93 * attached IDMACs will be left in undefined state, possibly hanging
103 if (crtc->state->event && !crtc->state->active) {
104 drm_crtc_send_vblank_event(crtc, crtc->state->event);
105 crtc->state->event = NULL;
112 struct imx_crtc_state *state;
114 if (crtc->state)
115 __drm_atomic_helper_crtc_destroy_state(crtc->state);
117 kfree(to_imx_crtc_state(crtc->state));
118 crtc->state = NULL;
120 state = kzalloc(sizeof(*state), GFP_KERNEL);
121 if (state)
122 __drm_atomic_helper_crtc_reset(crtc, &state->base);
127 struct imx_crtc_state *state;
129 state = kzalloc(sizeof(*state), GFP_KERNEL);
130 if (!state)
133 __drm_atomic_helper_crtc_duplicate_state(crtc, &state->base);
135 WARN_ON(state->base.crtc != crtc);
136 state->base.crtc = crtc;
138 return &state->base;
142 struct drm_crtc_state *state)
144 __drm_atomic_helper_crtc_destroy_state(state);
145 kfree(to_imx_crtc_state(state));
229 struct drm_atomic_state *state)
231 struct drm_crtc_state *crtc_state = drm_atomic_get_new_crtc_state(state,
242 struct drm_atomic_state *state)
248 struct drm_atomic_state *state)
251 if (crtc->state->event) {
255 ipu_crtc->event = crtc->state->event;
256 crtc->state->event = NULL;
266 struct drm_display_mode *mode = &crtc->state->adjusted_mode;
267 struct imx_crtc_state *imx_crtc_state = to_imx_crtc_state(crtc->state);