Lines Matching defs:slot_nr
174 static struct pci_slot *get_slot(struct pci_bus *parent, int slot_nr)
180 if (slot->number == slot_nr) {
191 * @slot_nr: PCI_SLOT(pci_dev->devfn) or -1 for placeholder
200 * Slots are uniquely identified by a @pci_bus, @slot_nr tuple.
213 * In most cases, @pci_bus, @slot_nr will be sufficient to uniquely identify
215 * @slot_nr cannot be determined until a device is actually inserted into
216 * the slot. In this scenario, the caller may pass -1 for @slot_nr.
218 * The following semantics are imposed when the caller passes @slot_nr ==
220 * may be many slots with @slot_nr of -1. The other change in semantics is
226 struct pci_slot *pci_create_slot(struct pci_bus *parent, int slot_nr,
237 if (slot_nr == -1)
244 slot = get_slot(parent, slot_nr);
265 slot->number = slot_nr;
288 if (PCI_SLOT(dev->devfn) == slot_nr)
293 slot_nr, pci_slot_name(slot));