Lines Matching refs:cma_xprt

168 	struct svcxprt_rdma *cma_xprt;  in svc_rdma_create_xprt()  local
170 cma_xprt = kzalloc_node(sizeof(*cma_xprt), GFP_KERNEL, node); in svc_rdma_create_xprt()
171 if (!cma_xprt) in svc_rdma_create_xprt()
174 svc_xprt_init(net, &svc_rdma_class, &cma_xprt->sc_xprt, serv); in svc_rdma_create_xprt()
175 INIT_LIST_HEAD(&cma_xprt->sc_accept_q); in svc_rdma_create_xprt()
176 INIT_LIST_HEAD(&cma_xprt->sc_rq_dto_q); in svc_rdma_create_xprt()
177 INIT_LIST_HEAD(&cma_xprt->sc_read_complete_q); in svc_rdma_create_xprt()
178 init_llist_head(&cma_xprt->sc_send_ctxts); in svc_rdma_create_xprt()
179 init_llist_head(&cma_xprt->sc_recv_ctxts); in svc_rdma_create_xprt()
180 init_llist_head(&cma_xprt->sc_rw_ctxts); in svc_rdma_create_xprt()
181 init_waitqueue_head(&cma_xprt->sc_send_wait); in svc_rdma_create_xprt()
183 spin_lock_init(&cma_xprt->sc_lock); in svc_rdma_create_xprt()
184 spin_lock_init(&cma_xprt->sc_rq_dto_lock); in svc_rdma_create_xprt()
185 lockdep_set_class(&cma_xprt->sc_rq_dto_lock, &svcrdma_dto_lock); in svc_rdma_create_xprt()
186 spin_lock_init(&cma_xprt->sc_send_lock); in svc_rdma_create_xprt()
187 lockdep_set_class(&cma_xprt->sc_send_lock, &svcrdma_sctx_lock); in svc_rdma_create_xprt()
188 spin_lock_init(&cma_xprt->sc_rw_ctxt_lock); in svc_rdma_create_xprt()
189 lockdep_set_class(&cma_xprt->sc_rw_ctxt_lock, &svcrdma_rwctx_lock); in svc_rdma_create_xprt()
197 set_bit(XPT_CONG_CTRL, &cma_xprt->sc_xprt.xpt_flags); in svc_rdma_create_xprt()
199 return cma_xprt; in svc_rdma_create_xprt()
295 struct svcxprt_rdma *cma_xprt = cma_id->context; in svc_rdma_listen_handler() local
296 struct svc_xprt *cma_rdma = &cma_xprt->sc_xprt; in svc_rdma_listen_handler()
305 sap, cma_xprt); in svc_rdma_listen_handler()
310 cma_xprt->sc_cm_id = listen_id; in svc_rdma_listen_handler()
359 struct svcxprt_rdma *cma_xprt; in svc_rdma_create() local
363 cma_xprt = svc_rdma_create_xprt(serv, net, NUMA_NO_NODE); in svc_rdma_create()
364 if (!cma_xprt) in svc_rdma_create()
366 set_bit(XPT_LISTENER, &cma_xprt->sc_xprt.xpt_flags); in svc_rdma_create()
367 strcpy(cma_xprt->sc_xprt.xpt_remotebuf, "listener"); in svc_rdma_create()
369 listen_id = svc_rdma_create_listen_id(net, sa, cma_xprt); in svc_rdma_create()
371 kfree(cma_xprt); in svc_rdma_create()
374 cma_xprt->sc_cm_id = listen_id; in svc_rdma_create()
380 sa = (struct sockaddr *)&cma_xprt->sc_cm_id->route.addr.src_addr; in svc_rdma_create()
381 svc_xprt_set_local(&cma_xprt->sc_xprt, sa, salen); in svc_rdma_create()
383 return &cma_xprt->sc_xprt; in svc_rdma_create()