• Home
  • Raw
  • Download

Lines Matching full:slot

21 int rpaphp_get_sensor_state(struct slot *slot, int *state)  in rpaphp_get_sensor_state()  argument
26 rc = rtas_get_sensor(DR_ENTITY_SENSE, slot->index, state); in rpaphp_get_sensor_state()
30 dbg("%s: slot must be power up to get sensor-state\n", in rpaphp_get_sensor_state()
36 rc = rtas_set_power_level(slot->power_domain, POWER_ON, in rpaphp_get_sensor_state()
39 dbg("%s: power on slot[%s] failed rc=%d.\n", in rpaphp_get_sensor_state()
40 __func__, slot->name, rc); in rpaphp_get_sensor_state()
43 slot->index, state); in rpaphp_get_sensor_state()
46 info("%s: slot is unusable\n", __func__); in rpaphp_get_sensor_state()
54 * rpaphp_enable_slot - record slot state, config pci device
55 * @slot: target &slot
57 * Initialize values in the slot, and the hotplug_slot info
59 * the slot. If the slot is not empty, run the pcibios routine
62 int rpaphp_enable_slot(struct slot *slot) in rpaphp_enable_slot() argument
66 struct hotplug_slot_info *info = slot->hotplug_slot->info; in rpaphp_enable_slot()
69 slot->state = EMPTY; in rpaphp_enable_slot()
71 /* Find out if the power is turned on for the slot */ in rpaphp_enable_slot()
72 rc = rtas_get_power_level(slot->power_domain, &level); in rpaphp_enable_slot()
77 /* Figure out if there is an adapter in the slot */ in rpaphp_enable_slot()
78 rc = rpaphp_get_sensor_state(slot, &state); in rpaphp_enable_slot()
82 bus = pci_find_bus_by_node(slot->dn); in rpaphp_enable_slot()
84 err("%s: no pci_bus for dn %pOF\n", __func__, slot->dn); in rpaphp_enable_slot()
89 slot->bus = bus; in rpaphp_enable_slot()
90 slot->pci_devs = &bus->devices; in rpaphp_enable_slot()
92 /* if there's an adapter in the slot, go add the pci devices */ in rpaphp_enable_slot()
95 slot->state = NOT_CONFIGURED; in rpaphp_enable_slot()
97 /* non-empty slot has to have child */ in rpaphp_enable_slot()
98 if (!slot->dn->child) { in rpaphp_enable_slot()
99 err("%s: slot[%s]'s device_node doesn't have child for adapter\n", in rpaphp_enable_slot()
100 __func__, slot->name); in rpaphp_enable_slot()
109 slot->state = CONFIGURED; in rpaphp_enable_slot()
114 dbg("%s: pci_devs of slot[%pOF]\n", __func__, slot->dn); in rpaphp_enable_slot()