Lines Matching refs:cur_state
1554 enum ib_qp_state cur_state, enum ib_qp_state new_state) in __mlx5_ib_modify_qp() argument
1684 if (qp->rq.wqe_cnt && cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) in __mlx5_ib_modify_qp()
1687 if (cur_state == IB_QPS_RTS && new_state == IB_QPS_SQD && in __mlx5_ib_modify_qp()
1693 if (!ibqp->uobject && cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) in __mlx5_ib_modify_qp()
1697 mlx5_cur = to_mlx5_state(cur_state); in __mlx5_ib_modify_qp()
1708 if (cur_state != IB_QPS_RESET && cur_state != IB_QPS_ERR && in __mlx5_ib_modify_qp()
1715 err = mlx5_core_qp_modify(dev->mdev, to_mlx5_state(cur_state), in __mlx5_ib_modify_qp()
1721 if (cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) in __mlx5_ib_modify_qp()
1765 enum ib_qp_state cur_state, new_state; in mlx5_ib_modify_qp() local
1771 cur_state = attr_mask & IB_QP_CUR_STATE ? attr->cur_qp_state : qp->state; in mlx5_ib_modify_qp()
1772 new_state = attr_mask & IB_QP_STATE ? attr->qp_state : cur_state; in mlx5_ib_modify_qp()
1775 !ib_modify_qp_is_ok(cur_state, new_state, ibqp->qp_type, attr_mask, in mlx5_ib_modify_qp()
1801 if (cur_state == new_state && cur_state == IB_QPS_RESET) { in mlx5_ib_modify_qp()
1806 err = __mlx5_ib_modify_qp(ibqp, attr, attr_mask, cur_state, new_state); in mlx5_ib_modify_qp()