Lines Matching refs:slot
51 static int enable_slot(struct hotplug_slot *slot);
52 static int disable_slot(struct hotplug_slot *slot);
53 static int set_attention_status(struct hotplug_slot *slot, u8 value);
54 static int get_power_status(struct hotplug_slot *slot, u8 *value);
55 static int get_attention_status(struct hotplug_slot *slot, u8 *value);
56 static int get_latch_status(struct hotplug_slot *slot, u8 *value);
57 static int get_adapter_status(struct hotplug_slot *slot, u8 *value);
120 struct slot *slot = to_slot(hotplug_slot); in enable_slot() local
122 pr_debug("%s - physical_slot = %s\n", __func__, slot_name(slot)); in enable_slot()
125 return acpiphp_enable_slot(slot->acpi_slot); in enable_slot()
137 struct slot *slot = to_slot(hotplug_slot); in disable_slot() local
139 pr_debug("%s - physical_slot = %s\n", __func__, slot_name(slot)); in disable_slot()
142 return acpiphp_disable_slot(slot->acpi_slot); in disable_slot()
181 struct slot *slot = to_slot(hotplug_slot); in get_power_status() local
183 pr_debug("%s - physical_slot = %s\n", __func__, slot_name(slot)); in get_power_status()
185 *value = acpiphp_get_power_status(slot->acpi_slot); in get_power_status()
227 struct slot *slot = to_slot(hotplug_slot); in get_latch_status() local
229 pr_debug("%s - physical_slot = %s\n", __func__, slot_name(slot)); in get_latch_status()
231 *value = acpiphp_get_latch_status(slot->acpi_slot); in get_latch_status()
247 struct slot *slot = to_slot(hotplug_slot); in get_adapter_status() local
249 pr_debug("%s - physical_slot = %s\n", __func__, slot_name(slot)); in get_adapter_status()
251 *value = acpiphp_get_adapter_status(slot->acpi_slot); in get_adapter_status()
260 struct slot *slot; in acpiphp_register_hotplug_slot() local
264 slot = kzalloc(sizeof(*slot), GFP_KERNEL); in acpiphp_register_hotplug_slot()
265 if (!slot) in acpiphp_register_hotplug_slot()
268 slot->hotplug_slot.ops = &acpi_hotplug_slot_ops; in acpiphp_register_hotplug_slot()
270 slot->acpi_slot = acpiphp_slot; in acpiphp_register_hotplug_slot()
272 acpiphp_slot->slot = slot; in acpiphp_register_hotplug_slot()
273 slot->sun = sun; in acpiphp_register_hotplug_slot()
276 retval = pci_hp_register(&slot->hotplug_slot, acpiphp_slot->bus, in acpiphp_register_hotplug_slot()
285 pr_info("Slot [%s] registered\n", slot_name(slot)); in acpiphp_register_hotplug_slot()
289 kfree(slot); in acpiphp_register_hotplug_slot()
297 struct slot *slot = acpiphp_slot->slot; in acpiphp_unregister_hotplug_slot() local
299 pr_info("Slot [%s] unregistered\n", slot_name(slot)); in acpiphp_unregister_hotplug_slot()
301 pci_hp_deregister(&slot->hotplug_slot); in acpiphp_unregister_hotplug_slot()
302 kfree(slot); in acpiphp_unregister_hotplug_slot()