• Home
  • Raw
  • Download

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()
51 .add.seg = pci_domain_nr(pci_dev->bus), in xen_add_device()
52 .add.bus = pci_dev->bus->number, in xen_add_device()
53 .add.devfn = pci_dev->devfn in xen_add_device()
62 if (pci_dev->is_virtfn) { in xen_add_device()
68 if (pci_ari_enabled(pci_dev->bus) && PCI_SLOT(pci_dev->devfn)) in xen_add_device()
72 handle = ACPI_HANDLE(&pci_dev->dev); in xen_add_device()
74 if (!handle && pci_dev->is_virtfn) in xen_add_device()
83 for (pbus = pci_dev->bus; pbus; pbus = pbus->parent) { in xen_add_device()
113 if (pci_domain_nr(pci_dev->bus)) in xen_add_device()
116 else if (pci_dev->is_virtfn) { in xen_add_device()
118 .bus = pci_dev->bus->number, in xen_add_device()
119 .devfn = pci_dev->devfn, in xen_add_device()
129 else if (pci_ari_enabled(pci_dev->bus) && PCI_SLOT(pci_dev->devfn)) { in xen_add_device()
131 .bus = pci_dev->bus->number, in xen_add_device()
132 .devfn = pci_dev->devfn, in xen_add_device()
140 .bus = pci_dev->bus->number, in xen_add_device()
141 .devfn = pci_dev->devfn, in xen_add_device()
154 struct pci_dev *pci_dev = to_pci_dev(dev); in xen_remove_device() local
158 .seg = pci_domain_nr(pci_dev->bus), in xen_remove_device()
159 .bus = pci_dev->bus->number, in xen_remove_device()
160 .devfn = pci_dev->devfn in xen_remove_device()
165 } else if (pci_domain_nr(pci_dev->bus)) in xen_remove_device()
169 .bus = pci_dev->bus->number, in xen_remove_device()
170 .devfn = pci_dev->devfn in xen_remove_device()
262 struct pci_dev *dev;
269 static struct xen_device_domain_owner *find_device(struct pci_dev *dev) in find_device()
280 int xen_find_device_domain_owner(struct pci_dev *dev) in xen_find_device_domain_owner()
294 int xen_register_device_domain_owner(struct pci_dev *dev, uint16_t domain) in xen_register_device_domain_owner()
316 int xen_unregister_device_domain_owner(struct pci_dev *dev) in xen_unregister_device_domain_owner()