Lines Matching refs:sc_xprt
174 svc_xprt_init(net, &svc_rdma_class, &cma_xprt->sc_xprt, serv); in svc_rdma_create_xprt()
197 set_bit(XPT_CONG_CTRL, &cma_xprt->sc_xprt.xpt_flags); in svc_rdma_create_xprt()
240 newxprt = svc_rdma_create_xprt(listen_xprt->sc_xprt.xpt_server, in handle_connect_req()
241 listen_xprt->sc_xprt.xpt_net, in handle_connect_req()
253 newxprt->sc_xprt.xpt_remotelen = svc_addr_len(sa); in handle_connect_req()
254 memcpy(&newxprt->sc_xprt.xpt_remote, sa, in handle_connect_req()
255 newxprt->sc_xprt.xpt_remotelen); in handle_connect_req()
256 snprintf(newxprt->sc_xprt.xpt_remotebuf, in handle_connect_req()
257 sizeof(newxprt->sc_xprt.xpt_remotebuf) - 1, "%pISc", sa); in handle_connect_req()
263 rpc_set_port((struct sockaddr *)&newxprt->sc_xprt.xpt_remote, 0); in handle_connect_req()
266 svc_xprt_set_local(&newxprt->sc_xprt, sa, svc_addr_len(sa)); in handle_connect_req()
276 set_bit(XPT_CONN, &listen_xprt->sc_xprt.xpt_flags); in handle_connect_req()
277 svc_xprt_enqueue(&listen_xprt->sc_xprt); in handle_connect_req()
296 struct svc_xprt *cma_rdma = &cma_xprt->sc_xprt; in svc_rdma_listen_handler()
331 struct svc_xprt *xprt = &rdma->sc_xprt; in svc_rdma_cma_handler()
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()
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()
393 svc_xprt_close(&rdma->sc_xprt); in svc_rdma_xprt_done()
419 listen_rdma = container_of(xprt, struct svcxprt_rdma, sc_xprt); in svc_rdma_accept()
429 set_bit(XPT_CONN, &listen_rdma->sc_xprt.xpt_flags); in svc_rdma_accept()
492 qp_attr.qp_context = &newxprt->sc_xprt; in svc_rdma_accept()
570 return &newxprt->sc_xprt; in svc_rdma_accept()
574 svc_xprt_get(&newxprt->sc_xprt); in svc_rdma_accept()
579 svc_xprt_put(&newxprt->sc_xprt); in svc_rdma_accept()
586 container_of(xprt, struct svcxprt_rdma, sc_xprt); in svc_rdma_detach()
631 container_of(xprt, struct svcxprt_rdma, sc_xprt); in svc_rdma_free()
640 container_of(xprt, struct svcxprt_rdma, sc_xprt); in svc_rdma_has_wspace()