Lines Matching refs:resbuf

1680 svcauth_gss_prepare_to_wrap(struct xdr_buf *resbuf, struct gss_svc_data *gsd)  in svcauth_gss_prepare_to_wrap()  argument
1699 resbuf->head[0].iov_len -= 2 * 4; in svcauth_gss_prepare_to_wrap()
1711 struct xdr_buf *resbuf = &rqstp->rq_res; in svcauth_gss_wrap_resp_integ() local
1719 p = svcauth_gss_prepare_to_wrap(resbuf, gsd); in svcauth_gss_wrap_resp_integ()
1722 integ_offset = (u8 *)(p + 1) - (u8 *)resbuf->head[0].iov_base; in svcauth_gss_wrap_resp_integ()
1723 integ_len = resbuf->len - integ_offset; in svcauth_gss_wrap_resp_integ()
1728 if (xdr_buf_subsegment(resbuf, &integ_buf, integ_offset, integ_len)) { in svcauth_gss_wrap_resp_integ()
1732 if (resbuf->tail[0].iov_base == NULL) { in svcauth_gss_wrap_resp_integ()
1733 if (resbuf->head[0].iov_len + RPC_MAX_AUTH_SIZE > PAGE_SIZE) in svcauth_gss_wrap_resp_integ()
1735 resbuf->tail[0].iov_base = resbuf->head[0].iov_base in svcauth_gss_wrap_resp_integ()
1736 + resbuf->head[0].iov_len; in svcauth_gss_wrap_resp_integ()
1737 resbuf->tail[0].iov_len = 0; in svcauth_gss_wrap_resp_integ()
1739 resv = &resbuf->tail[0]; in svcauth_gss_wrap_resp_integ()
1748 resbuf->len += XDR_QUADLEN(mic.len) << 2; in svcauth_gss_wrap_resp_integ()
1762 struct xdr_buf *resbuf = &rqstp->rq_res; in svcauth_gss_wrap_resp_priv() local
1768 p = svcauth_gss_prepare_to_wrap(resbuf, gsd); in svcauth_gss_wrap_resp_priv()
1772 offset = (u8 *)p - (u8 *)resbuf->head[0].iov_base; in svcauth_gss_wrap_resp_priv()
1774 inpages = resbuf->pages; in svcauth_gss_wrap_resp_priv()
1785 if (resbuf->tail[0].iov_base) { in svcauth_gss_wrap_resp_priv()
1786 if (resbuf->tail[0].iov_base >= in svcauth_gss_wrap_resp_priv()
1787 resbuf->head[0].iov_base + PAGE_SIZE) in svcauth_gss_wrap_resp_priv()
1789 if (resbuf->tail[0].iov_base < resbuf->head[0].iov_base) in svcauth_gss_wrap_resp_priv()
1791 if (resbuf->tail[0].iov_len + resbuf->head[0].iov_len in svcauth_gss_wrap_resp_priv()
1794 memmove(resbuf->tail[0].iov_base + RPC_MAX_AUTH_SIZE, in svcauth_gss_wrap_resp_priv()
1795 resbuf->tail[0].iov_base, in svcauth_gss_wrap_resp_priv()
1796 resbuf->tail[0].iov_len); in svcauth_gss_wrap_resp_priv()
1797 resbuf->tail[0].iov_base += RPC_MAX_AUTH_SIZE; in svcauth_gss_wrap_resp_priv()
1806 if (resbuf->tail[0].iov_base == NULL) { in svcauth_gss_wrap_resp_priv()
1807 if (resbuf->head[0].iov_len + 2*RPC_MAX_AUTH_SIZE > PAGE_SIZE) in svcauth_gss_wrap_resp_priv()
1809 resbuf->tail[0].iov_base = resbuf->head[0].iov_base in svcauth_gss_wrap_resp_priv()
1810 + resbuf->head[0].iov_len + RPC_MAX_AUTH_SIZE; in svcauth_gss_wrap_resp_priv()
1811 resbuf->tail[0].iov_len = 0; in svcauth_gss_wrap_resp_priv()
1813 if (gss_wrap(gsd->rsci->mechctx, offset, resbuf, inpages)) in svcauth_gss_wrap_resp_priv()
1815 *len = htonl(resbuf->len - offset); in svcauth_gss_wrap_resp_priv()
1816 pad = 3 - ((resbuf->len - offset - 1)&3); in svcauth_gss_wrap_resp_priv()
1817 p = (__be32 *)(resbuf->tail[0].iov_base + resbuf->tail[0].iov_len); in svcauth_gss_wrap_resp_priv()
1819 resbuf->tail[0].iov_len += pad; in svcauth_gss_wrap_resp_priv()
1820 resbuf->len += pad; in svcauth_gss_wrap_resp_priv()
1829 struct xdr_buf *resbuf = &rqstp->rq_res; in svcauth_gss_release() local
1841 resbuf->len = total_buf_len(resbuf); in svcauth_gss_release()