Lines Matching refs:plane
198 struct drm_plane *plane = state->planes[i].ptr;
200 if (!plane)
203 plane->funcs->atomic_destroy_state(plane,
458 * drm_atomic_get_plane_state - get plane state
460 * @plane: plane to get state object for
462 * This function returns the plane state for the given plane, allocating it if
463 * needed. It will also grab the relevant plane lock to make sure that the state
474 struct drm_plane *plane)
476 int ret, index = drm_plane_index(plane);
482 WARN_ON(plane->fb);
483 WARN_ON(plane->old_fb);
484 WARN_ON(plane->crtc);
486 plane_state = drm_atomic_get_existing_plane_state(state, plane);
490 ret = drm_modeset_lock(&plane->mutex, state->acquire_ctx);
494 plane_state = plane->funcs->atomic_duplicate_state(plane);
499 state->planes[index].ptr = plane;
500 state->planes[index].old_state = plane->state;
505 plane->base.id, plane->name, plane_state, state);
532 * advantage of more direct plane switching without the intermediate
539 * drm_atomic_plane_check - check plane state
540 * @old_plane_state: old plane state to check
541 * @new_plane_state: new plane state to check
543 * Provides core sanity checks for plane state.
551 struct drm_plane *plane = new_plane_state->plane;
562 plane->base.id, plane->name);
566 plane->base.id, plane->name);
574 /* Check whether this plane is usable on this CRTC */
575 if (!(plane->possible_crtcs & drm_crtc_mask(crtc))) {
578 plane->base.id, plane->name);
582 /* Check whether this plane supports the fb pixel format. */
583 ret = drm_plane_check_pixel_format(plane, fb->format->format,
589 plane->base.id, plane->name,
602 plane->base.id, plane->name,
618 plane->base.id, plane->name,
643 plane->base.id, plane->name, clips->x1,
653 plane->base.id, plane->name);
663 struct drm_plane *plane = state->plane;
667 drm_printf(p, "plane[%u]: %s\n", plane->base.id, plane->name);
681 if (plane->funcs->atomic_print_state)
682 plane->funcs->atomic_print_state(p, state);
1215 * when an atomic commit also needs to check all currently enabled plane on
1219 * Since acquiring a plane state will always also acquire the w/w mutex of the
1220 * current CRTC for that plane (if there is any) adding all the plane states for
1234 struct drm_plane *plane;
1241 drm_for_each_plane_mask(plane, state->dev, old_crtc_state->plane_mask) {
1243 drm_atomic_get_plane_state(state, plane);
1267 struct drm_plane *plane;
1279 for_each_oldnew_plane_in_state(state, plane, old_plane_state, new_plane_state, i) {
1283 plane->base.id, plane->name);
1389 int __drm_atomic_helper_disable_plane(struct drm_plane *plane,
1559 struct drm_plane *plane;
1569 for_each_new_plane_in_state(state, plane, plane_state, i)
1583 struct drm_plane *plane;
1591 list_for_each_entry(plane, &config->plane_list, head) {
1593 drm_modeset_lock(&plane->mutex, NULL);
1594 drm_atomic_plane_print_state(p, plane->state);
1596 drm_modeset_unlock(&plane->mutex);