Lines Matching refs:qhp
236 int c4iw_flush_sq(struct c4iw_qp *qhp) in c4iw_flush_sq() argument
239 struct t4_wq *wq = &qhp->wq; in c4iw_flush_sq()
240 struct c4iw_cq *chp = to_c4iw_cq(qhp->ibqp.send_cq); in c4iw_flush_sq()
342 struct c4iw_qp *qhp; in c4iw_flush_hw_cq() local
355 qhp = get_qhp(chp->rhp, CQE_QPID(hw_cqe)); in c4iw_flush_hw_cq()
360 if (qhp == NULL) in c4iw_flush_hw_cq()
383 if (!qhp->wq.sq.oldest_read->signaled) { in c4iw_flush_hw_cq()
384 advance_oldest_read(&qhp->wq); in c4iw_flush_hw_cq()
392 create_read_req_cqe(&qhp->wq, hw_cqe, &read_cqe); in c4iw_flush_hw_cq()
394 advance_oldest_read(&qhp->wq); in c4iw_flush_hw_cq()
401 swsqe = &qhp->wq.sq.sw_sq[CQE_WRID_SQ_IDX(hw_cqe)]; in c4iw_flush_hw_cq()
404 flush_completed_wrs(&qhp->wq, &chp->cq); in c4iw_flush_hw_cq()
684 struct c4iw_qp *qhp = NULL; in c4iw_poll_cq_one() local
697 qhp = get_qhp(chp->rhp, CQE_QPID(rd_cqe)); in c4iw_poll_cq_one()
698 if (!qhp) in c4iw_poll_cq_one()
701 spin_lock(&qhp->lock); in c4iw_poll_cq_one()
702 wq = &(qhp->wq); in c4iw_poll_cq_one()
709 wc->qp = &qhp->ibqp; in c4iw_poll_cq_one()
822 spin_unlock(&qhp->lock); in c4iw_poll_cq_one()