Lines Matching refs:slot

55 	struct slot *slot = (struct slot *)hotplug_slot->private;  in set_attention_status()  local
67 rc = rtas_set_indicator(DR_INDICATOR, slot->index, value); in set_attention_status()
82 struct slot *slot = (struct slot *)hotplug_slot->private; in get_power_status() local
84 retval = rtas_get_power_level(slot->power_domain, &level); in get_power_status()
97 struct slot *slot = (struct slot *)hotplug_slot->private; in get_attention_status() local
98 *value = slot->hotplug_slot->info->attention_status; in get_attention_status()
104 struct slot *slot = (struct slot *)hotplug_slot->private; 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()
351 struct slot *slot; in rpaphp_add_slot() local
373 slot = alloc_slot_struct(dn, index, name, in rpaphp_add_slot()
375 if (!slot) in rpaphp_add_slot()
378 slot->type = simple_strtoul(type, NULL, 10); in rpaphp_add_slot()
383 retval = rpaphp_enable_slot(slot); in rpaphp_add_slot()
385 retval = rpaphp_register_slot(slot); in rpaphp_add_slot()
388 dealloc_slot_struct(slot); in rpaphp_add_slot()
402 struct slot *slot, *next; in cleanup_slots() local
409 list_for_each_entry_safe(slot, next, &rpaphp_slot_head, in cleanup_slots()
411 list_del(&slot->rpaphp_slot_list); in cleanup_slots()
412 pci_hp_deregister(slot->hotplug_slot); in cleanup_slots()
413 dealloc_slot_struct(slot); in cleanup_slots()
437 struct slot *slot = (struct slot *)hotplug_slot->private; in enable_slot() local
441 if (slot->state == CONFIGURED) in enable_slot()
444 retval = rpaphp_get_sensor_state(slot, &state); in enable_slot()
450 pci_hp_add_devices(slot->bus); in enable_slot()
452 slot->state = CONFIGURED; in enable_slot()
454 slot->state = EMPTY; in enable_slot()
456 err("%s: slot[%s] is in invalid state\n", __func__, slot->name); in enable_slot()
457 slot->state = NOT_VALID; in enable_slot()
461 slot->bus->max_bus_speed = get_max_bus_speed(slot); in enable_slot()
467 struct slot *slot = (struct slot *)hotplug_slot->private; in disable_slot() local
468 if (slot->state == NOT_CONFIGURED) in disable_slot()
472 pci_hp_remove_devices(slot->bus); in disable_slot()
476 slot->state = NOT_CONFIGURED; in disable_slot()