Lines Matching refs:cur_qp
485 struct mthca_qp **cur_qp,
519 if (!*cur_qp || be32_to_cpu(cqe->my_qpn) != (*cur_qp)->qpn) {
525 *cur_qp = mthca_array_get(&dev->qp_table.qp,
528 if (!*cur_qp) {
536 entry->qp = &(*cur_qp)->ibqp;
539 wq = &(*cur_qp)->sq;
540 wqe_index = ((be32_to_cpu(cqe->wqe) - (*cur_qp)->send_wqe_offset)
542 entry->wr_id = (*cur_qp)->wrid[wqe_index +
543 (*cur_qp)->rq.max];
544 } else if ((*cur_qp)->ibqp.srq) {
545 struct mthca_srq *srq = to_msrq((*cur_qp)->ibqp.srq);
553 wq = &(*cur_qp)->rq;
563 entry->wr_id = (*cur_qp)->wrid[wqe_index];
576 handle_error_cqe(dev, cq, *cur_qp, wqe_index, is_send,