Home | History | Annotate | Download | only in qxl

Lines Matching defs:pdev

71 static bool is_vga(struct pci_dev *pdev)
73 return pdev->class == PCI_CLASS_DISPLAY_VGA << 8;
77 qxl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
82 if (pdev->revision < 4) {
92 ret = pci_enable_device(pdev);
96 ret = drm_fb_helper_remove_conflicting_pci_framebuffers(pdev, "qxl");
100 if (is_vga(pdev)) {
101 ret = vga_get_interruptible(pdev, VGA_RSRC_LEGACY_IO);
108 ret = qxl_device_init(qdev, &qxl_driver, pdev);
131 if (is_vga(pdev))
132 vga_put(pdev, VGA_RSRC_LEGACY_IO);
134 pci_disable_device(pdev);
141 qxl_pci_remove(struct pci_dev *pdev)
143 struct drm_device *dev = pci_get_drvdata(pdev);
150 if (is_vga(pdev))
151 vga_put(pdev, VGA_RSRC_LEGACY_IO);
162 struct pci_dev *pdev = dev->pdev;
178 pci_save_state(pdev);
199 struct pci_dev *pdev = to_pci_dev(dev);
200 struct drm_device *drm_dev = pci_get_drvdata(pdev);
207 pci_disable_device(pdev);
208 pci_set_power_state(pdev, PCI_D3hot);
214 struct pci_dev *pdev = to_pci_dev(dev);
215 struct drm_device *drm_dev = pci_get_drvdata(pdev);
217 pci_set_power_state(pdev, PCI_D0);
218 pci_restore_state(pdev);
219 if (pci_enable_device(pdev)) {
242 struct pci_dev *pdev = to_pci_dev(dev);
243 struct drm_device *drm_dev = pci_get_drvdata(pdev);