Lines Matching defs:state
23 * RTAS call get-sensor-state(DR_ENTITY_SENSE) return values as per PAPR:
59 * On certain PHB failures, the RTAS call rtas_call(get-sensor-state) returns
66 * invoke rtas_call(get-sensor-state) directly if the respective PE is in EEH
67 * recovery state and return -EBUSY error based on RTAS return status. This
72 static int __rpaphp_get_sensor_state(struct slot *slot, int *state)
75 int token = rtas_token("get-sensor-state");
93 if (pe && (pe->state & EEH_PE_RECOVERING)) {
94 rc = rtas_call(token, 2, 2, state, DR_ENTITY_SENSE,
99 return rtas_get_sensor(DR_ENTITY_SENSE, slot->index, state);
102 int rpaphp_get_sensor_state(struct slot *slot, int *state)
107 rc = __rpaphp_get_sensor_state(slot, state);
111 dbg("%s: slot must be power up to get sensor-state\n",
123 rc = __rpaphp_get_sensor_state(slot, state);
128 err("%s failed to get sensor state\n", __func__);
134 * rpaphp_enable_slot - record slot state, config pci device
143 int rc, level, state;
146 slot->state = EMPTY;
154 rc = rpaphp_get_sensor_state(slot, &state);
168 if (state == PRESENT) {
169 slot->state = NOT_CONFIGURED;
184 slot->state = CONFIGURED;