Home
last modified time | relevance | path

Searched refs:section_cper (Results 1 – 16 of 16) sorted by relevance

/openbmc/libcper/sections/
H A Dcper-section-memory.c218 section_cper->ValidFields = ir_to_bitfield( in ir_section_memory_to_cper()
225 &section_cper->ErrorStatus); in ir_section_memory_to_cper()
229 if ((section_cper->ValidFields >> 5) & 0x1) { in ir_section_memory_to_cper()
239 section_cper->Bank = address + (group << 8); in ir_section_memory_to_cper()
244 section_cper->Extended = 0; in ir_section_memory_to_cper()
247 section_cper->Extended |= in ir_section_memory_to_cper()
292 free(section_cper); in ir_section_memory_to_cper()
303 section_cper->ValidFields = ir_to_bitfield( in ir_section_memory2_to_cper()
310 &section_cper->ErrorStatus); in ir_section_memory2_to_cper()
314 if ((section_cper->ValidFields >> 5) & 0x1) { in ir_section_memory2_to_cper()
[all …]
H A Dcper-section-generic.c102 EFI_PROCESSOR_GENERIC_ERROR_DATA *section_cper = in ir_section_generic_to_cper() local
107 section_cper->ValidFields = ir_to_bitfield( in ir_section_generic_to_cper()
122 section_cper->Flags = in ir_section_generic_to_cper()
127 section_cper->Level = (UINT8)json_object_get_int( in ir_section_generic_to_cper()
129 section_cper->VersionInfo = json_object_get_uint64( in ir_section_generic_to_cper()
131 section_cper->ApicId = json_object_get_uint64( in ir_section_generic_to_cper()
133 section_cper->TargetAddr = json_object_get_uint64( in ir_section_generic_to_cper()
146 strncpy(section_cper->BrandString, brand_string, in ir_section_generic_to_cper()
147 sizeof(section_cper->BrandString) - 1); in ir_section_generic_to_cper()
148 section_cper in ir_section_generic_to_cper()
[all …]
H A Dcper-section-cxl-protocol.c174 EFI_CXL_PROTOCOL_ERROR_DATA *section_cper = in ir_section_cxl_protocol_to_cper() local
179 section_cper->ValidBits = ir_to_bitfield( in ir_section_cxl_protocol_to_cper()
184 section_cper->CxlAgentType = readable_pair_to_integer( in ir_section_cxl_protocol_to_cper()
207 } else if (section_cper->CxlAgentType == in ir_section_cxl_protocol_to_cper()
210 section_cper->CxlAgentAddress.PortRcrbBaseAddress = in ir_section_cxl_protocol_to_cper()
217 section_cper->DeviceId.VendorId = json_object_get_uint64( in ir_section_cxl_protocol_to_cper()
219 section_cper->DeviceId.DeviceId = json_object_get_uint64( in ir_section_cxl_protocol_to_cper()
225 section_cper->DeviceId.ClassCode = json_object_get_uint64( in ir_section_cxl_protocol_to_cper()
233 section_cper->DeviceSerial = json_object_get_uint64( in ir_section_cxl_protocol_to_cper()
248 memcpy(section_cper->CapabilityStructure.PcieCap, in ir_section_cxl_protocol_to_cper()
[all …]
H A Dcper-section-nvidia.c68 EFI_NVIDIA_ERROR_DATA *section_cper = in ir_section_nvidia_to_cper() local
72 strncpy(section_cper->Signature, in ir_section_nvidia_to_cper()
75 sizeof(section_cper->Signature) - 1); in ir_section_nvidia_to_cper()
76 section_cper->Signature[sizeof(section_cper->Signature) - 1] = '\0'; in ir_section_nvidia_to_cper()
79 section_cper->ErrorType = json_object_get_int( in ir_section_nvidia_to_cper()
81 section_cper->ErrorInstance = json_object_get_int( in ir_section_nvidia_to_cper()
86 section_cper->Socket = in ir_section_nvidia_to_cper()
88 section_cper->NumberRegs = json_object_get_int( in ir_section_nvidia_to_cper()
90 section_cper->InstanceBase = json_object_get_uint64( in ir_section_nvidia_to_cper()
104 fwrite(section_cper, section_sz, 1, out); in ir_section_nvidia_to_cper()
[all …]
H A Dcper-section-pcie.c145 EFI_PCIE_ERROR_DATA *section_cper = in ir_section_pcie_to_cper() local
149 section_cper->ValidFields = ir_to_bitfield( in ir_section_pcie_to_cper()
159 section_cper->Version = minor + (major << 8); in ir_section_pcie_to_cper()
168 section_cper->CommandStatus = command + (status << 16); in ir_section_pcie_to_cper()
178 section_cper->DevBridge.ClassCode[0] = class_id >> 16; in ir_section_pcie_to_cper()
180 section_cper->DevBridge.ClassCode[2] = class_id & 0xFF; in ir_section_pcie_to_cper()
187 section_cper->DevBridge.PrimaryOrDeviceBus = in ir_section_pcie_to_cper()
203 section_cper->BridgeControlStatus = in ir_section_pcie_to_cper()
240 section_cper->PortType = (UINT32)readable_pair_to_integer( in ir_section_pcie_to_cper()
242 section_cper->SerialNo = json_object_get_uint64( in ir_section_pcie_to_cper()
[all …]
H A Dcper-section-pci-bus.c69 EFI_PCI_PCIX_BUS_ERROR_DATA *section_cper = in ir_section_pci_bus_to_cper() local
74 section_cper->ValidFields = ir_to_bitfield( in ir_section_pci_bus_to_cper()
81 &section_cper->ErrorStatus); in ir_section_pci_bus_to_cper()
95 section_cper->Type = (UINT16)readable_pair_to_integer( in ir_section_pci_bus_to_cper()
97 section_cper->BusAddress = json_object_get_uint64( in ir_section_pci_bus_to_cper()
99 section_cper->BusData = json_object_get_uint64( in ir_section_pci_bus_to_cper()
101 section_cper->BusCommand = in ir_section_pci_bus_to_cper()
103 section_cper->RequestorId = json_object_get_uint64( in ir_section_pci_bus_to_cper()
105 section_cper->ResponderId = json_object_get_uint64( in ir_section_pci_bus_to_cper()
107 section_cper->TargetId = json_object_get_uint64( in ir_section_pci_bus_to_cper()
[all …]
H A Dcper-section-dmar-iommu.c82 EFI_IOMMU_DMAR_ERROR_DATA *section_cper = in ir_section_dmar_iommu_to_cper() local
87 section_cper->Revision = (UINT8)json_object_get_int( in ir_section_dmar_iommu_to_cper()
89 section_cper->Control = json_object_get_uint64( in ir_section_dmar_iommu_to_cper()
91 section_cper->Status = json_object_get_uint64( in ir_section_dmar_iommu_to_cper()
122 section_cper->PteL1 = json_object_get_uint64( in ir_section_dmar_iommu_to_cper()
124 section_cper->PteL2 = json_object_get_uint64( in ir_section_dmar_iommu_to_cper()
126 section_cper->PteL3 = json_object_get_uint64( in ir_section_dmar_iommu_to_cper()
128 section_cper->PteL4 = json_object_get_uint64( in ir_section_dmar_iommu_to_cper()
130 section_cper->PteL5 = json_object_get_uint64( in ir_section_dmar_iommu_to_cper()
132 section_cper->PteL6 = json_object_get_uint64( in ir_section_dmar_iommu_to_cper()
[all …]
H A Dcper-section-dmar-vtd.c127 EFI_DIRECTED_IO_DMAR_ERROR_DATA *section_cper = in ir_section_dmar_vtd_to_cper() local
139 section_cper->Version = (UINT8)json_object_get_int( in ir_section_dmar_vtd_to_cper()
143 section_cper->Capability = json_object_get_uint64( in ir_section_dmar_vtd_to_cper()
151 section_cper->FaultStatus = json_object_get_uint64( in ir_section_dmar_vtd_to_cper()
209 section_cper->PteL1 = json_object_get_uint64( in ir_section_dmar_vtd_to_cper()
211 section_cper->PteL2 = json_object_get_uint64( in ir_section_dmar_vtd_to_cper()
213 section_cper->PteL3 = json_object_get_uint64( in ir_section_dmar_vtd_to_cper()
215 section_cper->PteL4 = json_object_get_uint64( in ir_section_dmar_vtd_to_cper()
217 section_cper->PteL5 = json_object_get_uint64( in ir_section_dmar_vtd_to_cper()
219 section_cper->PteL6 = json_object_get_uint64( in ir_section_dmar_vtd_to_cper()
[all …]
H A Dcper-section-pci-dev.c88 EFI_PCI_PCIX_DEVICE_ERROR_DATA *section_cper = in ir_section_pci_dev_to_cper() local
93 section_cper->ValidFields = ir_to_bitfield( in ir_section_pci_dev_to_cper()
100 &section_cper->ErrorStatus); in ir_section_pci_dev_to_cper()
104 section_cper->IdInfo.VendorId = json_object_get_uint64( in ir_section_pci_dev_to_cper()
106 section_cper->IdInfo.DeviceId = json_object_get_uint64( in ir_section_pci_dev_to_cper()
108 section_cper->IdInfo.ClassCode = json_object_get_uint64( in ir_section_pci_dev_to_cper()
112 section_cper->IdInfo.DeviceNumber = json_object_get_uint64( in ir_section_pci_dev_to_cper()
114 section_cper->IdInfo.BusNumber = json_object_get_uint64( in ir_section_pci_dev_to_cper()
116 section_cper->IdInfo.SegmentNumber = json_object_get_uint64( in ir_section_pci_dev_to_cper()
122 section_cper->IoNumber = (UINT32)json_object_get_uint64( in ir_section_pci_dev_to_cper()
[all …]
H A Dcper-section-dmar-generic.c68 EFI_DMAR_GENERIC_ERROR_DATA *section_cper = in ir_section_dmar_generic_to_cper() local
73 section_cper->RequesterId = (UINT16)json_object_get_int( in ir_section_dmar_generic_to_cper()
75 section_cper->SegmentNumber = (UINT16)json_object_get_int( in ir_section_dmar_generic_to_cper()
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()
85 section_cper->DeviceAddr = json_object_get_uint64( in ir_section_dmar_generic_to_cper()
89 fwrite(section_cper, sizeof(EFI_DMAR_GENERIC_ERROR_DATA), 1, out); in ir_section_dmar_generic_to_cper()
91 free(section_cper); in ir_section_dmar_generic_to_cper()
H A Dcper-section-cxl-component.c91 EFI_CXL_COMPONENT_EVENT_HEADER *section_cper = in ir_section_cxl_component_to_cper() local
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()
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()
[all …]
H A Dcper-section-firmware.c45 EFI_FIRMWARE_ERROR_DATA *section_cper = in ir_section_firmware_to_cper() local
50 section_cper->ErrorType = readable_pair_to_integer( in ir_section_firmware_to_cper()
52 section_cper->Revision = json_object_get_int( in ir_section_firmware_to_cper()
54 section_cper->RecordId = json_object_get_uint64( in ir_section_firmware_to_cper()
56 string_to_guid(&section_cper->RecordIdGuid, in ir_section_firmware_to_cper()
61 fwrite(section_cper, sizeof(EFI_FIRMWARE_ERROR_DATA), 1, out); in ir_section_firmware_to_cper()
63 free(section_cper); in ir_section_firmware_to_cper()
H A Dcper-section-ampere.c26 EFI_AMPERE_ERROR_DATA *section_cper = (EFI_AMPERE_ERROR_DATA *)calloc( in ir_section_ampere_to_cper() local
30 section_cper->TypeId = in ir_section_ampere_to_cper()
32 section_cper->SubtypeId = json_object_get_int( in ir_section_ampere_to_cper()
34 section_cper->InstanceId = json_object_get_int( in ir_section_ampere_to_cper()
38 fwrite(section_cper, sizeof(EFI_AMPERE_ERROR_DATA), 1, out); in ir_section_ampere_to_cper()
40 free(section_cper); in ir_section_ampere_to_cper()
H A Dcper-section-ccix-per.c62 EFI_CCIX_PER_LOG_DATA *section_cper = (EFI_CCIX_PER_LOG_DATA *)calloc( in ir_section_ccix_per_to_cper() local
66 section_cper->Length = json_object_get_uint64( in ir_section_ccix_per_to_cper()
70 section_cper->ValidBits = ir_to_bitfield( in ir_section_ccix_per_to_cper()
75 section_cper->CcixSourceId = (UINT8)json_object_get_int( in ir_section_ccix_per_to_cper()
77 section_cper->CcixPortId = (UINT8)json_object_get_int( in ir_section_ccix_per_to_cper()
81 fwrite(section_cper, sizeof(EFI_CCIX_PER_LOG_DATA), 1, out); in ir_section_ccix_per_to_cper()
99 free(section_cper); in ir_section_ccix_per_to_cper()
H A Dcper-section-arm.c493 EFI_ARM_ERROR_RECORD *section_cper = in ir_section_arm_to_cper() local
497 section_cper->ValidFields = ir_to_bitfield( in ir_section_arm_to_cper()
502 section_cper->ErrInfoNum = json_object_get_int( in ir_section_arm_to_cper()
504 section_cper->ContextInfoNum = json_object_get_int( in ir_section_arm_to_cper()
508 section_cper->SectionLength = json_object_get_uint64( in ir_section_arm_to_cper()
512 section_cper->MPIDR_EL1 = json_object_get_uint64( in ir_section_arm_to_cper()
514 section_cper->MIDR_EL1 = json_object_get_uint64( in ir_section_arm_to_cper()
516 section_cper->RunningState = json_object_get_boolean( in ir_section_arm_to_cper()
531 for (int i = 0; i < section_cper->ErrInfoNum; i++) { in ir_section_arm_to_cper()
539 for (int i = 0; i < section_cper->ContextInfoNum; i++) { in ir_section_arm_to_cper()
[all …]
H A Dcper-section-ia32x64.c567 EFI_IA32_X64_PROCESSOR_ERROR_RECORD *section_cper = in ir_section_ia32x64_to_cper() local
574 section_cper->ValidFields = 0x0; in ir_section_ia32x64_to_cper()
575 section_cper->ValidFields |= json_object_get_boolean( in ir_section_ia32x64_to_cper()
577 section_cper->ValidFields |= in ir_section_ia32x64_to_cper()
589 section_cper->ValidFields |= proc_error_info_num << 2; in ir_section_ia32x64_to_cper()
590 section_cper->ValidFields |= proc_ctx_info_num << 8; in ir_section_ia32x64_to_cper()
593 section_cper->ApicId = json_object_get_uint64( in ir_section_ia32x64_to_cper()
599 (EFI_IA32_X64_CPU_ID *)section_cper->CpuIdInfo; in ir_section_ia32x64_to_cper()
610 fwrite(section_cper, sizeof(EFI_IA32_X64_PROCESSOR_ERROR_RECORD), 1, in ir_section_ia32x64_to_cper()
613 free(section_cper); in ir_section_ia32x64_to_cper()