Lines Matching refs:rchp
1039 struct c4iw_cq *rchp; in complete_rq_drain_wr() local
1043 rchp = to_c4iw_cq(qhp->ibqp.recv_cq); in complete_rq_drain_wr()
1044 cq = &rchp->cq; in complete_rq_drain_wr()
1054 spin_lock_irqsave(&rchp->lock, flag); in complete_rq_drain_wr()
1058 spin_unlock_irqrestore(&rchp->lock, flag); in complete_rq_drain_wr()
1060 if (t4_clear_cq_armed(&rchp->cq)) { in complete_rq_drain_wr()
1061 spin_lock_irqsave(&rchp->comp_handler_lock, flag); in complete_rq_drain_wr()
1062 (*rchp->ibcq.comp_handler)(&rchp->ibcq, in complete_rq_drain_wr()
1063 rchp->ibcq.cq_context); in complete_rq_drain_wr()
1064 spin_unlock_irqrestore(&rchp->comp_handler_lock, flag); in complete_rq_drain_wr()
1596 static void __flush_qp(struct c4iw_qp *qhp, struct c4iw_cq *rchp, in __flush_qp() argument
1603 pr_debug("qhp %p rchp %p schp %p\n", qhp, rchp, schp); in __flush_qp()
1606 spin_lock_irqsave(&rchp->lock, flag); in __flush_qp()
1607 if (schp != rchp) in __flush_qp()
1613 if (schp != rchp) in __flush_qp()
1615 spin_unlock_irqrestore(&rchp->lock, flag); in __flush_qp()
1621 c4iw_flush_hw_cq(rchp, qhp); in __flush_qp()
1623 c4iw_count_rcqes(&rchp->cq, &qhp->wq, &count); in __flush_qp()
1624 rq_flushed = c4iw_flush_rq(&qhp->wq, &rchp->cq, count); in __flush_qp()
1627 if (schp != rchp) in __flush_qp()
1632 if (schp != rchp) in __flush_qp()
1634 spin_unlock_irqrestore(&rchp->lock, flag); in __flush_qp()
1636 if (schp == rchp) { in __flush_qp()
1638 t4_clear_cq_armed(&rchp->cq)) { in __flush_qp()
1639 spin_lock_irqsave(&rchp->comp_handler_lock, flag); in __flush_qp()
1640 (*rchp->ibcq.comp_handler)(&rchp->ibcq, in __flush_qp()
1641 rchp->ibcq.cq_context); in __flush_qp()
1642 spin_unlock_irqrestore(&rchp->comp_handler_lock, flag); in __flush_qp()
1645 if (rq_flushed && t4_clear_cq_armed(&rchp->cq)) { in __flush_qp()
1646 spin_lock_irqsave(&rchp->comp_handler_lock, flag); in __flush_qp()
1647 (*rchp->ibcq.comp_handler)(&rchp->ibcq, in __flush_qp()
1648 rchp->ibcq.cq_context); in __flush_qp()
1649 spin_unlock_irqrestore(&rchp->comp_handler_lock, flag); in __flush_qp()
1662 struct c4iw_cq *rchp, *schp; in flush_qp() local
1665 rchp = to_c4iw_cq(qhp->ibqp.recv_cq); in flush_qp()
1676 t4_set_cq_in_error(&rchp->cq); in flush_qp()
1677 spin_lock_irqsave(&rchp->comp_handler_lock, flag); in flush_qp()
1678 (*rchp->ibcq.comp_handler)(&rchp->ibcq, rchp->ibcq.cq_context); in flush_qp()
1679 spin_unlock_irqrestore(&rchp->comp_handler_lock, flag); in flush_qp()
1680 if (schp != rchp) { in flush_qp()
1689 __flush_qp(qhp, rchp, schp); in flush_qp()
2117 struct c4iw_cq *rchp; in c4iw_create_qp() local
2132 rchp = get_chp(rhp, ((struct c4iw_cq *)attrs->recv_cq)->cq.cqid); in c4iw_create_qp()
2133 if (!schp || !rchp) in c4iw_create_qp()
2176 ret = create_qp(&rhp->rdev, &qhp->wq, &schp->cq, &rchp->cq, in c4iw_create_qp()