Lines Matching refs:qhp
95 void c4iw_flush_sq(struct c4iw_qp *qhp) in c4iw_flush_sq() argument
98 struct t4_wq *wq = &qhp->wq; in c4iw_flush_sq()
99 struct c4iw_cq *chp = to_c4iw_cq(qhp->ibv_qp.send_cq); in c4iw_flush_sq()
201 struct c4iw_qp *qhp; in c4iw_flush_hw_cq() local
214 qhp = get_qhp(chp->rhp, CQE_QPID(hw_cqe)); in c4iw_flush_hw_cq()
219 if (qhp == NULL) in c4iw_flush_hw_cq()
247 if (!qhp->wq.sq.oldest_read->signaled) { in c4iw_flush_hw_cq()
248 advance_oldest_read(&qhp->wq); in c4iw_flush_hw_cq()
256 create_read_req_cqe(&qhp->wq, hw_cqe, &read_cqe); in c4iw_flush_hw_cq()
258 advance_oldest_read(&qhp->wq); in c4iw_flush_hw_cq()
267 BUG_ON(idx >= qhp->wq.sq.size); in c4iw_flush_hw_cq()
268 swsqe = &qhp->wq.sq.sw_sq[idx]; in c4iw_flush_hw_cq()
271 flush_completed_wrs(&qhp->wq, &chp->cq); in c4iw_flush_hw_cq()
562 struct c4iw_qp *qhp = NULL; in c4iw_poll_cq_one() local
591 qhp = get_qhp(chp->rhp, CQE_QPID(rd_cqe)); in c4iw_poll_cq_one()
592 if (!qhp) in c4iw_poll_cq_one()
595 pthread_spin_lock(&qhp->lock); in c4iw_poll_cq_one()
596 wq = &(qhp->wq); in c4iw_poll_cq_one()
604 wc->qp_num = qhp->wq.sq.qid; in c4iw_poll_cq_one()
707 pthread_spin_unlock(&qhp->lock); in c4iw_poll_cq_one()