Lines Matching full: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);
112 * enable_slot - power on and enable a slot
113 * @hotplug_slot: slot to enable
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()
123 /* enable the specified slot */ in enable_slot()
124 return acpiphp_enable_slot(slot->acpi_slot); in enable_slot()
129 * disable_slot - disable and power off a slot
130 * @hotplug_slot: slot to disable
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()
140 /* disable the specified slot */ in disable_slot()
141 return acpiphp_disable_slot(slot->acpi_slot); in disable_slot()
147 * @hotplug_slot: slot to set attention LED on
171 * get_power_status - get power status of a slot
172 * @hotplug_slot: slot to get status
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()
192 * @hotplug_slot: slot to get status from
217 * get_latch_status - get latch status of a slot
218 * @hotplug_slot: slot to get 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()
237 * get_adapter_status - get adapter status of a slot
238 * @hotplug_slot: slot to get 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()
255 /* callback routine to initialize 'struct slot' for each slot */
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()