Lines Matching defs:cur_state
2077 enum ib_qp_state cur_state,
2189 if (cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) {
2207 if (cur_state == IB_QPS_SQD && new_state == IB_QPS_SQD &&
2214 if (cur_state == IB_QPS_INIT && new_state == IB_QPS_RTR) {
2283 (cur_state == IB_QPS_INIT && new_state == IB_QPS_RTR)) {
2403 cur_state == IB_QPS_RESET &&
2407 if (cur_state == IB_QPS_INIT &&
2463 if (cur_state == IB_QPS_RTS && new_state == IB_QPS_SQD &&
2470 cur_state == IB_QPS_RESET &&
2481 cur_state == IB_QPS_RESET &&
2496 cur_state == IB_QPS_RESET &&
2502 err = mlx4_qp_modify(dev->dev, &qp->mtt, to_mlx4_state(cur_state),
2529 if (cur_state != IB_QPS_RTR && new_state == IB_QPS_RTR)
2534 if (cur_state != IB_QPS_RESET && cur_state != IB_QPS_ERR &&
2667 enum ib_qp_state cur_state, new_state;
2671 cur_state = attr_mask & IB_QP_CUR_STATE ? attr->cur_qp_state : qp->state;
2672 new_state = attr_mask & IB_QP_STATE ? attr->qp_state : cur_state;
2674 if (!ib_modify_qp_is_ok(cur_state, new_state, ibqp->qp_type,
2679 ibqp->qp_num, cur_state, new_state,
2685 if (!(((cur_state == IB_QPS_RESET) &&
2687 ((cur_state == IB_QPS_INIT) &&
2690 ibqp->qp_num, cur_state, new_state);
2698 ibqp->qp_num, attr_mask, cur_state, new_state);
2706 if ((cur_state == IB_QPS_RESET) && (new_state == IB_QPS_INIT)) {
2725 ibqp->qp_num, attr->port_num, cur_state,
2740 ibqp->qp_num, attr->pkey_index, cur_state,
2750 ibqp->qp_num, attr->max_rd_atomic, cur_state,
2759 ibqp->qp_num, attr->max_dest_rd_atomic, cur_state,
2764 if (cur_state == new_state && cur_state == IB_QPS_RESET) {
2777 cur_state, new_state, udata);
4231 enum ib_wq_state cur_state, new_state;
4253 cur_state = wq_attr->curr_wq_state;
4256 if ((new_state == IB_WQS_RDY) && (cur_state == IB_WQS_ERR))
4259 if ((new_state == IB_WQS_ERR) && (cur_state == IB_WQS_RESET))