Lines Matching refs:commit

1486 			else if (funcs->commit)  in drm_atomic_helper_commit_modeset_enables()
1487 funcs->commit(crtc); in drm_atomic_helper_commit_modeset_enables()
1521 else if (funcs->commit) in drm_atomic_helper_commit_modeset_enables()
1522 funcs->commit(encoder); in drm_atomic_helper_commit_modeset_enables()
1709 struct drm_crtc_commit *commit = old_state->crtcs[i].commit; in drm_atomic_helper_wait_for_flip_done() local
1714 if (!crtc || !commit) in drm_atomic_helper_wait_for_flip_done()
1717 ret = wait_for_completion_timeout(&commit->flip_done, 10 * HZ); in drm_atomic_helper_wait_for_flip_done()
1920 if (old_plane_state->commit && in drm_atomic_helper_async_check()
1921 !try_wait_for_completion(&old_plane_state->commit->hw_done)) { in drm_atomic_helper_async_check()
2135 struct drm_crtc_commit *commit, *stall_commit = NULL; in stall_checks() local
2142 list_for_each_entry(commit, &crtc->commit_list, commit_entry) { in stall_checks()
2144 completed = try_wait_for_completion(&commit->flip_done); in stall_checks()
2158 stall_commit = drm_crtc_commit_get(commit); in stall_checks()
2185 struct drm_crtc_commit *commit = container_of(completion, in release_crtc_commit() local
2186 typeof(*commit), in release_crtc_commit()
2189 drm_crtc_commit_put(commit); in release_crtc_commit()
2192 static void init_commit(struct drm_crtc_commit *commit, struct drm_crtc *crtc) in init_commit() argument
2194 init_completion(&commit->flip_done); in init_commit()
2195 init_completion(&commit->hw_done); in init_commit()
2196 init_completion(&commit->cleanup_done); in init_commit()
2197 INIT_LIST_HEAD(&commit->commit_entry); in init_commit()
2198 kref_init(&commit->ref); in init_commit()
2199 commit->crtc = crtc; in init_commit()
2210 return new_crtc_state->commit; in crtc_or_fake_commit()
2279 struct drm_crtc_commit *commit; in drm_atomic_helper_setup_commit() local
2286 commit = kzalloc(sizeof(*commit), GFP_KERNEL); in drm_atomic_helper_setup_commit()
2287 if (!commit) in drm_atomic_helper_setup_commit()
2290 init_commit(commit, crtc); in drm_atomic_helper_setup_commit()
2292 new_crtc_state->commit = commit; in drm_atomic_helper_setup_commit()
2304 complete_all(&commit->flip_done); in drm_atomic_helper_setup_commit()
2310 complete_all(&commit->flip_done); in drm_atomic_helper_setup_commit()
2315 commit->event = kzalloc(sizeof(*commit->event), in drm_atomic_helper_setup_commit()
2317 if (!commit->event) in drm_atomic_helper_setup_commit()
2320 new_crtc_state->event = commit->event; in drm_atomic_helper_setup_commit()
2323 new_crtc_state->event->base.completion = &commit->flip_done; in drm_atomic_helper_setup_commit()
2325 drm_crtc_commit_get(commit); in drm_atomic_helper_setup_commit()
2327 commit->abort_completion = true; in drm_atomic_helper_setup_commit()
2329 state->crtcs[i].commit = commit; in drm_atomic_helper_setup_commit()
2330 drm_crtc_commit_get(commit); in drm_atomic_helper_setup_commit()
2338 if (nonblock && old_conn_state->commit && in drm_atomic_helper_setup_commit()
2339 !try_wait_for_completion(&old_conn_state->commit->flip_done)) { in drm_atomic_helper_setup_commit()
2348 commit = crtc_or_fake_commit(state, new_conn_state->crtc ?: old_conn_state->crtc); in drm_atomic_helper_setup_commit()
2349 if (!commit) in drm_atomic_helper_setup_commit()
2352 new_conn_state->commit = drm_crtc_commit_get(commit); in drm_atomic_helper_setup_commit()
2360 if (nonblock && old_plane_state->commit && in drm_atomic_helper_setup_commit()
2361 !try_wait_for_completion(&old_plane_state->commit->flip_done)) { in drm_atomic_helper_setup_commit()
2370 commit = crtc_or_fake_commit(state, new_plane_state->crtc ?: old_plane_state->crtc); in drm_atomic_helper_setup_commit()
2371 if (!commit) in drm_atomic_helper_setup_commit()
2374 new_plane_state->commit = drm_crtc_commit_get(commit); in drm_atomic_helper_setup_commit()
2408 ret = drm_crtc_commit_wait(old_crtc_state->commit); in drm_atomic_helper_wait_for_dependencies()
2416 ret = drm_crtc_commit_wait(old_conn_state->commit); in drm_atomic_helper_wait_for_dependencies()
2424 ret = drm_crtc_commit_wait(old_plane_state->commit); in drm_atomic_helper_wait_for_dependencies()
2493 struct drm_crtc_commit *commit; in drm_atomic_helper_commit_hw_done() local
2497 commit = new_crtc_state->commit; in drm_atomic_helper_commit_hw_done()
2498 if (!commit) in drm_atomic_helper_commit_hw_done()
2506 if (old_crtc_state->commit) in drm_atomic_helper_commit_hw_done()
2507 drm_crtc_commit_put(old_crtc_state->commit); in drm_atomic_helper_commit_hw_done()
2509 old_crtc_state->commit = drm_crtc_commit_get(commit); in drm_atomic_helper_commit_hw_done()
2513 complete_all(&commit->hw_done); in drm_atomic_helper_commit_hw_done()
2538 struct drm_crtc_commit *commit; in drm_atomic_helper_commit_cleanup_done() local
2542 commit = old_crtc_state->commit; in drm_atomic_helper_commit_cleanup_done()
2543 if (WARN_ON(!commit)) in drm_atomic_helper_commit_cleanup_done()
2546 complete_all(&commit->cleanup_done); in drm_atomic_helper_commit_cleanup_done()
2547 WARN_ON(!try_wait_for_completion(&commit->hw_done)); in drm_atomic_helper_commit_cleanup_done()
2550 list_del(&commit->commit_entry); in drm_atomic_helper_commit_cleanup_done()
3023 struct drm_crtc_commit *commit; in drm_atomic_helper_swap_state() local
3038 commit = old_crtc_state->commit; in drm_atomic_helper_swap_state()
3040 if (!commit) in drm_atomic_helper_swap_state()
3043 ret = wait_for_completion_interruptible(&commit->hw_done); in drm_atomic_helper_swap_state()
3049 commit = old_conn_state->commit; in drm_atomic_helper_swap_state()
3051 if (!commit) in drm_atomic_helper_swap_state()
3054 ret = wait_for_completion_interruptible(&commit->hw_done); in drm_atomic_helper_swap_state()
3060 commit = old_plane_state->commit; in drm_atomic_helper_swap_state()
3062 if (!commit) in drm_atomic_helper_swap_state()
3065 ret = wait_for_completion_interruptible(&commit->hw_done); in drm_atomic_helper_swap_state()
3090 if (new_crtc_state->commit) { in drm_atomic_helper_swap_state()
3092 list_add(&new_crtc_state->commit->commit_entry, in drm_atomic_helper_swap_state()
3096 new_crtc_state->commit->event = NULL; in drm_atomic_helper_swap_state()