Lines Matching refs:ddev
174 static int sti_init(struct drm_device *ddev) in sti_init() argument
182 ddev->dev_private = (void *)private; in sti_init()
183 dev_set_drvdata(ddev->dev, ddev); in sti_init()
184 private->drm_dev = ddev; in sti_init()
186 drm_mode_config_init(ddev); in sti_init()
188 sti_mode_config_init(ddev); in sti_init()
190 drm_kms_helper_poll_init(ddev); in sti_init()
195 static void sti_cleanup(struct drm_device *ddev) in sti_cleanup() argument
197 struct sti_private *private = ddev->dev_private; in sti_cleanup()
199 drm_kms_helper_poll_fini(ddev); in sti_cleanup()
200 drm_atomic_helper_shutdown(ddev); in sti_cleanup()
201 drm_mode_config_cleanup(ddev); in sti_cleanup()
202 component_unbind_all(ddev->dev, ddev); in sti_cleanup()
204 ddev->dev_private = NULL; in sti_cleanup()
209 struct drm_device *ddev; in sti_bind() local
212 ddev = drm_dev_alloc(&sti_driver, dev); in sti_bind()
213 if (IS_ERR(ddev)) in sti_bind()
214 return PTR_ERR(ddev); in sti_bind()
216 ret = sti_init(ddev); in sti_bind()
220 ret = component_bind_all(ddev->dev, ddev); in sti_bind()
224 ret = drm_dev_register(ddev, 0); in sti_bind()
228 drm_mode_config_reset(ddev); in sti_bind()
230 drm_fbdev_generic_setup(ddev, 32); in sti_bind()
235 sti_cleanup(ddev); in sti_bind()
237 drm_dev_put(ddev); in sti_bind()
243 struct drm_device *ddev = dev_get_drvdata(dev); in sti_unbind() local
245 drm_dev_unregister(ddev); in sti_unbind()
246 sti_cleanup(ddev); in sti_unbind()
247 drm_dev_put(ddev); in sti_unbind()