Lines Matching refs:slot
120 struct acpi_pci_slot *slot; in register_slot() local
132 list_for_each_entry(slot, &slot_list, list) { in register_slot()
133 pci_slot = slot->pci_slot; in register_slot()
138 slot = kmalloc(sizeof(*slot), GFP_KERNEL); in register_slot()
139 if (!slot) { in register_slot()
148 kfree(slot); in register_slot()
152 slot->pci_slot = pci_slot; in register_slot()
153 list_add(&slot->list, &slot_list); in register_slot()
177 struct acpi_pci_slot *slot, *tmp; in acpi_pci_slot_remove() local
180 list_for_each_entry_safe(slot, tmp, &slot_list, list) { in acpi_pci_slot_remove()
181 if (slot->pci_slot->bus == bus) { in acpi_pci_slot_remove()
182 list_del(&slot->list); in acpi_pci_slot_remove()
183 pci_destroy_slot(slot->pci_slot); in acpi_pci_slot_remove()
185 kfree(slot); in acpi_pci_slot_remove()