Lines Matching refs:rctxt

494 static ssize_t svc_rdma_encode_write_list(struct svc_rdma_recv_ctxt *rctxt,  in svc_rdma_encode_write_list()  argument
501 pcl_for_each_chunk(chunk, &rctxt->rc_write_pcl) { in svc_rdma_encode_write_list()
529 svc_rdma_encode_reply_chunk(struct svc_rdma_recv_ctxt *rctxt, in svc_rdma_encode_reply_chunk() argument
535 if (pcl_is_empty(&rctxt->rc_reply_pcl)) in svc_rdma_encode_reply_chunk()
538 chunk = pcl_first_chunk(&rctxt->rc_reply_pcl); in svc_rdma_encode_reply_chunk()
882 const struct svc_rdma_recv_ctxt *rctxt, in svc_rdma_send_reply_msg() argument
888 ret = svc_rdma_map_reply_msg(rdma, sctxt, &rctxt->rc_write_pcl, in svc_rdma_send_reply_msg()
889 &rctxt->rc_reply_pcl, &rqstp->rq_res); in svc_rdma_send_reply_msg()
898 if (rctxt->rc_inv_rkey) { in svc_rdma_send_reply_msg()
900 send_wr->ex.invalidate_rkey = rctxt->rc_inv_rkey; in svc_rdma_send_reply_msg()
925 struct svc_rdma_recv_ctxt *rctxt, in svc_rdma_send_error_msg() argument
928 __be32 *rdma_argp = rctxt->rc_recv_buf; in svc_rdma_send_error_msg()
994 struct svc_rdma_recv_ctxt *rctxt = rqstp->rq_xprt_ctxt; in svc_rdma_sendto() local
995 __be32 *rdma_argp = rctxt->rc_recv_buf; in svc_rdma_sendto()
1016 ret = svc_rdma_send_write_list(rdma, rctxt, &rqstp->rq_res); in svc_rdma_sendto()
1021 if (!pcl_is_empty(&rctxt->rc_reply_pcl)) { in svc_rdma_sendto()
1022 ret = svc_rdma_prepare_reply_chunk(rdma, &rctxt->rc_write_pcl, in svc_rdma_sendto()
1023 &rctxt->rc_reply_pcl, sctxt, in svc_rdma_sendto()
1033 *p = pcl_is_empty(&rctxt->rc_reply_pcl) ? rdma_msg : rdma_nomsg; in svc_rdma_sendto()
1038 ret = svc_rdma_encode_write_list(rctxt, sctxt); in svc_rdma_sendto()
1041 ret = svc_rdma_encode_reply_chunk(rctxt, sctxt, rc_size); in svc_rdma_sendto()
1045 ret = svc_rdma_send_reply_msg(rdma, sctxt, rctxt, rqstp); in svc_rdma_sendto()
1058 svc_rdma_send_error_msg(rdma, sctxt, rctxt, ret); in svc_rdma_sendto()
1086 struct svc_rdma_recv_ctxt *rctxt = rqstp->rq_xprt_ctxt; in svc_rdma_result_payload() local
1089 chunk = rctxt->rc_cur_result_payload; in svc_rdma_result_payload()
1092 rctxt->rc_cur_result_payload = in svc_rdma_result_payload()
1093 pcl_next_chunk(&rctxt->rc_write_pcl, chunk); in svc_rdma_result_payload()