Lines Matching refs:wqe
90 static inline int *wqe_to_link(void *wqe) in wqe_to_link() argument
92 return (int *) (wqe + offsetof(struct mthca_next_seg, imm)); in wqe_to_link()
151 void *wqe; in mthca_alloc_srq_buf() local
178 next = wqe = get_wqe(srq, i); in mthca_alloc_srq_buf()
181 *wqe_to_link(wqe) = i + 1; in mthca_alloc_srq_buf()
184 *wqe_to_link(wqe) = -1; in mthca_alloc_srq_buf()
188 for (scatter = wqe + sizeof (struct mthca_next_seg); in mthca_alloc_srq_buf()
189 (void *) scatter < wqe + (1 << srq->wqe_shift); in mthca_alloc_srq_buf()
487 void *wqe; in mthca_tavor_post_srq_recv() local
496 wqe = get_wqe(srq, ind); in mthca_tavor_post_srq_recv()
497 next_ind = *wqe_to_link(wqe); in mthca_tavor_post_srq_recv()
507 srq->last = wqe; in mthca_tavor_post_srq_recv()
509 ((struct mthca_next_seg *) wqe)->ee_nds = 0; in mthca_tavor_post_srq_recv()
512 wqe += sizeof (struct mthca_next_seg); in mthca_tavor_post_srq_recv()
522 mthca_set_data_seg(wqe, wr->sg_list + i); in mthca_tavor_post_srq_recv()
523 wqe += sizeof (struct mthca_data_seg); in mthca_tavor_post_srq_recv()
527 mthca_set_data_seg_inval(wqe); in mthca_tavor_post_srq_recv()
586 void *wqe; in mthca_arbel_post_srq_recv() local
592 wqe = get_wqe(srq, ind); in mthca_arbel_post_srq_recv()
593 next_ind = *wqe_to_link(wqe); in mthca_arbel_post_srq_recv()
602 ((struct mthca_next_seg *) wqe)->ee_nds = 0; in mthca_arbel_post_srq_recv()
605 wqe += sizeof (struct mthca_next_seg); in mthca_arbel_post_srq_recv()
614 mthca_set_data_seg(wqe, wr->sg_list + i); in mthca_arbel_post_srq_recv()
615 wqe += sizeof (struct mthca_data_seg); in mthca_arbel_post_srq_recv()
619 mthca_set_data_seg_inval(wqe); in mthca_arbel_post_srq_recv()