Lines Matching refs:bufv
48 fuse_buf_size(const struct fuse_bufvec *bufv) { in fuse_buf_size() argument
52 for (i = 0; i < bufv->count; i++) { in fuse_buf_size()
53 total += bufv->buf[i].size; in fuse_buf_size()
62 fuse_buf_current(const struct fuse_bufvec *bufv) { in fuse_buf_current() argument
63 if (bufv->idx < bufv->count) in fuse_buf_current()
64 return &bufv->buf[bufv->idx]; in fuse_buf_current()
260 fuse_buf_advance(struct fuse_bufvec *bufv, size_t len) { in fuse_buf_advance() argument
261 const struct fuse_buf *buf = fuse_buf_current(bufv); in fuse_buf_advance()
263 assert(bufv->off + len <= buf->size); in fuse_buf_advance()
264 bufv->off += len; in fuse_buf_advance()
265 if (bufv->off == buf->size) { in fuse_buf_advance()
267 assert(bufv->idx < bufv->count); in fuse_buf_advance()
268 bufv->idx++; in fuse_buf_advance()
269 if (bufv->idx == bufv->count) in fuse_buf_advance()
271 bufv->off = 0; in fuse_buf_advance()