Home
last modified time | relevance | path

Searched refs:decoded_len (Results 1 – 12 of 12) sorted by relevance

/openbmc/libcper/tests/
H A Dbase64_test.c43 int32_t decoded_len = 0; in test_base64_decode_good() local
46 base64_decode(data, strlen(data), &decoded_len); in test_base64_decode_good()
48 assert((size_t)decoded_len == strlen(good_decode_outputs[i])); in test_base64_decode_good()
49 assert(memcmp(decoded, good_decode_outputs[i], decoded_len) == in test_base64_decode_good()
/openbmc/libcper/sections/
H A Dcper-section-dmar-iommu.c94 int32_t decoded_len = 0; in ir_section_dmar_iommu_to_cper() local
98 &decoded_len); in ir_section_dmar_iommu_to_cper()
102 memcpy(section_cper->EventLogEntry, decoded, decoded_len); in ir_section_dmar_iommu_to_cper()
107 decoded_len = 0; in ir_section_dmar_iommu_to_cper()
111 &decoded_len); in ir_section_dmar_iommu_to_cper()
115 memcpy(section_cper->DeviceTableEntry, decoded, decoded_len); in ir_section_dmar_iommu_to_cper()
H A Dcper-section-cxl-protocol.c252 int32_t decoded_len = 0; in ir_section_cxl_protocol_to_cper() local
257 &decoded_len); in ir_section_cxl_protocol_to_cper()
264 decoded, decoded_len); in ir_section_cxl_protocol_to_cper()
298 int32_t decoded_len = 0; in ir_section_cxl_protocol_to_cper() local
302 &decoded_len); in ir_section_cxl_protocol_to_cper()
307 fwrite(decoded, decoded_len, 1, out); in ir_section_cxl_protocol_to_cper()
314 decoded_len = 0; in ir_section_cxl_protocol_to_cper()
318 &decoded_len); in ir_section_cxl_protocol_to_cper()
323 fwrite(decoded, decoded_len, 1, out); in ir_section_cxl_protocol_to_cper()
H A Dcper-section-dmar-vtd.c167 int32_t decoded_len = 0; in ir_section_dmar_vtd_to_cper() local
171 &decoded_len); in ir_section_dmar_vtd_to_cper()
175 memcpy(section_cper->RootEntry, decoded, decoded_len); in ir_section_dmar_vtd_to_cper()
181 decoded_len = 0; in ir_section_dmar_vtd_to_cper()
185 &decoded_len); in ir_section_dmar_vtd_to_cper()
190 memcpy(section_cper->ContextEntry, decoded, decoded_len); in ir_section_dmar_vtd_to_cper()
H A Dcper-section-ccix-per.c124 int32_t decoded_len = 0; in ir_section_ccix_per_to_cper() local
128 json_object_get_string_len(encoded), &decoded_len); in ir_section_ccix_per_to_cper()
133 fwrite(decoded, decoded_len, 1, out); in ir_section_ccix_per_to_cper()
H A Dcper-section-cxl-component.c162 int32_t decoded_len = 0; in ir_section_cxl_component_to_cper() local
166 json_object_get_string_len(encoded), &decoded_len); in ir_section_cxl_component_to_cper()
172 fwrite(decoded, decoded_len, 1, out); in ir_section_cxl_component_to_cper()
H A Dcper-section-pcie.c1573 int32_t decoded_len = 0; in ir_section_pcie_to_cper() local
1582 &decoded_len); in ir_section_pcie_to_cper()
1588 decoded_len); in ir_section_pcie_to_cper()
1600 decoded_len = 0; in ir_section_pcie_to_cper()
1604 &decoded_len); in ir_section_pcie_to_cper()
1611 decoded_len); in ir_section_pcie_to_cper()
H A Dcper-section-arm.c962 int32_t decoded_len = 0; in ir_section_arm_to_cper() local
966 vendor_specific_len, &decoded_len); in ir_section_arm_to_cper()
969 fwrite(decoded, decoded_len, 1, out); in ir_section_arm_to_cper()
1427 int32_t decoded_len = 0; in ir_arm_unknown_register_to_cper() local
1431 &decoded_len); in ir_arm_unknown_register_to_cper()
1437 fwrite(&decoded, decoded_len, 1, out); in ir_arm_unknown_register_to_cper()
H A Dcper-section-ia32x64.c940 int32_t decoded_len = 0; in ir_ia32x64_context_info_to_cper() local
943 UINT8 *decoded = base64_decode(j_string, j_size, &decoded_len); in ir_ia32x64_context_info_to_cper()
948 fwrite(decoded, decoded_len, 1, out); in ir_ia32x64_context_info_to_cper()
H A Dcper-section-nvidia-events.c959 size_t decoded_len = 0; in parse_common_ctx_type0_to_bin() local
961 get_bytes_hex(event_context_data_ir, "data", &decoded_len); in parse_common_ctx_type0_to_bin()
969 fwrite(decoded, 1, decoded_len, output_file_stream); in parse_common_ctx_type0_to_bin()
/openbmc/libcper/cli-app/
H A Dcper-convert.c113 int32_t decoded_len = 0; in cper_to_json() local
114 UINT8 *decoded = base64_decode(fbuff, readsize, &decoded_len); in cper_to_json()
122 if (!header_valid((const char *)decoded, decoded_len)) { in cper_to_json()
132 fsize = decoded_len; in cper_to_json()
/openbmc/libcper/
H A Dir-parse.c191 int32_t decoded_len = 0; in ir_section_to_cper() local
195 json_object_get_string_len(encoded), &decoded_len); in ir_section_to_cper()
200 fwrite(decoded, decoded_len, 1, out); in ir_section_to_cper()