Lines Matching refs:hotplug_slot
66 static int enable_slot(struct hotplug_slot *slot);
67 static int disable_slot(struct hotplug_slot *slot);
68 static int set_attention_status(struct hotplug_slot *slot, u8 value);
69 static int get_power_status(struct hotplug_slot *slot, u8 *value);
70 static int get_attention_status(struct hotplug_slot *slot, u8 *value);
71 static int get_latch_status(struct hotplug_slot *slot, u8 *value);
72 static int get_adapter_status(struct hotplug_slot *slot, u8 *value);
133 static int enable_slot(struct hotplug_slot *hotplug_slot) in enable_slot() argument
135 struct slot *slot = hotplug_slot->private; in enable_slot()
150 static int disable_slot(struct hotplug_slot *hotplug_slot) in disable_slot() argument
152 struct slot *slot = hotplug_slot->private; in disable_slot()
170 static int set_attention_status(struct hotplug_slot *hotplug_slot, u8 status) in set_attention_status() argument
175 hotplug_slot_name(hotplug_slot)); in set_attention_status()
178 retval = attention_info->set_attn(hotplug_slot, status); in set_attention_status()
194 static int get_power_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_power_status() argument
196 struct slot *slot = hotplug_slot->private; in get_power_status()
216 static int get_attention_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_attention_status() argument
221 hotplug_slot_name(hotplug_slot)); in get_attention_status()
224 retval = attention_info->get_attn(hotplug_slot, value); in get_attention_status()
240 static int get_latch_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_latch_status() argument
242 struct slot *slot = hotplug_slot->private; in get_latch_status()
260 static int get_adapter_status(struct hotplug_slot *hotplug_slot, u8 *value) in get_adapter_status() argument
262 struct slot *slot = hotplug_slot->private; in get_adapter_status()
275 static void release_slot(struct hotplug_slot *hotplug_slot) in release_slot() argument
277 struct slot *slot = hotplug_slot->private; in release_slot()
281 kfree(slot->hotplug_slot); in release_slot()
297 slot->hotplug_slot = kzalloc(sizeof(*slot->hotplug_slot), GFP_KERNEL); in acpiphp_register_hotplug_slot()
298 if (!slot->hotplug_slot) in acpiphp_register_hotplug_slot()
301 slot->hotplug_slot->info = &slot->info; in acpiphp_register_hotplug_slot()
303 slot->hotplug_slot->private = slot; in acpiphp_register_hotplug_slot()
304 slot->hotplug_slot->release = &release_slot; in acpiphp_register_hotplug_slot()
305 slot->hotplug_slot->ops = &acpi_hotplug_slot_ops; in acpiphp_register_hotplug_slot()
308 slot->hotplug_slot->info->power_status = acpiphp_get_power_status(slot->acpi_slot); in acpiphp_register_hotplug_slot()
309 slot->hotplug_slot->info->attention_status = 0; in acpiphp_register_hotplug_slot()
310 slot->hotplug_slot->info->latch_status = acpiphp_get_latch_status(slot->acpi_slot); in acpiphp_register_hotplug_slot()
311 slot->hotplug_slot->info->adapter_status = acpiphp_get_adapter_status(slot->acpi_slot); in acpiphp_register_hotplug_slot()
317 retval = pci_hp_register(slot->hotplug_slot, acpiphp_slot->bus, in acpiphp_register_hotplug_slot()
330 kfree(slot->hotplug_slot); in acpiphp_register_hotplug_slot()
345 retval = pci_hp_deregister(slot->hotplug_slot); in acpiphp_unregister_hotplug_slot()