Lines Matching refs:record_id
440 static int __erst_get_next_record_id(u64 *record_id) in __erst_get_next_record_id() argument
449 *record_id = apei_exec_ctx_get_output(&ctx); in __erst_get_next_record_id()
540 int erst_get_record_id_next(int *pos, u64 *record_id) in erst_get_record_id_next() argument
559 *record_id = entries[*pos]; in erst_get_record_id_next()
570 *record_id = erst_record_id_cache.entries[*pos]; in erst_get_record_id_next()
575 *record_id = APEI_ERST_INVALID_RECORD_ID; in erst_get_record_id_next()
660 static int __erst_read_from_storage(u64 record_id, u64 offset) in __erst_read_from_storage() argument
675 apei_exec_ctx_set_input(&ctx, record_id); in __erst_read_from_storage()
703 static int __erst_clear_from_storage(u64 record_id) in __erst_clear_from_storage() argument
714 apei_exec_ctx_set_input(&ctx, record_id); in __erst_clear_from_storage()
755 static int __erst_read_to_erange_from_nvram(u64 record_id, u64 *offset) in __erst_read_to_erange_from_nvram() argument
761 static int __erst_clear_from_nvram(u64 record_id) in __erst_clear_from_nvram() argument
804 static int __erst_read_to_erange(u64 record_id, u64 *offset) in __erst_read_to_erange() argument
810 record_id, offset); in __erst_read_to_erange()
812 rc = __erst_read_from_storage(record_id, 0); in __erst_read_to_erange()
820 static ssize_t __erst_read(u64 record_id, struct cper_record_header *record, in __erst_read() argument
827 rc = __erst_read_to_erange(record_id, &offset); 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()
859 int erst_clear(u64 record_id) in erst_clear() argument
873 rc = __erst_clear_from_nvram(record_id); in erst_clear()
875 rc = __erst_clear_from_storage(record_id); in erst_clear()
881 if (entries[i] == record_id) in erst_clear()
976 u64 record_id; in erst_reader() local
989 rc = erst_get_record_id_next(&reader_pos, &record_id); in erst_reader()
994 if (record_id == APEI_ERST_INVALID_RECORD_ID) { in erst_reader()
999 len = erst_read(record_id, &rcd->hdr, rcd_len); in erst_reader()
1016 record->id = record_id; in erst_reader()
1058 rcd->hdr.record_id = cper_next_record_id(); in erst_writer()
1083 record->id = rcd->hdr.record_id; in erst_writer()