Lines Matching refs:pci_dev
30 struct pci_dev *pci_dev = to_pci_dev(dev); in xen_add_device() local
32 struct pci_dev *physfn = pci_dev->physfn; in xen_add_device()
49 add->seg = pci_domain_nr(pci_dev->bus); in xen_add_device()
50 add->bus = pci_dev->bus->number; in xen_add_device()
51 add->devfn = pci_dev->devfn; in xen_add_device()
58 if (pci_dev->is_virtfn) { in xen_add_device()
64 if (pci_ari_enabled(pci_dev->bus) && PCI_SLOT(pci_dev->devfn)) in xen_add_device()
68 handle = ACPI_HANDLE(&pci_dev->dev); in xen_add_device()
70 if (!handle && pci_dev->is_virtfn) in xen_add_device()
79 for (pbus = pci_dev->bus; pbus; pbus = pbus->parent) { in xen_add_device()
109 if (pci_domain_nr(pci_dev->bus)) in xen_add_device()
112 else if (pci_dev->is_virtfn) { in xen_add_device()
114 .bus = pci_dev->bus->number, in xen_add_device()
115 .devfn = pci_dev->devfn, in xen_add_device()
125 else if (pci_ari_enabled(pci_dev->bus) && PCI_SLOT(pci_dev->devfn)) { in xen_add_device()
127 .bus = pci_dev->bus->number, in xen_add_device()
128 .devfn = pci_dev->devfn, in xen_add_device()
136 .bus = pci_dev->bus->number, in xen_add_device()
137 .devfn = pci_dev->devfn, in xen_add_device()
150 struct pci_dev *pci_dev = to_pci_dev(dev); in xen_remove_device() local
154 .seg = pci_domain_nr(pci_dev->bus), in xen_remove_device()
155 .bus = pci_dev->bus->number, in xen_remove_device()
156 .devfn = pci_dev->devfn in xen_remove_device()
161 } else if (pci_domain_nr(pci_dev->bus)) in xen_remove_device()
165 .bus = pci_dev->bus->number, in xen_remove_device()
166 .devfn = pci_dev->devfn in xen_remove_device()
176 int xen_reset_device(const struct pci_dev *dev) in xen_reset_device()
271 struct pci_dev *dev;
278 static struct xen_device_domain_owner *find_device(struct pci_dev *dev) in find_device()
289 int xen_find_device_domain_owner(struct pci_dev *dev) in xen_find_device_domain_owner()
303 int xen_register_device_domain_owner(struct pci_dev *dev, uint16_t domain) in xen_register_device_domain_owner()
325 int xen_unregister_device_domain_owner(struct pci_dev *dev) in xen_unregister_device_domain_owner()