Lines Matching refs:hotplug_slot
691 static int fillslotinfo(struct hotplug_slot *hotplug_slot)
696 if (!hotplug_slot || !hotplug_slot->private)
699 slot = hotplug_slot->private;
705 hotplug_slot->info->power_status = SLOT_POWER(slot->status);
708 hotplug_slot->info->attention_status = SLOT_ATTN(slot->status, slot->ext_status);
711 hotplug_slot->info->latch_status = SLOT_LATCH(slot->status);
715 hotplug_slot->info->adapter_status = 1;
717 hotplug_slot->info->adapter_status = 0;
721 hotplug_slot->info->max_bus_speed_status = BUS_SPEED_66PCIX;
723 hotplug_slot->info->max_bus_speed_status = slot->bus_on->supported_speed;
729 static void release_slot(struct hotplug_slot *hotplug_slot)
733 if (!hotplug_slot || !hotplug_slot->private)
736 slot = hotplug_slot->private;
737 kfree(slot->hotplug_slot->info);
738 kfree(slot->hotplug_slot->name);
739 kfree(slot->hotplug_slot);
762 struct hotplug_slot *hp_slot_ptr;
974 tmp_slot->hotplug_slot = hp_slot_ptr;
1001 snprintf (tmp_slot->hotplug_slot->name, 30, "%s", create_file_name (tmp_slot));
1002 pci_hp_register (tmp_slot->hotplug_slot);