• Home
  • Raw
  • Download

Lines Matching refs:ddev

140 static void sti_output_poll_changed(struct drm_device *ddev)  in sti_output_poll_changed()  argument
142 struct sti_private *private = ddev->dev_private; in sti_output_poll_changed()
207 static int sti_init(struct drm_device *ddev) in sti_init() argument
215 ddev->dev_private = (void *)private; in sti_init()
216 dev_set_drvdata(ddev->dev, ddev); in sti_init()
217 private->drm_dev = ddev; in sti_init()
219 drm_mode_config_init(ddev); in sti_init()
221 sti_mode_config_init(ddev); in sti_init()
223 drm_kms_helper_poll_init(ddev); in sti_init()
228 static void sti_cleanup(struct drm_device *ddev) in sti_cleanup() argument
230 struct sti_private *private = ddev->dev_private; in sti_cleanup()
237 drm_kms_helper_poll_fini(ddev); in sti_cleanup()
238 component_unbind_all(ddev->dev, ddev); in sti_cleanup()
240 ddev->dev_private = NULL; in sti_cleanup()
245 struct drm_device *ddev; in sti_bind() local
250 ddev = drm_dev_alloc(&sti_driver, dev); in sti_bind()
251 if (IS_ERR(ddev)) in sti_bind()
252 return PTR_ERR(ddev); in sti_bind()
254 ret = sti_init(ddev); in sti_bind()
258 ret = component_bind_all(ddev->dev, ddev); in sti_bind()
262 ret = drm_dev_register(ddev, 0); in sti_bind()
266 drm_mode_config_reset(ddev); in sti_bind()
268 private = ddev->dev_private; in sti_bind()
269 if (ddev->mode_config.num_connector) { in sti_bind()
270 fbdev = drm_fbdev_cma_init(ddev, 32, in sti_bind()
271 ddev->mode_config.num_connector); in sti_bind()
282 drm_mode_config_cleanup(ddev); in sti_bind()
284 sti_cleanup(ddev); in sti_bind()
286 drm_dev_unref(ddev); in sti_bind()
292 struct drm_device *ddev = dev_get_drvdata(dev); in sti_unbind() local
294 drm_dev_unregister(ddev); in sti_unbind()
295 sti_cleanup(ddev); in sti_unbind()
296 drm_dev_unref(ddev); in sti_unbind()