Lines Matching defs:cur_state
3773 enum ib_qp_state cur_state,
3858 cur_state == IB_QPS_RESET &&
3967 if (qp->rq.wqe_cnt && cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT)
3970 if (cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) {
3985 if (!ibqp->uobject && cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT)
3991 mlx5_cur = to_mlx5_state(cur_state);
4009 if (cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) {
4120 static bool modify_dci_qp_is_ok(enum ib_qp_state cur_state, enum ib_qp_state new_state,
4128 } else if (cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) {
4131 } else if (cur_state == IB_QPS_INIT && new_state == IB_QPS_INIT) {
4134 } else if (cur_state == IB_QPS_INIT && new_state == IB_QPS_RTR) {
4138 } else if (cur_state == IB_QPS_RTR && new_state == IB_QPS_RTS) {
4143 } else if (cur_state == IB_QPS_RTS && new_state == IB_QPS_RTS) {
4146 } else if (cur_state != IB_QPS_RESET && new_state == IB_QPS_ERR) {
4165 enum ib_qp_state cur_state, new_state;
4173 cur_state = qp->state;
4186 if (cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) {
4222 } else if (cur_state == IB_QPS_INIT && new_state == IB_QPS_RTR) {
4263 mlx5_ib_warn(dev, "Modify DCT: Invalid transition from %d to %d\n", cur_state, new_state);
4330 enum ib_qp_state cur_state, new_state;
4371 cur_state = attr_mask & IB_QP_CUR_STATE ? attr->cur_qp_state : qp->state;
4372 new_state = attr_mask & IB_QP_STATE ? attr->qp_state : cur_state;
4374 if (!(cur_state == new_state && cur_state == IB_QPS_RESET)) {
4386 !ib_modify_qp_is_ok(cur_state, new_state, qp_type,
4389 cur_state, new_state, ibqp->qp_type, attr_mask);
4392 !modify_dci_qp_is_ok(cur_state, new_state, attr_mask)) {
4394 cur_state, new_state, qp_type, attr_mask);
4419 if (cur_state == new_state && cur_state == IB_QPS_RESET) {
4424 err = __mlx5_ib_modify_qp(ibqp, attr, attr_mask, cur_state,