Lines Matching refs:hotplug_slot
42 struct hotplug_slot *hotplug_slot; member
75 static int enable_slot (struct hotplug_slot *slot);
76 static int disable_slot (struct hotplug_slot *slot);
77 static int set_attention_status (struct hotplug_slot *slot, u8 value);
78 static int hardware_test (struct hotplug_slot *slot, u32 value);
79 static int get_power_status (struct hotplug_slot *slot, u8 *value);
80 static int get_attention_status (struct hotplug_slot *slot, u8 *value);
81 static int get_latch_status (struct hotplug_slot *slot, u8 *value);
82 static int get_adapter_status (struct hotplug_slot *slot, u8 *value);
95 static int enable_slot(struct hotplug_slot *hotplug_slot) in enable_slot() argument
97 struct slot *slot = hotplug_slot->private; in enable_slot()
100 dbg("%s - physical_slot = %s\n", __func__, hotplug_slot->name); in enable_slot()
109 static int disable_slot(struct hotplug_slot *hotplug_slot) in disable_slot() argument
111 struct slot *slot = hotplug_slot->private; in disable_slot()
114 dbg("%s - physical_slot = %s\n", __func__, hotplug_slot->name); in disable_slot()
123 static int set_attention_status(struct hotplug_slot *hotplug_slot, u8 status) in set_attention_status() argument
125 struct slot *slot = hotplug_slot->private; in set_attention_status()
128 dbg("%s - physical_slot = %s\n", __func__, hotplug_slot->name); in set_attention_status()
148 static int hardware_test(struct hotplug_slot *hotplug_slot, u32 value) in hardware_test() argument
150 struct slot *slot = hotplug_slot->private; in hardware_test()
153 dbg("%s - physical_slot = %s\n", __func__, hotplug_slot->name); in hardware_test()
167 static int get_power_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_power_status() argument
169 struct slot *slot = hotplug_slot->private; in get_power_status()
172 dbg("%s - physical_slot = %s\n", __func__, hotplug_slot->name); in get_power_status()
182 static int get_attention_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_attention_status() argument
184 struct slot *slot = hotplug_slot->private; in get_attention_status()
187 dbg("%s - physical_slot = %s\n", __func__, hotplug_slot->name); in get_attention_status()
197 static int get_latch_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_latch_status() argument
199 struct slot *slot = hotplug_slot->private; in get_latch_status()
202 dbg("%s - physical_slot = %s\n", __func__, hotplug_slot->name); in get_latch_status()
212 static int get_adapter_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_adapter_status() argument
214 struct slot *slot = hotplug_slot->private; in get_adapter_status()
217 dbg("%s - physical_slot = %s\n", __func__, hotplug_slot->name); in get_adapter_status()
227 static void release_slot(struct hotplug_slot *hotplug_slot) in release_slot() argument
229 struct slot *slot = hotplug_slot->private; in release_slot()
231 dbg("%s - physical_slot = %s\n", __func__, hotplug_slot->name); in release_slot()
232 kfree(slot->hotplug_slot->info); in release_slot()
233 kfree(slot->hotplug_slot); in release_slot()
243 snprintf(slot->hotplug_slot->name, SLOT_NAME_SIZE, "%d", slot->number); in make_slot_name()
253 struct hotplug_slot *hotplug_slot; in init_slots() local
269 hotplug_slot = kzalloc(sizeof(*hotplug_slot), GFP_KERNEL); in init_slots()
270 if (!hotplug_slot) { in init_slots()
274 slot->hotplug_slot = hotplug_slot; in init_slots()
281 hotplug_slot->info = info; in init_slots()
285 hotplug_slot->name = slot->name; in init_slots()
286 hotplug_slot->private = slot; in init_slots()
287 hotplug_slot->release = &release_slot; in init_slots()
289 hotplug_slot->ops = &skel_hotplug_slot_ops; in init_slots()
295 get_power_status(hotplug_slot, &info->power_status); in init_slots()
296 get_attention_status(hotplug_slot, &info->attention_status); in init_slots()
297 get_latch_status(hotplug_slot, &info->latch_status); in init_slots()
298 get_adapter_status(hotplug_slot, &info->adapter_status); in init_slots()
301 retval = pci_hp_register(slot->hotplug_slot); in init_slots()
315 kfree(hotplug_slot); in init_slots()
336 pci_hp_deregister(slot->hotplug_slot); in cleanup_slots()