Lines Matching refs:buf
47 char *buf; member
131 b->buf = calloc(size, sizeof(char)); in wbuf_new()
132 if (b->buf == NULL) { in wbuf_new()
136 b->buf_pos = b->buf; in wbuf_new()
513 wbuf->buf_pos = wbuf->buf; in _allocate_wbuf()
567 memset(w->buf + (w->size - w->free), 0, w->free); in _submit_wbuf()
575 io->buf = w->buf; in _submit_wbuf()
638 io->buf = p->wbuf->buf_pos; in extstore_write_request()
819 memcpy(io->buf, wbuf->buf + (io->offset - wbuf->offset), io->len); in _read_from_wbuf()
826 memcpy(iov->iov_base, wbuf->buf + off, iov->iov_len); in _read_from_wbuf()
907 ret = read(p->fd, cur_io->buf, cur_io->len); in extstore_io_thread()
914 … ret = pread(p->fd, cur_io->buf, cur_io->len, 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()