Lines Matching defs:section
11 #include <libcper/sections/cper-section-memory.h>
15 //Converts a single memory error CPER section into JSON IR.
16 json_object *cper_section_platform_memory_to_ir(const UINT8 *section,
26 (EFI_PLATFORM_MEMORY_ERROR_DATA *)section;
237 //Converts a single memory error 2 CPER section into JSON IR.
238 json_object *cper_section_platform_memory2_to_ir(const UINT8 *section,
250 (EFI_PLATFORM_MEMORY2_ERROR_DATA *)section;
461 //Converts a single Memory Error IR section into CPER binary, outputting to the provided stream.
462 void ir_section_memory_to_cper(json_object *section, FILE *out)
472 if (json_object_object_get_ex(section, "errorStatus", &obj)) {
479 if (json_object_object_get_ex(section, "bank", &obj)) {
499 if (json_object_object_get_ex(section, "extended", &obj)) {
517 if (json_object_object_get_ex(section, "memoryErrorType", &obj)) {
521 if (json_object_object_get_ex(section, "physicalAddress", &obj)) {
525 if (json_object_object_get_ex(section, "physicalAddressMask", &obj)) {
529 if (json_object_object_get_ex(section, "node", &obj)) {
533 if (json_object_object_get_ex(section, "card", &obj)) {
537 if (json_object_object_get_ex(section, "moduleRank", &obj)) {
541 if (json_object_object_get_ex(section, "device", &obj)) {
545 if (json_object_object_get_ex(section, "row", &obj)) {
549 if (json_object_object_get_ex(section, "column", &obj)) {
553 if (json_object_object_get_ex(section, "bitPosition", &obj)) {
557 if (json_object_object_get_ex(section, "requestorID", &obj)) {
561 if (json_object_object_get_ex(section, "responderID", &obj)) {
565 if (json_object_object_get_ex(section, "targetID", &obj)) {
569 if (json_object_object_get_ex(section, "rankNumber", &obj)) {
571 json_object_object_get(section, "rankNumber"));
574 if (json_object_object_get_ex(section, "cardSmbiosHandle", &obj)) {
578 if (json_object_object_get_ex(section, "moduleSmbiosHandle", &obj)) {
591 //Converts a single Memory Error 2 IR section into CPER binary, outputting to the provided stream.
592 void ir_section_memory2_to_cper(json_object *section, FILE *out)
603 if (json_object_object_get_ex(section, "errorStatus", &obj)) {
610 json_object *bank = json_object_object_get(section, "bank");
627 if (json_object_object_get_ex(section, "memoryErrorType", &obj)) {
631 if (json_object_object_get_ex(section, "status", &obj)) {
635 if (json_object_object_get_ex(section, "physicalAddress", &obj)) {
639 if (json_object_object_get_ex(section, "physicalAddressMask", &obj)) {
643 if (json_object_object_get_ex(section, "node", &obj)) {
647 if (json_object_object_get_ex(section, "card", &obj)) {
651 if (json_object_object_get_ex(section, "module", &obj)) {
655 if (json_object_object_get_ex(section, "device", &obj)) {
659 if (json_object_object_get_ex(section, "row", &obj)) {
663 if (json_object_object_get_ex(section, "column", &obj)) {
667 if (json_object_object_get_ex(section, "rank", &obj)) {
671 if (json_object_object_get_ex(section, "bitPosition", &obj)) {
675 if (json_object_object_get_ex(section, "chipID", &obj)) {
679 if (json_object_object_get_ex(section, "requestorID", &obj)) {
683 if (json_object_object_get_ex(section, "responderID", &obj)) {
687 if (json_object_object_get_ex(section, "targetID", &obj)) {
691 if (json_object_object_get_ex(section, "cardSmbiosHandle", &obj)) {
695 if (json_object_object_get_ex(section, "moduleSmbiosHandle", &obj)) {