• Home
  • Raw
  • Download

Lines Matching refs:req

448 	struct rpcrdma_req *req;  in rpcrdma_ia_remove()  local
475 list_for_each_entry(req, &buf->rb_allreqs, rl_all) { in rpcrdma_ia_remove()
476 rpcrdma_dma_unmap_regbuf(req->rl_rdmabuf); in rpcrdma_ia_remove()
477 rpcrdma_dma_unmap_regbuf(req->rl_sendbuf); in rpcrdma_ia_remove()
478 rpcrdma_dma_unmap_regbuf(req->rl_recvbuf); in rpcrdma_ia_remove()
940 struct rpcrdma_req *req; in rpcrdma_create_req() local
942 req = kzalloc(sizeof(*req), GFP_KERNEL); in rpcrdma_create_req()
943 if (req == NULL) in rpcrdma_create_req()
947 list_add(&req->rl_all, &buffer->rb_allreqs); in rpcrdma_create_req()
949 req->rl_cqe.done = rpcrdma_wc_send; in rpcrdma_create_req()
950 req->rl_buffer = &r_xprt->rx_buf; in rpcrdma_create_req()
951 INIT_LIST_HEAD(&req->rl_registered); in rpcrdma_create_req()
952 req->rl_send_wr.next = NULL; in rpcrdma_create_req()
953 req->rl_send_wr.wr_cqe = &req->rl_cqe; in rpcrdma_create_req()
954 req->rl_send_wr.sg_list = req->rl_send_sge; in rpcrdma_create_req()
955 req->rl_send_wr.opcode = IB_WR_SEND; in rpcrdma_create_req()
956 return req; in rpcrdma_create_req()
1034 struct rpcrdma_req *req; in rpcrdma_buffer_create() local
1036 req = rpcrdma_create_req(r_xprt); in rpcrdma_buffer_create()
1037 if (IS_ERR(req)) { in rpcrdma_buffer_create()
1040 rc = PTR_ERR(req); in rpcrdma_buffer_create()
1043 req->rl_backchannel = false; in rpcrdma_buffer_create()
1044 list_add(&req->rl_list, &buf->rb_send_bufs); in rpcrdma_buffer_create()
1063 struct rpcrdma_req *req; in rpcrdma_buffer_get_req_locked() local
1065 req = list_first_entry(&buf->rb_send_bufs, in rpcrdma_buffer_get_req_locked()
1067 list_del_init(&req->rl_list); in rpcrdma_buffer_get_req_locked()
1068 return req; in rpcrdma_buffer_get_req_locked()
1090 rpcrdma_destroy_req(struct rpcrdma_req *req) in rpcrdma_destroy_req() argument
1092 rpcrdma_free_regbuf(req->rl_recvbuf); in rpcrdma_destroy_req()
1093 rpcrdma_free_regbuf(req->rl_sendbuf); in rpcrdma_destroy_req()
1094 rpcrdma_free_regbuf(req->rl_rdmabuf); in rpcrdma_destroy_req()
1095 kfree(req); in rpcrdma_destroy_req()
1140 struct rpcrdma_req *req; in rpcrdma_buffer_destroy() local
1142 req = list_first_entry(&buf->rb_allreqs, in rpcrdma_buffer_destroy()
1144 list_del(&req->rl_all); in rpcrdma_buffer_destroy()
1147 rpcrdma_destroy_req(req); in rpcrdma_buffer_destroy()
1218 struct rpcrdma_req *req; in rpcrdma_buffer_get() local
1224 req = rpcrdma_buffer_get_req_locked(buffers); in rpcrdma_buffer_get()
1225 req->rl_reply = rpcrdma_buffer_get_rep(buffers); in rpcrdma_buffer_get()
1227 return req; in rpcrdma_buffer_get()
1240 rpcrdma_buffer_put(struct rpcrdma_req *req) in rpcrdma_buffer_put() argument
1242 struct rpcrdma_buffer *buffers = req->rl_buffer; in rpcrdma_buffer_put()
1243 struct rpcrdma_rep *rep = req->rl_reply; in rpcrdma_buffer_put()
1245 req->rl_send_wr.num_sge = 0; in rpcrdma_buffer_put()
1246 req->rl_reply = NULL; in rpcrdma_buffer_put()
1250 list_add_tail(&req->rl_list, &buffers->rb_send_bufs); in rpcrdma_buffer_put()
1263 rpcrdma_recv_buffer_get(struct rpcrdma_req *req) in rpcrdma_recv_buffer_get() argument
1265 struct rpcrdma_buffer *buffers = req->rl_buffer; in rpcrdma_recv_buffer_get()
1268 req->rl_reply = rpcrdma_buffer_get_rep(buffers); in rpcrdma_recv_buffer_get()
1375 struct rpcrdma_req *req) in rpcrdma_ep_post() argument
1377 struct ib_send_wr *send_wr = &req->rl_send_wr; in rpcrdma_ep_post()
1381 if (req->rl_reply) { in rpcrdma_ep_post()
1382 rc = rpcrdma_ep_post_recv(ia, req->rl_reply); in rpcrdma_ep_post()
1385 req->rl_reply = NULL; in rpcrdma_ep_post()