Lines Matching refs:plane

117 	struct nv50_disp *disp = nv50_disp(wndw->plane.dev);
182 struct nv50_disp *disp = nv50_disp(wndw->plane.dev);
198 struct nouveau_drm *drm = nouveau_drm(wndw->plane.dev);
199 NV_ATOMIC(drm, "%s release\n", wndw->plane.name);
275 struct nouveau_drm *drm = nouveau_drm(wndw->plane.dev);
280 NV_ATOMIC(drm, "%s acquire\n", wndw->plane.name);
437 nv50_wndw_atomic_check(struct drm_plane *plane,
441 plane);
442 struct nouveau_drm *drm = nouveau_drm(plane->dev);
443 struct nv50_wndw *wndw = nv50_wndw(plane);
444 struct nv50_wndw_atom *armw = nv50_wndw_atom(wndw->plane.state);
450 NV_ATOMIC(drm, "%s atomic_check\n", plane->name);
518 nv50_wndw_cleanup_fb(struct drm_plane *plane, struct drm_plane_state *old_state)
520 struct nouveau_drm *drm = nouveau_drm(plane->dev);
523 NV_ATOMIC(drm, "%s cleanup: %p\n", plane->name, old_state->fb);
532 nv50_wndw_prepare_fb(struct drm_plane *plane, struct drm_plane_state *state)
535 struct nouveau_drm *drm = nouveau_drm(plane->dev);
536 struct nv50_wndw *wndw = nv50_wndw(plane);
543 NV_ATOMIC(drm, "%s prepare: %p\n", plane->name, fb);
563 ret = drm_gem_plane_helper_prepare_fb(plane, state);
588 nv50_wndw_atomic_destroy_state(struct drm_plane *plane,
597 nv50_wndw_atomic_duplicate_state(struct drm_plane *plane)
599 struct nv50_wndw_atom *armw = nv50_wndw_atom(plane->state);
603 __drm_atomic_helper_plane_duplicate_state(plane, &asyw->state);
617 nv50_wndw_zpos_default(struct drm_plane *plane)
619 return (plane->type == DRM_PLANE_TYPE_PRIMARY) ? 0 :
620 (plane->type == DRM_PLANE_TYPE_OVERLAY) ? 1 : 255;
624 nv50_wndw_reset(struct drm_plane *plane)
631 if (plane->state)
632 plane->funcs->atomic_destroy_state(plane, plane->state);
634 __drm_atomic_helper_plane_reset(plane, &asyw->state);
638 nv50_wndw_destroy(struct drm_plane *plane)
640 struct nv50_wndw *wndw = nv50_wndw(plane);
652 drm_plane_cleanup(&wndw->plane);
656 /* This function assumes the format has already been validated against the plane
660 static bool nv50_plane_format_mod_supported(struct drm_plane *plane,
663 struct nouveau_drm *drm = nouveau_drm(plane->dev);
727 ret = drm_universal_plane_init(dev, &wndw->plane, heads, &nv50_wndw, format, nformat,
735 drm_plane_helper_add(&wndw->plane, &nv50_wndw_helper);
744 ret = drm_plane_create_zpos_property(&wndw->plane,
745 nv50_wndw_zpos_default(&wndw->plane), 0, 254);
749 ret = drm_plane_create_alpha_property(&wndw->plane);
753 ret = drm_plane_create_blend_mode_property(&wndw->plane,
760 ret = drm_plane_create_zpos_immutable_property(&wndw->plane,
761 nv50_wndw_zpos_default(&wndw->plane));