Lines Matching refs:cur_state
1567 enum ib_qp_state cur_state, enum ib_qp_state new_state) in __mlx5_ib_modify_qp() argument
1698 if (qp->rq.wqe_cnt && cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) in __mlx5_ib_modify_qp()
1701 if (cur_state == IB_QPS_RTS && new_state == IB_QPS_SQD && in __mlx5_ib_modify_qp()
1707 if (!ibqp->uobject && cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) in __mlx5_ib_modify_qp()
1711 mlx5_cur = to_mlx5_state(cur_state); in __mlx5_ib_modify_qp()
1722 if (cur_state != IB_QPS_RESET && cur_state != IB_QPS_ERR && in __mlx5_ib_modify_qp()
1729 err = mlx5_core_qp_modify(dev->mdev, to_mlx5_state(cur_state), in __mlx5_ib_modify_qp()
1735 if (cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) in __mlx5_ib_modify_qp()
1779 enum ib_qp_state cur_state, new_state; in mlx5_ib_modify_qp() local
1787 cur_state = attr_mask & IB_QP_CUR_STATE ? attr->cur_qp_state : qp->state; in mlx5_ib_modify_qp()
1788 new_state = attr_mask & IB_QP_STATE ? attr->qp_state : cur_state; in mlx5_ib_modify_qp()
1791 !ib_modify_qp_is_ok(cur_state, new_state, ibqp->qp_type, attr_mask, in mlx5_ib_modify_qp()
1813 if (cur_state == new_state && cur_state == IB_QPS_RESET) { in mlx5_ib_modify_qp()
1818 err = __mlx5_ib_modify_qp(ibqp, attr, attr_mask, cur_state, new_state); in mlx5_ib_modify_qp()