Lines Matching refs:old_slot
907 static int slot_remove(struct pci_func * old_slot) in slot_remove() argument
911 if (old_slot == NULL) in slot_remove()
914 next = pciehp_slot_list[old_slot->bus]; in slot_remove()
920 if (next == old_slot) { in slot_remove()
921 pciehp_slot_list[old_slot->bus] = old_slot->next; in slot_remove()
922 pciehp_destroy_board_resources(old_slot); in slot_remove()
923 kfree(old_slot); in slot_remove()
927 while ((next->next != old_slot) && (next->next != NULL)) { in slot_remove()
931 if (next->next == old_slot) { in slot_remove()
932 next->next = old_slot->next; in slot_remove()
933 pciehp_destroy_board_resources(old_slot); in slot_remove()
934 kfree(old_slot); in slot_remove()