Lines Matching refs:drm

128 static int mcde_modeset_init(struct drm_device *drm)  in mcde_modeset_init()  argument
131 struct mcde *mcde = to_mcde(drm); in mcde_modeset_init()
146 ret = drm_of_find_panel_or_bridge(drm->dev->of_node, in mcde_modeset_init()
149 dev_err(drm->dev, in mcde_modeset_init()
157 dev_err(drm->dev, in mcde_modeset_init()
167 mode_config = &drm->mode_config; in mcde_modeset_init()
176 ret = drm_vblank_init(drm, 1); in mcde_modeset_init()
178 dev_err(drm->dev, "failed to init vblank\n"); in mcde_modeset_init()
182 ret = mcde_display_init(drm); in mcde_modeset_init()
184 dev_err(drm->dev, "failed to init display\n"); in mcde_modeset_init()
192 dev_err(drm->dev, "failed to attach display output bridge\n"); in mcde_modeset_init()
196 drm_mode_config_reset(drm); in mcde_modeset_init()
197 drm_kms_helper_poll_init(drm); in mcde_modeset_init()
221 struct drm_device *drm = dev_get_drvdata(dev); in mcde_drm_bind() local
224 ret = drmm_mode_config_init(drm); in mcde_drm_bind()
228 ret = component_bind_all(drm->dev, drm); in mcde_drm_bind()
234 ret = mcde_modeset_init(drm); in mcde_drm_bind()
238 ret = drm_dev_register(drm, 0); in mcde_drm_bind()
242 drm_client_setup(drm, NULL); in mcde_drm_bind()
247 component_unbind_all(drm->dev, drm); in mcde_drm_bind()
253 struct drm_device *drm = dev_get_drvdata(dev); in mcde_drm_unbind() local
255 drm_dev_unregister(drm); in mcde_drm_unbind()
256 drm_atomic_helper_shutdown(drm); in mcde_drm_unbind()
257 component_unbind_all(drm->dev, drm); in mcde_drm_unbind()
272 struct drm_device *drm; in mcde_probe() local
280 mcde = devm_drm_dev_alloc(dev, &mcde_drm_driver, struct mcde, drm); in mcde_probe()
283 drm = &mcde->drm; in mcde_probe()
285 platform_set_drvdata(pdev, drm); in mcde_probe()
455 struct drm_device *drm = platform_get_drvdata(pdev); in mcde_remove() local
456 struct mcde *mcde = to_mcde(drm); in mcde_remove()
466 struct drm_device *drm = platform_get_drvdata(pdev); in mcde_shutdown() local
468 if (drm->registered) in mcde_shutdown()
469 drm_atomic_helper_shutdown(drm); in mcde_shutdown()