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()
506 void *wqe; in mthca_tavor_post_srq_recv() local
515 wqe = get_wqe(srq, ind); in mthca_tavor_post_srq_recv()
516 next_ind = *wqe_to_link(wqe); in mthca_tavor_post_srq_recv()
526 srq->last = wqe; in mthca_tavor_post_srq_recv()
528 ((struct mthca_next_seg *) wqe)->ee_nds = 0; in mthca_tavor_post_srq_recv()
531 wqe += sizeof (struct mthca_next_seg); in mthca_tavor_post_srq_recv()
541 mthca_set_data_seg(wqe, wr->sg_list + i); in mthca_tavor_post_srq_recv()
542 wqe += sizeof (struct mthca_data_seg); in mthca_tavor_post_srq_recv()
546 mthca_set_data_seg_inval(wqe); in mthca_tavor_post_srq_recv()
605 void *wqe; in mthca_arbel_post_srq_recv() local
611 wqe = get_wqe(srq, ind); in mthca_arbel_post_srq_recv()
612 next_ind = *wqe_to_link(wqe); in mthca_arbel_post_srq_recv()
621 ((struct mthca_next_seg *) wqe)->ee_nds = 0; in mthca_arbel_post_srq_recv()
624 wqe += sizeof (struct mthca_next_seg); in mthca_arbel_post_srq_recv()
633 mthca_set_data_seg(wqe, wr->sg_list + i); in mthca_arbel_post_srq_recv()
634 wqe += sizeof (struct mthca_data_seg); in mthca_arbel_post_srq_recv()
638 mthca_set_data_seg_inval(wqe); in mthca_arbel_post_srq_recv()