Lines Matching refs:cma_xprt
129 struct svcxprt_rdma *cma_xprt; in svc_rdma_bc_create() local
132 cma_xprt = svc_rdma_create_xprt(serv, net); in svc_rdma_bc_create()
133 if (!cma_xprt) in svc_rdma_bc_create()
135 xprt = &cma_xprt->sc_xprt; in svc_rdma_bc_create()
191 struct svcxprt_rdma *cma_xprt = kzalloc(sizeof *cma_xprt, GFP_KERNEL); in svc_rdma_create_xprt() local
193 if (!cma_xprt) { in svc_rdma_create_xprt()
197 svc_xprt_init(net, &svc_rdma_class, &cma_xprt->sc_xprt, serv); in svc_rdma_create_xprt()
198 INIT_LIST_HEAD(&cma_xprt->sc_accept_q); in svc_rdma_create_xprt()
199 INIT_LIST_HEAD(&cma_xprt->sc_rq_dto_q); in svc_rdma_create_xprt()
200 INIT_LIST_HEAD(&cma_xprt->sc_read_complete_q); in svc_rdma_create_xprt()
201 INIT_LIST_HEAD(&cma_xprt->sc_send_ctxts); in svc_rdma_create_xprt()
202 INIT_LIST_HEAD(&cma_xprt->sc_recv_ctxts); in svc_rdma_create_xprt()
203 INIT_LIST_HEAD(&cma_xprt->sc_rw_ctxts); in svc_rdma_create_xprt()
204 init_waitqueue_head(&cma_xprt->sc_send_wait); in svc_rdma_create_xprt()
206 spin_lock_init(&cma_xprt->sc_lock); in svc_rdma_create_xprt()
207 spin_lock_init(&cma_xprt->sc_rq_dto_lock); in svc_rdma_create_xprt()
208 spin_lock_init(&cma_xprt->sc_send_lock); in svc_rdma_create_xprt()
209 spin_lock_init(&cma_xprt->sc_recv_lock); in svc_rdma_create_xprt()
210 spin_lock_init(&cma_xprt->sc_rw_ctxt_lock); in svc_rdma_create_xprt()
218 set_bit(XPT_CONG_CTRL, &cma_xprt->sc_xprt.xpt_flags); in svc_rdma_create_xprt()
220 return cma_xprt; in svc_rdma_create_xprt()
371 struct svcxprt_rdma *cma_xprt; in svc_rdma_create() local
379 cma_xprt = svc_rdma_create_xprt(serv, net); in svc_rdma_create()
380 if (!cma_xprt) in svc_rdma_create()
382 set_bit(XPT_LISTENER, &cma_xprt->sc_xprt.xpt_flags); in svc_rdma_create()
383 strcpy(cma_xprt->sc_xprt.xpt_remotebuf, "listener"); in svc_rdma_create()
385 listen_id = rdma_create_id(net, rdma_listen_handler, cma_xprt, in svc_rdma_create()
408 cma_xprt->sc_cm_id = listen_id; in svc_rdma_create()
420 sa = (struct sockaddr *)&cma_xprt->sc_cm_id->route.addr.src_addr; in svc_rdma_create()
421 svc_xprt_set_local(&cma_xprt->sc_xprt, sa, salen); in svc_rdma_create()
423 return &cma_xprt->sc_xprt; in svc_rdma_create()
428 kfree(cma_xprt); in svc_rdma_create()