Lines Matching +full:per +full:- +full:string

2  * Describes functions for converting CCIX PER log CPER sections from binary and JSON format
8 #include <string.h>
12 #include <libcper/cper-utils.h>
13 #include <libcper/sections/cper-section-ccix-per.h>
15 #include <string.h>
17 //Converts a single CCIX PER log CPER section into JSON IR.
24 "A CCIX PER Log Error occurred"); in cper_section_ccix_per_to_ir()
27 "Error: Could not write to CCIX PER Log description string\n"); in cper_section_ccix_per_to_ir()
30 "Error: CCIX PER Log description string truncated\n"); in cper_section_ccix_per_to_ir()
39 if (size < ccix_error->Length) { in cper_section_ccix_per_to_ir()
45 .value.ui64 = ccix_error->ValidBits }; in cper_section_ccix_per_to_ir()
49 json_object_new_uint64(ccix_error->Length)); in cper_section_ccix_per_to_ir()
55 json_object_new_int(ccix_error->CcixSourceId)); in cper_section_ccix_per_to_ir()
60 json_object_new_int(ccix_error->CcixPortId)); in cper_section_ccix_per_to_ir()
63 //CCIX PER Log. in cper_section_ccix_per_to_ir()
68 ccix_error->Length - sizeof(EFI_CCIX_PER_LOG_DATA); in cper_section_ccix_per_to_ir()
91 //Converts a single CCIX PER CPER-JSON section into CPER binary, outputting to the given stream.
101 section_cper->Length = json_object_get_uint64( in ir_section_ccix_per_to_cper()
105 section_cper->ValidBits = ir_to_bitfield( in ir_section_ccix_per_to_cper()
111 section_cper->CcixSourceId = (UINT8)json_object_get_int(obj); in ir_section_ccix_per_to_cper()
115 section_cper->CcixPortId = (UINT8)json_object_get_int(obj); in ir_section_ccix_per_to_cper()
124 section_cper->ValidBits = ui64Type.value.ui64; in ir_section_ccix_per_to_cper()
130 //Write CCIX PER log itself to stream. in ir_section_ccix_per_to_cper()