Lines Matching refs:sc_drm_dev
65 struct drm_device *sc_drm_dev; member
211 sc->sc_drm_dev = drm_dev_alloc(vmwgfx_drm_driver, self); in vmwgfx_attach_real()
212 if (IS_ERR(sc->sc_drm_dev)) { in vmwgfx_attach_real()
214 PTR_ERR(sc->sc_drm_dev)); in vmwgfx_attach_real()
215 sc->sc_drm_dev = NULL; in vmwgfx_attach_real()
220 error = -drm_pci_attach(sc->sc_drm_dev, &sc->sc_pci_dev); in vmwgfx_attach_real()
228 error = -drm_dev_register(sc->sc_drm_dev, flags); in vmwgfx_attach_real()
272 drm_dev_unregister(sc->sc_drm_dev); in vmwgfx_detach()
274 drm_pci_detach(sc->sc_drm_dev); in vmwgfx_detach()
275 if (sc->sc_drm_dev) { in vmwgfx_detach()
276 drm_dev_put(sc->sc_drm_dev); in vmwgfx_detach()
277 sc->sc_drm_dev = NULL; in vmwgfx_detach()
292 struct drm_device *const dev = sc->sc_drm_dev; in vmwgfx_do_suspend()
306 struct drm_device *const dev = sc->sc_drm_dev; in vmwgfx_do_resume()