Lines Matching refs:offset
151 off_t c_len = (off_t)buffer_clen(c->mem) - c->offset; in network_write_mem_chunk()
155 ssize_t wr = network_write_data_len(fd, c->mem->ptr + c->offset, c_len); in network_write_mem_chunk()
166 off_t toSend = c->file.length - c->offset; in network_write_file_chunk_no_mmap()
175 toSend = chunk_file_pread(c->file.fd, buf, toSend, c->offset); in network_write_file_chunk_no_mmap()
207 off_t toSend = c->file.length - c->offset; in network_write_file_chunk_mmap()
211 const off_t mmap_avail = chunk_file_view_dlen(cfv, c->offset); in network_write_file_chunk_mmap()
212 const char * const data = chunk_file_view_dptr(cfv, c->offset); in network_write_file_chunk_mmap()
260 const off_t c_len = (off_t)buffer_clen(c->mem) - c->offset; in network_writev_mem_chunks()
264 chunks[num_chunks].iov_base = c->mem->ptr + c->offset; in network_writev_mem_chunks()
298 off_t offset; in network_write_file_chunk_sendfile() local
302 offset = c->offset; in network_write_file_chunk_sendfile()
303 toSend = c->file.length - c->offset; in network_write_file_chunk_sendfile()
314 wr = sendfile(fd, c->file.fd, &offset, toSend); in network_write_file_chunk_sendfile()
320 wr = sendfile(c->file.fd, fd, offset, &written, NULL, 0); in network_write_file_chunk_sendfile()
325 wr = sendfile(c->file.fd, fd, offset, toSend, NULL, &written, 0); in network_write_file_chunk_sendfile()
333 fvec.sfv_off = offset; in network_write_file_chunk_sendfile()