Lines Matching refs:restore_state
57 struct drm_atomic_state *state = NULL, *restore_state = NULL; in intel_load_detect_get_pipe() local
121 restore_state = drm_atomic_state_alloc(display->drm); in intel_load_detect_get_pipe()
122 if (!state || !restore_state) { in intel_load_detect_get_pipe()
130 restore_state->acquire_ctx = ctx; in intel_load_detect_get_pipe()
131 to_intel_atomic_state(restore_state)->internal = true; in intel_load_detect_get_pipe()
160 ret = PTR_ERR_OR_ZERO(drm_atomic_get_connector_state(restore_state, connector)); in intel_load_detect_get_pipe()
162 ret = PTR_ERR_OR_ZERO(drm_atomic_get_crtc_state(restore_state, &crtc->base)); in intel_load_detect_get_pipe()
164 ret = drm_atomic_add_affected_planes(restore_state, &crtc->base); in intel_load_detect_get_pipe()
184 return restore_state; in intel_load_detect_get_pipe()
191 if (restore_state) { in intel_load_detect_get_pipe()
192 drm_atomic_state_put(restore_state); in intel_load_detect_get_pipe()
193 restore_state = NULL; in intel_load_detect_get_pipe()