Lines Matching refs:primary
102 * creating the primary plane. However drivers that still call
112 struct drm_plane *primary;
115 primary = kzalloc(sizeof(*primary), GFP_KERNEL);
116 if (primary == NULL) {
117 DRM_DEBUG_KMS("Failed to allocate primary plane\n");
125 primary->format_default = true;
128 ret = drm_universal_plane_init(dev, primary, 0,
135 kfree(primary);
136 primary = NULL;
139 return primary;
148 * Initialize a CRTC object with a default helper-provided primary plane and no
158 * 5. The primary plane must always be on if the CRTC is enabled.
161 * should instead implement their own primary plane. Atomic drivers must do so.
172 struct drm_plane *primary;
174 primary = create_primary_plane(dev);
175 return drm_crtc_init_with_planes(dev, crtc, primary, NULL, funcs,