• Home
  • Raw
  • Download

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_cma_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_probe_helper.h>
29 #include <drm/drm_vblank.h>
40 struct drm_device *drm, in zynqmp_dpsub_dumb_create() argument
43 struct zynqmp_dpsub *dpsub = to_zynqmp_dpsub(drm); in zynqmp_dpsub_dumb_create()
49 return drm_gem_cma_dumb_create_internal(file_priv, drm, args); in zynqmp_dpsub_dumb_create()
53 zynqmp_dpsub_fb_create(struct drm_device *drm, struct drm_file *file_priv, in zynqmp_dpsub_fb_create() argument
56 struct zynqmp_dpsub *dpsub = to_zynqmp_dpsub(drm); in zynqmp_dpsub_fb_create()
64 return drm_gem_fb_create(drm, file_priv, &cmd); in zynqmp_dpsub_fb_create()
74 * DRM/KMS Driver
108 struct drm_device *drm = &dpsub->drm; in zynqmp_dpsub_drm_init() local
112 ret = drmm_mode_config_init(drm); in zynqmp_dpsub_drm_init()
116 drm->mode_config.funcs = &zynqmp_dpsub_mode_config_funcs; in zynqmp_dpsub_drm_init()
117 drm->mode_config.min_width = 0; in zynqmp_dpsub_drm_init()
118 drm->mode_config.min_height = 0; in zynqmp_dpsub_drm_init()
119 drm->mode_config.max_width = ZYNQMP_DISP_MAX_WIDTH; in zynqmp_dpsub_drm_init()
120 drm->mode_config.max_height = ZYNQMP_DISP_MAX_HEIGHT; in zynqmp_dpsub_drm_init()
122 ret = drm_vblank_init(drm, 1); in zynqmp_dpsub_drm_init()
126 drm->irq_enabled = 1; in zynqmp_dpsub_drm_init()
128 drm_kms_helper_poll_init(drm); in zynqmp_dpsub_drm_init()
143 /* Reset all components and register the DRM device. */ in zynqmp_dpsub_drm_init()
144 drm_mode_config_reset(drm); in zynqmp_dpsub_drm_init()
146 ret = drm_dev_register(drm, 0); in zynqmp_dpsub_drm_init()
151 drm_fbdev_generic_setup(drm, 24); in zynqmp_dpsub_drm_init()
156 drm_kms_helper_poll_fini(drm); in zynqmp_dpsub_drm_init()
168 return drm_mode_config_helper_suspend(&dpsub->drm); in zynqmp_dpsub_suspend()
175 return drm_mode_config_helper_resume(&dpsub->drm); in zynqmp_dpsub_resume()
210 struct zynqmp_dpsub, drm); in zynqmp_dpsub_probe()
232 ret = zynqmp_dp_probe(dpsub, &dpsub->drm); in zynqmp_dpsub_probe()
236 ret = zynqmp_disp_probe(dpsub, &dpsub->drm); in zynqmp_dpsub_probe()
263 struct drm_device *drm = &dpsub->drm; in zynqmp_dpsub_remove() local
265 drm_dev_unregister(drm); in zynqmp_dpsub_remove()
266 drm_atomic_helper_shutdown(drm); in zynqmp_dpsub_remove()
267 drm_kms_helper_poll_fini(drm); in zynqmp_dpsub_remove()
283 drm_atomic_helper_shutdown(&dpsub->drm); in zynqmp_dpsub_shutdown()