Lines Matching refs:qp_attr
351 struct ib_qp_attr qp_attr; in ipoib_qp_state_validate_work() local
355 ret = ib_query_qp(priv->qp, &qp_attr, IB_QP_STATE, &query_init_attr); in ipoib_qp_state_validate_work()
362 __func__, priv->qp->qp_num, qp_attr.qp_state); in ipoib_qp_state_validate_work()
365 if (qp_attr.qp_state == IB_QPS_SQE) { in ipoib_qp_state_validate_work()
366 qp_attr.qp_state = IB_QPS_RTS; in ipoib_qp_state_validate_work()
368 ret = ib_modify_qp(priv->qp, &qp_attr, IB_QP_STATE); in ipoib_qp_state_validate_work()
378 priv->qp->qp_num, qp_attr.qp_state); in ipoib_qp_state_validate_work()
739 struct ib_qp_attr qp_attr; in check_qp_movement_and_print() local
743 ret = ib_query_qp(qp, &qp_attr, IB_QP_STATE, &query_init_attr); in check_qp_movement_and_print()
749 if (new_state == IB_QPS_ERR && qp_attr.qp_state == IB_QPS_RESET) in check_qp_movement_and_print()
753 new_state, qp_attr.qp_state); in check_qp_movement_and_print()
775 struct ib_qp_attr qp_attr; in ipoib_ib_dev_stop_default() local
789 qp_attr.qp_state = IB_QPS_ERR; in ipoib_ib_dev_stop_default()
790 if (ib_modify_qp(priv->qp, &qp_attr, IB_QP_STATE)) in ipoib_ib_dev_stop_default()
839 qp_attr.qp_state = IB_QPS_RESET; in ipoib_ib_dev_stop_default()
840 if (ib_modify_qp(priv->qp, &qp_attr, IB_QP_STATE)) in ipoib_ib_dev_stop_default()