Lines Matching defs:resbuf

1685 svcauth_gss_prepare_to_wrap(struct xdr_buf *resbuf, struct gss_svc_data *gsd)
1704 resbuf->head[0].iov_len -= 2 * 4;
1716 struct xdr_buf *resbuf = &rqstp->rq_res;
1724 p = svcauth_gss_prepare_to_wrap(resbuf, gsd);
1727 integ_offset = (u8 *)(p + 1) - (u8 *)resbuf->head[0].iov_base;
1728 integ_len = resbuf->len - integ_offset;
1733 if (xdr_buf_subsegment(resbuf, &integ_buf, integ_offset, integ_len)) {
1737 if (resbuf->tail[0].iov_base == NULL) {
1738 if (resbuf->head[0].iov_len + RPC_MAX_AUTH_SIZE > PAGE_SIZE)
1740 resbuf->tail[0].iov_base = resbuf->head[0].iov_base
1741 + resbuf->head[0].iov_len;
1742 resbuf->tail[0].iov_len = 0;
1744 resv = &resbuf->tail[0];
1753 resbuf->len += XDR_QUADLEN(mic.len) << 2;
1767 struct xdr_buf *resbuf = &rqstp->rq_res;
1773 p = svcauth_gss_prepare_to_wrap(resbuf, gsd);
1777 offset = (u8 *)p - (u8 *)resbuf->head[0].iov_base;
1779 inpages = resbuf->pages;
1790 if (resbuf->tail[0].iov_base) {
1791 if (resbuf->tail[0].iov_base >=
1792 resbuf->head[0].iov_base + PAGE_SIZE)
1794 if (resbuf->tail[0].iov_base < resbuf->head[0].iov_base)
1796 if (resbuf->tail[0].iov_len + resbuf->head[0].iov_len
1799 memmove(resbuf->tail[0].iov_base + RPC_MAX_AUTH_SIZE,
1800 resbuf->tail[0].iov_base,
1801 resbuf->tail[0].iov_len);
1802 resbuf->tail[0].iov_base += RPC_MAX_AUTH_SIZE;
1811 if (resbuf->tail[0].iov_base == NULL) {
1812 if (resbuf->head[0].iov_len + 2*RPC_MAX_AUTH_SIZE > PAGE_SIZE)
1814 resbuf->tail[0].iov_base = resbuf->head[0].iov_base
1815 + resbuf->head[0].iov_len + RPC_MAX_AUTH_SIZE;
1816 resbuf->tail[0].iov_len = 0;
1818 if (gss_wrap(gsd->rsci->mechctx, offset, resbuf, inpages))
1820 *len = htonl(resbuf->len - offset);
1821 pad = 3 - ((resbuf->len - offset - 1)&3);
1822 p = (__be32 *)(resbuf->tail[0].iov_base + resbuf->tail[0].iov_len);
1824 resbuf->tail[0].iov_len += pad;
1825 resbuf->len += pad;
1834 struct xdr_buf *resbuf = &rqstp->rq_res;
1849 resbuf->len = total_buf_len(resbuf);