Lines Matching defs:data
29 * @datalen: length of data in @data
30 * @start: offset into @data where the beginning of the stored bytes begin
31 * @data: zone data.
38 uint8_t data[];
49 * @data: pointer to log data
60 uint8_t data[];
69 * @buffer: pointer to data buffer managed by this zone
70 * @oldbuf: pointer to old data buffer
71 * @buffer_size: bytes in @buffer->data
73 * @dirty: whether the data in @buffer dirty
105 * @recovered: whether finished recovering data from storage
148 * @FLUSH_NONE: do not flush to storage but update data on memory
149 * @FLUSH_PART: just flush part of data including meta data to storage
150 * @FLUSH_META: just flush meta data of zone to storage
183 memcpy(buf, zone->buffer->data + off, len);
195 memcpy(buf, zone->oldbuf->data + off, len);
213 memcpy(zone->buffer->data + off, buf, wlen);
231 wcnt = writeop((const char *)zone->buffer->data + off, wlen,
302 const char *data = (const char *)old->buffer->data;
305 ret = psz_zone_write(new, FLUSH_ALL, data, buffer_datalen(old), 0);
407 pr_debug("no valid data in kmsg dump zone %lu\n", i);
418 hdr = (struct psz_kmsg_header *)buf->data;
493 /* save data as much as possible */
509 pr_debug("no valid data in zone %s\n", zone->name);
543 /* get part of data */
551 /* get the rest of data */
594 * psz_recovery() - recover data from storage
597 * recovery means reading data back from storage after rebooting
634 struct psz_context *cxt = psi->data;
662 (struct psz_kmsg_header *)buffer->data;
689 * if there are new data in zone buffer, that means the old data
701 struct psz_context *cxt = record->psi->data;
723 struct psz_context *cxt = record->psi->data;
726 (struct psz_kmsg_header *)buffer->data;
761 /* avoid destroying old data, allocate a new one */
814 /* ensure all data are flushed to storage when panic */
859 * It work if actual data length lesser than buffer size.
860 * If data length greater than buffer size, pmsg will rewrite to
862 * So we should reset datalen as buffer size once actual data length
874 struct psz_context *cxt = record->psi->data;
920 * all zones in case of some zone without data.
946 (struct psz_kmsg_header *)buffer->data;
1017 (char *)buf->data, atomic_read(&buf->datalen));
1022 cxt = record->psi->data;
1058 struct psz_context *cxt = record->psi->data;
1188 pr_debug("pszone %s: off 0x%llx, %zu header, %zu data\n", zone->name,
1377 cxt->pstore.data = cxt;