Lines Matching refs:new_state
545 enum ib_qp_state cur_state, enum ib_qp_state new_state) in __mthca_modify_qp() argument
564 qp_context->flags = cpu_to_be32((to_mthca_state(new_state) << 28) | in __mthca_modify_qp()
652 cur_state == IB_QPS_INIT && new_state == IB_QPS_RTR) { in __mthca_modify_qp()
772 if (cur_state == IB_QPS_RTS && new_state == IB_QPS_SQD && in __mthca_modify_qp()
777 err = mthca_MODIFY_QP(dev, cur_state, new_state, qp->qpn, 0, in __mthca_modify_qp()
781 cur_state, new_state, err); in __mthca_modify_qp()
785 qp->state = new_state; in __mthca_modify_qp()
804 new_state == IB_QPS_RTR) in __mthca_modify_qp()
809 (new_state == IB_QPS_RESET || in __mthca_modify_qp()
810 new_state == IB_QPS_ERR)) in __mthca_modify_qp()
818 if (new_state == IB_QPS_RESET && !qp->ibqp.uobject) { in __mthca_modify_qp()
847 enum ib_qp_state cur_state, new_state; in mthca_modify_qp() local
861 new_state = attr_mask & IB_QP_STATE ? attr->qp_state : cur_state; in mthca_modify_qp()
863 if (!ib_modify_qp_is_ok(cur_state, new_state, ibqp->qp_type, attr_mask, in mthca_modify_qp()
867 qp->transport, cur_state, new_state, in mthca_modify_qp()
899 if (cur_state == new_state && cur_state == IB_QPS_RESET) { in mthca_modify_qp()
904 err = __mthca_modify_qp(ibqp, attr, attr_mask, cur_state, new_state); in mthca_modify_qp()