Lines Matching defs:cur_state
544 enum ib_qp_state cur_state, enum ib_qp_state new_state)
652 cur_state == IB_QPS_INIT && new_state == IB_QPS_RTR) {
772 if (cur_state == IB_QPS_RTS && new_state == IB_QPS_SQD &&
777 err = mthca_MODIFY_QP(dev, cur_state, new_state, qp->qpn, 0,
783 cur_state, new_state, status);
806 if (cur_state != IB_QPS_RTR &&
810 if (cur_state != IB_QPS_RESET &&
811 cur_state != IB_QPS_ERR &&
867 enum ib_qp_state cur_state, new_state;
872 cur_state = attr->cur_qp_state;
876 cur_state = qp->state;
881 new_state = attr_mask & IB_QP_STATE ? attr->qp_state : cur_state;
883 if (!ib_modify_qp_is_ok(cur_state, new_state, ibqp->qp_type, attr_mask)) {
886 qp->transport, cur_state, new_state,
918 if (cur_state == new_state && cur_state == IB_QPS_RESET) {
923 if (cur_state == IB_QPS_RESET && new_state == IB_QPS_ERR) {
929 cur_state = IB_QPS_INIT;
932 err = __mthca_modify_qp(ibqp, attr, attr_mask, cur_state, new_state);