Lines Matching refs:sc_xprt
134 svc_xprt_init(net, &svc_rdma_class, &cma_xprt->sc_xprt, serv); in svc_rdma_create_xprt()
153 set_bit(XPT_CONG_CTRL, &cma_xprt->sc_xprt.xpt_flags); in svc_rdma_create_xprt()
196 newxprt = svc_rdma_create_xprt(listen_xprt->sc_xprt.xpt_server, in handle_connect_req()
197 listen_xprt->sc_xprt.xpt_net, in handle_connect_req()
209 newxprt->sc_xprt.xpt_remotelen = svc_addr_len(sa); in handle_connect_req()
210 memcpy(&newxprt->sc_xprt.xpt_remote, sa, in handle_connect_req()
211 newxprt->sc_xprt.xpt_remotelen); in handle_connect_req()
212 snprintf(newxprt->sc_xprt.xpt_remotebuf, in handle_connect_req()
213 sizeof(newxprt->sc_xprt.xpt_remotebuf) - 1, "%pISc", sa); in handle_connect_req()
219 rpc_set_port((struct sockaddr *)&newxprt->sc_xprt.xpt_remote, 0); in handle_connect_req()
222 svc_xprt_set_local(&newxprt->sc_xprt, sa, svc_addr_len(sa)); in handle_connect_req()
232 set_bit(XPT_CONN, &listen_xprt->sc_xprt.xpt_flags); in handle_connect_req()
233 svc_xprt_enqueue(&listen_xprt->sc_xprt); in handle_connect_req()
273 struct svc_xprt *xprt = &rdma->sc_xprt; in svc_rdma_cma_handler()
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()
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()
376 listen_rdma = container_of(xprt, struct svcxprt_rdma, sc_xprt); in svc_rdma_accept()
386 set_bit(XPT_CONN, &listen_rdma->sc_xprt.xpt_flags); in svc_rdma_accept()
443 qp_attr.qp_context = &newxprt->sc_xprt; in svc_rdma_accept()
521 return &newxprt->sc_xprt; in svc_rdma_accept()
525 svc_xprt_get(&newxprt->sc_xprt); in svc_rdma_accept()
530 svc_xprt_put(&newxprt->sc_xprt); in svc_rdma_accept()
537 container_of(xprt, struct svcxprt_rdma, sc_xprt); in svc_rdma_detach()
579 container_of(xprt, struct svcxprt_rdma, sc_xprt); in svc_rdma_free()
588 container_of(xprt, struct svcxprt_rdma, sc_xprt); in svc_rdma_has_wspace()