Lines Matching refs:rdma
451 static int send_reply(struct svcxprt_rdma *rdma, in send_reply() argument
468 ret = svc_rdma_post_recv(rdma); in send_reply()
472 "Closing transport %p.\n", ret, rdma); in send_reply()
473 set_bit(XPT_CLOSE, &rdma->sc_xprt.xpt_flags); in send_reply()
483 ctxt->sge[0].lkey = rdma->sc_dma_lkey; in send_reply()
486 ib_dma_map_page(rdma->sc_cm_id->device, page, 0, in send_reply()
488 if (ib_dma_mapping_error(rdma->sc_cm_id->device, ctxt->sge[0].addr)) in send_reply()
490 atomic_inc(&rdma->sc_dma_used); in send_reply()
500 dma_map_xdr(rdma, &rqstp->rq_res, xdr_off, in send_reply()
503 if (ib_dma_mapping_error(rdma->sc_cm_id->device, in send_reply()
506 atomic_inc(&rdma->sc_dma_used); in send_reply()
507 ctxt->sge[sge_no].lkey = rdma->sc_dma_lkey; in send_reply()
539 atomic_dec(&rdma->sc_dma_used); in send_reply()
541 if (sge_no > rdma->sc_max_sge) { in send_reply()
553 ret = svc_rdma_send(rdma, &send_wr); in send_reply()
572 struct svcxprt_rdma *rdma = in svc_rdma_sendto() local
592 ctxt = svc_rdma_get_context(rdma); in svc_rdma_sendto()
595 ret = map_xdr(rdma, &rqstp->rq_res, vec); in svc_rdma_sendto()
608 svc_rdma_xdr_encode_reply_header(rdma, rdma_argp, in svc_rdma_sendto()
612 ret = send_write_chunks(rdma, rdma_argp, rdma_resp, in svc_rdma_sendto()
622 ret = send_reply_chunks(rdma, rdma_argp, rdma_resp, in svc_rdma_sendto()
631 ret = send_reply(rdma, rqstp, res_page, rdma_resp, ctxt, vec, in svc_rdma_sendto()