Lines Matching refs:state

556 	WARN_ON(plane->state && !plane->funcs->atomic_destroy_state);
557 if (plane->state && plane->funcs->atomic_destroy_state)
558 plane->funcs->atomic_destroy_state(plane, plane->state);
633 * calls the driver's ->set_property callback and changes the software state of
721 if (plane->state && plane->state->crtc && drm_lease_held(file_priv, plane->state->crtc->base.id))
722 plane_resp->crtc_id = plane->state->crtc->base.id;
723 else if (!plane->state && plane->crtc && drm_lease_held(file_priv, plane->crtc->base.id))
728 if (plane->state && plane->state->fb)
729 plane_resp->fb_id = plane->state->fb->base.id;
730 else if (!plane->state && plane->fb)
1074 if (plane->state)
1075 fb = plane->state->fb;
1311 if (plane->state)
1312 old_fb = plane->state->fb;
1331 if (plane->state) {
1332 const struct drm_plane_state *state = plane->state;
1334 ret = drm_framebuffer_check_src_coords(state->src_x,
1335 state->src_y,
1336 state->src_w,
1337 state->src_h,
1394 if (!plane->state) {
1479 * @state: Plane state.
1487 drm_plane_get_damage_clips_count(const struct drm_plane_state *state)
1489 return (state && state->fb_damage_clips) ?
1490 state->fb_damage_clips->length/sizeof(struct drm_mode_rect) : 0;
1495 __drm_plane_get_damage_clips(const struct drm_plane_state *state)
1497 return (struct drm_mode_rect *)((state && state->fb_damage_clips) ?
1498 state->fb_damage_clips->data : NULL);
1503 * @state: Plane state.
1513 drm_plane_get_damage_clips(const struct drm_plane_state *state)
1515 struct drm_device *dev = state->plane->dev;
1519 if (!drm_mode_obj_find_prop_id(&state->plane->base,
1523 return __drm_plane_get_damage_clips(state);