Lines Matching refs:rc

59 	int rc;
61 rc = apei_read(val, &entry->register_region);
62 if (rc)
63 return rc;
73 int rc;
76 rc = __apei_exec_read_register(entry, &val);
77 if (rc)
78 return rc;
88 int rc;
90 rc = apei_exec_read_register(ctx, entry);
91 if (rc)
92 return rc;
101 int rc;
107 rc = apei_read(&valr, &entry->register_region);
108 if (rc)
109 return rc;
113 rc = apei_write(val, &entry->register_region);
115 return rc;
148 int rc = -ENOENT;
176 rc = run(ctx, entry);
177 if (rc < 0)
178 return rc;
179 else if (rc != APEI_EXEC_SET_IP)
187 return !optional && rc < 0 ? rc : 0;
201 int i, rc;
216 rc = func(ctx, entry, data);
217 if (rc)
218 return rc;
242 int rc, end;
244 rc = apei_exec_for_each_entry(ctx, pre_map_gar_callback,
246 if (rc) {
253 return rc;
390 int rc;
394 rc = apei_res_add(&resources1->iomem, res->start,
396 if (rc)
397 return rc;
400 rc = apei_res_add(&resources1->ioport, res->start,
402 if (rc)
403 return rc;
428 int rc;
430 rc = apei_res_sub(&resources1->iomem, &resources2->iomem);
431 if (rc)
432 return rc;
467 int rc;
469 rc = apei_resources_sub(resources, &apei_resources_all);
470 if (rc)
471 return rc;
479 rc = apei_get_nvs_resources(&nvs_resources);
480 if (rc)
482 rc = apei_resources_sub(resources, &nvs_resources);
483 if (rc)
488 rc = apei_get_arch_resources(&arch_res);
489 if (rc)
491 rc = apei_resources_sub(resources, &arch_res);
492 if (rc)
496 rc = -EINVAL;
522 rc = apei_resources_merge(&apei_resources_all, resources);
523 if (rc) {
548 return rc;
554 int rc;
562 rc = apei_resources_sub(&apei_resources_all, resources);
563 if (rc)
625 int rc;
629 rc = apei_check_gar(reg, &address, &access_bit_width);
630 if (rc)
631 return rc;
647 int rc;
652 rc = apei_check_gar(reg, &address, &access_bit_width);
653 if (rc)
654 return rc;
681 int rc;
686 rc = apei_check_gar(reg, &address, &access_bit_width);
687 if (rc)
688 return rc;
719 int rc;
724 rc = apei_check_gar(reg, &paddr, &access_bit_width);
725 if (rc)
726 return rc;