Lines Matching refs:cur_qp
480 struct mthca_qp **cur_qp,
514 if (!*cur_qp || be32_to_cpu(cqe->my_qpn) != (*cur_qp)->qpn) {
520 *cur_qp = mthca_array_get(&dev->qp_table.qp,
523 if (!*cur_qp) {
531 entry->qp = &(*cur_qp)->ibqp;
534 wq = &(*cur_qp)->sq;
535 wqe_index = ((be32_to_cpu(cqe->wqe) - (*cur_qp)->send_wqe_offset)
537 entry->wr_id = (*cur_qp)->wrid[wqe_index +
538 (*cur_qp)->rq.max];
539 } else if ((*cur_qp)->ibqp.srq) {
540 struct mthca_srq *srq = to_msrq((*cur_qp)->ibqp.srq);
548 wq = &(*cur_qp)->rq;
558 entry->wr_id = (*cur_qp)->wrid[wqe_index];
571 handle_error_cqe(dev, cq, *cur_qp, wqe_index, is_send,