Lines Matching refs:chunk
505 size_t chunk = MAX_CHUNK_SIZE; in storage_read() local
509 if (chunk > size) in storage_read()
510 chunk = size; in storage_read()
511 rc = _read_chunk(fh, off, ptr, chunk); in storage_read()
553 size_t chunk = MAX_CHUNK_SIZE; in storage_write() local
558 if (chunk >= size) { in storage_write()
560 chunk = size; in storage_write()
563 rc = _write_req(fh, off, ptr, chunk, msg_flags); in storage_write()
566 if ((size_t)rc != chunk) { in storage_write()
570 off += chunk; in storage_write()
571 ptr += chunk; in storage_write()
572 bytes_written += chunk; in storage_write()
573 size -= chunk; in storage_write()