• Home
  • Raw
  • Download

Lines Matching refs:schp

983 	struct c4iw_cq *schp;  in complete_sq_drain_wr()  local
988 schp = to_c4iw_cq(qhp->ibqp.send_cq); in complete_sq_drain_wr()
989 cq = &schp->cq; in complete_sq_drain_wr()
1003 spin_lock_irqsave(&schp->lock, flag); in complete_sq_drain_wr()
1007 spin_unlock_irqrestore(&schp->lock, flag); in complete_sq_drain_wr()
1009 if (t4_clear_cq_armed(&schp->cq)) { in complete_sq_drain_wr()
1010 spin_lock_irqsave(&schp->comp_handler_lock, flag); in complete_sq_drain_wr()
1011 (*schp->ibcq.comp_handler)(&schp->ibcq, in complete_sq_drain_wr()
1012 schp->ibcq.cq_context); in complete_sq_drain_wr()
1013 spin_unlock_irqrestore(&schp->comp_handler_lock, flag); in complete_sq_drain_wr()
1597 struct c4iw_cq *schp) in __flush_qp() argument
1603 pr_debug("qhp %p rchp %p schp %p\n", qhp, rchp, schp); in __flush_qp()
1607 if (schp != rchp) in __flush_qp()
1608 spin_lock(&schp->lock); in __flush_qp()
1613 if (schp != rchp) in __flush_qp()
1614 spin_unlock(&schp->lock); in __flush_qp()
1627 if (schp != rchp) in __flush_qp()
1628 c4iw_flush_hw_cq(schp, qhp); in __flush_qp()
1632 if (schp != rchp) in __flush_qp()
1633 spin_unlock(&schp->lock); in __flush_qp()
1636 if (schp == rchp) { in __flush_qp()
1651 if (sq_flushed && t4_clear_cq_armed(&schp->cq)) { in __flush_qp()
1652 spin_lock_irqsave(&schp->comp_handler_lock, flag); in __flush_qp()
1653 (*schp->ibcq.comp_handler)(&schp->ibcq, in __flush_qp()
1654 schp->ibcq.cq_context); in __flush_qp()
1655 spin_unlock_irqrestore(&schp->comp_handler_lock, flag); in __flush_qp()
1662 struct c4iw_cq *rchp, *schp; in flush_qp() local
1666 schp = to_c4iw_cq(qhp->ibqp.send_cq); in flush_qp()
1680 if (schp != rchp) { in flush_qp()
1681 t4_set_cq_in_error(&schp->cq); in flush_qp()
1682 spin_lock_irqsave(&schp->comp_handler_lock, flag); in flush_qp()
1683 (*schp->ibcq.comp_handler)(&schp->ibcq, in flush_qp()
1684 schp->ibcq.cq_context); in flush_qp()
1685 spin_unlock_irqrestore(&schp->comp_handler_lock, flag); in flush_qp()
1689 __flush_qp(qhp, rchp, schp); in flush_qp()
2116 struct c4iw_cq *schp; in c4iw_create_qp() local
2131 schp = get_chp(rhp, ((struct c4iw_cq *)attrs->send_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()