Lines Matching refs:rchp
725 static void __flush_qp(struct iwch_qp *qhp, struct iwch_cq *rchp, in __flush_qp() argument
732 PDBG("%s qhp %p rchp %p schp %p\n", __func__, qhp, rchp, schp); in __flush_qp()
738 spin_lock(&rchp->lock); in __flush_qp()
740 cxio_flush_hw_cq(&rchp->cq); in __flush_qp()
741 cxio_count_rcqes(&rchp->cq, &qhp->wq, &count); in __flush_qp()
742 flushed = cxio_flush_rq(&qhp->wq, &rchp->cq, count); in __flush_qp()
744 spin_unlock(&rchp->lock); in __flush_qp()
746 spin_lock(&rchp->comp_handler_lock); in __flush_qp()
747 (*rchp->ibcq.comp_handler)(&rchp->ibcq, rchp->ibcq.cq_context); in __flush_qp()
748 spin_unlock(&rchp->comp_handler_lock); in __flush_qp()
774 struct iwch_cq *rchp, *schp; in flush_qp() local
776 rchp = get_chp(qhp->rhp, qhp->attr.rcq); in flush_qp()
781 cxio_set_cq_in_error(&rchp->cq); in flush_qp()
782 spin_lock(&rchp->comp_handler_lock); in flush_qp()
783 (*rchp->ibcq.comp_handler)(&rchp->ibcq, rchp->ibcq.cq_context); in flush_qp()
784 spin_unlock(&rchp->comp_handler_lock); in flush_qp()
785 if (schp != rchp) { in flush_qp()
794 __flush_qp(qhp, rchp, schp); in flush_qp()