Lines Matching refs:record

44 				struct pstore_record *record)  in efi_pstore_read_func()  argument
61 &record->type, &part, &cnt, &time, &data_type) == 5) { in efi_pstore_read_func()
62 record->id = generic_id(time, part, cnt); in efi_pstore_read_func()
63 record->part = part; in efi_pstore_read_func()
64 record->count = cnt; in efi_pstore_read_func()
65 record->time.tv_sec = time; in efi_pstore_read_func()
66 record->time.tv_nsec = 0; in efi_pstore_read_func()
68 record->compressed = true; in efi_pstore_read_func()
70 record->compressed = false; in efi_pstore_read_func()
71 record->ecc_notice_size = 0; in efi_pstore_read_func()
73 &record->type, &part, &cnt, &time) == 4) { in efi_pstore_read_func()
74 record->id = generic_id(time, part, cnt); in efi_pstore_read_func()
75 record->part = part; in efi_pstore_read_func()
76 record->count = cnt; in efi_pstore_read_func()
77 record->time.tv_sec = time; in efi_pstore_read_func()
78 record->time.tv_nsec = 0; in efi_pstore_read_func()
79 record->compressed = false; in efi_pstore_read_func()
80 record->ecc_notice_size = 0; in efi_pstore_read_func()
82 &record->type, &part, &time) == 3) { in efi_pstore_read_func()
88 record->id = generic_id(time, part, 0); in efi_pstore_read_func()
89 record->part = part; in efi_pstore_read_func()
90 record->count = 0; in efi_pstore_read_func()
91 record->time.tv_sec = time; in efi_pstore_read_func()
92 record->time.tv_nsec = 0; in efi_pstore_read_func()
93 record->compressed = false; in efi_pstore_read_func()
94 record->ecc_notice_size = 0; in efi_pstore_read_func()
102 memcpy(record->buf, entry->var.Data, in efi_pstore_read_func()
173 static int efi_pstore_sysfs_entry_iter(struct pstore_record *record) in efi_pstore_sysfs_entry_iter() argument
175 struct efivar_entry **pos = (struct efivar_entry **)&record->psi->data; in efi_pstore_sysfs_entry_iter()
185 size = efi_pstore_read_func(entry, record); in efi_pstore_sysfs_entry_iter()
200 size = efi_pstore_read_func((*pos), record); in efi_pstore_sysfs_entry_iter()
224 static ssize_t efi_pstore_read(struct pstore_record *record) in efi_pstore_read() argument
228 record->buf = kzalloc(EFIVARS_DATA_SIZE_MAX, GFP_KERNEL); in efi_pstore_read()
229 if (!record->buf) in efi_pstore_read()
236 size = efi_pstore_sysfs_entry_iter(record); in efi_pstore_read()
241 kfree(record->buf); in efi_pstore_read()
242 record->buf = NULL; in efi_pstore_read()
247 static int efi_pstore_write(struct pstore_record *record) in efi_pstore_write() argument
254 record->id = generic_id(record->time.tv_sec, record->part, in efi_pstore_write()
255 record->count); in efi_pstore_write()
261 record->type, record->part, record->count, in efi_pstore_write()
262 (long long)record->time.tv_sec, in efi_pstore_write()
263 record->compressed ? 'C' : 'D'); in efi_pstore_write()
269 preemptible(), record->size, record->psi->buf); in efi_pstore_write()
271 if (record->reason == KMSG_DUMP_OOPS && try_module_get(THIS_MODULE)) in efi_pstore_write()
333 static int efi_pstore_erase(struct pstore_record *record) in efi_pstore_erase() argument
339 record->type, record->part, record->count, in efi_pstore_erase()
340 (long long)record->time.tv_sec); in efi_pstore_erase()
346 record->type, record->part, (long long)record->time.tv_sec); in efi_pstore_erase()