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);
112 * enable_slot - power on and enable a slot
113 * @hotplug_slot: slot to enable
119 struct slot *slot = to_slot(hotplug_slot);
121 pr_debug("%s - physical_slot = %s\n", __func__, slot_name(slot));
123 /* enable the specified slot */
124 return acpiphp_enable_slot(slot->acpi_slot);
129 * disable_slot - disable and power off a slot
130 * @hotplug_slot: slot to disable
136 struct slot *slot = to_slot(hotplug_slot);
138 pr_debug("%s - physical_slot = %s\n", __func__, slot_name(slot));
140 /* disable the specified slot */
141 return acpiphp_disable_slot(slot->acpi_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);
182 pr_debug("%s - physical_slot = %s\n", __func__, slot_name(slot));
184 *value = acpiphp_get_power_status(slot->acpi_slot);
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);
228 pr_debug("%s - physical_slot = %s\n", __func__, slot_name(slot));
230 *value = acpiphp_get_latch_status(slot->acpi_slot);
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);
248 pr_debug("%s - physical_slot = %s\n", __func__, slot_name(slot));
250 *value = acpiphp_get_adapter_status(slot->acpi_slot);
255 /* callback routine to initialize 'struct slot' for each slot */
259 struct slot *slot;
263 slot = kzalloc(sizeof(*slot), GFP_KERNEL);
264 if (!slot)
267 slot->hotplug_slot.ops = &acpi_hotplug_slot_ops;
269 slot->acpi_slot = acpiphp_slot;
271 acpiphp_slot->slot = slot;
272 slot->sun = sun;
275 retval = pci_hp_register(&slot->hotplug_slot, acpiphp_slot->bus,
284 pr_info("Slot [%s] registered\n", slot_name(slot));
288 kfree(slot);
296 struct slot *slot = acpiphp_slot->slot;
298 pr_info("Slot [%s] unregistered\n", slot_name(slot));
300 pci_hp_deregister(&slot->hotplug_slot);
301 kfree(slot);