Lines Matching refs:size
412 pr_info("found overtop zone: %s: id %lu, off %lld, size %zu\n",
420 pr_info("found invalid zone: %s: id %lu, off %lld, size %zu\n",
443 pr_debug("found erased zone: %s: id %lu, off %lld, size %zu, datalen %d\n",
452 pr_debug("found nice zone: %s: id %lu, off %lld, size %zu, datalen %d\n",
515 pr_info("found overtop zone: %s: off %lld, size %zu\n",
522 pr_debug("found erased zone: %s: off %lld, size %zu, datalen %d\n",
528 pr_debug("found nice zone: %s: off %lld, size %zu, datalen %d\n",
663 size_t size;
672 size = buffer_datalen(zone) + sizeof(*zone->buffer);
675 return cxt->pstore_zone_info->erase(size, zone->off);
748 size_t size, hlen;
774 size = min_t(size_t, record->size, zone->buffer_size - hlen);
775 ret = psz_zone_write(zone, FLUSH_ALL, record->buf, size, hlen);
837 cnt = record->size;
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
863 * greater than buffer size.
961 ssize_t size, hlen = 0;
963 size = buffer_datalen(zone);
970 size -= sizeof(struct psz_kmsg_header);
977 record->buf = krealloc(buf, hlen + size, GFP_KERNEL);
983 record->buf = kmalloc(size, GFP_KERNEL);
988 size = psz_zone_read_buffer(zone, record->buf + hlen, size,
990 if (unlikely(size < 0)) {
995 return size + hlen;
1016 ret = pstore_ftrace_combine_log(&record->buf, &record->size,
1027 return record->size ? record->size : -ENOMSG;
1151 loff_t *off, size_t size)
1157 if (!size)
1160 if (*off + size > info->total_size) {
1162 name, size, *off, info->total_size);
1170 zone->buffer = kmalloc(size, GFP_KERNEL);
1175 memset(zone->buffer, 0xFF, size);
1179 zone->buffer_size = size - sizeof(struct psz_buffer);
1186 *off += size;
1303 pr_warn("capping size to 128MiB\n");
1309 pr_warn("at least one record size must be non-zero\n");
1316 #define check_size(name, size) { \
1317 if (info->name > 0 && info->name < (size)) { \
1318 pr_err(#name " must be over %d\n", (size)); \
1321 if (info->name & (size - 1)) { \
1323 (size)); \
1356 pr_debug("\ttotal size : %ld Bytes\n", info->total_size);
1357 pr_debug("\tkmsg size : %ld Bytes\n", info->kmsg_size);
1358 pr_debug("\tpmsg size : %ld Bytes\n", info->pmsg_size);
1359 pr_debug("\tconsole size : %ld Bytes\n", info->console_size);
1360 pr_debug("\tftrace size : %ld Bytes\n", info->ftrace_size);