Lines Matching refs:schp
1118 struct c4iw_cq *schp) in __flush_qp() argument
1124 PDBG("%s qhp %p rchp %p schp %p\n", __func__, qhp, rchp, schp); in __flush_qp()
1144 spin_lock_irqsave(&schp->lock, flag); in __flush_qp()
1146 if (schp != rchp) in __flush_qp()
1147 c4iw_flush_hw_cq(schp); in __flush_qp()
1150 spin_unlock_irqrestore(&schp->lock, flag); in __flush_qp()
1152 if (schp == rchp) { in __flush_qp()
1167 if (t4_clear_cq_armed(&schp->cq) && sq_flushed) { in __flush_qp()
1168 spin_lock_irqsave(&schp->comp_handler_lock, flag); in __flush_qp()
1169 (*schp->ibcq.comp_handler)(&schp->ibcq, in __flush_qp()
1170 schp->ibcq.cq_context); in __flush_qp()
1171 spin_unlock_irqrestore(&schp->comp_handler_lock, flag); in __flush_qp()
1178 struct c4iw_cq *rchp, *schp; in flush_qp() local
1182 schp = to_c4iw_cq(qhp->ibqp.send_cq); in flush_qp()
1190 if (schp != rchp) { in flush_qp()
1191 t4_set_cq_in_error(&schp->cq); in flush_qp()
1192 spin_lock_irqsave(&schp->comp_handler_lock, flag); in flush_qp()
1193 (*schp->ibcq.comp_handler)(&schp->ibcq, in flush_qp()
1194 schp->ibcq.cq_context); in flush_qp()
1195 spin_unlock_irqrestore(&schp->comp_handler_lock, flag); in flush_qp()
1199 __flush_qp(qhp, rchp, schp); in flush_qp()
1627 struct c4iw_cq *schp; in c4iw_create_qp() local
1642 schp = get_chp(rhp, ((struct c4iw_cq *)attrs->send_cq)->cq.cqid); in c4iw_create_qp()
1644 if (!schp || !rchp) in c4iw_create_qp()
1682 ret = create_qp(&rhp->rdev, &qhp->wq, &schp->cq, &rchp->cq, in c4iw_create_qp()