Lines Matching refs:snd_buf
1744 struct xdr_buf integ_buf, *snd_buf = &rqstp->rq_snd_buf; in gss_wrap_req_integ() local
1758 offset = (u8 *)p - (u8 *)snd_buf->head[0].iov_base; in gss_wrap_req_integ()
1759 if (xdr_buf_subsegment(snd_buf, &integ_buf, in gss_wrap_req_integ()
1760 offset, snd_buf->len - offset)) in gss_wrap_req_integ()
1798 struct xdr_buf *snd_buf = &rqstp->rq_snd_buf; in alloc_enc_pages() local
1804 if (snd_buf->page_len == 0) { in alloc_enc_pages()
1809 first = snd_buf->page_base >> PAGE_SHIFT; in alloc_enc_pages()
1810 last = (snd_buf->page_base + snd_buf->page_len - 1) >> PAGE_SHIFT; in alloc_enc_pages()
1837 struct xdr_buf *snd_buf = &rqstp->rq_snd_buf; in gss_wrap_req_priv() local
1858 first = snd_buf->page_base >> PAGE_SHIFT; in gss_wrap_req_priv()
1859 inpages = snd_buf->pages + first; in gss_wrap_req_priv()
1860 snd_buf->pages = rqstp->rq_enc_pages; in gss_wrap_req_priv()
1861 snd_buf->page_base -= first << PAGE_SHIFT; in gss_wrap_req_priv()
1868 if (snd_buf->page_len || snd_buf->tail[0].iov_len) { in gss_wrap_req_priv()
1872 memcpy(tmp, snd_buf->tail[0].iov_base, snd_buf->tail[0].iov_len); in gss_wrap_req_priv()
1873 snd_buf->tail[0].iov_base = tmp; in gss_wrap_req_priv()
1875 offset = (u8 *)p - (u8 *)snd_buf->head[0].iov_base; in gss_wrap_req_priv()
1876 maj_stat = gss_wrap(ctx->gc_gss_ctx, offset, snd_buf, inpages); in gss_wrap_req_priv()
1878 if (unlikely(snd_buf->len > snd_buf->buflen)) in gss_wrap_req_priv()
1887 *opaque_len = cpu_to_be32(snd_buf->len - offset); in gss_wrap_req_priv()
1889 if (snd_buf->page_len || snd_buf->tail[0].iov_len) in gss_wrap_req_priv()
1890 iov = snd_buf->tail; in gss_wrap_req_priv()
1892 iov = snd_buf->head; in gss_wrap_req_priv()
1894 pad = xdr_pad_size(snd_buf->len - offset); in gss_wrap_req_priv()
1897 snd_buf->len += pad; in gss_wrap_req_priv()