Lines Matching refs:vbox
41 struct vbox_private *vbox; in vbox_pci_probe() local
47 vbox = kzalloc(sizeof(*vbox), GFP_KERNEL); in vbox_pci_probe()
48 if (!vbox) in vbox_pci_probe()
51 ret = drm_dev_init(&vbox->ddev, &driver, &pdev->dev); in vbox_pci_probe()
53 kfree(vbox); in vbox_pci_probe()
57 vbox->ddev.pdev = pdev; in vbox_pci_probe()
58 vbox->ddev.dev_private = vbox; in vbox_pci_probe()
59 pci_set_drvdata(pdev, vbox); in vbox_pci_probe()
60 mutex_init(&vbox->hw_mutex); in vbox_pci_probe()
66 ret = vbox_hw_init(vbox); in vbox_pci_probe()
70 ret = vbox_mm_init(vbox); in vbox_pci_probe()
74 ret = vbox_mode_init(vbox); in vbox_pci_probe()
78 ret = vbox_irq_init(vbox); in vbox_pci_probe()
82 ret = drm_fb_helper_fbdev_setup(&vbox->ddev, &vbox->fb_helper, in vbox_pci_probe()
84 vbox->num_crtcs); in vbox_pci_probe()
88 ret = drm_dev_register(&vbox->ddev, 0); in vbox_pci_probe()
95 vbox_fbdev_fini(vbox); in vbox_pci_probe()
97 vbox_irq_fini(vbox); in vbox_pci_probe()
99 vbox_mode_fini(vbox); in vbox_pci_probe()
101 vbox_mm_fini(vbox); in vbox_pci_probe()
103 vbox_hw_fini(vbox); in vbox_pci_probe()
107 drm_dev_put(&vbox->ddev); in vbox_pci_probe()
113 struct vbox_private *vbox = pci_get_drvdata(pdev); in vbox_pci_remove() local
115 drm_dev_unregister(&vbox->ddev); in vbox_pci_remove()
116 vbox_fbdev_fini(vbox); in vbox_pci_remove()
117 vbox_irq_fini(vbox); in vbox_pci_remove()
118 vbox_mode_fini(vbox); in vbox_pci_remove()
119 vbox_mm_fini(vbox); in vbox_pci_remove()
120 vbox_hw_fini(vbox); in vbox_pci_remove()
121 drm_dev_put(&vbox->ddev); in vbox_pci_remove()
127 struct vbox_private *vbox = dev_get_drvdata(dev); in vbox_pm_suspend() local
130 error = drm_mode_config_helper_suspend(&vbox->ddev); in vbox_pm_suspend()
134 pci_save_state(vbox->ddev.pdev); in vbox_pm_suspend()
135 pci_disable_device(vbox->ddev.pdev); in vbox_pm_suspend()
136 pci_set_power_state(vbox->ddev.pdev, PCI_D3hot); in vbox_pm_suspend()
143 struct vbox_private *vbox = dev_get_drvdata(dev); in vbox_pm_resume() local
145 if (pci_enable_device(vbox->ddev.pdev)) in vbox_pm_resume()
148 return drm_mode_config_helper_resume(&vbox->ddev); in vbox_pm_resume()
153 struct vbox_private *vbox = dev_get_drvdata(dev); in vbox_pm_freeze() local
155 return drm_mode_config_helper_suspend(&vbox->ddev); in vbox_pm_freeze()
160 struct vbox_private *vbox = dev_get_drvdata(dev); in vbox_pm_thaw() local
162 return drm_mode_config_helper_resume(&vbox->ddev); in vbox_pm_thaw()
167 struct vbox_private *vbox = dev_get_drvdata(dev); in vbox_pm_poweroff() local
169 return drm_mode_config_helper_suspend(&vbox->ddev); in vbox_pm_poweroff()