Lines Matching refs:ddev
165 drm_kms_helper_poll_disable(sdev->ddev); in shmob_drm_pm_suspend()
175 drm_modeset_lock_all(sdev->ddev); in shmob_drm_pm_resume()
177 drm_modeset_unlock_all(sdev->ddev); in shmob_drm_pm_resume()
179 drm_kms_helper_poll_enable(sdev->ddev); in shmob_drm_pm_resume()
195 struct drm_device *ddev = sdev->ddev; in shmob_drm_remove() local
197 drm_dev_unregister(ddev); in shmob_drm_remove()
198 drm_kms_helper_poll_fini(ddev); in shmob_drm_remove()
199 drm_mode_config_cleanup(ddev); in shmob_drm_remove()
200 drm_irq_uninstall(ddev); in shmob_drm_remove()
201 drm_dev_unref(ddev); in shmob_drm_remove()
210 struct drm_device *ddev; in shmob_drm_probe() local
248 ddev = drm_dev_alloc(&shmob_drm_driver, &pdev->dev); in shmob_drm_probe()
249 if (IS_ERR(ddev)) in shmob_drm_probe()
250 return PTR_ERR(ddev); in shmob_drm_probe()
252 sdev->ddev = ddev; in shmob_drm_probe()
253 ddev->dev_private = sdev; in shmob_drm_probe()
269 ret = drm_vblank_init(ddev, 1); in shmob_drm_probe()
275 ret = drm_irq_install(ddev, platform_get_irq(pdev, 0)); in shmob_drm_probe()
285 ret = drm_dev_register(ddev, 0); in shmob_drm_probe()
292 drm_irq_uninstall(ddev); in shmob_drm_probe()
294 drm_kms_helper_poll_fini(ddev); in shmob_drm_probe()
295 drm_mode_config_cleanup(ddev); in shmob_drm_probe()
297 drm_dev_unref(ddev); in shmob_drm_probe()