• Home
  • Raw
  • Download

Lines Matching refs:slot

52 static int enable_slot(struct hotplug_slot *slot);
53 static int disable_slot(struct hotplug_slot *slot);
54 static int set_attention_status(struct hotplug_slot *slot, u8 value);
55 static int get_power_status(struct hotplug_slot *slot, u8 *value);
56 static int get_attention_status(struct hotplug_slot *slot, u8 *value);
57 static int get_latch_status(struct hotplug_slot *slot, u8 *value);
58 static int get_adapter_status(struct hotplug_slot *slot, u8 *value);
121 struct slot *slot = to_slot(hotplug_slot); in enable_slot() local
123 pr_debug("%s - physical_slot = %s\n", __func__, slot_name(slot)); in enable_slot()
126 return acpiphp_enable_slot(slot->acpi_slot); in enable_slot()
138 struct slot *slot = to_slot(hotplug_slot); in disable_slot() local
140 pr_debug("%s - physical_slot = %s\n", __func__, slot_name(slot)); in disable_slot()
143 return acpiphp_disable_slot(slot->acpi_slot); in disable_slot()
182 struct slot *slot = to_slot(hotplug_slot); in get_power_status() local
184 pr_debug("%s - physical_slot = %s\n", __func__, slot_name(slot)); in get_power_status()
186 *value = acpiphp_get_power_status(slot->acpi_slot); in get_power_status()
228 struct slot *slot = to_slot(hotplug_slot); in get_latch_status() local
230 pr_debug("%s - physical_slot = %s\n", __func__, slot_name(slot)); in get_latch_status()
232 *value = acpiphp_get_latch_status(slot->acpi_slot); in get_latch_status()
248 struct slot *slot = to_slot(hotplug_slot); in get_adapter_status() local
250 pr_debug("%s - physical_slot = %s\n", __func__, slot_name(slot)); in get_adapter_status()
252 *value = acpiphp_get_adapter_status(slot->acpi_slot); in get_adapter_status()
261 struct slot *slot; in acpiphp_register_hotplug_slot() local
265 slot = kzalloc(sizeof(*slot), GFP_KERNEL); in acpiphp_register_hotplug_slot()
266 if (!slot) in acpiphp_register_hotplug_slot()
269 slot->hotplug_slot.ops = &acpi_hotplug_slot_ops; in acpiphp_register_hotplug_slot()
271 slot->acpi_slot = acpiphp_slot; in acpiphp_register_hotplug_slot()
273 acpiphp_slot->slot = slot; in acpiphp_register_hotplug_slot()
274 slot->sun = sun; in acpiphp_register_hotplug_slot()
277 retval = pci_hp_register(&slot->hotplug_slot, acpiphp_slot->bus, in acpiphp_register_hotplug_slot()
286 pr_info("Slot [%s] registered\n", slot_name(slot)); in acpiphp_register_hotplug_slot()
290 kfree(slot); in acpiphp_register_hotplug_slot()
298 struct slot *slot = acpiphp_slot->slot; in acpiphp_unregister_hotplug_slot() local
300 pr_info("Slot [%s] unregistered\n", slot_name(slot)); in acpiphp_unregister_hotplug_slot()
302 pci_hp_deregister(&slot->hotplug_slot); in acpiphp_unregister_hotplug_slot()
303 kfree(slot); in acpiphp_unregister_hotplug_slot()