Lines Matching refs:size

418 			pr_info("found overtop zone: %s: id %lu, off %lld, size %zu\n",
426 pr_info("found invalid zone: %s: id %lu, off %lld, size %zu\n",
449 pr_debug("found erased zone: %s: id %lu, off %lld, size %zu, datalen %d\n",
458 pr_debug("found nice zone: %s: id %lu, off %lld, size %zu, datalen %d\n",
521 pr_info("found overtop zone: %s: off %lld, size %zu\n",
528 pr_debug("found erased zone: %s: off %lld, size %zu, datalen %d\n",
534 pr_debug("found nice zone: %s: off %lld, size %zu, datalen %d\n",
674 size_t size;
683 size = buffer_datalen(zone) + sizeof(*zone->buffer);
686 return cxt->pstore_zone_info->erase(size, zone->off);
761 size_t size, hlen;
787 size = min_t(size_t, record->size, zone->buffer_size - hlen);
788 ret = psz_zone_write(zone, FLUSH_ALL, record->buf, size, hlen);
850 cnt = record->size;
872 * It work if actual data length lesser than buffer size.
873 * If data length greater than buffer size, pmsg will rewrite to
875 * So we should reset datalen as buffer size once actual data length
876 * greater than buffer size.
983 ssize_t size, hlen = 0;
985 size = buffer_datalen(zone);
992 size -= sizeof(struct psz_kmsg_header);
999 record->buf = krealloc(buf, hlen + size, GFP_KERNEL);
1005 record->buf = kmalloc(size, GFP_KERNEL);
1010 size = psz_zone_read_buffer(zone, record->buf + hlen, size,
1012 if (unlikely(size < 0)) {
1017 return size + hlen;
1038 ret = pstore_ftrace_combine_log(&record->buf, &record->size,
1049 return record->size ? record->size : -ENOMSG;
1176 loff_t *off, size_t size)
1182 if (!size)
1185 if (*off + size > info->total_size) {
1187 name, size, *off, info->total_size);
1195 zone->buffer = kmalloc(size, GFP_KERNEL);
1200 memset(zone->buffer, 0xFF, size);
1204 zone->buffer_size = size - sizeof(struct psz_buffer);
1211 *off += size;
1339 pr_warn("at least one record size must be non-zero\n");
1346 #define check_size(name, size) { \
1347 if (info->name > 0 && info->name < (size)) { \
1348 pr_err(#name " must be over %d\n", (size)); \
1351 if (info->name & (size - 1)) { \
1353 (size)); \
1387 pr_debug("\ttotal size : %ld Bytes\n", info->total_size);
1388 pr_debug("\tkmsg size : %ld Bytes\n", info->kmsg_size);
1389 pr_debug("\tpmsg size : %ld Bytes\n", info->pmsg_size);
1390 pr_debug("\tconsole size : %ld Bytes\n", info->console_size);
1391 pr_debug("\tftrace size : %ld Bytes\n", info->ftrace_size);
1392 pr_debug("\tblackbox size : %ld Bytes\n", info->blackbox_size);