/openbmc/libcper/include/libcper/ |
H A D | Cper.h | 66 UINT8 Seconds; 67 UINT8 Minutes; 68 UINT8 Hours; 69 UINT8 Flag; 70 UINT8 Day; 71 UINT8 Month; 72 UINT8 Year; 73 UINT8 Century; 163 UINT8 Resv1[12]; 274 UINT8 SecValidMask; [all …]
|
H A D | common-utils.h | 6 int bcd_to_int(UINT8 bcd); 7 UINT8 int_to_bcd(int value);
|
H A D | base64.h | 14 UINT8 *base64_decode(const CHAR8 *src, INT32 len, INT32 *out_len); 20 CHAR8 *base64_encode(const UINT8 *src, INT32 len, INT32 *out_len);
|
H A D | BaseTypes.h | 55 typedef unsigned char UINT8; typedef 71 UINT8 Data4[8];
|
/openbmc/libcper/ |
H A D | base64.c | 9 static const UINT8 encode_table[65] = 16 CHAR8 *base64_encode(const UINT8 *src, INT32 len, INT32 *out_len) in base64_encode() 20 const UINT8 *src_end; in base64_encode() 21 const UINT8 *in_pos; in base64_encode() 70 UINT8 decode_table[256] = 92 UINT8 *base64_decode(const CHAR8 *src, INT32 len, INT32 *out_len) in base64_decode() 94 UINT8 *out; in base64_decode() 95 UINT8 *pos; in base64_decode() 96 UINT8 block[4]; in base64_decode() 97 UINT8 tmp; in base64_decode() [all …]
|
H A D | common-utils.c | 12 int bcd_to_int(UINT8 bcd) in bcd_to_int() 18 UINT8 int_to_bcd(int value) in int_to_bcd() 20 UINT8 result = 0; in int_to_bcd()
|
/openbmc/libcper/generator/sections/ |
H A D | gen-section-arm.c | 48 UINT8 *section = generate_random_bytes(total_len); in generate_section_arm() 73 UINT8 *cur_pos = section + 40; in generate_section_arm() 102 UINT8 *error_info = generate_random_bytes(ARM_ERROR_INFO_SIZE); in generate_arm_error_info() 109 UINT8 error_type = rand() % 3; in generate_arm_error_info() 155 UINT8 *flags = (UINT8 *)(error_info + 7); in generate_arm_error_info() 220 UINT8 *reg_decode = (UINT8 *)context_info; in generate_arm_context_info()
|
H A D | gen-section-dmar.c | 20 UINT8 *bytes = generate_random_bytes(size); in generate_section_dmar_generic() 46 UINT8 *bytes = generate_random_bytes(size); in generate_section_dmar_vtd() 52 UINT8 *fault_record = bytes + 48; in generate_section_dmar_vtd() 72 UINT8 *bytes = generate_random_bytes(size); in generate_section_dmar_iommu()
|
H A D | gen-section-ia32x64.c | 46 UINT8 *section = generate_random_bytes(total_len); in generate_section_ia32x64() 65 UINT8 *cur_pos = section + 64; in generate_section_ia32x64() 87 UINT8 *error_structure = in generate_ia32x64_error_structure() 170 UINT8 *reg_bytes = (UINT8 *)(context_structure + 8); in generate_ia32x64_context_structure()
|
H A D | gen-section-generic.c | 21 UINT8 *start_byte = (UINT8 *)*location; in generate_section_generic() 34 UINT8 *byte = start_byte + 24 + i; in generate_section_generic()
|
H A D | gen-section-cxl-component.c | 23 UINT8 *bytes = generate_random_bytes(size); in generate_section_cxl_component() 34 UINT8 *slot_number = (UINT8 *)(bytes + 21); in generate_section_cxl_component()
|
H A D | gen-section-memory.c | 19 UINT8 *bytes = generate_random_bytes(size); in generate_section_memory() 50 UINT8 *bytes = generate_random_bytes(size); in generate_section_memory2()
|
/openbmc/libcper/sections/ |
H A D | cper-section-generic.c | 149 section_cper->Type = (UINT8)readable_pair_to_integer(obj); in ir_section_generic_to_cper() 153 section_cper->Isa = (UINT8)readable_pair_to_integer(obj); in ir_section_generic_to_cper() 157 section_cper->ErrorType = (UINT8)readable_pair_to_integer(obj); in ir_section_generic_to_cper() 161 section_cper->Operation = (UINT8)readable_pair_to_integer(obj); in ir_section_generic_to_cper() 166 section_cper->Flags = (UINT8)ir_to_bitfield( in ir_section_generic_to_cper() 173 section_cper->Level = (UINT8)json_object_get_int(obj); in ir_section_generic_to_cper()
|
H A D | cper-section-dmar-generic.c | 77 section_cper->FaultReason = (UINT8)readable_pair_to_integer( in ir_section_dmar_generic_to_cper() 79 section_cper->AccessType = (UINT8)readable_pair_to_integer( in ir_section_dmar_generic_to_cper() 81 section_cper->AddressType = (UINT8)readable_pair_to_integer( in ir_section_dmar_generic_to_cper() 83 section_cper->ArchType = (UINT8)readable_pair_to_integer( in ir_section_dmar_generic_to_cper()
|
H A D | cper-section-ccix-per.c | 48 char *encoded = base64_encode((UINT8 *)cur_pos, in cper_section_ccix_per_to_ir() 86 section_cper->CcixSourceId = (UINT8)json_object_get_int(obj); in ir_section_ccix_per_to_cper() 90 section_cper->CcixPortId = (UINT8)json_object_get_int(obj); in ir_section_ccix_per_to_cper() 110 UINT8 *decoded = base64_decode( in ir_section_ccix_per_to_cper()
|
H A D | cper-section-pcie.c | 146 base64_encode((UINT8 *)pcie_error->Capability.PcieCap, in cper_section_pcie_to_ir() 168 encoded = base64_encode((UINT8 *)pcie_error->AerInfo.PcieAer, in cper_section_pcie_to_ir() 293 (UINT8)json_object_get_uint64(json_object_object_get( in ir_section_pcie_to_cper() 295 section_cper->DevBridge.Device = (UINT8)json_object_get_uint64( in ir_section_pcie_to_cper() 301 (UINT8)json_object_get_uint64(json_object_object_get( in ir_section_pcie_to_cper() 304 (UINT8)json_object_get_uint64(json_object_object_get( in ir_section_pcie_to_cper() 328 UINT8 *decoded = NULL; in ir_section_pcie_to_cper() 335 UINT8 *decoded = base64_decode( in ir_section_pcie_to_cper()
|
H A D | cper-section-dmar-iommu.c | 36 char *encoded = base64_encode((UINT8 *)iommu_error->EventLogEntry, 16, in cper_section_dmar_iommu_to_ir() 51 encoded = base64_encode((UINT8 *)iommu_error->DeviceTableEntry, 32, in cper_section_dmar_iommu_to_ir() 87 section_cper->Revision = (UINT8)json_object_get_int( in ir_section_dmar_iommu_to_cper() 98 UINT8 *decoded = base64_decode(json_object_get_string(encoded), in ir_section_dmar_iommu_to_cper()
|
H A D | cper-section-dmar-vtd.c | 88 base64_encode((UINT8 *)vtd_error->RootEntry, 16, &encoded_len); in cper_section_dmar_vtd_to_ir() 96 encoded = base64_encode((UINT8 *)vtd_error->ContextEntry, 16, in cper_section_dmar_vtd_to_ir() 139 section_cper->Version = (UINT8)json_object_get_int( in ir_section_dmar_vtd_to_cper() 141 section_cper->Revision = (UINT8)json_object_get_int( in ir_section_dmar_vtd_to_cper() 183 UINT8 *decoded = base64_decode(json_object_get_string(encoded), in ir_section_dmar_vtd_to_cper()
|
H A D | cper-section-memory.c | 347 UINT16 address = (UINT8)json_object_get_uint64( in ir_section_memory_to_cper() 349 UINT16 group = (UINT8)json_object_get_uint64( in ir_section_memory_to_cper() 377 section_cper->ErrorType = (UINT8)readable_pair_to_integer(obj); in ir_section_memory_to_cper() 476 UINT16 address = (UINT8)json_object_get_uint64( in ir_section_memory2_to_cper() 478 UINT16 group = (UINT8)json_object_get_uint64( in ir_section_memory2_to_cper() 491 section_cper->Status = (UINT8)readable_pair_to_integer(obj); in ir_section_memory2_to_cper() 535 section_cper->ChipId = (UINT8)json_object_get_uint64(obj); in ir_section_memory2_to_cper()
|
H A D | cper-section-pci-bus.c | 53 UINT8 command_type = (bus_error->BusCommand >> 56) & in cper_section_pci_bus_to_ir() 125 UINT16 bus_number = (UINT8)json_object_get_int( in ir_section_pci_bus_to_cper() 127 UINT16 segment_number = (UINT8)json_object_get_int( in ir_section_pci_bus_to_cper()
|
/openbmc/qemu/tests/image-fuzzer/qcow2/ |
H A D | fuzz.py | 22 UINT8 = 0xff variable 30 UINT8_V = [0, 0x10, UINT8//4, UINT8//2 - 1, UINT8//2, UINT8//2 + 1, UINT8 - 1, 31 UINT8]
|
/openbmc/libcper/generator/ |
H A D | gen-utils.c | 20 UINT8 *generate_random_bytes(size_t size) in generate_random_bytes() 22 UINT8 *bytes = malloc(size); in generate_random_bytes() 31 void create_valid_error_section(UINT8 *start) in create_valid_error_section()
|
/openbmc/libcper/include/libcper/sections/ |
H A D | cper-section-ipf.h | 54 UINT8 CpuIdInfo[40]; 55 UINT8 Reserved1[8]; 60 UINT8 MinimalSaveStateInfo[1024];
|
H A D | cper-section-ccix-per.h | 22 UINT8 CcixSourceId; 23 UINT8 CcixPortId;
|
/openbmc/libcper/include/libcper/generator/ |
H A D | gen-utils.h | 18 UINT8 *generate_random_bytes(size_t size); 20 void create_valid_error_section(UINT8 *start);
|