Lines Matching refs:oldbuf
83 struct psz_buffer *oldbuf; member
190 if (!buf || !zone || !zone->oldbuf) in psz_zone_read_oldbuf()
195 memcpy(buf, zone->oldbuf->data + off, len); in psz_zone_read_oldbuf()
484 struct psz_buffer *oldbuf, tmpbuf; in psz_recover_zone() local
489 if (!zone || zone->oldbuf) in psz_recover_zone()
532 len = atomic_read(&tmpbuf.datalen) + sizeof(*oldbuf); in psz_recover_zone()
533 oldbuf = kzalloc(len, GFP_KERNEL); in psz_recover_zone()
534 if (!oldbuf) in psz_recover_zone()
537 memcpy(oldbuf, &tmpbuf, sizeof(*oldbuf)); in psz_recover_zone()
538 buf = (char *)oldbuf + sizeof(*oldbuf); in psz_recover_zone()
539 len = atomic_read(&oldbuf->datalen); in psz_recover_zone()
540 start = atomic_read(&oldbuf->start); in psz_recover_zone()
541 off = zone->off + sizeof(*oldbuf); in psz_recover_zone()
559 zone->oldbuf = oldbuf; in psz_recover_zone()
564 kfree(oldbuf); in psz_recover_zone()
645 if (zone && zone->oldbuf && atomic_read(&zone->oldbuf->datalen)) in psz_old_ok()
686 kfree(zone->oldbuf); in psz_record_erase()
687 zone->oldbuf = NULL; in psz_record_erase()
763 zone->oldbuf = zone->buffer; in psz_kmsg_write_record()
766 zone->buffer = zone->oldbuf; in psz_kmsg_write_record()
769 zone->buffer->sig = zone->oldbuf->sig; in psz_kmsg_write_record()
780 kfree(zone->oldbuf); in psz_kmsg_write_record()
781 zone->oldbuf = NULL; in psz_kmsg_write_record()
788 zone->buffer = zone->oldbuf; in psz_kmsg_write_record()
789 zone->oldbuf = NULL; in psz_kmsg_write_record()
1014 buf = (struct psz_buffer *)zone->oldbuf; in psz_ftrace_read()
1041 buf = (struct psz_buffer *)zone->oldbuf; in psz_record_read()
1183 zone->oldbuf = NULL; in psz_init_zone()