Lines Matching refs:xprt
23 struct rpc_xprt *xprt = sxprt->xpt_bc_xprt; in svc_rdma_handle_bc_reply() local
24 struct rpcrdma_xprt *r_xprt = rpcx_to_rdmax(xprt); in svc_rdma_handle_bc_reply()
31 spin_lock(&xprt->queue_lock); in svc_rdma_handle_bc_reply()
32 req = xprt_lookup_rqst(xprt, *rdma_resp); in svc_rdma_handle_bc_reply()
42 spin_unlock(&xprt->queue_lock); in svc_rdma_handle_bc_reply()
49 spin_lock(&xprt->transport_lock); in svc_rdma_handle_bc_reply()
50 xprt->cwnd = credits << RPC_CWNDSHIFT; in svc_rdma_handle_bc_reply()
51 spin_unlock(&xprt->transport_lock); in svc_rdma_handle_bc_reply()
53 spin_lock(&xprt->queue_lock); in svc_rdma_handle_bc_reply()
59 spin_unlock(&xprt->queue_lock); in svc_rdma_handle_bc_reply()
147 struct rpc_xprt *xprt = rqst->rq_xprt; in rpcrdma_bc_send_request() local
148 struct rpcrdma_xprt *r_xprt = rpcx_to_rdmax(xprt); in rpcrdma_bc_send_request()
206 xprt_rdma_bc_close(struct rpc_xprt *xprt) in xprt_rdma_bc_close() argument
208 xprt_disconnect_done(xprt); in xprt_rdma_bc_close()
209 xprt->cwnd = RPC_CWNDSHIFT; in xprt_rdma_bc_close()
213 xprt_rdma_bc_put(struct rpc_xprt *xprt) in xprt_rdma_bc_put() argument
215 xprt_rdma_free_addresses(xprt); in xprt_rdma_bc_put()
216 xprt_free(xprt); in xprt_rdma_bc_put()
246 struct rpc_xprt *xprt; in xprt_setup_rdma_bc() local
249 if (args->addrlen > sizeof(xprt->addr)) in xprt_setup_rdma_bc()
252 xprt = xprt_alloc(args->net, sizeof(*new_xprt), in xprt_setup_rdma_bc()
255 if (!xprt) in xprt_setup_rdma_bc()
258 xprt->timeout = &xprt_rdma_bc_timeout; in xprt_setup_rdma_bc()
259 xprt_set_bound(xprt); in xprt_setup_rdma_bc()
260 xprt_set_connected(xprt); in xprt_setup_rdma_bc()
261 xprt->bind_timeout = 0; in xprt_setup_rdma_bc()
262 xprt->reestablish_timeout = 0; in xprt_setup_rdma_bc()
263 xprt->idle_timeout = 0; in xprt_setup_rdma_bc()
265 xprt->prot = XPRT_TRANSPORT_BC_RDMA; in xprt_setup_rdma_bc()
266 xprt->ops = &xprt_rdma_bc_procs; in xprt_setup_rdma_bc()
268 memcpy(&xprt->addr, args->dstaddr, args->addrlen); in xprt_setup_rdma_bc()
269 xprt->addrlen = args->addrlen; in xprt_setup_rdma_bc()
270 xprt_rdma_format_addresses(xprt, (struct sockaddr *)&xprt->addr); in xprt_setup_rdma_bc()
271 xprt->resvport = 0; in xprt_setup_rdma_bc()
273 xprt->max_payload = xprt_rdma_max_inline_read; in xprt_setup_rdma_bc()
275 new_xprt = rpcx_to_rdmax(xprt); in xprt_setup_rdma_bc()
276 new_xprt->rx_buf.rb_bc_max_requests = xprt->max_reqs; in xprt_setup_rdma_bc()
278 xprt_get(xprt); in xprt_setup_rdma_bc()
279 args->bc_xprt->xpt_bc_xprt = xprt; in xprt_setup_rdma_bc()
280 xprt->bc_xprt = args->bc_xprt; in xprt_setup_rdma_bc()
283 xprt_get(xprt); in xprt_setup_rdma_bc()
284 return xprt; in xprt_setup_rdma_bc()