Lines Matching refs:wr
483 int mthca_tavor_post_srq_recv(struct ib_srq *ibsrq, const struct ib_recv_wr *wr, in mthca_tavor_post_srq_recv() argument
502 for (nreq = 0; wr; wr = wr->next) { in mthca_tavor_post_srq_recv()
510 *bad_wr = wr; in mthca_tavor_post_srq_recv()
522 if (unlikely(wr->num_sge > srq->max_gs)) { in mthca_tavor_post_srq_recv()
524 *bad_wr = wr; in mthca_tavor_post_srq_recv()
529 for (i = 0; i < wr->num_sge; ++i) { in mthca_tavor_post_srq_recv()
530 mthca_set_data_seg(wqe, wr->sg_list + i); in mthca_tavor_post_srq_recv()
540 srq->wrid[ind] = wr->wr_id; in mthca_tavor_post_srq_recv()
577 int mthca_arbel_post_srq_recv(struct ib_srq *ibsrq, const struct ib_recv_wr *wr, in mthca_arbel_post_srq_recv() argument
592 for (nreq = 0; wr; ++nreq, wr = wr->next) { in mthca_arbel_post_srq_recv()
600 *bad_wr = wr; in mthca_arbel_post_srq_recv()
609 if (unlikely(wr->num_sge > srq->max_gs)) { in mthca_arbel_post_srq_recv()
611 *bad_wr = wr; in mthca_arbel_post_srq_recv()
615 for (i = 0; i < wr->num_sge; ++i) { in mthca_arbel_post_srq_recv()
616 mthca_set_data_seg(wqe, wr->sg_list + i); in mthca_arbel_post_srq_recv()
623 srq->wrid[ind] = wr->wr_id; in mthca_arbel_post_srq_recv()