Lines Matching refs:slot

68 	struct slot *slot = (struct slot *)hotplug_slot->private;  in set_attention_status()  local
80 rc = rtas_set_indicator(DR_INDICATOR, slot->index, value); in set_attention_status()
95 struct slot *slot = (struct slot *)hotplug_slot->private; in get_power_status() local
97 retval = rtas_get_power_level (slot->power_domain, &level); in get_power_status()
110 struct slot *slot = (struct slot *)hotplug_slot->private; in get_attention_status() local
111 *value = slot->hotplug_slot->info->attention_status; in get_attention_status()
117 struct slot *slot = (struct slot *)hotplug_slot->private; in get_adapter_status() local
120 rc = rpaphp_get_sensor_state(slot, &state); in get_adapter_status()
129 *value = slot->state; in get_adapter_status()
134 static enum pci_bus_speed get_max_bus_speed(struct slot *slot) in get_max_bus_speed() argument
137 switch (slot->type) { in get_max_bus_speed()
308 struct slot *slot; in rpaphp_add_slot() local
330 slot = alloc_slot_struct(dn, index, name, in rpaphp_add_slot()
332 if (!slot) in rpaphp_add_slot()
335 slot->type = simple_strtoul(type, NULL, 10); in rpaphp_add_slot()
340 retval = rpaphp_enable_slot(slot); in rpaphp_add_slot()
342 retval = rpaphp_register_slot(slot); in rpaphp_add_slot()
345 dealloc_slot_struct(slot); in rpaphp_add_slot()
360 struct slot *slot; in cleanup_slots() local
369 slot = list_entry(tmp, struct slot, rpaphp_slot_list); in cleanup_slots()
370 list_del(&slot->rpaphp_slot_list); in cleanup_slots()
371 pci_hp_deregister(slot->hotplug_slot); in cleanup_slots()
395 struct slot *slot = (struct slot *)hotplug_slot->private; in enable_slot() local
399 if (slot->state == CONFIGURED) in enable_slot()
402 retval = rpaphp_get_sensor_state(slot, &state); in enable_slot()
408 pcibios_add_pci_devices(slot->bus); in enable_slot()
410 slot->state = CONFIGURED; in enable_slot()
412 slot->state = EMPTY; in enable_slot()
414 err("%s: slot[%s] is in invalid state\n", __func__, slot->name); in enable_slot()
415 slot->state = NOT_VALID; in enable_slot()
419 slot->bus->max_bus_speed = get_max_bus_speed(slot); in enable_slot()
425 struct slot *slot = (struct slot *)hotplug_slot->private; in disable_slot() local
426 if (slot->state == NOT_CONFIGURED) in disable_slot()
430 pcibios_remove_pci_devices(slot->bus); in disable_slot()
434 slot->state = NOT_CONFIGURED; in disable_slot()