Lines Matching refs:wqe_index
176 struct mthca_qp *qp, int wqe_index, int is_send,
265 err = mthca_free_err_wqe(qp, is_send, wqe_index, &dbd, &new_wqe);
300 int wqe_index;
341 wqe_index = ((ntohl(cqe->wqe) - (*cur_qp)->send_wqe_offset) >> wq->wqe_shift);
342 wc->wr_id = (*cur_qp)->wrid[wqe_index + (*cur_qp)->rq.max];
347 wqe_index = wqe >> srq->wqe_shift;
348 wc->wr_id = srq->wrid[wqe_index];
349 mthca_free_srq_wqe(srq, wqe_index);
354 wqe_index = wqe >> wq->wqe_shift;
361 if (wqe_index < 0)
362 wqe_index = wq->max - 1;
363 wc->wr_id = (*cur_qp)->wrid[wqe_index];
367 if (wq->last_comp < wqe_index)
368 wq->tail += wqe_index - wq->last_comp;
370 wq->tail += wqe_index + wq->max - wq->last_comp;
372 wq->last_comp = wqe_index;
376 err = handle_error_cqe(cq, *cur_qp, wqe_index, is_send,