Lines Matching refs:wqe
90 static inline int *wqe_to_link(void *wqe)
92 return (int *) (wqe + offsetof(struct mthca_next_seg, imm));
147 void *wqe;
174 next = wqe = get_wqe(srq, i);
177 *wqe_to_link(wqe) = i + 1;
180 *wqe_to_link(wqe) = -1;
184 for (scatter = wqe + sizeof (struct mthca_next_seg);
185 (void *) scatter < wqe + (1 << srq->wqe_shift);
502 void *wqe;
511 wqe = get_wqe(srq, ind);
512 next_ind = *wqe_to_link(wqe);
522 srq->last = wqe;
524 ((struct mthca_next_seg *) wqe)->ee_nds = 0;
527 wqe += sizeof (struct mthca_next_seg);
537 mthca_set_data_seg(wqe, wr->sg_list + i);
538 wqe += sizeof (struct mthca_data_seg);
542 mthca_set_data_seg_inval(wqe);
601 void *wqe;
607 wqe = get_wqe(srq, ind);
608 next_ind = *wqe_to_link(wqe);
617 ((struct mthca_next_seg *) wqe)->ee_nds = 0;
620 wqe += sizeof (struct mthca_next_seg);
629 mthca_set_data_seg(wqe, wr->sg_list + i);
630 wqe += sizeof (struct mthca_data_seg);
634 mthca_set_data_seg_inval(wqe);