| /openbmc/libcper/include/libcper/ |
| H A D | Cper.h | 77 UINT8 Seconds; 78 UINT8 Minutes; 79 UINT8 Hours; 80 UINT8 Flag; 81 UINT8 Day; 82 UINT8 Month; 83 UINT8 Year; 84 UINT8 Century; 174 UINT8 Resv1[12]; 290 UINT8 SecValidMask; [all …]
|
| H A D | cper-utils.h | 21 UINT8 ui8; 68 UINT8 *bytes, size_t bytes_len); 71 UINT8 *value_out); 90 const UINT8 *value, int len); 98 UINT8 value); 108 void add_bytes_hex(json_object *obj, const char *field_name, const UINT8 *bytes, 110 UINT8 *get_bytes_hex(json_object *obj, const char *field_name, size_t *out_len);
|
| 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);
|
| /openbmc/libcper/include/libcper/sections/ |
| H A D | cper-section-nvidia-events.h | 30 UINT8 InfoSize; 38 UINT8 SocketNum; 49 UINT8 EventOriginator; 62 UINT8 Data[0]; 84 UINT8 Class; 85 UINT8 Subclass; 86 UINT8 Rev; 108 UINT8 HardwareInfoType; 111 UINT8 Reserved[59]; 121 UINT8 Flags; [all …]
|
| H A D | cper-section-ipf.h | 54 UINT8 CpuIdInfo[40]; 55 UINT8 Reserved1[8]; 60 UINT8 MinimalSaveStateInfo[1024]; 68 json_object *cper_section_ipf_to_ir(const UINT8 *section, UINT32 size,
|
| H A D | cper-section-ccix-per.h | 22 UINT8 CcixSourceId; 23 UINT8 CcixPortId; 27 json_object *cper_section_ccix_per_to_ir(const UINT8 *section, UINT32 size,
|
| /openbmc/libcper/tests/ |
| H A D | hex_test.c | 13 static const UINT8 test_bytes_1[] = { 0x00 }; 16 static const UINT8 test_bytes_2[] = { 0xff }; 19 static const UINT8 test_bytes_3[] = { 0xde, 0xad, 0xbe, 0xef }; 22 static const UINT8 test_bytes_4[] = { 0x01, 0x23, 0x45, 0x67, 26 static const UINT8 test_bytes_5[] = { 0x00, 0x00, 0x00, 0x00 }; 102 UINT8 *bytes = get_bytes_hex(obj, "data", &out_len); in test_hex_decode_good() 115 UINT8 *bytes = get_bytes_hex(obj, "data", &out_len); in test_hex_decode_good() 128 UINT8 *bytes = get_bytes_hex(obj, "data", &out_len); in test_hex_decode_good() 141 UINT8 *bytes = get_bytes_hex(obj, "data", &out_len); in test_hex_decode_good() 154 UINT8 *byte in test_hex_decode_good() [all...] |
| /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() 74 UINT8 decode_table[256] = { 103 UINT8 *base64_decode(const CHAR8 *src, INT32 len, INT32 *out_len) in base64_decode() 105 UINT8 *out = NULL; in base64_decode() 106 UINT8 *pos = NULL; in base64_decode() 107 UINT8 block[4]; in base64_decode() 135 block[block_index] = decode_table[(UINT8)current_char]; in base64_decode()
|
| 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-ras.c | 31 UINT8 flags; 40 ctxMeta[ci].flags = (UINT8)(cper_rand() & 0x1); in gen_arm_ras_init_ctx_meta() 62 UINT8 legacyType, in gen_arm_ras_fill_node_fields() 63 const UINT8 ipTypeFormatChoices[5]) in gen_arm_ras_fill_node_fields() 68 node->IPInstanceFormat = (UINT8)(cper_rand() % 3); in gen_arm_ras_fill_node_fields() 71 UINT8 *tmp = NULL; in gen_arm_ras_fill_node_fields() 130 static void gen_arm_ras_fill_descriptors(UINT8 *buf, UINT16 offset, in gen_arm_ras_fill_descriptors() 133 UINT8 *cur = buf + offset; in gen_arm_ras_fill_descriptors() 143 UINT8 revHigh = (UINT8)(cper_rand() % 0x10); in gen_arm_ras_fill_descriptors() 144 UINT8 revLow = (UINT8)(cper_rand() % 0x10); in gen_arm_ras_fill_descriptors() [all …]
|
| H A D | gen-section-arm.c | 49 UINT8 *section = generate_random_bytes(total_len); in generate_section_arm() 74 UINT8 *cur_pos = section + 40; in generate_section_arm() 103 UINT8 *error_info = generate_random_bytes(ARM_ERROR_INFO_SIZE); in generate_arm_error_info() 110 const UINT8 error_type_values[] = { 1, 2, 4, 8 }; in generate_arm_error_info() 111 UINT8 error_type = error_type_values[cper_rand() % 4]; in generate_arm_error_info() 157 UINT8 *flags = (UINT8 *)(error_info + 7); in generate_arm_error_info() 222 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-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-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-nvidia-events.c | 52 static void fill_context_data(UINT8 *data, UINT16 ctx_type, UINT32 num_elements) in fill_context_data() 58 data[i] = (UINT8)(cper_rand() & 0xFF); in fill_context_data() 158 UINT8 *section = (UINT8 *)calloc(1, total_size); in generate_section_nvidia_events() 163 UINT8 *current = section; in generate_section_nvidia_events() 200 (UINT8)(event_info_header_size + event_info_data_size); in generate_section_nvidia_events()
|
| /openbmc/libcper/sections/ |
| H A D | cper-section-nvidia-events.c | 42 * │ UINT8 InfoSize ← Total size (header + device data) │ 48 * │ UINT8 SocketNum │ 62 * │ UINT8 Data[0] ← Flexible array member │ 142 UINT8 major_version; // Expected major version for this handler 143 UINT8 minor_version; // Expected minor version for this handler 237 return (UINT8 *)header + sizeof(EFI_NVIDIA_EVENT_HEADER) + in get_event_info() 245 return (EFI_NVIDIA_EVENT_INFO_HEADER *)((UINT8 *)header + in get_event_info_header() 250 static inline UINT8 get_info_major_version(EFI_NVIDIA_EVENT_INFO_HEADER *header) in get_info_major_version() 252 return (UINT8)((header->InfoVersion >> 8) & 0xFF); in get_info_major_version() 256 static inline UINT8 get_info_minor_versio [all...] |
| H A D | cper-section-ccix-per.c | 18 json_object *cper_section_ccix_per_to_ir(const UINT8 *section, UINT32 size, in cper_section_ccix_per_to_ir() 70 const UINT8 *cur_pos = (const UINT8 *)(ccix_error + 1); in cper_section_ccix_per_to_ir() 102 section_cper->CcixSourceId = (UINT8)json_object_get_int(obj); in ir_section_ccix_per_to_cper() 106 section_cper->CcixPortId = (UINT8)json_object_get_int(obj); in ir_section_ccix_per_to_cper() 126 UINT8 *decoded = base64_decode( in ir_section_ccix_per_to_cper()
|
| H A D | cper-section-dmar-generic.c | 16 json_object *cper_section_dmar_generic_to_ir(const UINT8 *section, UINT32 size, in cper_section_dmar_generic_to_ir() 98 section_cper->FaultReason = (UINT8)readable_pair_to_integer( in ir_section_dmar_generic_to_cper() 100 section_cper->AccessType = (UINT8)readable_pair_to_integer( in ir_section_dmar_generic_to_cper() 102 section_cper->AddressType = (UINT8)readable_pair_to_integer( in ir_section_dmar_generic_to_cper() 104 section_cper->ArchType = (UINT8)readable_pair_to_integer( in ir_section_dmar_generic_to_cper()
|
| H A D | cper-section-arm-ras.c | 47 static bool arm_ras_read_node(EFI_ARM_RAS_NODE *node, const UINT8 *section, in arm_ras_read_node() 179 static json_object *arm_ras_parse_descriptors(const UINT8 *section, in arm_ras_add_fixed_fields() 184 const UINT8 *desc_ptr = section + node->ErrorSyndromeArrayOffset; in arm_ras_parse_descriptors() 187 const UINT8 *cur = in arm_ras_parse_descriptors() 267 arm_ras_aux_parse_contexts(json_object *auxStructured, const UINT8 *aux_ptr, in arm_ras_aux_emit_header_fields() 271 const UINT8 *cursor = aux_ptr + sizeof(EFI_ARM_RAS_AUX_DATA_HEADER); in arm_ras_aux_emit_header_fields() 371 const UINT8 *aux_ptr, in is_mpam() 374 const UINT8 *kvBase = aux_ptr + auxHdr->KeyValuePairArrayOffset; in is_mpam() 403 static json_object *arm_ras_parse_aux_data(const UINT8 *section, UINT32 size, in arm_ras_aux_parse_kvps() 411 const UINT8 *aux_pt in arm_ras_aux_parse_kvps() [all...] |
| H A D | cper-section-generic.c | 18 json_object *cper_section_generic_to_ir(const UINT8 *section, UINT32 size, in cper_section_generic_to_ir() 166 section_cper->Type = (UINT8)readable_pair_to_integer(obj); in ir_section_generic_to_cper() 170 section_cper->Isa = (UINT8)readable_pair_to_integer(obj); in ir_section_generic_to_cper() 174 section_cper->ErrorType = (UINT8)readable_pair_to_integer(obj); in ir_section_generic_to_cper() 178 section_cper->Operation = (UINT8)readable_pair_to_integer(obj); in ir_section_generic_to_cper() 183 section_cper->Flags = (UINT8)ir_to_bitfield( in ir_section_generic_to_cper() 190 section_cper->Level = (UINT8)json_object_get_int(obj); in ir_section_generic_to_cper()
|
| H A D | cper-section-dmar-iommu.c | 18 json_object *cper_section_dmar_iommu_to_ir(const UINT8 *section, UINT32 size, in cper_section_dmar_iommu_to_ir() 58 (UINT8 *)iommu_error->EventLogEntry, in cper_section_dmar_iommu_to_ir() 63 (UINT8 *)iommu_error->DeviceTableEntry, in cper_section_dmar_iommu_to_ir() 85 section_cper->Revision = (UINT8)json_object_get_int( in cper_section_dmar_iommu_to_ir() 96 UINT8 *decoded = base64_decode(json_object_get_string(encoded), in cper_section_dmar_iommu_to_ir()
|
| /openbmc/libcper/generator/ |
| H A D | gen-utils.c | 36 UINT8 *generate_random_bytes(size_t size) in generate_random_bytes() 38 UINT8 *bytes = malloc(size); in generate_random_bytes() 56 void create_valid_error_section(UINT8 *start) in create_valid_error_section()
|
| /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]
|