Lines Matching full:slot
81 dn = find_php_slot_pci_node(drc_name, "SLOT"); in find_dlpar_node()
103 * find_php_slot - return hotplug slot structure for device node
106 * This routine will return the hotplug slot structure
111 static struct slot *find_php_slot(struct device_node *dn) in find_php_slot()
113 struct slot *slot, *next; in find_php_slot() local
115 list_for_each_entry_safe(slot, next, &rpaphp_slot_head, in find_php_slot()
117 if (slot->dn == dn) in find_php_slot()
118 return slot; in find_php_slot()
196 /* Add hotplug slot */ in dlpar_add_pci_slot()
198 printk(KERN_ERR "%s: unable to add hotplug slot %s\n", in dlpar_add_pci_slot()
207 struct slot *slot; in dlpar_remove_phb() local
214 /* If pci slot is hotpluggable, use hotplug to remove it */ in dlpar_remove_phb()
215 slot = find_php_slot(dn); in dlpar_remove_phb()
216 if (slot && rpaphp_deregister_slot(slot)) { in dlpar_remove_phb()
217 printk(KERN_ERR "%s: unable to remove hotplug slot %s\n", in dlpar_remove_phb()
247 printk(KERN_ERR "%s: unable to add hotplug slot %s\n", in dlpar_add_phb()
274 * dlpar_add_slot - DLPAR add an I/O Slot
275 * @drc_name: drc-name of newly added slot
277 * Make the hotplug module and the kernel aware of a newly added I/O Slot.
281 * -EINVAL Slot already added
314 printk(KERN_INFO "%s: slot %s added\n", DLPAR_MODULE_NAME, drc_name); in dlpar_add_slot()
321 * dlpar_remove_vio_slot - DLPAR remove a virtual I/O Slot
322 * @drc_name: drc-name of newly added slot
325 * Remove the kernel and hotplug representations of an I/O Slot.
346 * dlpar_remove_pci_slot - DLPAR remove a PCI I/O Slot
347 * @drc_name: drc-name of newly added slot
350 * Remove the kernel and hotplug representations of a PCI I/O Slot.
359 struct slot *slot; in dlpar_remove_pci_slot() local
370 pr_debug("PCI: Removing PCI slot below EADS bridge %s\n", in dlpar_remove_pci_slot()
373 slot = find_php_slot(dn); in dlpar_remove_pci_slot()
374 if (slot) { in dlpar_remove_pci_slot()
375 pr_debug("PCI: Removing hotplug slot for %04x:%02x...\n", in dlpar_remove_pci_slot()
378 if (rpaphp_deregister_slot(slot)) { in dlpar_remove_pci_slot()
380 "%s: unable to remove hotplug slot %s\n", in dlpar_remove_pci_slot()
387 /* Remove all devices below slot */ in dlpar_remove_pci_slot()
409 * dlpar_remove_slot - DLPAR remove an I/O Slot
410 * @drc_name: drc-name of newly added slot
412 * Remove the kernel and hotplug representations of an I/O Slot.
416 * -EINVAL Slot already removed
449 printk(KERN_INFO "%s: slot %s removed\n", DLPAR_MODULE_NAME, drc_name); in dlpar_remove_slot()