Lines Matching refs:state
24 struct drm_atomic_state *state; member
62 static struct msm_commit *commit_init(struct drm_atomic_state *state) in commit_init() argument
69 c->dev = state->dev; in commit_init()
70 c->state = state; in commit_init()
102 if (!crtc->state->enable) in msm_atomic_wait_for_commit_done()
119 struct drm_atomic_state *state = c->state; in complete_commit() local
120 struct drm_device *dev = state->dev; in complete_commit()
124 kms->funcs->prepare_commit(kms, state); in complete_commit()
126 drm_atomic_helper_commit_modeset_disables(dev, state); in complete_commit()
128 drm_atomic_helper_commit_planes(dev, state, false); in complete_commit()
130 drm_atomic_helper_commit_modeset_enables(dev, state); in complete_commit()
145 msm_atomic_wait_for_commit_done(dev, state); in complete_commit()
147 drm_atomic_helper_cleanup_planes(dev, state); in complete_commit()
149 kms->funcs->complete_commit(kms, state); in complete_commit()
151 drm_atomic_state_free(state); in complete_commit()
170 struct drm_atomic_state *state) in msm_atomic_check() argument
178 ret = drm_atomic_helper_check_planes(dev, state); in msm_atomic_check()
182 ret = drm_atomic_helper_check_modeset(dev, state); in msm_atomic_check()
203 struct drm_atomic_state *state, bool async) in msm_atomic_commit() argument
211 ret = drm_atomic_helper_prepare_planes(dev, state); in msm_atomic_commit()
215 c = commit_init(state); in msm_atomic_commit()
225 struct drm_crtc *crtc = state->crtcs[i]; in msm_atomic_commit()
235 struct drm_plane *plane = state->planes[i]; in msm_atomic_commit()
236 struct drm_plane_state *new_state = state->plane_states[i]; in msm_atomic_commit()
241 if ((plane->state->fb != new_state->fb) && new_state->fb) in msm_atomic_commit()
261 drm_atomic_helper_swap_state(dev, state); in msm_atomic_commit()
294 drm_atomic_helper_cleanup_planes(dev, state); in msm_atomic_commit()