Lines Matching refs:cur_state
558 enum ib_qp_state cur_state, in __mthca_modify_qp() argument
668 cur_state == IB_QPS_INIT && new_state == IB_QPS_RTR) { in __mthca_modify_qp()
788 if (cur_state == IB_QPS_RTS && new_state == IB_QPS_SQD && in __mthca_modify_qp()
793 err = mthca_MODIFY_QP(dev, cur_state, new_state, qp->qpn, 0, in __mthca_modify_qp()
797 cur_state, new_state, err); in __mthca_modify_qp()
819 if (cur_state != IB_QPS_RTR && in __mthca_modify_qp()
823 if (cur_state != IB_QPS_RESET && in __mthca_modify_qp()
824 cur_state != IB_QPS_ERR && in __mthca_modify_qp()
863 enum ib_qp_state cur_state, new_state; in mthca_modify_qp() local
871 cur_state = attr->cur_qp_state; in mthca_modify_qp()
875 cur_state = qp->state; in mthca_modify_qp()
880 new_state = attr_mask & IB_QP_STATE ? attr->qp_state : cur_state; in mthca_modify_qp()
882 if (!ib_modify_qp_is_ok(cur_state, new_state, ibqp->qp_type, in mthca_modify_qp()
886 qp->transport, cur_state, new_state, in mthca_modify_qp()
918 if (cur_state == new_state && cur_state == IB_QPS_RESET) { in mthca_modify_qp()
923 err = __mthca_modify_qp(ibqp, attr, attr_mask, cur_state, new_state, in mthca_modify_qp()