Lines Matching refs:rchp
1192 static void __flush_qp(struct c4iw_qp *qhp, struct c4iw_cq *rchp, in __flush_qp() argument
1199 PDBG("%s qhp %p rchp %p schp %p\n", __func__, qhp, rchp, schp); in __flush_qp()
1202 spin_lock_irqsave(&rchp->lock, flag); in __flush_qp()
1207 spin_unlock_irqrestore(&rchp->lock, flag); in __flush_qp()
1212 c4iw_flush_hw_cq(rchp); in __flush_qp()
1213 c4iw_count_rcqes(&rchp->cq, &qhp->wq, &count); in __flush_qp()
1214 rq_flushed = c4iw_flush_rq(&qhp->wq, &rchp->cq, count); in __flush_qp()
1216 spin_unlock_irqrestore(&rchp->lock, flag); in __flush_qp()
1221 if (schp != rchp) in __flush_qp()
1227 if (schp == rchp) { in __flush_qp()
1228 if (t4_clear_cq_armed(&rchp->cq) && in __flush_qp()
1230 spin_lock_irqsave(&rchp->comp_handler_lock, flag); in __flush_qp()
1231 (*rchp->ibcq.comp_handler)(&rchp->ibcq, in __flush_qp()
1232 rchp->ibcq.cq_context); in __flush_qp()
1233 spin_unlock_irqrestore(&rchp->comp_handler_lock, flag); in __flush_qp()
1236 if (t4_clear_cq_armed(&rchp->cq) && rq_flushed) { in __flush_qp()
1237 spin_lock_irqsave(&rchp->comp_handler_lock, flag); in __flush_qp()
1238 (*rchp->ibcq.comp_handler)(&rchp->ibcq, in __flush_qp()
1239 rchp->ibcq.cq_context); in __flush_qp()
1240 spin_unlock_irqrestore(&rchp->comp_handler_lock, flag); in __flush_qp()
1253 struct c4iw_cq *rchp, *schp; in flush_qp() local
1256 rchp = to_c4iw_cq(qhp->ibqp.recv_cq); in flush_qp()
1261 t4_set_cq_in_error(&rchp->cq); in flush_qp()
1262 spin_lock_irqsave(&rchp->comp_handler_lock, flag); in flush_qp()
1263 (*rchp->ibcq.comp_handler)(&rchp->ibcq, rchp->ibcq.cq_context); in flush_qp()
1264 spin_unlock_irqrestore(&rchp->comp_handler_lock, flag); in flush_qp()
1265 if (schp != rchp) { in flush_qp()
1274 __flush_qp(qhp, rchp, schp); in flush_qp()
1697 struct c4iw_cq *rchp; in c4iw_create_qp() local
1713 rchp = get_chp(rhp, ((struct c4iw_cq *)attrs->recv_cq)->cq.cqid); in c4iw_create_qp()
1714 if (!schp || !rchp) in c4iw_create_qp()
1752 ret = create_qp(&rhp->rdev, &qhp->wq, &schp->cq, &rchp->cq, in c4iw_create_qp()