diff options
Diffstat (limited to 'drivers/infiniband/hw/cxgb3/iwch_qp.c')
-rw-r--r-- | drivers/infiniband/hw/cxgb3/iwch_qp.c | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/drivers/infiniband/hw/cxgb3/iwch_qp.c b/drivers/infiniband/hw/cxgb3/iwch_qp.c index 0993137181d7..1b4cd09f74dc 100644 --- a/drivers/infiniband/hw/cxgb3/iwch_qp.c +++ b/drivers/infiniband/hw/cxgb3/iwch_qp.c | |||
@@ -1149,59 +1149,3 @@ out: | |||
1149 | PDBG("%s exit state %d\n", __func__, qhp->attr.state); | 1149 | PDBG("%s exit state %d\n", __func__, qhp->attr.state); |
1150 | return ret; | 1150 | return ret; |
1151 | } | 1151 | } |
1152 | |||
1153 | static int quiesce_qp(struct iwch_qp *qhp) | ||
1154 | { | ||
1155 | spin_lock_irq(&qhp->lock); | ||
1156 | iwch_quiesce_tid(qhp->ep); | ||
1157 | qhp->flags |= QP_QUIESCED; | ||
1158 | spin_unlock_irq(&qhp->lock); | ||
1159 | return 0; | ||
1160 | } | ||
1161 | |||
1162 | static int resume_qp(struct iwch_qp *qhp) | ||
1163 | { | ||
1164 | spin_lock_irq(&qhp->lock); | ||
1165 | iwch_resume_tid(qhp->ep); | ||
1166 | qhp->flags &= ~QP_QUIESCED; | ||
1167 | spin_unlock_irq(&qhp->lock); | ||
1168 | return 0; | ||
1169 | } | ||
1170 | |||
1171 | int iwch_quiesce_qps(struct iwch_cq *chp) | ||
1172 | { | ||
1173 | int i; | ||
1174 | struct iwch_qp *qhp; | ||
1175 | |||
1176 | for (i=0; i < T3_MAX_NUM_QP; i++) { | ||
1177 | qhp = get_qhp(chp->rhp, i); | ||
1178 | if (!qhp) | ||
1179 | continue; | ||
1180 | if ((qhp->attr.rcq == chp->cq.cqid) && !qp_quiesced(qhp)) { | ||
1181 | quiesce_qp(qhp); | ||
1182 | continue; | ||
1183 | } | ||
1184 | if ((qhp->attr.scq == chp->cq.cqid) && !qp_quiesced(qhp)) | ||
1185 | quiesce_qp(qhp); | ||
1186 | } | ||
1187 | return 0; | ||
1188 | } | ||
1189 | |||
1190 | int iwch_resume_qps(struct iwch_cq *chp) | ||
1191 | { | ||
1192 | int i; | ||
1193 | struct iwch_qp *qhp; | ||
1194 | |||
1195 | for (i=0; i < T3_MAX_NUM_QP; i++) { | ||
1196 | qhp = get_qhp(chp->rhp, i); | ||
1197 | if (!qhp) | ||
1198 | continue; | ||
1199 | if ((qhp->attr.rcq == chp->cq.cqid) && qp_quiesced(qhp)) { | ||
1200 | resume_qp(qhp); | ||
1201 | continue; | ||
1202 | } | ||
1203 | if ((qhp->attr.scq == chp->cq.cqid) && qp_quiesced(qhp)) | ||
1204 | resume_qp(qhp); | ||
1205 | } | ||
1206 | return 0; | ||
1207 | } | ||