Home
last modified time | relevance | path

Searched refs:UINT8 (Results 1 – 25 of 62) sorted by relevance

123

/openbmc/libcper/include/libcper/
H A DCper.h66 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 Dcommon-utils.h6 int bcd_to_int(UINT8 bcd);
7 UINT8 int_to_bcd(int value);
H A Dbase64.h14 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/
H A Dbase64.c9 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] =
96 UINT8 *base64_decode(const CHAR8 *src, INT32 len, INT32 *out_len) in base64_decode()
98 UINT8 *out; in base64_decode()
99 UINT8 *pos; in base64_decode()
100 UINT8 block[4]; in base64_decode()
101 UINT8 tmp; in base64_decode()
[all …]
H A Dcommon-utils.c12 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/sections/
H A Dcper-section-ccix-per.c17 json_object *cper_section_ccix_per_to_ir(const UINT8 *section, UINT32 size) in cper_section_ccix_per_to_ir()
52 const UINT8 *cur_pos = (const UINT8 *)(ccix_error + 1); in cper_section_ccix_per_to_ir()
58 char *encoded = base64_encode((UINT8 *)cur_pos, in cper_section_ccix_per_to_ir()
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()
121 UINT8 *decoded = base64_decode( in ir_section_ccix_per_to_cper()
H A Dcper-section-dmar-generic.c15 json_object *cper_section_dmar_generic_to_ir(const UINT8 *section, UINT32 size) in cper_section_dmar_generic_to_ir()
82 section_cper->FaultReason = (UINT8)readable_pair_to_integer( in ir_section_dmar_generic_to_cper()
84 section_cper->AccessType = (UINT8)readable_pair_to_integer( in ir_section_dmar_generic_to_cper()
86 section_cper->AddressType = (UINT8)readable_pair_to_integer( in ir_section_dmar_generic_to_cper()
88 section_cper->ArchType = (UINT8)readable_pair_to_integer( in ir_section_dmar_generic_to_cper()
H A Dcper-section-generic.c17 json_object *cper_section_generic_to_ir(const UINT8 *section, UINT32 size) in cper_section_generic_to_ir()
154 section_cper->Type = (UINT8)readable_pair_to_integer(obj); in ir_section_generic_to_cper()
158 section_cper->Isa = (UINT8)readable_pair_to_integer(obj); in ir_section_generic_to_cper()
162 section_cper->ErrorType = (UINT8)readable_pair_to_integer(obj); in ir_section_generic_to_cper()
166 section_cper->Operation = (UINT8)readable_pair_to_integer(obj); in ir_section_generic_to_cper()
171 section_cper->Flags = (UINT8)ir_to_bitfield( in ir_section_generic_to_cper()
178 section_cper->Level = (UINT8)json_object_get_int(obj); in ir_section_generic_to_cper()
H A Dcper-section-dmar-iommu.c17 json_object *cper_section_dmar_iommu_to_ir(const UINT8 *section, UINT32 size) in cper_section_dmar_iommu_to_ir()
41 char *encoded = base64_encode((UINT8 *)iommu_error->EventLogEntry, 16, in cper_section_dmar_iommu_to_ir()
56 encoded = base64_encode((UINT8 *)iommu_error->DeviceTableEntry, 32, in cper_section_dmar_iommu_to_ir()
92 section_cper->Revision = (UINT8)json_object_get_int( in ir_section_dmar_iommu_to_cper()
103 UINT8 *decoded = base64_decode(json_object_get_string(encoded), in ir_section_dmar_iommu_to_cper()
H A Dcper-section-pcie.c28 json_object *cper_section_pcie_to_ir(const UINT8 *section, UINT32 size) in cper_section_pcie_to_ir()
151 base64_encode((UINT8 *)pcie_error->Capability.PcieCap, in cper_section_pcie_to_ir()
174 encoded = base64_encode((UINT8 *)pcie_error->AerInfo.PcieAer, in cper_section_pcie_to_ir()
301 (UINT8)json_object_get_uint64(json_object_object_get( in ir_section_pcie_to_cper()
303 section_cper->DevBridge.Device = (UINT8)json_object_get_uint64( in ir_section_pcie_to_cper()
309 (UINT8)json_object_get_uint64(json_object_object_get( in ir_section_pcie_to_cper()
312 (UINT8)json_object_get_uint64(json_object_object_get( in ir_section_pcie_to_cper()
336 UINT8 *decoded = NULL; in ir_section_pcie_to_cper()
343 UINT8 *decoded = base64_decode( in ir_section_pcie_to_cper()
H A Dcper-section-dmar-vtd.c17 json_object *cper_section_dmar_vtd_to_ir(const UINT8 *section, UINT32 size) in cper_section_dmar_vtd_to_ir()
93 base64_encode((UINT8 *)vtd_error->RootEntry, 16, &encoded_len); in cper_section_dmar_vtd_to_ir()
101 encoded = base64_encode((UINT8 *)vtd_error->ContextEntry, 16, in cper_section_dmar_vtd_to_ir()
144 section_cper->Version = (UINT8)json_object_get_int( in ir_section_dmar_vtd_to_cper()
146 section_cper->Revision = (UINT8)json_object_get_int( in ir_section_dmar_vtd_to_cper()
188 UINT8 *decoded = base64_decode(json_object_get_string(encoded), in ir_section_dmar_vtd_to_cper()
H A Dcper-section-cxl-protocol.c16 json_object *cper_section_cxl_protocol_to_ir(const UINT8 *section, UINT32 size) in cper_section_cxl_protocol_to_ir()
137 (UINT8 *)cxl_protocol_error->CapabilityStructure.PcieCap, in cper_section_cxl_protocol_to_ir()
152 const UINT8 *cur_pos = (const UINT8 *)(cxl_protocol_error + 1); in cper_section_cxl_protocol_to_ir()
191 encoded = base64_encode((UINT8 *)cur_pos, in cper_section_cxl_protocol_to_ir()
283 UINT8 *decoded; in ir_section_cxl_protocol_to_cper()
H A Dcper-section-cxl-component.c16 json_object *cper_section_cxl_component_to_ir(const UINT8 *section, UINT32 size) in cper_section_cxl_component_to_ir()
77 const UINT8 *cur_pos = (const UINT8 *)(cxl_error + 1); in cper_section_cxl_component_to_ir()
166 UINT8 *decoded = base64_decode( in ir_section_cxl_component_to_cper()
H A Dcper-section-pci-bus.c16 json_object *cper_section_pci_bus_to_ir(const UINT8 *section, UINT32 size) in cper_section_pci_bus_to_ir()
59 UINT8 command_type = (bus_error->BusCommand >> 56) & 0x1; in cper_section_pci_bus_to_ir()
130 UINT16 bus_number = (UINT8)json_object_get_int( in ir_section_pci_bus_to_cper()
132 UINT16 segment_number = (UINT8)json_object_get_int( in ir_section_pci_bus_to_cper()
H A Dcper-section-memory.c15 json_object *cper_section_platform_memory_to_ir(const UINT8 *section, in cper_section_platform_memory_to_ir()
175 json_object *cper_section_platform_memory2_to_ir(const UINT8 *section, in cper_section_platform_memory2_to_ir()
358 UINT16 address = (UINT8)json_object_get_uint64( in ir_section_memory_to_cper()
360 UINT16 group = (UINT8)json_object_get_uint64( in ir_section_memory_to_cper()
388 section_cper->ErrorType = (UINT8)readable_pair_to_integer(obj); in ir_section_memory_to_cper()
487 UINT16 address = (UINT8)json_object_get_uint64( in ir_section_memory2_to_cper()
489 UINT16 group = (UINT8)json_object_get_uint64( in ir_section_memory2_to_cper()
502 section_cper->Status = (UINT8)readable_pair_to_integer(obj); in ir_section_memory2_to_cper()
546 section_cper->ChipId = (UINT8)json_object_get_uint64(obj); in ir_section_memory2_to_cper()
/openbmc/libcper/generator/sections/
H A Dgen-section-arm.c48 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 = cper_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 Dgen-section-dmar.c20 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 Dgen-section-ia32x64.c46 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 Dgen-section-generic.c21 UINT8 *start_byte = (UINT8 *)*location; in generate_section_generic()
34 UINT8 *byte = start_byte + 24 + i; in generate_section_generic()
H A Dgen-section-cxl-component.c23 UINT8 *bytes = generate_random_bytes(size); in generate_section_cxl_component()
34 UINT8 *slot_number = (UINT8 *)(bytes + 21); in generate_section_cxl_component()
/openbmc/libcper/include/libcper/sections/
H A Dcper-section-ipf.h54 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 Dcper-section-ccix-per.h22 UINT8 CcixSourceId;
23 UINT8 CcixPortId;
27 json_object *cper_section_ccix_per_to_ir(const UINT8 *section, UINT32 size);
/openbmc/qemu/tests/image-fuzzer/qcow2/
H A Dfuzz.py22 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 Dgen-utils.c36 UINT8 *generate_random_bytes(size_t size) in generate_random_bytes()
38 UINT8 *bytes = malloc(size); in generate_random_bytes()
47 void create_valid_error_section(UINT8 *start) in create_valid_error_section()
/openbmc/libcper/include/libcper/generator/
H A Dgen-utils.h18 UINT8 *generate_random_bytes(size_t size);
23 void create_valid_error_section(UINT8 *start);

123