Lines Matching refs:size

18 	u32    size;  member
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()
95 if (prb->size == 0) { in pstore_get_buffer()
100 if (prb->size > size) { in pstore_get_buffer()
102 prb->size, prb->start); in pstore_get_buffer()
111 prb->size, prb->start); in pstore_get_buffer()
113 memcpy(dest, &prb->data[prb->start], prb->size - prb->start); in pstore_get_buffer()
114 memcpy(dest + prb->size - prb->start, &prb->data[0], prb->start); in pstore_get_buffer()
116 dest_size = prb->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()
249 u32 size; in pstore_display() local
288 size = pstore_get_buffer(PERSISTENT_RAM_SIG, ptr, in pstore_display()
292 if (size == 0) in pstore_display()
307 size - header_len); in pstore_display()
314 size = pstore_get_buffer(PERSISTENT_RAM_SIG, ptr, in pstore_display()
316 if (size != 0) 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()
328 if (size != 0) in pstore_display()
329 pstore_print_buffer("FTrace", buffer, size); in pstore_display()
334 size = pstore_get_buffer(PERSISTENT_RAM_SIG, ptr, in pstore_display()
336 if (size != 0) in pstore_display()
337 pstore_print_buffer("User", buffer, size); in pstore_display()
368 u32 size; in pstore_save() local
400 size = pstore_get_buffer(PERSISTENT_RAM_SIG, ptr, in pstore_save()
404 if (size == 0) in pstore_save()
414 sprintf(length, "0x%X", size - header_len); in pstore_save()
424 size = pstore_get_buffer(PERSISTENT_RAM_SIG, ptr, pstore_console_size, in pstore_save()
426 if (size != 0) { in pstore_save()
427 sprintf(length, "0x%X", size); in pstore_save()
437 size = pstore_get_buffer(0, ptr, pstore_ftrace_size, buffer); in pstore_save()
438 if (size != 0) { in pstore_save()
439 sprintf(length, "0x%X", size); in pstore_save()
446 size = pstore_get_buffer(PERSISTENT_RAM_SIG, ptr, pstore_pmsg_size, in pstore_save()
448 if (size != 0) { in pstore_save()
449 sprintf(length, "0x%X", size); in pstore_save()