Lines Matching refs:ddev
152 static int sti_init(struct drm_device *ddev) in sti_init() argument
160 ddev->dev_private = (void *)private; in sti_init()
161 dev_set_drvdata(ddev->dev, ddev); in sti_init()
162 private->drm_dev = ddev; in sti_init()
164 drm_mode_config_init(ddev); in sti_init()
166 sti_mode_config_init(ddev); in sti_init()
168 drm_kms_helper_poll_init(ddev); in sti_init()
173 static void sti_cleanup(struct drm_device *ddev) in sti_cleanup() argument
175 struct sti_private *private = ddev->dev_private; in sti_cleanup()
177 drm_kms_helper_poll_fini(ddev); in sti_cleanup()
178 drm_atomic_helper_shutdown(ddev); in sti_cleanup()
179 drm_mode_config_cleanup(ddev); in sti_cleanup()
180 component_unbind_all(ddev->dev, ddev); in sti_cleanup()
182 ddev->dev_private = NULL; in sti_cleanup()
187 struct drm_device *ddev; in sti_bind() local
190 ddev = drm_dev_alloc(&sti_driver, dev); in sti_bind()
191 if (IS_ERR(ddev)) in sti_bind()
192 return PTR_ERR(ddev); in sti_bind()
194 ret = sti_init(ddev); in sti_bind()
198 ret = component_bind_all(ddev->dev, ddev); in sti_bind()
202 ret = drm_dev_register(ddev, 0); in sti_bind()
206 drm_mode_config_reset(ddev); in sti_bind()
208 drm_fbdev_generic_setup(ddev, 32); in sti_bind()
213 sti_cleanup(ddev); in sti_bind()
215 drm_dev_put(ddev); in sti_bind()
221 struct drm_device *ddev = dev_get_drvdata(dev); in sti_unbind() local
223 drm_dev_unregister(ddev); in sti_unbind()
224 sti_cleanup(ddev); in sti_unbind()
225 drm_dev_put(ddev); in sti_unbind()