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);
119 struct slot *slot = to_slot(hotplug_slot); in enable_slot() local
121 pr_debug("%s - physical_slot = %s\n", __func__, slot_name(slot)); in enable_slot()
124 return acpiphp_enable_slot(slot->acpi_slot); in enable_slot()
136 struct slot *slot = to_slot(hotplug_slot); in disable_slot() local
138 pr_debug("%s - physical_slot = %s\n", __func__, slot_name(slot)); in disable_slot()
141 return acpiphp_disable_slot(slot->acpi_slot); in disable_slot()
180 struct slot *slot = to_slot(hotplug_slot); in get_power_status() local
182 pr_debug("%s - physical_slot = %s\n", __func__, slot_name(slot)); in get_power_status()
184 *value = acpiphp_get_power_status(slot->acpi_slot); in get_power_status()
226 struct slot *slot = to_slot(hotplug_slot); in get_latch_status() local
228 pr_debug("%s - physical_slot = %s\n", __func__, slot_name(slot)); in get_latch_status()
230 *value = acpiphp_get_latch_status(slot->acpi_slot); in get_latch_status()
246 struct slot *slot = to_slot(hotplug_slot); in get_adapter_status() local
248 pr_debug("%s - physical_slot = %s\n", __func__, slot_name(slot)); in get_adapter_status()
250 *value = acpiphp_get_adapter_status(slot->acpi_slot); in get_adapter_status()
259 struct slot *slot; in acpiphp_register_hotplug_slot() local
263 slot = kzalloc(sizeof(*slot), GFP_KERNEL); in acpiphp_register_hotplug_slot()
264 if (!slot) in acpiphp_register_hotplug_slot()
267 slot->hotplug_slot.ops = &acpi_hotplug_slot_ops; in acpiphp_register_hotplug_slot()
269 slot->acpi_slot = acpiphp_slot; in acpiphp_register_hotplug_slot()
271 acpiphp_slot->slot = slot; in acpiphp_register_hotplug_slot()
272 slot->sun = sun; in acpiphp_register_hotplug_slot()
275 retval = pci_hp_register(&slot->hotplug_slot, acpiphp_slot->bus, in acpiphp_register_hotplug_slot()
284 pr_info("Slot [%s] registered\n", slot_name(slot)); in acpiphp_register_hotplug_slot()
288 kfree(slot); in acpiphp_register_hotplug_slot()
296 struct slot *slot = acpiphp_slot->slot; in acpiphp_unregister_hotplug_slot() local
298 pr_info("Slot [%s] unregistered\n", slot_name(slot)); in acpiphp_unregister_hotplug_slot()
300 pci_hp_deregister(&slot->hotplug_slot); in acpiphp_unregister_hotplug_slot()
301 kfree(slot); in acpiphp_unregister_hotplug_slot()