Lines Matching refs:schp
807 struct iwch_cq *schp) in __flush_qp() argument
813 PDBG("%s qhp %p rchp %p schp %p\n", __func__, qhp, rchp, schp); in __flush_qp()
833 spin_lock(&schp->lock); in __flush_qp()
835 cxio_flush_hw_cq(&schp->cq); in __flush_qp()
836 cxio_count_scqes(&schp->cq, &qhp->wq, &count); in __flush_qp()
837 flushed = cxio_flush_sq(&qhp->wq, &schp->cq, count); in __flush_qp()
839 spin_unlock(&schp->lock); in __flush_qp()
841 spin_lock(&schp->comp_handler_lock); in __flush_qp()
842 (*schp->ibcq.comp_handler)(&schp->ibcq, schp->ibcq.cq_context); in __flush_qp()
843 spin_unlock(&schp->comp_handler_lock); in __flush_qp()
855 struct iwch_cq *rchp, *schp; in flush_qp() local
858 schp = get_chp(qhp->rhp, qhp->attr.scq); in flush_qp()
866 if (schp != rchp) { in flush_qp()
867 cxio_set_cq_in_error(&schp->cq); in flush_qp()
868 spin_lock(&schp->comp_handler_lock); in flush_qp()
869 (*schp->ibcq.comp_handler)(&schp->ibcq, in flush_qp()
870 schp->ibcq.cq_context); in flush_qp()
871 spin_unlock(&schp->comp_handler_lock); in flush_qp()
875 __flush_qp(qhp, rchp, schp); in flush_qp()