Lines Matching refs:wqe

92 static inline int *wqe_to_link(void *wqe)  in wqe_to_link()  argument
94 return (int *) (wqe + offsetof(struct mthca_next_seg, imm)); in wqe_to_link()
152 void *wqe; in mthca_alloc_srq_buf() local
179 next = wqe = get_wqe(srq, i); in mthca_alloc_srq_buf()
182 *wqe_to_link(wqe) = i + 1; in mthca_alloc_srq_buf()
185 *wqe_to_link(wqe) = -1; in mthca_alloc_srq_buf()
189 for (scatter = wqe + sizeof (struct mthca_next_seg); in mthca_alloc_srq_buf()
190 (void *) scatter < wqe + (1 << srq->wqe_shift); in mthca_alloc_srq_buf()
489 void *wqe; in mthca_tavor_post_srq_recv() local
498 wqe = get_wqe(srq, ind); in mthca_tavor_post_srq_recv()
499 next_ind = *wqe_to_link(wqe); in mthca_tavor_post_srq_recv()
509 srq->last = wqe; in mthca_tavor_post_srq_recv()
511 ((struct mthca_next_seg *) wqe)->ee_nds = 0; in mthca_tavor_post_srq_recv()
514 wqe += sizeof (struct mthca_next_seg); in mthca_tavor_post_srq_recv()
524 mthca_set_data_seg(wqe, wr->sg_list + i); in mthca_tavor_post_srq_recv()
525 wqe += sizeof (struct mthca_data_seg); in mthca_tavor_post_srq_recv()
529 mthca_set_data_seg_inval(wqe); in mthca_tavor_post_srq_recv()
588 void *wqe; in mthca_arbel_post_srq_recv() local
594 wqe = get_wqe(srq, ind); in mthca_arbel_post_srq_recv()
595 next_ind = *wqe_to_link(wqe); in mthca_arbel_post_srq_recv()
604 ((struct mthca_next_seg *) wqe)->ee_nds = 0; in mthca_arbel_post_srq_recv()
607 wqe += sizeof (struct mthca_next_seg); in mthca_arbel_post_srq_recv()
616 mthca_set_data_seg(wqe, wr->sg_list + i); in mthca_arbel_post_srq_recv()
617 wqe += sizeof (struct mthca_data_seg); in mthca_arbel_post_srq_recv()
621 mthca_set_data_seg_inval(wqe); in mthca_arbel_post_srq_recv()