Lines Matching defs:slot_nr
173 static struct pci_slot *get_slot(struct pci_bus *parent, int slot_nr)
179 if (slot->number == slot_nr) {
190 * @slot_nr: PCI_SLOT(pci_dev->devfn) or -1 for placeholder
199 * Slots are uniquely identified by a @pci_bus, @slot_nr tuple.
212 * In most cases, @pci_bus, @slot_nr will be sufficient to uniquely identify
214 * @slot_nr cannot be determined until a device is actually inserted into
215 * the slot. In this scenario, the caller may pass -1 for @slot_nr.
217 * The following semantics are imposed when the caller passes @slot_nr ==
219 * may be many slots with @slot_nr of -1. The other change in semantics is
225 struct pci_slot *pci_create_slot(struct pci_bus *parent, int slot_nr,
236 if (slot_nr == -1)
243 slot = get_slot(parent, slot_nr);
264 slot->number = slot_nr;
287 if (PCI_SLOT(dev->devfn) == slot_nr)
292 slot_nr, pci_slot_name(slot));