• Home
  • Raw
  • Download

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()
917 static ssize_t erst_reader(struct pstore_record *record);
918 static int erst_writer(struct pstore_record *record);
919 static int erst_clearer(struct pstore_record *record);
972 static ssize_t erst_reader(struct pstore_record *record) in erst_reader() argument
1010 record->buf = kmalloc(len, GFP_KERNEL); in erst_reader()
1011 if (record->buf == NULL) { in erst_reader()
1015 memcpy(record->buf, rcd->data, len - sizeof(*rcd)); in erst_reader()
1016 record->id = record_id; in erst_reader()
1017 record->compressed = false; in erst_reader()
1018 record->ecc_notice_size = 0; in erst_reader()
1020 record->type = PSTORE_TYPE_DMESG; in erst_reader()
1021 record->compressed = true; in erst_reader()
1023 record->type = PSTORE_TYPE_DMESG; in erst_reader()
1025 record->type = PSTORE_TYPE_MCE; in erst_reader()
1027 record->type = PSTORE_TYPE_MAX; in erst_reader()
1030 record->time.tv_sec = rcd->hdr.timestamp; in erst_reader()
1032 record->time.tv_sec = 0; in erst_reader()
1033 record->time.tv_nsec = 0; in erst_reader()
1040 static int erst_writer(struct pstore_record *record) in erst_writer() argument
1055 rcd->hdr.record_length = sizeof(*rcd) + record->size; in erst_writer()
1062 rcd->sec_hdr.section_length = record->size; in erst_writer()
1067 switch (record->type) { in erst_writer()
1069 if (record->compressed) in erst_writer()
1083 record->id = rcd->hdr.record_id; in erst_writer()
1088 static int erst_clearer(struct pstore_record *record) in erst_clearer() argument
1090 return erst_clear(record->id); in erst_clearer()