Lines Matching refs:cur_state
2073 enum ib_qp_state cur_state, in __mlx4_ib_modify_qp() argument
2185 if (cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) { in __mlx4_ib_modify_qp()
2203 if (cur_state == IB_QPS_SQD && new_state == IB_QPS_SQD && in __mlx4_ib_modify_qp()
2210 if (cur_state == IB_QPS_INIT && new_state == IB_QPS_RTR) { in __mlx4_ib_modify_qp()
2279 (cur_state == IB_QPS_INIT && new_state == IB_QPS_RTR)) { in __mlx4_ib_modify_qp()
2399 cur_state == IB_QPS_RESET && in __mlx4_ib_modify_qp()
2403 if (cur_state == IB_QPS_INIT && in __mlx4_ib_modify_qp()
2459 if (cur_state == IB_QPS_RTS && new_state == IB_QPS_SQD && in __mlx4_ib_modify_qp()
2466 cur_state == IB_QPS_RESET && in __mlx4_ib_modify_qp()
2477 cur_state == IB_QPS_RESET && in __mlx4_ib_modify_qp()
2492 cur_state == IB_QPS_RESET && in __mlx4_ib_modify_qp()
2498 err = mlx4_qp_modify(dev->dev, &qp->mtt, to_mlx4_state(cur_state), in __mlx4_ib_modify_qp()
2525 if (cur_state != IB_QPS_RTR && new_state == IB_QPS_RTR) in __mlx4_ib_modify_qp()
2530 if (cur_state != IB_QPS_RESET && cur_state != IB_QPS_ERR && in __mlx4_ib_modify_qp()
2663 enum ib_qp_state cur_state, new_state; in _mlx4_ib_modify_qp() local
2667 cur_state = attr_mask & IB_QP_CUR_STATE ? attr->cur_qp_state : qp->state; in _mlx4_ib_modify_qp()
2668 new_state = attr_mask & IB_QP_STATE ? attr->qp_state : cur_state; in _mlx4_ib_modify_qp()
2670 if (!ib_modify_qp_is_ok(cur_state, new_state, ibqp->qp_type, in _mlx4_ib_modify_qp()
2675 ibqp->qp_num, cur_state, new_state, in _mlx4_ib_modify_qp()
2681 if (!(((cur_state == IB_QPS_RESET) && in _mlx4_ib_modify_qp()
2683 ((cur_state == IB_QPS_INIT) && in _mlx4_ib_modify_qp()
2686 ibqp->qp_num, cur_state, new_state); in _mlx4_ib_modify_qp()
2694 ibqp->qp_num, attr_mask, cur_state, new_state); in _mlx4_ib_modify_qp()
2702 if ((cur_state == IB_QPS_RESET) && (new_state == IB_QPS_INIT)) { in _mlx4_ib_modify_qp()
2721 ibqp->qp_num, attr->port_num, cur_state, in _mlx4_ib_modify_qp()
2736 ibqp->qp_num, attr->pkey_index, cur_state, in _mlx4_ib_modify_qp()
2746 ibqp->qp_num, attr->max_rd_atomic, cur_state, in _mlx4_ib_modify_qp()
2755 ibqp->qp_num, attr->max_dest_rd_atomic, cur_state, in _mlx4_ib_modify_qp()
2760 if (cur_state == new_state && cur_state == IB_QPS_RESET) { in _mlx4_ib_modify_qp()
2773 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()