Lines Matching refs:qhp
238 int c4iw_flush_sq(struct c4iw_qp *qhp) in c4iw_flush_sq() argument
241 struct t4_wq *wq = &qhp->wq; in c4iw_flush_sq()
242 struct c4iw_cq *chp = to_c4iw_cq(qhp->ibqp.send_cq); in c4iw_flush_sq()
344 struct c4iw_qp *qhp; in c4iw_flush_hw_cq() local
357 qhp = get_qhp(chp->rhp, CQE_QPID(hw_cqe)); in c4iw_flush_hw_cq()
362 if (qhp == NULL) in c4iw_flush_hw_cq()
385 if (!qhp->wq.sq.oldest_read->signaled) { in c4iw_flush_hw_cq()
386 advance_oldest_read(&qhp->wq); in c4iw_flush_hw_cq()
394 create_read_req_cqe(&qhp->wq, hw_cqe, &read_cqe); in c4iw_flush_hw_cq()
396 advance_oldest_read(&qhp->wq); in c4iw_flush_hw_cq()
403 swsqe = &qhp->wq.sq.sw_sq[CQE_WRID_SQ_IDX(hw_cqe)]; in c4iw_flush_hw_cq()
406 flush_completed_wrs(&qhp->wq, &chp->cq); in c4iw_flush_hw_cq()
686 struct c4iw_qp *qhp = NULL; in c4iw_poll_cq_one() local
699 qhp = get_qhp(chp->rhp, CQE_QPID(rd_cqe)); in c4iw_poll_cq_one()
700 if (!qhp) in c4iw_poll_cq_one()
703 spin_lock(&qhp->lock); in c4iw_poll_cq_one()
704 wq = &(qhp->wq); in c4iw_poll_cq_one()
711 wc->qp = &qhp->ibqp; in c4iw_poll_cq_one()
824 spin_unlock(&qhp->lock); in c4iw_poll_cq_one()