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()
158 void *wqe; in mthca_alloc_srq_buf() local
185 next = wqe = get_wqe(srq, i); in mthca_alloc_srq_buf()
188 *wqe_to_link(wqe) = i + 1; in mthca_alloc_srq_buf()
191 *wqe_to_link(wqe) = -1; in mthca_alloc_srq_buf()
195 for (scatter = wqe + sizeof (struct mthca_next_seg); in mthca_alloc_srq_buf()
196 (void *) scatter < wqe + (1 << srq->wqe_shift); in mthca_alloc_srq_buf()
495 void *wqe; in mthca_tavor_post_srq_recv() local
504 wqe = get_wqe(srq, ind); in mthca_tavor_post_srq_recv()
505 next_ind = *wqe_to_link(wqe); in mthca_tavor_post_srq_recv()
515 srq->last = wqe; in mthca_tavor_post_srq_recv()
517 ((struct mthca_next_seg *) wqe)->ee_nds = 0; in mthca_tavor_post_srq_recv()
520 wqe += sizeof (struct mthca_next_seg); in mthca_tavor_post_srq_recv()
530 mthca_set_data_seg(wqe, wr->sg_list + i); in mthca_tavor_post_srq_recv()
531 wqe += sizeof (struct mthca_data_seg); in mthca_tavor_post_srq_recv()
535 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()