Lines Matching defs:drm

18 #include <drm/drm_atomic.h>
19 #include <drm/drm_atomic_helper.h>
20 #include <drm/drm_debugfs.h>
21 #include <drm/drm_fourcc.h>
22 #include <drm/drm_plane_helper.h>
23 #include <drm/drm_vblank.h>
26 #include "drm.h"
764 static unsigned long tegra_plane_get_possible_crtcs(struct drm_device *drm)
778 return 1 << drm->mode_config.num_crtc;
781 static struct drm_plane *tegra_primary_plane_create(struct drm_device *drm,
784 unsigned long possible_crtcs = tegra_plane_get_possible_crtcs(drm);
805 err = drm_universal_plane_init(drm, &plane->base, possible_crtcs,
955 static struct drm_plane *tegra_dc_cursor_plane_create(struct drm_device *drm,
958 unsigned long possible_crtcs = tegra_plane_get_possible_crtcs(drm);
981 err = drm_universal_plane_init(drm, &plane->base, possible_crtcs,
1072 static struct drm_plane *tegra_dc_overlay_plane_create(struct drm_device *drm,
1077 unsigned long possible_crtcs = tegra_plane_get_possible_crtcs(drm);
1100 err = drm_universal_plane_init(drm, &plane->base, possible_crtcs,
1125 static struct drm_plane *tegra_dc_add_shared_planes(struct drm_device *drm,
1138 plane = tegra_shared_plane_create(drm, dc,
1159 static struct drm_plane *tegra_dc_add_planes(struct drm_device *drm,
1167 primary = tegra_primary_plane_create(drm, dc);
1177 planes[i] = tegra_dc_overlay_plane_create(drm, dc, 1 + i,
2032 struct drm_device *drm = dev_get_drvdata(client->host);
2035 struct tegra_drm *tegra = drm->dev_private;
2068 primary = tegra_dc_add_shared_planes(drm, dc);
2070 primary = tegra_dc_add_planes(drm, dc);
2078 cursor = tegra_dc_cursor_plane_create(drm, dc);
2085 cursor = tegra_dc_overlay_plane_create(drm, dc, 2, true);
2092 err = drm_crtc_init_with_planes(drm, &dc->base, primary, cursor,
2106 err = tegra_dc_rgb_init(drm, dc);