Lines Matching refs:cur_state
2071 enum ib_qp_state cur_state, in __mlx4_ib_modify_qp() argument
2183 if (cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) { in __mlx4_ib_modify_qp()
2201 if (cur_state == IB_QPS_SQD && new_state == IB_QPS_SQD && in __mlx4_ib_modify_qp()
2208 if (cur_state == IB_QPS_INIT && new_state == IB_QPS_RTR) { in __mlx4_ib_modify_qp()
2277 (cur_state == IB_QPS_INIT && new_state == IB_QPS_RTR)) { in __mlx4_ib_modify_qp()
2397 cur_state == IB_QPS_RESET && in __mlx4_ib_modify_qp()
2401 if (cur_state == IB_QPS_INIT && in __mlx4_ib_modify_qp()
2457 if (cur_state == IB_QPS_RTS && new_state == IB_QPS_SQD && in __mlx4_ib_modify_qp()
2464 cur_state == IB_QPS_RESET && in __mlx4_ib_modify_qp()
2475 cur_state == IB_QPS_RESET && in __mlx4_ib_modify_qp()
2490 cur_state == IB_QPS_RESET && in __mlx4_ib_modify_qp()
2496 err = mlx4_qp_modify(dev->dev, &qp->mtt, to_mlx4_state(cur_state), in __mlx4_ib_modify_qp()
2523 if (cur_state != IB_QPS_RTR && new_state == IB_QPS_RTR) in __mlx4_ib_modify_qp()
2528 if (cur_state != IB_QPS_RESET && cur_state != IB_QPS_ERR && in __mlx4_ib_modify_qp()
2661 enum ib_qp_state cur_state, new_state; in _mlx4_ib_modify_qp() local
2665 cur_state = attr_mask & IB_QP_CUR_STATE ? attr->cur_qp_state : qp->state; in _mlx4_ib_modify_qp()
2666 new_state = attr_mask & IB_QP_STATE ? attr->qp_state : cur_state; in _mlx4_ib_modify_qp()
2668 if (!ib_modify_qp_is_ok(cur_state, new_state, ibqp->qp_type, in _mlx4_ib_modify_qp()
2673 ibqp->qp_num, cur_state, new_state, in _mlx4_ib_modify_qp()
2679 if (!(((cur_state == IB_QPS_RESET) && in _mlx4_ib_modify_qp()
2681 ((cur_state == IB_QPS_INIT) && in _mlx4_ib_modify_qp()
2684 ibqp->qp_num, cur_state, new_state); in _mlx4_ib_modify_qp()
2692 ibqp->qp_num, attr_mask, cur_state, new_state); in _mlx4_ib_modify_qp()
2700 if ((cur_state == IB_QPS_RESET) && (new_state == IB_QPS_INIT)) { in _mlx4_ib_modify_qp()
2719 ibqp->qp_num, attr->port_num, cur_state, in _mlx4_ib_modify_qp()
2734 ibqp->qp_num, attr->pkey_index, cur_state, in _mlx4_ib_modify_qp()
2744 ibqp->qp_num, attr->max_rd_atomic, cur_state, in _mlx4_ib_modify_qp()
2753 ibqp->qp_num, attr->max_dest_rd_atomic, cur_state, in _mlx4_ib_modify_qp()
2758 if (cur_state == new_state && cur_state == IB_QPS_RESET) { in _mlx4_ib_modify_qp()
2771 cur_state, new_state, udata); in _mlx4_ib_modify_qp()
4227 enum ib_wq_state cur_state, new_state; in mlx4_ib_modify_wq() local
4249 cur_state = wq_attr->curr_wq_state; in mlx4_ib_modify_wq()
4252 if ((new_state == IB_WQS_RDY) && (cur_state == IB_WQS_ERR)) in mlx4_ib_modify_wq()
4255 if ((new_state == IB_WQS_ERR) && (cur_state == IB_WQS_RESET)) in mlx4_ib_modify_wq()