Lines Matching refs:pdev
59 return pci_domain_nr(dev->pdev->bus);
66 struct pci_dev *pdev = to_pci_dev(dev->dev);
68 struct pci_dev *pdev = dev->pdev;
73 pdev->bus->number,
74 PCI_SLOT(pdev->devfn),
75 PCI_FUNC(pdev->devfn));
87 struct pci_dev *pdev = to_pci_dev(dev->dev);
90 (p->busnum & 0xff) != pdev->bus->number ||
91 p->devnum != PCI_SLOT(pdev->devfn) || p->funcnum != PCI_FUNC(pdev->devfn))
94 p->irq = pdev->irq;
155 static int drm_legacy_get_pci_dev(struct pci_dev *pdev,
164 dev = drm_dev_alloc(driver, &pdev->dev);
168 ret = pci_enable_device(pdev);
173 dev->hose = pdev->sysdata;
192 pci_disable_device(pdev);
210 struct pci_dev *pdev = NULL;
229 pdev = NULL;
230 while ((pdev =
232 pid->subdevice, pdev)) != NULL) {
233 if ((pdev->class & pid->class_mask) != pid->class)
237 pci_dev_get(pdev);
238 drm_legacy_get_pci_dev(pdev, pid, driver);