Lines Matching refs:cma_xprt
128 struct svcxprt_rdma *cma_xprt; in svc_rdma_create_xprt() local
130 cma_xprt = kzalloc_node(sizeof(*cma_xprt), GFP_KERNEL, node); in svc_rdma_create_xprt()
131 if (!cma_xprt) in svc_rdma_create_xprt()
134 svc_xprt_init(net, &svc_rdma_class, &cma_xprt->sc_xprt, serv); in svc_rdma_create_xprt()
135 INIT_LIST_HEAD(&cma_xprt->sc_accept_q); in svc_rdma_create_xprt()
136 INIT_LIST_HEAD(&cma_xprt->sc_rq_dto_q); in svc_rdma_create_xprt()
137 init_llist_head(&cma_xprt->sc_send_ctxts); in svc_rdma_create_xprt()
138 init_llist_head(&cma_xprt->sc_recv_ctxts); in svc_rdma_create_xprt()
139 init_llist_head(&cma_xprt->sc_rw_ctxts); in svc_rdma_create_xprt()
140 init_waitqueue_head(&cma_xprt->sc_send_wait); in svc_rdma_create_xprt()
142 spin_lock_init(&cma_xprt->sc_lock); in svc_rdma_create_xprt()
143 spin_lock_init(&cma_xprt->sc_rq_dto_lock); in svc_rdma_create_xprt()
144 spin_lock_init(&cma_xprt->sc_send_lock); in svc_rdma_create_xprt()
145 spin_lock_init(&cma_xprt->sc_rw_ctxt_lock); in svc_rdma_create_xprt()
153 set_bit(XPT_CONG_CTRL, &cma_xprt->sc_xprt.xpt_flags); in svc_rdma_create_xprt()
155 return cma_xprt; in svc_rdma_create_xprt()
302 struct svcxprt_rdma *cma_xprt; in svc_rdma_create() local
307 cma_xprt = svc_rdma_create_xprt(serv, net, NUMA_NO_NODE); in svc_rdma_create()
308 if (!cma_xprt) in svc_rdma_create()
310 set_bit(XPT_LISTENER, &cma_xprt->sc_xprt.xpt_flags); in svc_rdma_create()
311 strcpy(cma_xprt->sc_xprt.xpt_remotebuf, "listener"); in svc_rdma_create()
313 listen_id = rdma_create_id(net, svc_rdma_listen_handler, cma_xprt, in svc_rdma_create()
331 cma_xprt->sc_cm_id = listen_id; in svc_rdma_create()
341 sa = (struct sockaddr *)&cma_xprt->sc_cm_id->route.addr.src_addr; in svc_rdma_create()
342 svc_xprt_set_local(&cma_xprt->sc_xprt, sa, salen); in svc_rdma_create()
344 return &cma_xprt->sc_xprt; in svc_rdma_create()
349 kfree(cma_xprt); in svc_rdma_create()