Lines Matching defs:wq
489 struct mthca_wq *wq;
539 wq = &(*cur_qp)->sq;
541 >> wq->wqe_shift);
547 wq = NULL;
553 wq = &(*cur_qp)->rq;
555 wqe_index = wqe >> wq->wqe_shift;
562 wqe_index = wq->max - 1;
566 if (wq) {
567 if (wq->last_comp < wqe_index)
568 wq->tail += wqe_index - wq->last_comp;
570 wq->tail += wqe_index + wq->max - wq->last_comp;
572 wq->last_comp = wqe_index;