Lines Matching full:slot
73 int err = 0, slot, func = PCI_FUNC(dev->devfn); in __xen_pcibk_add_pci_dev() local
103 for (slot = 0; slot < PCI_SLOT_MAX; slot++) { in __xen_pcibk_add_pci_dev()
104 if (list_empty(&vpci_dev->dev_list[slot])) in __xen_pcibk_add_pci_dev()
107 t = list_entry(list_first(&vpci_dev->dev_list[slot]), in __xen_pcibk_add_pci_dev()
113 dev_info(&dev->dev, "vpci: assign to virtual slot %d func %d\n", in __xen_pcibk_add_pci_dev()
114 slot, func); in __xen_pcibk_add_pci_dev()
116 &vpci_dev->dev_list[slot]); in __xen_pcibk_add_pci_dev()
122 /* Assign to a new slot on the virtual PCI bus */ in __xen_pcibk_add_pci_dev()
123 for (slot = 0; slot < PCI_SLOT_MAX; slot++) { in __xen_pcibk_add_pci_dev()
124 if (list_empty(&vpci_dev->dev_list[slot])) { in __xen_pcibk_add_pci_dev()
125 dev_info(&dev->dev, "vpci: assign to virtual slot %d\n", in __xen_pcibk_add_pci_dev()
126 slot); in __xen_pcibk_add_pci_dev()
128 &vpci_dev->dev_list[slot]); in __xen_pcibk_add_pci_dev()
142 err = publish_cb(pdev, 0, 0, PCI_DEVFN(slot, func), devid); in __xen_pcibk_add_pci_dev()
153 int slot; in __xen_pcibk_release_pci_dev() local
159 for (slot = 0; slot < PCI_SLOT_MAX; slot++) { in __xen_pcibk_release_pci_dev()
162 list_for_each_entry(e, &vpci_dev->dev_list[slot], list) { in __xen_pcibk_release_pci_dev()
186 int slot; in __xen_pcibk_init_devices() local
195 for (slot = 0; slot < PCI_SLOT_MAX; slot++) in __xen_pcibk_init_devices()
196 INIT_LIST_HEAD(&vpci_dev->dev_list[slot]); in __xen_pcibk_init_devices()
212 int slot; in __xen_pcibk_release_devices() local
215 for (slot = 0; slot < PCI_SLOT_MAX; slot++) { in __xen_pcibk_release_devices()
217 list_for_each_entry_safe(e, tmp, &vpci_dev->dev_list[slot], in __xen_pcibk_release_devices()
239 int found = 0, slot; in __xen_pcibk_get_pcifront_dev() local
242 for (slot = 0; slot < PCI_SLOT_MAX; slot++) { in __xen_pcibk_get_pcifront_dev()
244 &vpci_dev->dev_list[slot], in __xen_pcibk_get_pcifront_dev()
250 *devfn = PCI_DEVFN(slot, in __xen_pcibk_get_pcifront_dev()