• Home
  • Raw
  • Download

Lines Matching refs:want

327 xs_alloc_sparse_pages(struct xdr_buf *buf, size_t want, gfp_t gfp)  in xs_alloc_sparse_pages()  argument
331 if (!want || !(buf->flags & XDRBUF_SPARSE_PAGES)) in xs_alloc_sparse_pages()
332 return want; in xs_alloc_sparse_pages()
333 n = (buf->page_base + want + PAGE_SIZE - 1) >> PAGE_SHIFT; in xs_alloc_sparse_pages()
343 return want; in xs_alloc_sparse_pages()
405 size_t want, seek_init = seek, offset = 0; in xs_read_xdr_buf() local
408 want = min_t(size_t, count, buf->head[0].iov_len); in xs_read_xdr_buf()
409 if (seek < want) { in xs_read_xdr_buf()
410 ret = xs_read_kvec(sock, msg, flags, &buf->head[0], want, seek); in xs_read_xdr_buf()
416 if (ret != want) in xs_read_xdr_buf()
420 seek -= want; in xs_read_xdr_buf()
421 offset += want; in xs_read_xdr_buf()
424 want = xs_alloc_sparse_pages(buf, in xs_read_xdr_buf()
427 if (seek < want) { in xs_read_xdr_buf()
430 want + buf->page_base, in xs_read_xdr_buf()
439 if (ret != want) in xs_read_xdr_buf()
443 seek -= want; in xs_read_xdr_buf()
444 offset += want; in xs_read_xdr_buf()
447 want = min_t(size_t, count - offset, buf->tail[0].iov_len); in xs_read_xdr_buf()
448 if (seek < want) { in xs_read_xdr_buf()
449 ret = xs_read_kvec(sock, msg, flags, &buf->tail[0], want, seek); in xs_read_xdr_buf()
455 if (ret != want) in xs_read_xdr_buf()
499 size_t want, read; in xs_read_stream_request() local
504 want = transport->recv.len - transport->recv.offset; in xs_read_stream_request()
505 if (want != 0) { in xs_read_stream_request()
507 transport->recv.copied + want, in xs_read_stream_request()
517 if (want == 0) in xs_read_stream_request()
543 int flags, size_t want, size_t seek) in xs_read_stream_header() argument
547 .iov_len = want, in xs_read_stream_header()
549 return xs_read_kvec(transport->sock, msg, flags, &kvec, want, seek); in xs_read_stream_header()
619 size_t want, read = 0; in xs_read_stream() local
623 want = xs_read_stream_headersize(transport->recv.copied != 0); in xs_read_stream()
624 ret = xs_read_stream_header(transport, &msg, flags, want, in xs_read_stream()
629 if (transport->recv.offset != want) in xs_read_stream()
823 unsigned int want; in xs_sendpages() local
829 want = xdr->head[0].iov_len + rmsize; in xs_sendpages()
830 if (base < want) { in xs_sendpages()
831 unsigned int len = want - base; in xs_sendpages()
845 base -= want; in xs_sendpages()