Lines Matching refs:hotplug_slot
178 struct hotplug_slot *hotplug_slot;
589 if (eeepc->hotplug_slot) {
687 static int eeepc_get_adapter_status(struct hotplug_slot *hotplug_slot,
690 struct eeepc_laptop *eeepc = hotplug_slot->private;
701 static void eeepc_cleanup_pci_hotplug(struct hotplug_slot *hotplug_slot)
703 kfree(hotplug_slot->info);
704 kfree(hotplug_slot);
723 eeepc->hotplug_slot = kzalloc(sizeof(struct hotplug_slot), GFP_KERNEL);
724 if (!eeepc->hotplug_slot)
727 eeepc->hotplug_slot->info = kzalloc(sizeof(struct hotplug_slot_info),
729 if (!eeepc->hotplug_slot->info)
732 eeepc->hotplug_slot->private = eeepc;
733 eeepc->hotplug_slot->release = &eeepc_cleanup_pci_hotplug;
734 eeepc->hotplug_slot->ops = &eeepc_hotplug_slot_ops;
735 eeepc_get_adapter_status(eeepc->hotplug_slot,
736 &eeepc->hotplug_slot->info->adapter_status);
738 ret = pci_hp_register(eeepc->hotplug_slot, bus, 0, "eeepc-wifi");
747 kfree(eeepc->hotplug_slot->info);
749 kfree(eeepc->hotplug_slot);
750 eeepc->hotplug_slot = NULL;
812 if (eeepc->hotplug_slot)
813 pci_hp_deregister(eeepc->hotplug_slot);