Lines Matching refs:offset
51 unsigned int offset; /* offset into page this write starts at */ member
60 uint64_t offset; /* starting address of page within fd */ member
320 f->offset = 0; in extstore_init()
358 e->pages[i].offset = f->offset; in extstore_init()
360 f->offset += e->page_size; in extstore_init()
510 wbuf->offset = p->allocated; in _allocate_wbuf()
537 assert(p->written == w->offset); in _wbuf_cb()
573 io->offset = w->offset; in _submit_wbuf()
655 io->offset = p->wbuf->offset + (p->wbuf->size - p->wbuf->free); in extstore_write()
817 assert(io->offset < p->written + wbuf->size); in _read_from_wbuf()
819 memcpy(io->buf, wbuf->buf + (io->offset - wbuf->offset), io->len); in _read_from_wbuf()
822 unsigned int off = io->offset - wbuf->offset; in _read_from_wbuf()
885 if (p->active && cur_io->offset >= p->written) { in extstore_io_thread()
904 ret = lseek(p->fd, p->offset + cur_io->offset, SEEK_SET); in extstore_io_thread()
914 … ret = pread(p->fd, cur_io->buf, cur_io->len, p->offset + cur_io->offset); in extstore_io_thread()
916 … ret = preadv(p->fd, cur_io->iov, cur_io->iovcnt, p->offset + cur_io->offset); in extstore_io_thread()
925 ret = pwrite(p->fd, cur_io->buf, cur_io->len, p->offset + cur_io->offset); in extstore_io_thread()