Lines Matching refs:rqstp
1723 struct rpc_rqst *rqstp = task->tk_rqstp; in gss_wrap_req_integ() local
1724 struct xdr_buf integ_buf, *snd_buf = &rqstp->rq_snd_buf; in gss_wrap_req_integ()
1733 *p = cpu_to_be32(rqstp->rq_seqno); in gss_wrap_req_integ()
1765 priv_release_snd_buf(struct rpc_rqst *rqstp) in priv_release_snd_buf() argument
1769 for (i=0; i < rqstp->rq_enc_pages_num; i++) in priv_release_snd_buf()
1770 __free_page(rqstp->rq_enc_pages[i]); in priv_release_snd_buf()
1771 kfree(rqstp->rq_enc_pages); in priv_release_snd_buf()
1772 rqstp->rq_release_snd_buf = NULL; in priv_release_snd_buf()
1776 alloc_enc_pages(struct rpc_rqst *rqstp) in alloc_enc_pages() argument
1778 struct xdr_buf *snd_buf = &rqstp->rq_snd_buf; in alloc_enc_pages()
1781 if (rqstp->rq_release_snd_buf) in alloc_enc_pages()
1782 rqstp->rq_release_snd_buf(rqstp); in alloc_enc_pages()
1785 rqstp->rq_enc_pages_num = 0; in alloc_enc_pages()
1791 rqstp->rq_enc_pages_num = last - first + 1 + 1; in alloc_enc_pages()
1792 rqstp->rq_enc_pages in alloc_enc_pages()
1793 = kmalloc_array(rqstp->rq_enc_pages_num, in alloc_enc_pages()
1796 if (!rqstp->rq_enc_pages) in alloc_enc_pages()
1798 for (i=0; i < rqstp->rq_enc_pages_num; i++) { in alloc_enc_pages()
1799 rqstp->rq_enc_pages[i] = alloc_page(GFP_NOFS); in alloc_enc_pages()
1800 if (rqstp->rq_enc_pages[i] == NULL) in alloc_enc_pages()
1803 rqstp->rq_release_snd_buf = priv_release_snd_buf; in alloc_enc_pages()
1806 rqstp->rq_enc_pages_num = i; in alloc_enc_pages()
1807 priv_release_snd_buf(rqstp); in alloc_enc_pages()
1816 struct rpc_rqst *rqstp = task->tk_rqstp; in gss_wrap_req_priv() local
1817 struct xdr_buf *snd_buf = &rqstp->rq_snd_buf; in gss_wrap_req_priv()
1830 *p = cpu_to_be32(rqstp->rq_seqno); in gss_wrap_req_priv()
1835 status = alloc_enc_pages(rqstp); in gss_wrap_req_priv()
1840 snd_buf->pages = rqstp->rq_enc_pages; in gss_wrap_req_priv()
1851 tmp = page_address(rqstp->rq_enc_pages[rqstp->rq_enc_pages_num - 1]); in gss_wrap_req_priv()
1963 struct gss_cl_ctx *ctx, struct rpc_rqst *rqstp, in gss_unwrap_resp_integ() argument
1966 struct xdr_buf gss_data, *rcv_buf = &rqstp->rq_rcv_buf; in gss_unwrap_resp_integ()
1982 if (seqno != rqstp->rq_seqno) in gss_unwrap_resp_integ()
2026 trace_rpcgss_bad_seqno(task, rqstp->rq_seqno, seqno); in gss_unwrap_resp_integ()
2035 struct gss_cl_ctx *ctx, struct rpc_rqst *rqstp, in gss_unwrap_resp_priv() argument
2038 struct xdr_buf *rcv_buf = &rqstp->rq_rcv_buf; in gss_unwrap_resp_priv()
2039 struct kvec *head = rqstp->rq_rcv_buf.head; in gss_unwrap_resp_priv()
2058 if (be32_to_cpup(p++) != rqstp->rq_seqno) in gss_unwrap_resp_priv()
2064 xdr_init_decode(xdr, rcv_buf, p, rqstp); in gss_unwrap_resp_priv()
2074 trace_rpcgss_bad_seqno(task, rqstp->rq_seqno, be32_to_cpup(--p)); in gss_unwrap_resp_priv()
2127 struct rpc_rqst *rqstp = task->tk_rqstp; in gss_unwrap_resp() local
2128 struct rpc_cred *cred = rqstp->rq_cred; in gss_unwrap_resp()
2141 status = gss_unwrap_resp_integ(task, cred, ctx, rqstp, xdr); in gss_unwrap_resp()
2144 status = gss_unwrap_resp_priv(task, cred, ctx, rqstp, xdr); in gss_unwrap_resp()