Lines Matching refs:hotplug_slot
39 struct hotplug_slot *hotplug_slot; member
65 static int enable_slot(struct hotplug_slot *hotplug_slot) in enable_slot() argument
67 struct slot *slot = hotplug_slot->private; in enable_slot()
93 static int disable_slot(struct hotplug_slot *hotplug_slot) in disable_slot() argument
95 struct slot *slot = hotplug_slot->private; in disable_slot()
111 static int get_power_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_power_status() argument
113 struct slot *slot = hotplug_slot->private; in get_power_status()
126 static int get_adapter_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_adapter_status() argument
133 static void release_slot(struct hotplug_slot *hotplug_slot) in release_slot() argument
135 struct slot *slot = hotplug_slot->private; in release_slot()
137 kfree(slot->hotplug_slot->info); in release_slot()
138 kfree(slot->hotplug_slot); in release_slot()
151 struct hotplug_slot *hotplug_slot; in zpci_init_slot() local
164 hotplug_slot = kzalloc(sizeof(*hotplug_slot), GFP_KERNEL); in zpci_init_slot()
165 if (!hotplug_slot) in zpci_init_slot()
167 hotplug_slot->private = slot; in zpci_init_slot()
169 slot->hotplug_slot = hotplug_slot; in zpci_init_slot()
175 hotplug_slot->info = info; in zpci_init_slot()
177 hotplug_slot->ops = &s390_hotplug_slot_ops; in zpci_init_slot()
178 hotplug_slot->release = &release_slot; in zpci_init_slot()
180 get_power_status(hotplug_slot, &info->power_status); in zpci_init_slot()
181 get_adapter_status(hotplug_slot, &info->adapter_status); in zpci_init_slot()
184 rc = pci_hp_register(slot->hotplug_slot, zdev->bus, in zpci_init_slot()
195 kfree(hotplug_slot); in zpci_init_slot()
212 pci_hp_deregister(slot->hotplug_slot); in zpci_exit_slot()