Lines Matching refs:slot
55 struct slot *slot = to_slot(hotplug_slot); in set_attention_status() local
67 rc = rtas_set_indicator(DR_INDICATOR, slot->index, value); in set_attention_status()
69 slot->attention_status = value; in set_attention_status()
82 struct slot *slot = to_slot(hotplug_slot); in get_power_status() local
84 retval = rtas_get_power_level(slot->power_domain, &level); in get_power_status()
97 struct slot *slot = to_slot(hotplug_slot); in get_attention_status() local
98 *value = slot->attention_status; in get_attention_status()
104 struct slot *slot = to_slot(hotplug_slot); in get_adapter_status() local
107 rc = rpaphp_get_sensor_state(slot, &state); in get_adapter_status()
116 *value = slot->state; in get_adapter_status()
121 static enum pci_bus_speed get_max_bus_speed(struct slot *slot) in get_max_bus_speed() argument
124 switch (slot->type) { in get_max_bus_speed()
334 struct slot *slot; in rpaphp_drc_info_add_slot() local
358 slot = alloc_slot_struct(dn, drc.drc_index_start, drc_name, drc.drc_power_domain); in rpaphp_drc_info_add_slot()
359 if (!slot) in rpaphp_drc_info_add_slot()
362 slot->type = simple_strtoul(drc.drc_type, NULL, 10); in rpaphp_drc_info_add_slot()
363 retval = rpaphp_enable_slot(slot); in rpaphp_drc_info_add_slot()
365 retval = rpaphp_register_slot(slot); in rpaphp_drc_info_add_slot()
368 dealloc_slot_struct(slot); in rpaphp_drc_info_add_slot()
375 struct slot *slot; in rpaphp_drc_add_slot() local
394 slot = alloc_slot_struct(dn, index, name, in rpaphp_drc_add_slot()
396 if (!slot) in rpaphp_drc_add_slot()
399 slot->type = simple_strtoul(type, NULL, 10); in rpaphp_drc_add_slot()
404 retval = rpaphp_enable_slot(slot); in rpaphp_drc_add_slot()
406 retval = rpaphp_register_slot(slot); in rpaphp_drc_add_slot()
409 dealloc_slot_struct(slot); in rpaphp_drc_add_slot()
450 struct slot *slot, *next; in cleanup_slots() local
457 list_for_each_entry_safe(slot, next, &rpaphp_slot_head, in cleanup_slots()
459 list_del(&slot->rpaphp_slot_list); in cleanup_slots()
460 pci_hp_deregister(&slot->hotplug_slot); in cleanup_slots()
461 dealloc_slot_struct(slot); in cleanup_slots()
484 struct slot *slot = to_slot(hotplug_slot); in enable_slot() local
488 if (slot->state == CONFIGURED) in enable_slot()
491 retval = rpaphp_get_sensor_state(slot, &state); in enable_slot()
496 pseries_eeh_init_edev_recursive(PCI_DN(slot->dn)); in enable_slot()
499 pci_hp_add_devices(slot->bus); in enable_slot()
501 slot->state = CONFIGURED; in enable_slot()
503 slot->state = EMPTY; in enable_slot()
505 err("%s: slot[%s] is in invalid state\n", __func__, slot->name); in enable_slot()
506 slot->state = NOT_VALID; in enable_slot()
510 slot->bus->max_bus_speed = get_max_bus_speed(slot); in enable_slot()
516 struct slot *slot = to_slot(hotplug_slot); in disable_slot() local
517 if (slot->state == NOT_CONFIGURED) in disable_slot()
521 pci_hp_remove_devices(slot->bus); in disable_slot()
525 slot->state = NOT_CONFIGURED; in disable_slot()