Lines Matching refs:record

749 static int __erst_write_to_nvram(const struct cper_record_header *record)  in __erst_write_to_nvram()  argument
767 int erst_write(const struct cper_record_header *record) in erst_write() argument
776 if (memcmp(record->signature, CPER_SIG_RECORD, CPER_SIG_SIZE)) in erst_write()
782 rc = __erst_write_to_nvram(record); in erst_write()
787 if (record->record_length > erst_erange.size) in erst_write()
792 memcpy(erst_erange.vaddr, record, record->record_length); in erst_write()
820 static ssize_t __erst_read(u64 record_id, struct cper_record_header *record, in __erst_read() argument
833 memcpy(record, rcd_tmp, len); in __erst_read()
843 ssize_t erst_read(u64 record_id, struct cper_record_header *record, in erst_read() argument
853 len = __erst_read(record_id, record, buflen); in erst_read()
876 ssize_t erst_read_record(u64 record_id, struct cper_record_header *record, in erst_read_record() argument
885 len = erst_read(record_id, record, buflen); in erst_read_record()
892 len = erst_read(record_id, record, buflen); in erst_read_record()
919 if (!guid_equal(&record->creator_id, creatorid)) in erst_read_record()
985 static ssize_t erst_reader(struct pstore_record *record);
986 static int erst_writer(struct pstore_record *record);
987 static int erst_clearer(struct pstore_record *record);
1036 static ssize_t erst_reader(struct pstore_record *record) in erst_reader() argument
1071 record->buf = kmalloc(len, GFP_KERNEL); in erst_reader()
1072 if (record->buf == NULL) { in erst_reader()
1076 memcpy(record->buf, rcd->data, len - sizeof(*rcd)); in erst_reader()
1077 record->id = record_id; in erst_reader()
1078 record->compressed = false; in erst_reader()
1079 record->ecc_notice_size = 0; in erst_reader()
1081 record->type = PSTORE_TYPE_DMESG; in erst_reader()
1082 record->compressed = true; in erst_reader()
1084 record->type = PSTORE_TYPE_DMESG; in erst_reader()
1086 record->type = PSTORE_TYPE_MCE; in erst_reader()
1088 record->type = PSTORE_TYPE_MAX; in erst_reader()
1091 record->time.tv_sec = rcd->hdr.timestamp; in erst_reader()
1093 record->time.tv_sec = 0; in erst_reader()
1094 record->time.tv_nsec = 0; in erst_reader()
1101 static int erst_writer(struct pstore_record *record) in erst_writer() argument
1116 rcd->hdr.record_length = sizeof(*rcd) + record->size; in erst_writer()
1123 rcd->sec_hdr.section_length = record->size; in erst_writer()
1128 switch (record->type) { in erst_writer()
1130 if (record->compressed) in erst_writer()
1144 record->id = rcd->hdr.record_id; in erst_writer()
1149 static int erst_clearer(struct pstore_record *record) in erst_clearer() argument
1151 return erst_clear(record->id); in erst_clearer()