Lines Matching refs:rdma

274 	struct svcxprt_rdma *rdma = cma_id->context;  in svc_rdma_cma_handler()  local
275 struct svc_xprt *xprt = &rdma->sc_xprt; in svc_rdma_cma_handler()
279 clear_bit(RDMAXPRT_CONN_PENDING, &rdma->sc_flags); in svc_rdma_cma_handler()
538 struct svcxprt_rdma *rdma = in svc_rdma_detach() local
541 rdma_disconnect(rdma->sc_cm_id); in svc_rdma_detach()
546 struct svcxprt_rdma *rdma = in __svc_rdma_free() local
550 if (rdma->sc_qp && !IS_ERR(rdma->sc_qp)) in __svc_rdma_free()
551 ib_drain_qp(rdma->sc_qp); in __svc_rdma_free()
553 svc_rdma_flush_recv_queues(rdma); in __svc_rdma_free()
555 svc_rdma_destroy_rw_ctxts(rdma); in __svc_rdma_free()
556 svc_rdma_send_ctxts_destroy(rdma); in __svc_rdma_free()
557 svc_rdma_recv_ctxts_destroy(rdma); in __svc_rdma_free()
560 if (rdma->sc_qp && !IS_ERR(rdma->sc_qp)) in __svc_rdma_free()
561 ib_destroy_qp(rdma->sc_qp); in __svc_rdma_free()
563 if (rdma->sc_sq_cq && !IS_ERR(rdma->sc_sq_cq)) in __svc_rdma_free()
564 ib_free_cq(rdma->sc_sq_cq); in __svc_rdma_free()
566 if (rdma->sc_rq_cq && !IS_ERR(rdma->sc_rq_cq)) in __svc_rdma_free()
567 ib_free_cq(rdma->sc_rq_cq); in __svc_rdma_free()
569 if (rdma->sc_pd && !IS_ERR(rdma->sc_pd)) in __svc_rdma_free()
570 ib_dealloc_pd(rdma->sc_pd); in __svc_rdma_free()
573 rdma_destroy_id(rdma->sc_cm_id); in __svc_rdma_free()
575 kfree(rdma); in __svc_rdma_free()
580 struct svcxprt_rdma *rdma = in svc_rdma_free() local
583 INIT_WORK(&rdma->sc_work, __svc_rdma_free); in svc_rdma_free()
584 schedule_work(&rdma->sc_work); in svc_rdma_free()
589 struct svcxprt_rdma *rdma = in svc_rdma_has_wspace() local
596 if (waitqueue_active(&rdma->sc_send_wait)) in svc_rdma_has_wspace()