Lines Matching refs:schp
983 struct c4iw_cq *schp;
988 schp = to_c4iw_cq(qhp->ibqp.send_cq);
989 cq = &schp->cq;
1003 spin_lock_irqsave(&schp->lock, flag);
1007 spin_unlock_irqrestore(&schp->lock, flag);
1009 if (t4_clear_cq_armed(&schp->cq)) {
1010 spin_lock_irqsave(&schp->comp_handler_lock, flag);
1011 (*schp->ibcq.comp_handler)(&schp->ibcq,
1012 schp->ibcq.cq_context);
1013 spin_unlock_irqrestore(&schp->comp_handler_lock, flag);
1597 struct c4iw_cq *schp)
1603 pr_debug("qhp %p rchp %p schp %p\n", qhp, rchp, schp);
1607 if (schp != rchp)
1608 spin_lock(&schp->lock);
1613 if (schp != rchp)
1614 spin_unlock(&schp->lock);
1627 if (schp != rchp)
1628 c4iw_flush_hw_cq(schp, qhp);
1632 if (schp != rchp)
1633 spin_unlock(&schp->lock);
1636 if (schp == rchp) {
1651 if (sq_flushed && t4_clear_cq_armed(&schp->cq)) {
1652 spin_lock_irqsave(&schp->comp_handler_lock, flag);
1653 (*schp->ibcq.comp_handler)(&schp->ibcq,
1654 schp->ibcq.cq_context);
1655 spin_unlock_irqrestore(&schp->comp_handler_lock, flag);
1662 struct c4iw_cq *rchp, *schp;
1666 schp = to_c4iw_cq(qhp->ibqp.send_cq);
1680 if (schp != rchp) {
1681 t4_set_cq_in_error(&schp->cq);
1682 spin_lock_irqsave(&schp->comp_handler_lock, flag);
1683 (*schp->ibcq.comp_handler)(&schp->ibcq,
1684 schp->ibcq.cq_context);
1685 spin_unlock_irqrestore(&schp->comp_handler_lock, flag);
1689 __flush_qp(qhp, rchp, schp);
2118 struct c4iw_cq *schp;
2135 schp = get_chp(rhp, ((struct c4iw_cq *)attrs->send_cq)->cq.cqid);
2137 if (!schp || !rchp)
2186 ret = create_qp(&rhp->rdev, &qhp->wq, &schp->cq, &rchp->cq,