Lines Matching refs:buffer
53 static int pstore_read_kmsg_hdr(char *buffer, bool *compressed) in pstore_read_kmsg_hdr() argument
55 char *ptr = buffer; in pstore_read_kmsg_hdr()
70 return ptr - buffer + 1; in pstore_read_kmsg_hdr()
88 static u32 pstore_get_buffer(u32 sig, phys_addr_t buffer, u32 size, char *dest) in pstore_get_buffer() argument
91 (struct persistent_ram_buffer *)map_sysmem(buffer, size); in pstore_get_buffer()
217 static void pstore_print_buffer(char *type, char *buffer, u32 size) in pstore_print_buffer() argument
222 while (i < size && buffer[i] != 0) { in pstore_print_buffer()
223 putc(buffer[i]); in pstore_print_buffer()
248 char *buffer; in pstore_display() local
274 buffer = malloc_cache_aligned(buffer_size); in pstore_display()
289 pstore_record_size, buffer); in pstore_display()
295 header_len = pstore_read_kmsg_hdr(buffer, &compressed); in pstore_display()
306 pstore_print_buffer("Dump", buffer + header_len, in pstore_display()
315 pstore_console_size, buffer); in pstore_display()
317 pstore_print_buffer("Console", buffer, size); in pstore_display()
327 size = pstore_get_buffer(0, ptr, pstore_ftrace_size, buffer); in pstore_display()
329 pstore_print_buffer("FTrace", buffer, size); in pstore_display()
335 pstore_pmsg_size, buffer); in pstore_display()
337 pstore_print_buffer("User", buffer, size); in pstore_display()
340 free(buffer); in pstore_display()
364 char *buffer; in pstore_save() local
384 buffer = malloc_cache_aligned(buffer_size); in pstore_save()
385 sprintf(addr, "0x%p", buffer); in pstore_save()
401 pstore_record_size, buffer); in pstore_save()
407 header_len = pstore_read_kmsg_hdr(buffer, &compressed); in pstore_save()
413 sprintf(addr, "0x%08lx", (ulong)map_to_sysmem(buffer + header_len)); in pstore_save()
421 sprintf(addr, "0x%08lx", (ulong)map_to_sysmem(buffer)); in pstore_save()
425 buffer); in pstore_save()
437 size = pstore_get_buffer(0, ptr, pstore_ftrace_size, buffer); in pstore_save()
447 buffer); in pstore_save()
454 free(buffer); in pstore_save()