Lines Matching defs:wqe
92 static inline int *wqe_to_link(void *wqe)
94 return (int *) (wqe + offsetof(struct mthca_next_seg, imm));
149 void *wqe;
174 wqe = get_wqe(srq, i);
176 *wqe_to_link(wqe) = i < srq->max - 1 ? i + 1 : -1;
178 for (scatter = wqe + sizeof (struct mthca_next_seg);
179 (void *) scatter < wqe + (1 << srq->wqe_shift);
498 void *wqe;
515 wqe = get_wqe(srq, ind);
516 next_ind = *wqe_to_link(wqe);
526 srq->last = wqe;
528 ((struct mthca_next_seg *) wqe)->nda_op = 0;
529 ((struct mthca_next_seg *) wqe)->ee_nds = 0;
532 wqe += sizeof (struct mthca_next_seg);
542 ((struct mthca_data_seg *) wqe)->byte_count =
544 ((struct mthca_data_seg *) wqe)->lkey =
546 ((struct mthca_data_seg *) wqe)->addr =
548 wqe += sizeof (struct mthca_data_seg);
552 ((struct mthca_data_seg *) wqe)->byte_count = 0;
553 ((struct mthca_data_seg *) wqe)->lkey = cpu_to_be32(MTHCA_INVAL_LKEY);
554 ((struct mthca_data_seg *) wqe)->addr = 0;
623 void *wqe;
637 wqe = get_wqe(srq, ind);
638 next_ind = *wqe_to_link(wqe);
647 ((struct mthca_next_seg *) wqe)->nda_op =
649 ((struct mthca_next_seg *) wqe)->ee_nds = 0;
652 wqe += sizeof (struct mthca_next_seg);
661 ((struct mthca_data_seg *) wqe)->byte_count =
663 ((struct mthca_data_seg *) wqe)->lkey =
665 ((struct mthca_data_seg *) wqe)->addr =
667 wqe += sizeof (struct mthca_data_seg);
671 ((struct mthca_data_seg *) wqe)->byte_count = 0;
672 ((struct mthca_data_seg *) wqe)->lkey = cpu_to_be32(MTHCA_INVAL_LKEY);
673 ((struct mthca_data_seg *) wqe)->addr = 0;