Lines Matching refs:plane
66 * &drm_crtc_funcs.set_config, legacy plane operations, see
239 * @primary: Primary plane for CRTC
240 * @cursor: Cursor plane for CRTC
247 * planes). For really simple hardware which has only 1 plane look at
391 struct drm_plane *plane;
400 plane = crtc->primary;
404 drm_modeset_lock(&plane->mutex, NULL);
405 if (plane->state && plane->state->fb)
406 crtc_resp->fb_id = plane->state->fb->base.id;
407 else if (!plane->state && plane->fb)
408 crtc_resp->fb_id = plane->fb->base.id;
412 if (plane->state) {
413 crtc_resp->x = plane->state->src_x >> 16;
414 crtc_resp->y = plane->state->src_y >> 16;
416 drm_modeset_unlock(&plane->mutex);
461 struct drm_plane *plane = tmp->primary;
463 plane->old_fb = plane->fb;
470 struct drm_plane *plane = crtc->primary;
472 plane->crtc = fb ? crtc : NULL;
473 plane->fb = fb;
477 struct drm_plane *plane = tmp->primary;
479 if (plane->fb)
480 drm_framebuffer_get(plane->fb);
481 if (plane->old_fb)
482 drm_framebuffer_put(plane->old_fb);
483 plane->old_fb = NULL;
558 struct drm_plane *plane;
571 * Universal plane src offsets are only 16.16, prevent havoc for
572 * drivers using universal plane code internally.
584 plane = crtc->primary;
586 /* allow disabling with the primary plane leased */
587 if (crtc_req->mode_valid && !drm_lease_held(file_priv, plane->base.id))
599 if (plane->state)
600 old_fb = plane->state->fb;
602 old_fb = plane->fb;
645 * Check whether the primary plane supports the fb pixel format.
651 if (!plane->format_default) {
652 ret = drm_plane_check_pixel_format(plane,