]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/infiniband/hw/cxgb3/iwch_qp.c
Merge tag 'v2.6.38' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
[mv-sheeva.git] / drivers / infiniband / hw / cxgb3 / iwch_qp.c
index 0993137181d7a893d6084688f003ca05358d3b42..1b4cd09f74dc2517567d8595fdd416c13ddd4941 100644 (file)
@@ -1149,59 +1149,3 @@ out:
        PDBG("%s exit state %d\n", __func__, qhp->attr.state);
        return ret;
 }
-
-static int quiesce_qp(struct iwch_qp *qhp)
-{
-       spin_lock_irq(&qhp->lock);
-       iwch_quiesce_tid(qhp->ep);
-       qhp->flags |= QP_QUIESCED;
-       spin_unlock_irq(&qhp->lock);
-       return 0;
-}
-
-static int resume_qp(struct iwch_qp *qhp)
-{
-       spin_lock_irq(&qhp->lock);
-       iwch_resume_tid(qhp->ep);
-       qhp->flags &= ~QP_QUIESCED;
-       spin_unlock_irq(&qhp->lock);
-       return 0;
-}
-
-int iwch_quiesce_qps(struct iwch_cq *chp)
-{
-       int i;
-       struct iwch_qp *qhp;
-
-       for (i=0; i < T3_MAX_NUM_QP; i++) {
-               qhp = get_qhp(chp->rhp, i);
-               if (!qhp)
-                       continue;
-               if ((qhp->attr.rcq == chp->cq.cqid) && !qp_quiesced(qhp)) {
-                       quiesce_qp(qhp);
-                       continue;
-               }
-               if ((qhp->attr.scq == chp->cq.cqid) && !qp_quiesced(qhp))
-                       quiesce_qp(qhp);
-       }
-       return 0;
-}
-
-int iwch_resume_qps(struct iwch_cq *chp)
-{
-       int i;
-       struct iwch_qp *qhp;
-
-       for (i=0; i < T3_MAX_NUM_QP; i++) {
-               qhp = get_qhp(chp->rhp, i);
-               if (!qhp)
-                       continue;
-               if ((qhp->attr.rcq == chp->cq.cqid) && qp_quiesced(qhp)) {
-                       resume_qp(qhp);
-                       continue;
-               }
-               if ((qhp->attr.scq == chp->cq.cqid) && qp_quiesced(qhp))
-                       resume_qp(qhp);
-       }
-       return 0;
-}