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