Lines Matching refs:schp
726 struct iwch_cq *schp) in __flush_qp() argument
732 PDBG("%s qhp %p rchp %p schp %p\n", __func__, qhp, rchp, schp); in __flush_qp()
752 spin_lock(&schp->lock); in __flush_qp()
754 cxio_flush_hw_cq(&schp->cq); in __flush_qp()
755 cxio_count_scqes(&schp->cq, &qhp->wq, &count); in __flush_qp()
756 flushed = cxio_flush_sq(&qhp->wq, &schp->cq, count); in __flush_qp()
758 spin_unlock(&schp->lock); in __flush_qp()
760 spin_lock(&schp->comp_handler_lock); in __flush_qp()
761 (*schp->ibcq.comp_handler)(&schp->ibcq, schp->ibcq.cq_context); in __flush_qp()
762 spin_unlock(&schp->comp_handler_lock); in __flush_qp()
774 struct iwch_cq *rchp, *schp; in flush_qp() local
777 schp = get_chp(qhp->rhp, qhp->attr.scq); in flush_qp()
785 if (schp != rchp) { in flush_qp()
786 cxio_set_cq_in_error(&schp->cq); in flush_qp()
787 spin_lock(&schp->comp_handler_lock); in flush_qp()
788 (*schp->ibcq.comp_handler)(&schp->ibcq, in flush_qp()
789 schp->ibcq.cq_context); in flush_qp()
790 spin_unlock(&schp->comp_handler_lock); in flush_qp()
794 __flush_qp(qhp, rchp, schp); in flush_qp()