Lines Matching refs:ctxt

154 	struct svc_rdma_op_ctxt *ctxt;  in send_write()  local
166 ctxt = svc_rdma_get_context(xprt); in send_write()
167 ctxt->direction = DMA_TO_DEVICE; in send_write()
168 sge = ctxt->sge; in send_write()
196 ctxt->count++; in send_write()
211 ctxt->wr_op = IB_WR_RDMA_WRITE; in send_write()
212 write_wr.wr_id = (unsigned long)ctxt; in send_write()
226 svc_rdma_unmap_dma(ctxt); in send_write()
227 svc_rdma_put_context(ctxt, 0); in send_write()
380 struct svc_rdma_op_ctxt *ctxt, in send_reply() argument
399 svc_rdma_put_context(ctxt, 0); in send_reply()
404 ctxt->pages[0] = page; in send_reply()
405 ctxt->count = 1; in send_reply()
408 ctxt->sge[0].lkey = rdma->sc_dma_lkey; in send_reply()
409 ctxt->sge[0].length = svc_rdma_xdr_get_reply_hdr_len(rdma_resp); in send_reply()
410 ctxt->sge[0].addr = in send_reply()
412 ctxt->sge[0].length, DMA_TO_DEVICE); in send_reply()
413 if (ib_dma_mapping_error(rdma->sc_cm_id->device, ctxt->sge[0].addr)) in send_reply()
417 ctxt->direction = DMA_TO_DEVICE; in send_reply()
424 ctxt->sge[sge_no].addr = in send_reply()
429 ctxt->sge[sge_no].addr)) in send_reply()
432 ctxt->sge[sge_no].lkey = rdma->sc_dma_lkey; in send_reply()
433 ctxt->sge[sge_no].length = sge_bytes; in send_reply()
446 ctxt->pages[page_no+1] = rqstp->rq_respages[page_no]; in send_reply()
447 ctxt->count++; in send_reply()
455 ctxt->sge[page_no+1].length = 0; in send_reply()
463 if (sge_no > ctxt->count) in send_reply()
471 ctxt->wr_op = IB_WR_SEND; in send_reply()
472 send_wr.wr_id = (unsigned long)ctxt; in send_reply()
473 send_wr.sg_list = ctxt->sge; in send_reply()
485 svc_rdma_unmap_dma(ctxt); in send_reply()
486 svc_rdma_put_context(ctxt, 1); in send_reply()
506 struct svc_rdma_op_ctxt *ctxt; in svc_rdma_sendto() local
517 ctxt = svc_rdma_get_context(rdma); in svc_rdma_sendto()
518 ctxt->direction = DMA_TO_DEVICE; in svc_rdma_sendto()
556 ret = send_reply(rdma, rqstp, res_page, rdma_resp, ctxt, vec, in svc_rdma_sendto()
566 svc_rdma_put_context(ctxt, 0); in svc_rdma_sendto()