Lines Matching refs:slot
35 int rpaphp_get_sensor_state(struct slot *slot, int *state) in rpaphp_get_sensor_state() argument
40 rc = rtas_get_sensor(DR_ENTITY_SENSE, slot->index, state); in rpaphp_get_sensor_state()
50 rc = rtas_set_power_level(slot->power_domain, POWER_ON, in rpaphp_get_sensor_state()
54 __func__, slot->name, rc); in rpaphp_get_sensor_state()
57 slot->index, state); in rpaphp_get_sensor_state()
76 int rpaphp_enable_slot(struct slot *slot) in rpaphp_enable_slot() argument
80 struct hotplug_slot_info *info = slot->hotplug_slot->info; in rpaphp_enable_slot()
83 slot->state = EMPTY; in rpaphp_enable_slot()
86 rc = rtas_get_power_level(slot->power_domain, &level); in rpaphp_enable_slot()
92 rc = rpaphp_get_sensor_state(slot, &state); in rpaphp_enable_slot()
96 bus = pcibios_find_pci_bus(slot->dn); in rpaphp_enable_slot()
98 err("%s: no pci_bus for dn %s\n", __func__, slot->dn->full_name); in rpaphp_enable_slot()
103 slot->bus = bus; in rpaphp_enable_slot()
104 slot->pci_devs = &bus->devices; in rpaphp_enable_slot()
109 slot->state = NOT_CONFIGURED; in rpaphp_enable_slot()
112 if (!slot->dn->child) { in rpaphp_enable_slot()
114 __func__, slot->name); in rpaphp_enable_slot()
123 slot->state = CONFIGURED; in rpaphp_enable_slot()
128 dbg("%s: pci_devs of slot[%s]\n", __func__, slot->dn->full_name); in rpaphp_enable_slot()