Lines Matching refs:hotplug_slot
36 static ssize_t location_read_file (struct hotplug_slot *php_slot, char *buf)
56 static void rpaphp_release_slot(struct hotplug_slot *hotplug_slot)
58 struct slot *slot = (struct slot *) hotplug_slot->private;
64 kfree(slot->hotplug_slot->info);
65 kfree(slot->hotplug_slot->name);
66 kfree(slot->hotplug_slot);
79 slot->hotplug_slot = kzalloc(sizeof(struct hotplug_slot), GFP_KERNEL);
80 if (!slot->hotplug_slot)
82 slot->hotplug_slot->info = kzalloc(sizeof(struct hotplug_slot_info),
84 if (!slot->hotplug_slot->info)
86 slot->hotplug_slot->name = kmalloc(BUS_ID_SIZE + 1, GFP_KERNEL);
87 if (!slot->hotplug_slot->name)
92 slot->name = slot->hotplug_slot->name;
97 slot->hotplug_slot->private = slot;
98 slot->hotplug_slot->ops = &rpaphp_hotplug_slot_ops;
99 slot->hotplug_slot->release = &rpaphp_release_slot;
104 kfree(slot->hotplug_slot->name);
106 kfree(slot->hotplug_slot->info);
108 kfree(slot->hotplug_slot);
129 struct hotplug_slot *php_slot = slot->hotplug_slot;
150 struct hotplug_slot *php_slot = slot->hotplug_slot;