Lines Matching refs:ctxt
227 struct svc_rdma_op_ctxt *ctxt; in send_write() local
239 ctxt = svc_rdma_get_context(xprt); in send_write()
240 ctxt->direction = DMA_TO_DEVICE; in send_write()
241 sge = ctxt->sge; in send_write()
269 ctxt->count++; in send_write()
284 ctxt->wr_op = IB_WR_RDMA_WRITE; in send_write()
285 write_wr.wr.wr_id = (unsigned long)ctxt; in send_write()
299 svc_rdma_unmap_dma(ctxt); in send_write()
300 svc_rdma_put_context(ctxt, 0); in send_write()
455 struct svc_rdma_op_ctxt *ctxt, in send_reply() argument
474 svc_rdma_put_context(ctxt, 0); in send_reply()
479 ctxt->pages[0] = page; in send_reply()
480 ctxt->count = 1; in send_reply()
483 ctxt->sge[0].lkey = rdma->sc_dma_lkey; in send_reply()
484 ctxt->sge[0].length = svc_rdma_xdr_get_reply_hdr_len(rdma_resp); in send_reply()
485 ctxt->sge[0].addr = in send_reply()
487 ctxt->sge[0].length, DMA_TO_DEVICE); in send_reply()
488 if (ib_dma_mapping_error(rdma->sc_cm_id->device, ctxt->sge[0].addr)) in send_reply()
492 ctxt->direction = DMA_TO_DEVICE; in send_reply()
499 ctxt->sge[sge_no].addr = in send_reply()
504 ctxt->sge[sge_no].addr)) in send_reply()
507 ctxt->sge[sge_no].lkey = rdma->sc_dma_lkey; in send_reply()
508 ctxt->sge[sge_no].length = sge_bytes; in send_reply()
521 ctxt->pages[page_no+1] = rqstp->rq_respages[page_no]; in send_reply()
522 ctxt->count++; in send_reply()
530 ctxt->sge[page_no+1].length = 0; in send_reply()
538 if (sge_no > ctxt->count) in send_reply()
546 ctxt->wr_op = IB_WR_SEND; in send_reply()
547 send_wr.wr_id = (unsigned long)ctxt; in send_reply()
548 send_wr.sg_list = ctxt->sge; in send_reply()
560 svc_rdma_unmap_dma(ctxt); in send_reply()
561 svc_rdma_put_context(ctxt, 1); in send_reply()
581 struct svc_rdma_op_ctxt *ctxt; in svc_rdma_sendto() local
592 ctxt = svc_rdma_get_context(rdma); in svc_rdma_sendto()
593 ctxt->direction = DMA_TO_DEVICE; in svc_rdma_sendto()
631 ret = send_reply(rdma, rqstp, res_page, rdma_resp, ctxt, vec, in svc_rdma_sendto()
641 svc_rdma_put_context(ctxt, 0); in svc_rdma_sendto()