Lines Matching refs:rctxt
441 static ssize_t svc_rdma_encode_write_list(struct svc_rdma_recv_ctxt *rctxt, in svc_rdma_encode_write_list() argument
448 pcl_for_each_chunk(chunk, &rctxt->rc_write_pcl) { in svc_rdma_encode_write_list()
476 svc_rdma_encode_reply_chunk(struct svc_rdma_recv_ctxt *rctxt, in svc_rdma_encode_reply_chunk() argument
482 if (pcl_is_empty(&rctxt->rc_reply_pcl)) in svc_rdma_encode_reply_chunk()
485 chunk = pcl_first_chunk(&rctxt->rc_reply_pcl); in svc_rdma_encode_reply_chunk()
652 const struct svc_rdma_recv_ctxt *rctxt, in svc_rdma_pull_up_needed() argument
662 ret = pcl_process_nonpayloads(&rctxt->rc_write_pcl, xdr, in svc_rdma_pull_up_needed()
733 const struct svc_rdma_recv_ctxt *rctxt, in svc_rdma_pull_up_reply_msg() argument
741 ret = pcl_process_nonpayloads(&rctxt->rc_write_pcl, xdr, in svc_rdma_pull_up_reply_msg()
766 const struct svc_rdma_recv_ctxt *rctxt, in svc_rdma_map_reply_msg() argument
781 if (!pcl_is_empty(&rctxt->rc_reply_pcl)) in svc_rdma_map_reply_msg()
787 if (svc_rdma_pull_up_needed(rdma, sctxt, rctxt, xdr)) in svc_rdma_map_reply_msg()
788 return svc_rdma_pull_up_reply_msg(rdma, sctxt, rctxt, xdr); in svc_rdma_map_reply_msg()
790 return pcl_process_nonpayloads(&rctxt->rc_write_pcl, xdr, in svc_rdma_map_reply_msg()
814 const struct svc_rdma_recv_ctxt *rctxt, in svc_rdma_send_reply_msg() argument
819 ret = svc_rdma_map_reply_msg(rdma, sctxt, rctxt, &rqstp->rq_res); in svc_rdma_send_reply_msg()
823 if (rctxt->rc_inv_rkey) { in svc_rdma_send_reply_msg()
825 sctxt->sc_send_wr.ex.invalidate_rkey = rctxt->rc_inv_rkey; in svc_rdma_send_reply_msg()
856 struct svc_rdma_recv_ctxt *rctxt, in svc_rdma_send_error_msg() argument
859 __be32 *rdma_argp = rctxt->rc_recv_buf; in svc_rdma_send_error_msg()
926 struct svc_rdma_recv_ctxt *rctxt = rqstp->rq_xprt_ctxt; in svc_rdma_sendto() local
927 __be32 *rdma_argp = rctxt->rc_recv_buf; in svc_rdma_sendto()
948 ret = svc_rdma_send_reply_chunk(rdma, rctxt, &rqstp->rq_res); in svc_rdma_sendto()
956 *p = pcl_is_empty(&rctxt->rc_reply_pcl) ? rdma_msg : rdma_nomsg; in svc_rdma_sendto()
961 ret = svc_rdma_encode_write_list(rctxt, sctxt); in svc_rdma_sendto()
964 ret = svc_rdma_encode_reply_chunk(rctxt, sctxt, rc_size); in svc_rdma_sendto()
968 ret = svc_rdma_send_reply_msg(rdma, sctxt, rctxt, rqstp); in svc_rdma_sendto()
982 svc_rdma_send_error_msg(rdma, sctxt, rctxt, ret); in svc_rdma_sendto()
1011 struct svc_rdma_recv_ctxt *rctxt = rqstp->rq_xprt_ctxt; in svc_rdma_result_payload() local
1017 chunk = rctxt->rc_cur_result_payload; in svc_rdma_result_payload()
1020 rctxt->rc_cur_result_payload = in svc_rdma_result_payload()
1021 pcl_next_chunk(&rctxt->rc_write_pcl, chunk); in svc_rdma_result_payload()