Lines Matching +full:- +full:encoded
11 #include <libcper/cper-utils.h>
12 #include <libcper/sections/cper-section-cxl-component.h>
23 json_object_new_uint64(cxl_error->Length)); in cper_section_cxl_component_to_ir()
27 bitfield_to_ir(cxl_error->ValidBits, 3, in cper_section_cxl_component_to_ir()
35 json_object_new_int(cxl_error->DeviceId.VendorId)); in cper_section_cxl_component_to_ir()
38 json_object_new_int(cxl_error->DeviceId.DeviceId)); in cper_section_cxl_component_to_ir()
41 json_object_new_int(cxl_error->DeviceId.FunctionNumber)); in cper_section_cxl_component_to_ir()
44 json_object_new_int(cxl_error->DeviceId.DeviceNumber)); in cper_section_cxl_component_to_ir()
47 json_object_new_int(cxl_error->DeviceId.BusNumber)); in cper_section_cxl_component_to_ir()
50 json_object_new_int(cxl_error->DeviceId.SegmentNumber)); in cper_section_cxl_component_to_ir()
53 json_object_new_int(cxl_error->DeviceId.SlotNumber)); in cper_section_cxl_component_to_ir()
58 json_object_new_uint64(cxl_error->DeviceSerial)); in cper_section_cxl_component_to_ir()
63 cxl_error->Length - sizeof(EFI_CXL_COMPONENT_EVENT_HEADER); in cper_section_cxl_component_to_ir()
69 char *encoded = base64_encode((UINT8 *)cur_pos, remaining_len, in cper_section_cxl_component_to_ir() local
71 if (encoded == NULL) { in cper_section_cxl_component_to_ir()
76 json_object_new_string_len(encoded, in cper_section_cxl_component_to_ir()
79 free(encoded); in cper_section_cxl_component_to_ir()
87 //Converts a single given CXL Component CPER-JSON section into CPER binary, outputting to the
96 section_cper->Length = json_object_get_uint64( in ir_section_cxl_component_to_cper()
100 section_cper->ValidBits = ir_to_bitfield( in ir_section_cxl_component_to_cper()
106 section_cper->DeviceId.VendorId = json_object_get_uint64( in ir_section_cxl_component_to_cper()
108 section_cper->DeviceId.DeviceId = json_object_get_uint64( in ir_section_cxl_component_to_cper()
110 section_cper->DeviceId.FunctionNumber = json_object_get_uint64( in ir_section_cxl_component_to_cper()
112 section_cper->DeviceId.DeviceNumber = json_object_get_uint64( in ir_section_cxl_component_to_cper()
114 section_cper->DeviceId.BusNumber = json_object_get_uint64( in ir_section_cxl_component_to_cper()
116 section_cper->DeviceId.SegmentNumber = json_object_get_uint64( in ir_section_cxl_component_to_cper()
118 section_cper->DeviceId.SlotNumber = json_object_get_uint64( in ir_section_cxl_component_to_cper()
122 section_cper->DeviceSerial = json_object_get_uint64( in ir_section_cxl_component_to_cper()
132 json_object *encoded = json_object_object_get(event_log, "data"); in ir_section_cxl_component_to_cper() local
136 UINT8 *decoded = base64_decode(json_object_get_string(encoded), in ir_section_cxl_component_to_cper()
137 json_object_get_string_len(encoded), in ir_section_cxl_component_to_cper()