Lines Matching refs:wr

2186 	struct ib_send_wr              *wr = NULL, *last, *next, *bad_wr;  in ib_uverbs_post_send()  local
2235 wr = next; in ib_uverbs_post_send()
2253 next->wr.ud.ah = idr_read_ah(user_wr->wr.ud.ah, in ib_uverbs_post_send()
2255 if (!next->wr.ud.ah) { in ib_uverbs_post_send()
2259 next->wr.ud.remote_qpn = user_wr->wr.ud.remote_qpn; in ib_uverbs_post_send()
2260 next->wr.ud.remote_qkey = user_wr->wr.ud.remote_qkey; in ib_uverbs_post_send()
2271 next->wr.rdma.remote_addr = in ib_uverbs_post_send()
2272 user_wr->wr.rdma.remote_addr; in ib_uverbs_post_send()
2273 next->wr.rdma.rkey = in ib_uverbs_post_send()
2274 user_wr->wr.rdma.rkey; in ib_uverbs_post_send()
2286 next->wr.atomic.remote_addr = in ib_uverbs_post_send()
2287 user_wr->wr.atomic.remote_addr; in ib_uverbs_post_send()
2288 next->wr.atomic.compare_add = in ib_uverbs_post_send()
2289 user_wr->wr.atomic.compare_add; in ib_uverbs_post_send()
2290 next->wr.atomic.swap = user_wr->wr.atomic.swap; in ib_uverbs_post_send()
2291 next->wr.atomic.rkey = user_wr->wr.atomic.rkey; in ib_uverbs_post_send()
2317 ret = qp->device->post_send(qp->real_qp, wr, &bad_wr); in ib_uverbs_post_send()
2319 for (next = wr; next; next = next->next) { in ib_uverbs_post_send()
2332 while (wr) { in ib_uverbs_post_send()
2333 if (is_ud && wr->wr.ud.ah) in ib_uverbs_post_send()
2334 put_ah_read(wr->wr.ud.ah); in ib_uverbs_post_send()
2335 next = wr->next; in ib_uverbs_post_send()
2336 kfree(wr); in ib_uverbs_post_send()
2337 wr = next; in ib_uverbs_post_send()
2353 struct ib_recv_wr *wr = NULL, *last, *next; in ib_uverbs_unmarshall_recv() local
2392 wr = next; in ib_uverbs_unmarshall_recv()
2417 return wr; in ib_uverbs_unmarshall_recv()
2422 while (wr) { in ib_uverbs_unmarshall_recv()
2423 next = wr->next; in ib_uverbs_unmarshall_recv()
2424 kfree(wr); in ib_uverbs_unmarshall_recv()
2425 wr = next; in ib_uverbs_unmarshall_recv()
2437 struct ib_recv_wr *wr, *next, *bad_wr; in ib_uverbs_post_recv() local
2444 wr = ib_uverbs_unmarshall_recv(buf + sizeof cmd, in ib_uverbs_post_recv()
2447 if (IS_ERR(wr)) in ib_uverbs_post_recv()
2448 return PTR_ERR(wr); in ib_uverbs_post_recv()
2455 ret = qp->device->post_recv(qp->real_qp, wr, &bad_wr); in ib_uverbs_post_recv()
2460 for (next = wr; next; next = next->next) { in ib_uverbs_post_recv()
2471 while (wr) { in ib_uverbs_post_recv()
2472 next = wr->next; in ib_uverbs_post_recv()
2473 kfree(wr); in ib_uverbs_post_recv()
2474 wr = next; in ib_uverbs_post_recv()
2486 struct ib_recv_wr *wr, *next, *bad_wr; in ib_uverbs_post_srq_recv() local
2493 wr = ib_uverbs_unmarshall_recv(buf + sizeof cmd, in ib_uverbs_post_srq_recv()
2496 if (IS_ERR(wr)) in ib_uverbs_post_srq_recv()
2497 return PTR_ERR(wr); in ib_uverbs_post_srq_recv()
2504 ret = srq->device->post_srq_recv(srq, wr, &bad_wr); in ib_uverbs_post_srq_recv()
2509 for (next = wr; next; next = next->next) { in ib_uverbs_post_srq_recv()
2520 while (wr) { in ib_uverbs_post_srq_recv()
2521 next = wr->next; in ib_uverbs_post_srq_recv()
2522 kfree(wr); in ib_uverbs_post_srq_recv()
2523 wr = next; in ib_uverbs_post_srq_recv()