• Home
  • Raw
  • Download

Lines Matching refs:rcd

73 	struct cper_mce_record rcd;  in apei_write_mce()  local
75 memset(&rcd, 0, sizeof(rcd)); in apei_write_mce()
76 memcpy(rcd.hdr.signature, CPER_SIG_RECORD, CPER_SIG_SIZE); in apei_write_mce()
77 rcd.hdr.revision = CPER_RECORD_REV; in apei_write_mce()
78 rcd.hdr.signature_end = CPER_SIG_END; in apei_write_mce()
79 rcd.hdr.section_count = 1; in apei_write_mce()
80 rcd.hdr.error_severity = CPER_SEV_FATAL; in apei_write_mce()
82 rcd.hdr.validation_bits = 0; in apei_write_mce()
83 rcd.hdr.record_length = sizeof(rcd); in apei_write_mce()
84 rcd.hdr.creator_id = CPER_CREATOR_MCE; in apei_write_mce()
85 rcd.hdr.notification_type = CPER_NOTIFY_MCE; in apei_write_mce()
86 rcd.hdr.record_id = cper_next_record_id(); in apei_write_mce()
87 rcd.hdr.flags = CPER_HW_ERROR_FLAGS_PREVERR; in apei_write_mce()
89 rcd.sec_hdr.section_offset = (void *)&rcd.mce - (void *)&rcd; in apei_write_mce()
90 rcd.sec_hdr.section_length = sizeof(rcd.mce); in apei_write_mce()
91 rcd.sec_hdr.revision = CPER_SEC_REV; in apei_write_mce()
93 rcd.sec_hdr.validation_bits = 0; in apei_write_mce()
94 rcd.sec_hdr.flags = CPER_SEC_PRIMARY; in apei_write_mce()
95 rcd.sec_hdr.section_type = CPER_SECTION_TYPE_MCE; in apei_write_mce()
96 rcd.sec_hdr.section_severity = CPER_SEV_FATAL; in apei_write_mce()
98 memcpy(&rcd.mce, m, sizeof(*m)); in apei_write_mce()
100 return erst_write(&rcd.hdr); in apei_write_mce()
105 struct cper_mce_record rcd; in apei_read_mce() local
118 rc = erst_read(*record_id, &rcd.hdr, sizeof(rcd)); in apei_read_mce()
125 else if (rc != sizeof(rcd) || in apei_read_mce()
126 !guid_equal(&rcd.hdr.creator_id, &CPER_CREATOR_MCE)) in apei_read_mce()
128 memcpy(m, &rcd.mce, sizeof(*m)); in apei_read_mce()