Lines Matching refs:seek

354 xs_sock_recvmsg(struct socket *sock, struct msghdr *msg, int flags, size_t seek)  in xs_sock_recvmsg()  argument
357 if (seek != 0) in xs_sock_recvmsg()
358 iov_iter_advance(&msg->msg_iter, seek); in xs_sock_recvmsg()
360 return ret > 0 ? ret + seek : ret; in xs_sock_recvmsg()
365 struct kvec *kvec, size_t count, size_t seek) in xs_read_kvec() argument
368 return xs_sock_recvmsg(sock, msg, flags, seek); in xs_read_kvec()
374 size_t seek) in xs_read_bvec() argument
377 return xs_sock_recvmsg(sock, msg, flags, seek); in xs_read_bvec()
390 xs_flush_bvec(const struct bio_vec *bvec, size_t count, size_t seek) in xs_flush_bvec() argument
397 bvec_iter_advance(bvec, &bi, seek & PAGE_MASK); in xs_flush_bvec()
403 xs_flush_bvec(const struct bio_vec *bvec, size_t count, size_t seek) in xs_flush_bvec() argument
410 struct xdr_buf *buf, size_t count, size_t seek, size_t *read) in xs_read_xdr_buf() argument
412 size_t want, seek_init = seek, offset = 0; in xs_read_xdr_buf()
416 if (seek < want) { in xs_read_xdr_buf()
417 ret = xs_read_kvec(sock, msg, flags, &buf->head[0], want, seek); in xs_read_xdr_buf()
425 seek = 0; in xs_read_xdr_buf()
427 seek -= want; in xs_read_xdr_buf()
434 if (seek < want) { in xs_read_xdr_buf()
438 seek + buf->page_base); in xs_read_xdr_buf()
441 xs_flush_bvec(buf->bvec, ret, seek + buf->page_base); in xs_read_xdr_buf()
448 seek = 0; in xs_read_xdr_buf()
450 seek -= want; in xs_read_xdr_buf()
455 if (seek < want) { in xs_read_xdr_buf()
456 ret = xs_read_kvec(sock, msg, flags, &buf->tail[0], want, seek); in xs_read_xdr_buf()
471 offset += seek; in xs_read_xdr_buf()
550 int flags, size_t want, size_t seek) in xs_read_stream_header() argument
556 return xs_read_kvec(transport->sock, msg, flags, &kvec, want, seek); in xs_read_stream_header()