Lines Matching refs:schp
808 struct iwch_cq *schp) in __flush_qp() argument
814 PDBG("%s qhp %p rchp %p schp %p\n", __func__, qhp, rchp, schp); in __flush_qp()
834 spin_lock(&schp->lock); in __flush_qp()
836 cxio_flush_hw_cq(&schp->cq); in __flush_qp()
837 cxio_count_scqes(&schp->cq, &qhp->wq, &count); in __flush_qp()
838 flushed = cxio_flush_sq(&qhp->wq, &schp->cq, count); in __flush_qp()
840 spin_unlock(&schp->lock); in __flush_qp()
842 spin_lock(&schp->comp_handler_lock); in __flush_qp()
843 (*schp->ibcq.comp_handler)(&schp->ibcq, schp->ibcq.cq_context); in __flush_qp()
844 spin_unlock(&schp->comp_handler_lock); in __flush_qp()
856 struct iwch_cq *rchp, *schp; in flush_qp() local
859 schp = get_chp(qhp->rhp, qhp->attr.scq); in flush_qp()
867 if (schp != rchp) { in flush_qp()
868 cxio_set_cq_in_error(&schp->cq); in flush_qp()
869 spin_lock(&schp->comp_handler_lock); in flush_qp()
870 (*schp->ibcq.comp_handler)(&schp->ibcq, in flush_qp()
871 schp->ibcq.cq_context); in flush_qp()
872 spin_unlock(&schp->comp_handler_lock); in flush_qp()
876 __flush_qp(qhp, rchp, schp); in flush_qp()