Lines Matching full:drm
19 #include <drm/drm_atomic_helper.h>
20 #include <drm/drm_device.h>
21 #include <drm/drm_drv.h>
22 #include <drm/drm_fb_helper.h>
23 #include <drm/drm_fourcc.h>
24 #include <drm/drm_gem_dma_helper.h>
25 #include <drm/drm_gem_framebuffer_helper.h>
26 #include <drm/drm_managed.h>
27 #include <drm/drm_mode_config.h>
28 #include <drm/drm_module.h>
29 #include <drm/drm_probe_helper.h>
30 #include <drm/drm_vblank.h>
41 struct drm_device *drm, in zynqmp_dpsub_dumb_create() argument
44 struct zynqmp_dpsub *dpsub = to_zynqmp_dpsub(drm); in zynqmp_dpsub_dumb_create()
50 return drm_gem_dma_dumb_create_internal(file_priv, drm, args); in zynqmp_dpsub_dumb_create()
54 zynqmp_dpsub_fb_create(struct drm_device *drm, struct drm_file *file_priv, in zynqmp_dpsub_fb_create() argument
57 struct zynqmp_dpsub *dpsub = to_zynqmp_dpsub(drm); in zynqmp_dpsub_fb_create()
65 return drm_gem_fb_create(drm, file_priv, &cmd); in zynqmp_dpsub_fb_create()
75 * DRM/KMS Driver
97 struct drm_device *drm = &dpsub->drm; in zynqmp_dpsub_drm_init() local
101 ret = drmm_mode_config_init(drm); in zynqmp_dpsub_drm_init()
105 drm->mode_config.funcs = &zynqmp_dpsub_mode_config_funcs; in zynqmp_dpsub_drm_init()
106 drm->mode_config.min_width = 0; in zynqmp_dpsub_drm_init()
107 drm->mode_config.min_height = 0; in zynqmp_dpsub_drm_init()
108 drm->mode_config.max_width = ZYNQMP_DISP_MAX_WIDTH; in zynqmp_dpsub_drm_init()
109 drm->mode_config.max_height = ZYNQMP_DISP_MAX_HEIGHT; in zynqmp_dpsub_drm_init()
111 ret = drm_vblank_init(drm, 1); in zynqmp_dpsub_drm_init()
115 drm_kms_helper_poll_init(drm); in zynqmp_dpsub_drm_init()
130 /* Reset all components and register the DRM device. */ in zynqmp_dpsub_drm_init()
131 drm_mode_config_reset(drm); in zynqmp_dpsub_drm_init()
133 ret = drm_dev_register(drm, 0); in zynqmp_dpsub_drm_init()
138 drm_fbdev_generic_setup(drm, 24); in zynqmp_dpsub_drm_init()
143 drm_kms_helper_poll_fini(drm); in zynqmp_dpsub_drm_init()
155 return drm_mode_config_helper_suspend(&dpsub->drm); in zynqmp_dpsub_suspend()
162 return drm_mode_config_helper_resume(&dpsub->drm); in zynqmp_dpsub_resume()
197 struct zynqmp_dpsub, drm); in zynqmp_dpsub_probe()
219 ret = zynqmp_dp_probe(dpsub, &dpsub->drm); in zynqmp_dpsub_probe()
223 ret = zynqmp_disp_probe(dpsub, &dpsub->drm); in zynqmp_dpsub_probe()
250 struct drm_device *drm = &dpsub->drm; in zynqmp_dpsub_remove() local
252 drm_dev_unregister(drm); in zynqmp_dpsub_remove()
253 drm_atomic_helper_shutdown(drm); in zynqmp_dpsub_remove()
254 drm_kms_helper_poll_fini(drm); in zynqmp_dpsub_remove()
270 drm_atomic_helper_shutdown(&dpsub->drm); in zynqmp_dpsub_shutdown()