Lines Matching refs: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);
135 struct slot *slot = hotplug_slot->private; in enable_slot() local
137 pr_debug("%s - physical_slot = %s\n", __func__, slot_name(slot)); in enable_slot()
140 return acpiphp_enable_slot(slot->acpi_slot); in enable_slot()
152 struct slot *slot = hotplug_slot->private; in disable_slot() local
154 pr_debug("%s - physical_slot = %s\n", __func__, slot_name(slot)); in disable_slot()
157 return acpiphp_disable_slot(slot->acpi_slot); in disable_slot()
196 struct slot *slot = hotplug_slot->private; in get_power_status() local
198 pr_debug("%s - physical_slot = %s\n", __func__, slot_name(slot)); in get_power_status()
200 *value = acpiphp_get_power_status(slot->acpi_slot); in get_power_status()
242 struct slot *slot = hotplug_slot->private; in get_latch_status() local
244 pr_debug("%s - physical_slot = %s\n", __func__, slot_name(slot)); in get_latch_status()
246 *value = acpiphp_get_latch_status(slot->acpi_slot); in get_latch_status()
262 struct slot *slot = hotplug_slot->private; in get_adapter_status() local
264 pr_debug("%s - physical_slot = %s\n", __func__, slot_name(slot)); in get_adapter_status()
266 *value = acpiphp_get_adapter_status(slot->acpi_slot); in get_adapter_status()
277 struct slot *slot = hotplug_slot->private; in release_slot() local
279 pr_debug("%s - physical_slot = %s\n", __func__, slot_name(slot)); in release_slot()
281 kfree(slot->hotplug_slot); in release_slot()
282 kfree(slot); in release_slot()
289 struct slot *slot; in acpiphp_register_hotplug_slot() local
293 slot = kzalloc(sizeof(*slot), GFP_KERNEL); in acpiphp_register_hotplug_slot()
294 if (!slot) in acpiphp_register_hotplug_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()
307 slot->acpi_slot = acpiphp_slot; 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()
313 acpiphp_slot->slot = slot; in acpiphp_register_hotplug_slot()
314 slot->sun = sun; in acpiphp_register_hotplug_slot()
317 retval = pci_hp_register(slot->hotplug_slot, acpiphp_slot->bus, in acpiphp_register_hotplug_slot()
326 pr_info("Slot [%s] registered\n", slot_name(slot)); in acpiphp_register_hotplug_slot()
330 kfree(slot->hotplug_slot); in acpiphp_register_hotplug_slot()
332 kfree(slot); in acpiphp_register_hotplug_slot()
340 struct slot *slot = acpiphp_slot->slot; in acpiphp_unregister_hotplug_slot() local
343 pr_info("Slot [%s] unregistered\n", slot_name(slot)); in acpiphp_unregister_hotplug_slot()
345 retval = pci_hp_deregister(slot->hotplug_slot); in acpiphp_unregister_hotplug_slot()