Lines Matching refs:schp
1105 struct c4iw_cq *schp) in __flush_qp() argument
1111 PDBG("%s qhp %p rchp %p schp %p\n", __func__, qhp, rchp, schp); in __flush_qp()
1131 spin_lock_irqsave(&schp->lock, flag); in __flush_qp()
1133 if (schp != rchp) in __flush_qp()
1134 c4iw_flush_hw_cq(schp); in __flush_qp()
1137 spin_unlock_irqrestore(&schp->lock, flag); in __flush_qp()
1139 if (schp == rchp) { in __flush_qp()
1154 if (t4_clear_cq_armed(&schp->cq) && sq_flushed) { in __flush_qp()
1155 spin_lock_irqsave(&schp->comp_handler_lock, flag); in __flush_qp()
1156 (*schp->ibcq.comp_handler)(&schp->ibcq, in __flush_qp()
1157 schp->ibcq.cq_context); in __flush_qp()
1158 spin_unlock_irqrestore(&schp->comp_handler_lock, flag); in __flush_qp()
1165 struct c4iw_cq *rchp, *schp; in flush_qp() local
1169 schp = to_c4iw_cq(qhp->ibqp.send_cq); in flush_qp()
1177 if (schp != rchp) { in flush_qp()
1178 t4_set_cq_in_error(&schp->cq); in flush_qp()
1179 spin_lock_irqsave(&schp->comp_handler_lock, flag); in flush_qp()
1180 (*schp->ibcq.comp_handler)(&schp->ibcq, in flush_qp()
1181 schp->ibcq.cq_context); in flush_qp()
1182 spin_unlock_irqrestore(&schp->comp_handler_lock, flag); in flush_qp()
1186 __flush_qp(qhp, rchp, schp); in flush_qp()
1614 struct c4iw_cq *schp; in c4iw_create_qp() local
1629 schp = get_chp(rhp, ((struct c4iw_cq *)attrs->send_cq)->cq.cqid); in c4iw_create_qp()
1631 if (!schp || !rchp) in c4iw_create_qp()
1669 ret = create_qp(&rhp->rdev, &qhp->wq, &schp->cq, &rchp->cq, in c4iw_create_qp()