Lines Matching refs:wq
488 struct mthca_wq *wq;
538 wq = &(*cur_qp)->sq;
540 >> wq->wqe_shift);
545 wq = NULL;
551 wq = &(*cur_qp)->rq;
553 wqe_index = wqe >> wq->wqe_shift;
560 wqe_index = wq->max - 1;
564 if (wq) {
565 if (wq->last_comp < wqe_index)
566 wq->tail += wqe_index - wq->last_comp;
568 wq->tail += wqe_index + wq->max - wq->last_comp;
570 wq->last_comp = wqe_index;