Lines Matching refs:slot
116 struct acpi_pci_slot *slot; in register_slot() local
128 list_for_each_entry(slot, &slot_list, list) { in register_slot()
129 pci_slot = slot->pci_slot; in register_slot()
134 slot = kmalloc(sizeof(*slot), GFP_KERNEL); in register_slot()
135 if (!slot) { in register_slot()
144 kfree(slot); in register_slot()
148 slot->pci_slot = pci_slot; in register_slot()
149 list_add(&slot->list, &slot_list); in register_slot()
173 struct acpi_pci_slot *slot, *tmp; in acpi_pci_slot_remove() local
176 list_for_each_entry_safe(slot, tmp, &slot_list, list) { in acpi_pci_slot_remove()
177 if (slot->pci_slot->bus == bus) { in acpi_pci_slot_remove()
178 list_del(&slot->list); in acpi_pci_slot_remove()
179 pci_destroy_slot(slot->pci_slot); in acpi_pci_slot_remove()
181 kfree(slot); in acpi_pci_slot_remove()