Lines Matching refs:primary
1314 struct drm_plane *plane, *primary = NULL; in tegra_dc_add_shared_planes() local
1334 if (!primary) { in tegra_dc_add_shared_planes()
1336 primary = plane; in tegra_dc_add_shared_planes()
1342 return primary; in tegra_dc_add_shared_planes()
1348 struct drm_plane *planes[2], *primary; in tegra_dc_add_planes() local
1353 primary = tegra_primary_plane_create(drm, dc); in tegra_dc_add_planes()
1354 if (IS_ERR(primary)) in tegra_dc_add_planes()
1355 return primary; in tegra_dc_add_planes()
1371 primary->funcs->destroy(primary); in tegra_dc_add_planes()
1376 return primary; in tegra_dc_add_planes()
1721 struct drm_minor *minor = crtc->dev->primary; in tegra_dc_late_register()
1747 struct drm_minor *minor = crtc->dev->primary; in tegra_dc_early_unregister()
2602 struct drm_plane *primary = NULL; in tegra_dc_init() local
2640 primary = tegra_dc_add_shared_planes(drm, dc); in tegra_dc_init()
2642 primary = tegra_dc_add_planes(drm, dc); in tegra_dc_init()
2644 if (IS_ERR(primary)) { in tegra_dc_init()
2645 err = PTR_ERR(primary); in tegra_dc_init()
2664 err = drm_crtc_init_with_planes(drm, &dc->base, primary, cursor, in tegra_dc_init()
2710 if (!IS_ERR(primary)) in tegra_dc_init()
2711 drm_plane_cleanup(primary); in tegra_dc_init()