Lines Matching refs:restore_state
58 struct drm_atomic_state *state = NULL, *restore_state = NULL; in intel_load_detect_get_pipe() local
122 restore_state = drm_atomic_state_alloc(display->drm); in intel_load_detect_get_pipe()
123 if (!state || !restore_state) { in intel_load_detect_get_pipe()
131 restore_state->acquire_ctx = ctx; in intel_load_detect_get_pipe()
132 to_intel_atomic_state(restore_state)->internal = true; in intel_load_detect_get_pipe()
161 ret = PTR_ERR_OR_ZERO(drm_atomic_get_connector_state(restore_state, connector)); in intel_load_detect_get_pipe()
163 ret = PTR_ERR_OR_ZERO(drm_atomic_get_crtc_state(restore_state, &crtc->base)); in intel_load_detect_get_pipe()
165 ret = drm_atomic_add_affected_planes(restore_state, &crtc->base); in intel_load_detect_get_pipe()
185 return restore_state; in intel_load_detect_get_pipe()
192 if (restore_state) { in intel_load_detect_get_pipe()
193 drm_atomic_state_put(restore_state); in intel_load_detect_get_pipe()
194 restore_state = NULL; in intel_load_detect_get_pipe()