Lines Matching refs:cur_state
1493 enum ib_qp_state cur_state, enum ib_qp_state new_state)
1624 if (qp->rq.wqe_cnt && cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT)
1627 if (cur_state == IB_QPS_RTS && new_state == IB_QPS_SQD &&
1633 if (!ibqp->uobject && cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT)
1637 mlx5_cur = to_mlx5_state(cur_state);
1646 err = mlx5_core_qp_modify(dev->mdev, to_mlx5_state(cur_state),
1693 enum ib_qp_state cur_state, new_state;
1701 cur_state = attr_mask & IB_QP_CUR_STATE ? attr->cur_qp_state : qp->state;
1702 new_state = attr_mask & IB_QP_STATE ? attr->qp_state : cur_state;
1705 !ib_modify_qp_is_ok(cur_state, new_state, ibqp->qp_type, attr_mask,
1727 if (cur_state == new_state && cur_state == IB_QPS_RESET) {
1732 err = __mlx5_ib_modify_qp(ibqp, attr, attr_mask, cur_state, new_state);