Lines Matching refs:rc
347 s64 rc; in opal_get_chars() local
356 rc = opal_console_read(vtermno, &len, buf); in opal_get_chars()
357 if (rc == OPAL_SUCCESS) in opal_get_chars()
367 s64 rc; in __opal_put_chars() local
374 rc = opal_console_write_buffer_space(vtermno, &olen); in __opal_put_chars()
375 if (rc || be64_to_cpu(olen) < total_len) { in __opal_put_chars()
377 if (rc) in __opal_put_chars()
386 rc = opal_console_write(vtermno, &olen, data); in __opal_put_chars()
387 if (rc == OPAL_BUSY || rc == OPAL_BUSY_EVENT) { in __opal_put_chars()
388 if (rc == OPAL_BUSY_EVENT) in __opal_put_chars()
395 if (rc != OPAL_SUCCESS) { in __opal_put_chars()
396 written = opal_error_code(rc); in __opal_put_chars()
436 s64 rc; in __opal_flush_console() local
454 rc = opal_console_flush(vtermno); in __opal_flush_console()
455 if (rc == OPAL_BUSY_EVENT) { in __opal_flush_console()
457 rc = OPAL_BUSY; in __opal_flush_console()
459 return rc; in __opal_flush_console()
470 s64 rc = __opal_flush_console(vtermno); in opal_flush_console() local
472 if (rc == OPAL_BUSY || rc == OPAL_PARTIAL) { in opal_flush_console()
477 return opal_error_code(rc); in opal_flush_console()
489 s64 rc = __opal_flush_console(vtermno); in opal_flush_chars() local
491 if (rc == OPAL_BUSY || rc == OPAL_PARTIAL) { in opal_flush_chars()
496 if (rc == OPAL_PARTIAL) in opal_flush_chars()
500 return opal_error_code(rc); in opal_flush_chars()
616 s64 rc; in opal_hmi_exception_early() local
623 rc = opal_handle_hmi(); in opal_hmi_exception_early()
624 if (rc == OPAL_SUCCESS) { in opal_hmi_exception_early()
633 s64 rc; in opal_hmi_exception_early2() local
641 rc = opal_handle_hmi2(&out_flags); in opal_hmi_exception_early2()
642 if (rc != OPAL_SUCCESS) in opal_hmi_exception_early2()
729 int rc; in opal_export_symmap() local
742 rc = sysfs_create_bin_file(opal_kobj, &symbol_map_attr); in opal_export_symmap()
743 if (rc) in opal_export_symmap()
744 pr_warn("Error %d creating OPAL symbols file\n", rc); in opal_export_symmap()
769 int rc; in opal_export_attrs() local
809 rc = sysfs_create_bin_file(kobj, attr); in opal_export_attrs()
810 if (rc) { in opal_export_attrs()
812 rc, prop->name); in opal_export_attrs()
825 int rc; in opal_dump_region_init() local
839 rc = opal_register_dump_region(OPAL_DUMP_REGION_LOG_BUF, in opal_dump_region_init()
844 if (rc && rc != OPAL_UNSUPPORTED) in opal_dump_region_init()
846 "rc = %d\n", rc); in opal_dump_region_init()
907 int rc; in opal_init() local
961 rc = opal_sysfs_init(); in opal_init()
962 if (rc == 0) { in opal_init()
968 rc = opal_elog_init(); in opal_init()
1011 long rc = OPAL_BUSY; in opal_shutdown() local
1020 while (rc == OPAL_BUSY || rc == OPAL_BUSY_EVENT) { in opal_shutdown()
1021 rc = opal_sync_host_reboot(); in opal_shutdown()
1022 if (rc == OPAL_BUSY) in opal_shutdown()
1108 int opal_error_code(int rc) in opal_error_code() argument
1110 switch (rc) { in opal_error_code()
1125 pr_err("%s: unexpected OPAL error %d\n", __func__, rc); in opal_error_code()
1132 int rc; in powernv_set_nmmu_ptcr() local
1135 rc = opal_nmmu_set_ptcr(-1UL, ptcr); in powernv_set_nmmu_ptcr()
1136 if (rc != OPAL_SUCCESS && rc != OPAL_UNSUPPORTED) in powernv_set_nmmu_ptcr()