Lines Matching refs:drm
240 struct drm_device *drm; in exynos_drm_bind() local
244 drm = drm_dev_alloc(&exynos_drm_driver, dev); in exynos_drm_bind()
245 if (IS_ERR(drm)) in exynos_drm_bind()
246 return PTR_ERR(drm); in exynos_drm_bind()
257 dev_set_drvdata(dev, drm); in exynos_drm_bind()
258 drm->dev_private = (void *)private; in exynos_drm_bind()
260 drm_mode_config_init(drm); in exynos_drm_bind()
262 exynos_drm_mode_config_init(drm); in exynos_drm_bind()
266 list_for_each_entry(encoder, &drm->mode_config.encoder_list, head) in exynos_drm_bind()
269 list_for_each_entry(encoder, &drm->mode_config.encoder_list, head) in exynos_drm_bind()
273 ret = component_bind_all(drm->dev, drm); in exynos_drm_bind()
277 ret = drm_vblank_init(drm, drm->mode_config.num_crtc); in exynos_drm_bind()
281 drm_mode_config_reset(drm); in exynos_drm_bind()
284 drm_kms_helper_poll_init(drm); in exynos_drm_bind()
287 ret = drm_dev_register(drm, 0); in exynos_drm_bind()
291 exynos_drm_fbdev_setup(drm); in exynos_drm_bind()
296 drm_kms_helper_poll_fini(drm); in exynos_drm_bind()
298 component_unbind_all(drm->dev, drm); in exynos_drm_bind()
300 drm_mode_config_cleanup(drm); in exynos_drm_bind()
301 exynos_drm_cleanup_dma(drm); in exynos_drm_bind()
305 drm_dev_put(drm); in exynos_drm_bind()
312 struct drm_device *drm = dev_get_drvdata(dev); in exynos_drm_unbind() local
314 drm_dev_unregister(drm); in exynos_drm_unbind()
316 drm_kms_helper_poll_fini(drm); in exynos_drm_unbind()
317 drm_atomic_helper_shutdown(drm); in exynos_drm_unbind()
319 component_unbind_all(drm->dev, drm); in exynos_drm_unbind()
320 drm_mode_config_cleanup(drm); in exynos_drm_unbind()
321 exynos_drm_cleanup_dma(drm); in exynos_drm_unbind()
323 kfree(drm->dev_private); in exynos_drm_unbind()
324 drm->dev_private = NULL; in exynos_drm_unbind()
327 drm_dev_put(drm); in exynos_drm_unbind()
357 struct drm_device *drm = platform_get_drvdata(pdev); in exynos_drm_platform_shutdown() local
359 if (drm) in exynos_drm_platform_shutdown()
360 drm_atomic_helper_shutdown(drm); in exynos_drm_platform_shutdown()