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