Lines Matching full:buffer_size

71  * @buffer_size: bytes in @buffer->data
84 size_t buffer_size; member
180 if (off > zone->buffer_size) in psz_zone_read_buffer()
182 len = min_t(size_t, len, zone->buffer_size - off); in psz_zone_read_buffer()
192 if (off > zone->buffer_size) in psz_zone_read_oldbuf()
194 len = min_t(size_t, len, zone->buffer_size - off); in psz_zone_read_oldbuf()
208 if (off > zone->buffer_size) in psz_zone_write()
211 wlen = min_t(size_t, len, zone->buffer_size - off); in psz_zone_write()
243 wlen = zone->buffer_size + sizeof(*zone->buffer); in psz_zone_write()
363 rcnt = info->read((char *)buf, zone->buffer_size + sizeof(*buf), in psz_kmsg_recover_data()
365 if (rcnt != zone->buffer_size + sizeof(*buf)) in psz_kmsg_recover_data()
411 if (zone->buffer_size < atomic_read(&buf->datalen)) { in psz_kmsg_recover_meta()
414 zone->buffer_size); in psz_kmsg_recover_meta()
422 zone->buffer_size); in psz_kmsg_recover_meta()
445 zone->buffer_size, in psz_kmsg_recover_meta()
454 zone->buffer_size, atomic_read(&buf->datalen)); in psz_kmsg_recover_meta()
513 if (zone->buffer_size < atomic_read(&tmpbuf.datalen) || in psz_recover_zone()
514 zone->buffer_size < atomic_read(&tmpbuf.start)) { in psz_recover_zone()
516 zone->name, zone->off, zone->buffer_size); in psz_recover_zone()
523 zone->name, zone->off, zone->buffer_size, in psz_recover_zone()
529 zone->name, zone->off, zone->buffer_size, in psz_recover_zone()
762 len = zone->buffer_size + sizeof(*zone->buffer); in psz_kmsg_write_record()
774 size = min_t(size_t, record->size, zone->buffer_size - hlen); in psz_kmsg_write_record()
834 if (atomic_read(&zone->buffer->datalen) >= zone->buffer_size) in psz_record_write()
839 if (unlikely(cnt > zone->buffer_size)) { in psz_record_write()
840 buf += cnt - zone->buffer_size; in psz_record_write()
841 cnt = zone->buffer_size; in psz_record_write()
845 rem = zone->buffer_size - start; in psz_record_write()
866 atomic_set(&zone->buffer->datalen, zone->buffer_size); in psz_record_write()
1181 zone->buffer_size = size - sizeof(struct psz_buffer); in psz_init_zone()
1191 zone->off, sizeof(*zone->buffer), zone->buffer_size); in psz_init_zone()
1370 cxt->pstore.bufsize = cxt->kpszs[0]->buffer_size - in register_pstore_zone()