Lines Matching refs:ddev

149 static int sti_init(struct drm_device *ddev)  in sti_init()  argument
157 ddev->dev_private = (void *)private; in sti_init()
158 dev_set_drvdata(ddev->dev, ddev); in sti_init()
159 private->drm_dev = ddev; in sti_init()
161 drm_mode_config_init(ddev); in sti_init()
163 sti_mode_config_init(ddev); in sti_init()
165 drm_kms_helper_poll_init(ddev); in sti_init()
170 static void sti_cleanup(struct drm_device *ddev) in sti_cleanup() argument
172 struct sti_private *private = ddev->dev_private; in sti_cleanup()
174 drm_kms_helper_poll_fini(ddev); in sti_cleanup()
175 drm_atomic_helper_shutdown(ddev); in sti_cleanup()
176 drm_mode_config_cleanup(ddev); in sti_cleanup()
177 component_unbind_all(ddev->dev, ddev); in sti_cleanup()
178 dev_set_drvdata(ddev->dev, NULL); in sti_cleanup()
180 ddev->dev_private = NULL; in sti_cleanup()
185 struct drm_device *ddev; in sti_bind() local
188 ddev = drm_dev_alloc(&sti_driver, dev); in sti_bind()
189 if (IS_ERR(ddev)) in sti_bind()
190 return PTR_ERR(ddev); in sti_bind()
192 ret = sti_init(ddev); in sti_bind()
196 ret = component_bind_all(ddev->dev, ddev); in sti_bind()
200 ret = drm_dev_register(ddev, 0); in sti_bind()
204 drm_mode_config_reset(ddev); in sti_bind()
206 drm_fbdev_dma_setup(ddev, 32); in sti_bind()
211 sti_cleanup(ddev); in sti_bind()
213 drm_dev_put(ddev); in sti_bind()
219 struct drm_device *ddev = dev_get_drvdata(dev); in sti_unbind() local
221 drm_dev_unregister(ddev); in sti_unbind()
222 sti_cleanup(ddev); in sti_unbind()
223 drm_dev_put(ddev); in sti_unbind()