Lines Matching defs:state
55 * @state: The driver state object.
56 * @plane_state: Plane state for which to verify damage.
58 * This helper function makes sure that damage from plane state is discarded
63 * Note that &drm_plane_state.fb_damage_clips == NULL in plane state means that
67 void drm_atomic_helper_check_plane_damage(struct drm_atomic_state *state,
73 crtc_state = drm_atomic_get_new_crtc_state(state,
115 struct drm_atomic_state *state;
126 state = drm_atomic_state_alloc(fb->dev);
127 if (!state) {
131 state->acquire_ctx = &ctx;
162 ret = drm_modeset_lock(&plane->mutex, state->acquire_ctx);
166 if (plane->state->fb != fb) {
171 plane_state = drm_atomic_get_plane_state(state, plane);
181 ret = drm_atomic_commit(state);
185 drm_atomic_state_clear(state);
193 drm_atomic_state_put(state);
207 * @old_state: Old plane state for validation.
208 * @state: Plane state from which to iterate the damage clips.
225 const struct drm_plane_state *state)
230 if (!state || !state->crtc || !state->fb || !state->visible)
233 iter->clips = (struct drm_rect *)drm_plane_get_damage_clips(state);
234 iter->num_clips = drm_plane_get_damage_clips_count(state);
237 src = drm_plane_state_src(state);
244 if (!iter->clips || state->ignore_damage_clips ||
245 !drm_rect_equals(&state->src, &old_state->src)) {
297 * @old_state: Old plane state for validation.
298 * @state: Plane state from which to iterate the damage clips.
311 struct drm_plane_state *state,
323 drm_atomic_helper_damage_iter_init(&iter, old_state, state);