Lines Matching defs:state
26 if (!crtc->state->active)
37 if (!crtc->state->active)
139 static bool can_do_async(struct drm_atomic_state *state,
148 if (!(state->legacy_cursor_update || state->async_update))
152 for_each_new_connector_in_state(state, connector, connector_state, i)
155 for_each_new_crtc_in_state(state, crtc, crtc_state, i) {
170 * effected crtcs without needing to preserve the atomic state.
172 static unsigned get_crtc_mask(struct drm_atomic_state *state)
178 for_each_new_crtc_in_state(state, crtc, crtc_state, i)
184 int msm_atomic_check(struct drm_device *dev, struct drm_atomic_state *state)
190 for_each_oldnew_crtc_in_state(state, crtc, old_crtc_state,
195 state->allow_modeset = true;
199 return drm_atomic_helper_check(dev, state);
202 void msm_atomic_commit_tail(struct drm_atomic_state *state)
204 struct drm_device *dev = state->dev;
208 unsigned crtc_mask = get_crtc_mask(state);
209 bool async = can_do_async(state, &async_crtc);
229 kms->funcs->prepare_commit(kms, state);
234 drm_atomic_helper_commit_modeset_disables(dev, state);
235 drm_atomic_helper_commit_planes(dev, state, 0);
236 drm_atomic_helper_commit_modeset_enables(dev, state);
270 drm_atomic_helper_commit_hw_done(state);
271 drm_atomic_helper_cleanup_planes(dev, state);
307 drm_atomic_helper_commit_hw_done(state);
308 drm_atomic_helper_cleanup_planes(dev, state);