Lines Matching refs:cur_state

2110 			       enum ib_qp_state cur_state,
2222 if (cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) {
2240 if (cur_state == IB_QPS_SQD && new_state == IB_QPS_SQD &&
2247 if (cur_state == IB_QPS_INIT && new_state == IB_QPS_RTR) {
2316 (cur_state == IB_QPS_INIT && new_state == IB_QPS_RTR)) {
2436 cur_state == IB_QPS_RESET &&
2440 if (cur_state == IB_QPS_INIT &&
2496 if (cur_state == IB_QPS_RTS && new_state == IB_QPS_SQD &&
2503 cur_state == IB_QPS_RESET &&
2514 cur_state == IB_QPS_RESET &&
2529 cur_state == IB_QPS_RESET &&
2535 err = mlx4_qp_modify(dev->dev, &qp->mtt, to_mlx4_state(cur_state),
2562 if (cur_state != IB_QPS_RTR && new_state == IB_QPS_RTR)
2567 if (cur_state != IB_QPS_RESET && cur_state != IB_QPS_ERR &&
2700 enum ib_qp_state cur_state, new_state;
2704 cur_state = attr_mask & IB_QP_CUR_STATE ? attr->cur_qp_state : qp->state;
2705 new_state = attr_mask & IB_QP_STATE ? attr->qp_state : cur_state;
2707 if (!ib_modify_qp_is_ok(cur_state, new_state, ibqp->qp_type,
2712 ibqp->qp_num, cur_state, new_state,
2718 if (!(((cur_state == IB_QPS_RESET) &&
2720 ((cur_state == IB_QPS_INIT) &&
2723 ibqp->qp_num, cur_state, new_state);
2731 ibqp->qp_num, attr_mask, cur_state, new_state);
2739 if ((cur_state == IB_QPS_RESET) && (new_state == IB_QPS_INIT)) {
2758 ibqp->qp_num, attr->port_num, cur_state,
2773 ibqp->qp_num, attr->pkey_index, cur_state,
2783 ibqp->qp_num, attr->max_rd_atomic, cur_state,
2792 ibqp->qp_num, attr->max_dest_rd_atomic, cur_state,
2797 if (cur_state == new_state && cur_state == IB_QPS_RESET) {
2810 cur_state, new_state, udata);
4266 enum ib_wq_state cur_state, new_state;
4288 cur_state = wq_attr->curr_wq_state;
4291 if ((new_state == IB_WQS_RDY) && (cur_state == IB_WQS_ERR))
4294 if ((new_state == IB_WQS_ERR) && (cur_state == IB_WQS_RESET))