Lines Matching refs:rc

144 	int rc = -1;
159 rc = rtas_call(cc_token, 2, 1, NULL,
161 } while (rtas_busy_delay(rc));
163 switch (rc) {
215 "returned from configure-connector\n", rc);
218 } while (rc);
223 if (rc) {
235 int rc;
239 rc = of_attach_node(dn);
240 if (rc) {
242 return rc;
251 int rc;
259 rc = of_detach_node(dn);
260 if (rc)
261 return rc;
280 int dr_status, rc;
282 rc = rtas_get_sensor(DR_ENTITY_SENSE, drc_index, &dr_status);
283 if (rc || dr_status != DR_ENTITY_UNUSABLE)
286 rc = rtas_set_indicator(ALLOCATION_STATE, drc_index, ALLOC_USABLE);
287 if (rc)
288 return rc;
290 rc = rtas_set_indicator(ISOLATION_STATE, drc_index, UNISOLATE);
291 if (rc) {
293 return rc;
301 int dr_status, rc;
303 rc = rtas_get_sensor(DR_ENTITY_SENSE, drc_index, &dr_status);
304 if (rc || dr_status != DR_ENTITY_PRESENT)
307 rc = rtas_set_indicator(ISOLATION_STATE, drc_index, ISOLATE);
308 if (rc)
309 return rc;
311 rc = rtas_set_indicator(ALLOCATION_STATE, drc_index, ALLOC_UNUSABLE);
312 if (rc) {
314 return rc;
322 int dr_status, rc;
324 rc = rtas_get_sensor(DR_ENTITY_SENSE, drc_index, &dr_status);
325 if (rc || dr_status != DR_ENTITY_PRESENT)
335 int rc;
356 rc = dlpar_memory(hp_elog);
359 rc = dlpar_cpu(hp_elog);
362 rc = dlpar_hp_pmem(hp_elog);
368 rc = -EINVAL;
371 return rc;
521 int rc;
531 rc = dlpar_parse_resource(&args, &hp_elog);
532 if (rc)
535 rc = dlpar_parse_action(&args, &hp_elog);
536 if (rc)
539 rc = dlpar_parse_id_type(&args, &hp_elog);
540 if (rc)
543 rc = handle_dlpar_errorlog(&hp_elog);
548 if (rc)
551 return rc ? rc : count;
574 int rc;
576 rc = dlpar_workqueue_init();
577 if (rc)
578 return rc;