Lines Matching +full:- +full:encoded
12 #include <libcper/cper-utils.h>
13 #include <libcper/sections/cper-section-ccix-per.h>
25 if (size < ccix_error->Length) { in cper_section_ccix_per_to_ir()
31 .value.ui64 = ccix_error->ValidBits }; in cper_section_ccix_per_to_ir()
35 json_object_new_uint64(ccix_error->Length)); in cper_section_ccix_per_to_ir()
41 json_object_new_int(ccix_error->CcixSourceId)); in cper_section_ccix_per_to_ir()
46 json_object_new_int(ccix_error->CcixPortId)); in cper_section_ccix_per_to_ir()
54 ccix_error->Length - sizeof(EFI_CCIX_PER_LOG_DATA); in cper_section_ccix_per_to_ir()
58 char *encoded = base64_encode((UINT8 *)cur_pos, in cper_section_ccix_per_to_ir() local
61 if (encoded == NULL) { in cper_section_ccix_per_to_ir()
68 encoded, encoded_len)); in cper_section_ccix_per_to_ir()
69 free(encoded); in cper_section_ccix_per_to_ir()
77 //Converts a single CCIX PER CPER-JSON section into CPER binary, outputting to the given stream.
87 section_cper->Length = json_object_get_uint64( in ir_section_ccix_per_to_cper()
91 section_cper->ValidBits = ir_to_bitfield( in ir_section_ccix_per_to_cper()
97 section_cper->CcixSourceId = (UINT8)json_object_get_int(obj); in ir_section_ccix_per_to_cper()
101 section_cper->CcixPortId = (UINT8)json_object_get_int(obj); in ir_section_ccix_per_to_cper()
110 section_cper->ValidBits = ui64Type.value.ui64; in ir_section_ccix_per_to_cper()
118 json_object *encoded = obj; in ir_section_ccix_per_to_cper() local
122 json_object_get_string(encoded), in ir_section_ccix_per_to_cper()
123 json_object_get_string_len(encoded), &decoded_len); in ir_section_ccix_per_to_cper()