Lines Matching refs:ddev
146 static int sti_init(struct drm_device *ddev) in sti_init() argument
154 ddev->dev_private = (void *)private; in sti_init()
155 dev_set_drvdata(ddev->dev, ddev); in sti_init()
156 private->drm_dev = ddev; in sti_init()
158 drm_mode_config_init(ddev); in sti_init()
160 sti_mode_config_init(ddev); in sti_init()
162 drm_kms_helper_poll_init(ddev); in sti_init()
167 static void sti_cleanup(struct drm_device *ddev) in sti_cleanup() argument
169 struct sti_private *private = ddev->dev_private; in sti_cleanup()
171 drm_kms_helper_poll_fini(ddev); in sti_cleanup()
172 drm_atomic_helper_shutdown(ddev); in sti_cleanup()
173 drm_mode_config_cleanup(ddev); in sti_cleanup()
174 component_unbind_all(ddev->dev, ddev); in sti_cleanup()
176 ddev->dev_private = NULL; in sti_cleanup()
181 struct drm_device *ddev; in sti_bind() local
184 ddev = drm_dev_alloc(&sti_driver, dev); in sti_bind()
185 if (IS_ERR(ddev)) in sti_bind()
186 return PTR_ERR(ddev); in sti_bind()
188 ret = sti_init(ddev); in sti_bind()
192 ret = component_bind_all(ddev->dev, ddev); in sti_bind()
196 ret = drm_dev_register(ddev, 0); in sti_bind()
200 drm_mode_config_reset(ddev); in sti_bind()
202 drm_fbdev_generic_setup(ddev, 32); in sti_bind()
207 sti_cleanup(ddev); in sti_bind()
209 drm_dev_put(ddev); in sti_bind()
215 struct drm_device *ddev = dev_get_drvdata(dev); in sti_unbind() local
217 drm_dev_unregister(ddev); in sti_unbind()
218 sti_cleanup(ddev); in sti_unbind()
219 drm_dev_put(ddev); in sti_unbind()