Searched refs:headerp (Results 1 - 2 of 2) sorted by relevance

/linux-4.4.14/net/sunrpc/xprtrdma/
H A Dbackchannel.c208 struct rpcrdma_msg *headerp; rpcrdma_bc_marshal_reply() local
211 headerp = rdmab_to_msg(req->rl_rdmabuf); rpcrdma_bc_marshal_reply()
212 headerp->rm_xid = rqst->rq_xid; rpcrdma_bc_marshal_reply()
213 headerp->rm_vers = rpcrdma_version; rpcrdma_bc_marshal_reply()
214 headerp->rm_credit = rpcrdma_bc_marshal_reply()
216 headerp->rm_type = rdma_msg; rpcrdma_bc_marshal_reply()
217 headerp->rm_body.rm_chunks[0] = xdr_zero; rpcrdma_bc_marshal_reply()
218 headerp->rm_body.rm_chunks[1] = xdr_zero; rpcrdma_bc_marshal_reply()
219 headerp->rm_body.rm_chunks[2] = xdr_zero; rpcrdma_bc_marshal_reply()
223 pr_info("RPC: %s: rpclen %zd headerp 0x%p lkey 0x%x\n", rpcrdma_bc_marshal_reply()
224 __func__, rpclen, headerp, rdmab_lkey(req->rl_rdmabuf)); rpcrdma_bc_marshal_reply()
226 __func__, (int)RPCRDMA_HDRLEN_MIN, headerp); rpcrdma_bc_marshal_reply()
300 struct rpcrdma_msg *headerp; rpcrdma_bc_receive_call() local
308 headerp = rdmab_to_msg(rep->rr_rdmabuf); rpcrdma_bc_receive_call()
311 __func__, be32_to_cpu(headerp->rm_xid), rep->rr_len); rpcrdma_bc_receive_call()
312 pr_info("RPC: %s: %*ph\n", __func__, rep->rr_len, headerp); rpcrdma_bc_receive_call()
323 p = (__be32 *)((unsigned char *)headerp + RPCRDMA_HDRLEN_MIN); rpcrdma_bc_receive_call()
343 rqst->rq_xid = headerp->rm_xid; rpcrdma_bc_receive_call()
H A Drpc_rdma.c244 struct rpcrdma_msg *headerp, enum rpcrdma_chunktype type) rpcrdma_create_chunks()
254 __be32 *iptr = headerp->rm_body.rm_chunks; rpcrdma_create_chunks()
349 return (unsigned char *)iptr - (unsigned char *)headerp; rpcrdma_create_chunks()
442 struct rpcrdma_msg *headerp; rpcrdma_marshal_req() local
456 headerp = rdmab_to_msg(req->rl_rdmabuf); rpcrdma_marshal_req()
458 headerp->rm_xid = rqst->rq_xid; rpcrdma_marshal_req()
459 headerp->rm_vers = rpcrdma_version; rpcrdma_marshal_req()
460 headerp->rm_credit = cpu_to_be32(r_xprt->rx_buf.rb_max_requests); rpcrdma_marshal_req()
461 headerp->rm_type = rdma_msg; rpcrdma_marshal_req()
498 headerp->rm_type = htonl(RDMA_NOMSG); rpcrdma_marshal_req()
523 headerp->rm_body.rm_nochunks.rm_empty[0] = xdr_zero; rpcrdma_marshal_req()
524 headerp->rm_body.rm_nochunks.rm_empty[1] = xdr_zero; rpcrdma_marshal_req()
525 headerp->rm_body.rm_nochunks.rm_empty[2] = xdr_zero; rpcrdma_marshal_req()
532 headerp, rtype); rpcrdma_marshal_req()
537 headerp, wtype); rpcrdma_marshal_req()
543 " headerp 0x%p base 0x%p lkey 0x%x\n", rpcrdma_marshal_req()
545 headerp, base, rdmab_lkey(req->rl_rdmabuf)); rpcrdma_marshal_req()
726 rpcrdma_is_bcall(struct rpcrdma_msg *headerp) rpcrdma_is_bcall() argument
728 __be32 *p = (__be32 *)headerp; rpcrdma_is_bcall()
730 if (headerp->rm_type != rdma_msg) rpcrdma_is_bcall()
732 if (headerp->rm_body.rm_chunks[0] != xdr_zero) rpcrdma_is_bcall()
734 if (headerp->rm_body.rm_chunks[1] != xdr_zero) rpcrdma_is_bcall()
736 if (headerp->rm_body.rm_chunks[2] != xdr_zero) rpcrdma_is_bcall()
740 if (p[7] != headerp->rm_xid) rpcrdma_is_bcall()
770 struct rpcrdma_msg *headerp; rpcrdma_reply_handler() local
787 headerp = rdmab_to_msg(rep->rr_rdmabuf); rpcrdma_reply_handler()
788 if (headerp->rm_vers != rpcrdma_version) rpcrdma_reply_handler()
791 if (rpcrdma_is_bcall(headerp)) rpcrdma_reply_handler()
799 rqst = xprt_lookup_rqst(xprt, headerp->rm_xid); rpcrdma_reply_handler()
810 be32_to_cpu(headerp->rm_xid)); rpcrdma_reply_handler()
818 switch (headerp->rm_type) { rpcrdma_reply_handler()
823 if (headerp->rm_body.rm_chunks[0] != xdr_zero || rpcrdma_reply_handler()
824 (headerp->rm_body.rm_chunks[1] == xdr_zero && rpcrdma_reply_handler()
825 headerp->rm_body.rm_chunks[2] != xdr_zero) || rpcrdma_reply_handler()
826 (headerp->rm_body.rm_chunks[1] != xdr_zero && rpcrdma_reply_handler()
829 if (headerp->rm_body.rm_chunks[1] != xdr_zero) { rpcrdma_reply_handler()
832 iptr = &headerp->rm_body.rm_chunks[2]; rpcrdma_reply_handler()
839 ((unsigned char *)iptr - (unsigned char *)headerp); rpcrdma_reply_handler()
850 iptr = (__be32 *)((unsigned char *)headerp + rpcrdma_reply_handler()
861 if (headerp->rm_body.rm_chunks[0] != xdr_zero || rpcrdma_reply_handler()
862 headerp->rm_body.rm_chunks[1] != xdr_zero || rpcrdma_reply_handler()
863 headerp->rm_body.rm_chunks[2] != xdr_one || rpcrdma_reply_handler()
866 iptr = (__be32 *)((unsigned char *)headerp + rpcrdma_reply_handler()
881 __func__, be32_to_cpu(headerp->rm_type), rpcrdma_reply_handler()
882 headerp->rm_body.rm_chunks[0], rpcrdma_reply_handler()
883 headerp->rm_body.rm_chunks[1], rpcrdma_reply_handler()
884 headerp->rm_body.rm_chunks[2], rpcrdma_reply_handler()
891 credits = be32_to_cpu(headerp->rm_credit); rpcrdma_reply_handler()
928 __func__, be32_to_cpu(headerp->rm_vers)); rpcrdma_reply_handler()
934 __func__, be32_to_cpu(headerp->rm_xid), rpcrdma_reply_handler()
942 __func__, rep, req, be32_to_cpu(headerp->rm_xid)); rpcrdma_reply_handler()
243 rpcrdma_create_chunks(struct rpc_rqst *rqst, struct xdr_buf *target, struct rpcrdma_msg *headerp, enum rpcrdma_chunktype type) rpcrdma_create_chunks() argument

Completed in 91 milliseconds