Lines Matching refs:drm

35 				     struct drm_device *drm,  in drm_sun4i_gem_dumb_create()  argument
41 return drm_gem_dma_dumb_create_internal(file_priv, drm, args); in drm_sun4i_gem_dumb_create()
64 struct drm_device *drm; in sun4i_drv_bind() local
68 drm = drm_dev_alloc(&sun4i_drv_driver, dev); in sun4i_drv_bind()
69 if (IS_ERR(drm)) in sun4i_drv_bind()
70 return PTR_ERR(drm); in sun4i_drv_bind()
78 drm->dev_private = drv; in sun4i_drv_bind()
85 dev_err(drm->dev, "Couldn't claim our memory region\n"); in sun4i_drv_bind()
89 drm_mode_config_init(drm); in sun4i_drv_bind()
91 ret = component_bind_all(drm->dev, drm); in sun4i_drv_bind()
93 dev_err(drm->dev, "Couldn't bind all pipelines components\n"); in sun4i_drv_bind()
98 ret = drm_vblank_init(drm, drm->mode_config.num_crtc); in sun4i_drv_bind()
107 sun4i_framebuffer_init(drm); in sun4i_drv_bind()
110 drm_kms_helper_poll_init(drm); in sun4i_drv_bind()
112 ret = drm_dev_register(drm, 0); in sun4i_drv_bind()
116 drm_client_setup(drm, NULL); in sun4i_drv_bind()
118 dev_set_drvdata(dev, drm); in sun4i_drv_bind()
123 drm_kms_helper_poll_fini(drm); in sun4i_drv_bind()
127 drm_mode_config_cleanup(drm); in sun4i_drv_bind()
130 drm_dev_put(drm); in sun4i_drv_bind()
136 struct drm_device *drm = dev_get_drvdata(dev); in sun4i_drv_unbind() local
139 drm_dev_unregister(drm); in sun4i_drv_unbind()
140 drm_kms_helper_poll_fini(drm); in sun4i_drv_unbind()
141 drm_atomic_helper_shutdown(drm); in sun4i_drv_unbind()
142 drm_mode_config_cleanup(drm); in sun4i_drv_unbind()
147 drm_dev_put(drm); in sun4i_drv_unbind()
349 struct drm_device *drm = dev_get_drvdata(dev); in sun4i_drv_drm_sys_suspend() local
351 return drm_mode_config_helper_suspend(drm); in sun4i_drv_drm_sys_suspend()
356 struct drm_device *drm = dev_get_drvdata(dev); in sun4i_drv_drm_sys_resume() local
358 return drm_mode_config_helper_resume(drm); in sun4i_drv_drm_sys_resume()