Lines Matching defs:qhp
238 int c4iw_flush_sq(struct c4iw_qp *qhp)
241 struct t4_wq *wq = &qhp->wq;
242 struct c4iw_cq *chp = to_c4iw_cq(qhp->ibqp.send_cq);
338 struct c4iw_qp *qhp;
351 qhp = get_qhp(chp->rhp, CQE_QPID(hw_cqe));
356 if (qhp == NULL)
359 if (flush_qhp != qhp) {
360 spin_lock(&qhp->lock);
362 if (qhp->wq.flushed == 1)
386 if (!qhp->wq.sq.oldest_read->signaled) {
387 advance_oldest_read(&qhp->wq);
395 create_read_req_cqe(&qhp->wq, hw_cqe, &read_cqe);
397 advance_oldest_read(&qhp->wq);
404 swsqe = &qhp->wq.sq.sw_sq[CQE_WRID_SQ_IDX(hw_cqe)];
407 flush_completed_wrs(&qhp->wq, &chp->cq);
417 if (qhp && flush_qhp != qhp)
418 spin_unlock(&qhp->lock);
754 static int __c4iw_poll_cq_one(struct c4iw_cq *chp, struct c4iw_qp *qhp,
758 struct t4_wq *wq = qhp ? &qhp->wq : NULL;
770 wc->qp = &qhp->ibqp;
803 c4iw_invalidate_mr(qhp->rhp, wc->ex.invalidate_rkey);
844 c4iw_invalidate_mr(qhp->rhp,
924 struct c4iw_qp *qhp = NULL;
933 qhp = get_qhp(chp->rhp, CQE_QPID(rd_cqe));
934 if (qhp) {
935 spin_lock(&qhp->lock);
936 srq = qhp->srq;
939 ret = __c4iw_poll_cq_one(chp, qhp, wc, srq);
940 spin_unlock(&qhp->lock);
1176 void c4iw_flush_srqidx(struct c4iw_qp *qhp, u32 srqidx)
1178 struct c4iw_cq *rchp = to_c4iw_cq(qhp->ibqp.recv_cq);
1183 spin_lock(&qhp->lock);
1186 insert_recv_cqe(&qhp->wq, &rchp->cq, srqidx);
1188 spin_unlock(&qhp->lock);