Lines Matching refs:crtc_state
927 struct drm_crtc_state *crtc_state; in drm_helper_crtc_mode_set() local
932 crtc_state = crtc->funcs->atomic_duplicate_state(crtc); in drm_helper_crtc_mode_set()
937 crtc_state = drm_atomic_helper_crtc_duplicate_state(crtc); in drm_helper_crtc_mode_set()
940 if (!crtc_state) in drm_helper_crtc_mode_set()
943 crtc_state->planes_changed = true; in drm_helper_crtc_mode_set()
944 crtc_state->mode_changed = true; in drm_helper_crtc_mode_set()
945 ret = drm_atomic_set_mode_for_crtc(crtc_state, mode); in drm_helper_crtc_mode_set()
948 drm_mode_copy(&crtc_state->adjusted_mode, adjusted_mode); in drm_helper_crtc_mode_set()
951 ret = crtc_funcs->atomic_check(crtc, crtc_state); in drm_helper_crtc_mode_set()
956 swap(crtc->state, crtc_state); in drm_helper_crtc_mode_set()
963 if (crtc_state) { in drm_helper_crtc_mode_set()
965 crtc->funcs->atomic_destroy_state(crtc, crtc_state); in drm_helper_crtc_mode_set()
967 drm_atomic_helper_crtc_destroy_state(crtc, crtc_state); in drm_helper_crtc_mode_set()