Lines Matching defs:cur_state

4104 			       enum ib_qp_state cur_state,
4190 cur_state == IB_QPS_RESET &&
4299 if (qp->rq.wqe_cnt && cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT)
4302 if (cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) {
4317 if (!ibqp->uobject && cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT)
4323 mlx5_cur = to_mlx5_state(cur_state);
4341 if (cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) {
4452 static bool modify_dci_qp_is_ok(enum ib_qp_state cur_state, enum ib_qp_state new_state,
4460 } else if (cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) {
4463 } else if (cur_state == IB_QPS_INIT && new_state == IB_QPS_INIT) {
4466 } else if (cur_state == IB_QPS_INIT && new_state == IB_QPS_RTR) {
4470 } else if (cur_state == IB_QPS_RTR && new_state == IB_QPS_RTS) {
4475 } else if (cur_state == IB_QPS_RTS && new_state == IB_QPS_RTS) {
4478 } else if (cur_state != IB_QPS_RESET && new_state == IB_QPS_ERR) {
4497 enum ib_qp_state cur_state, new_state;
4505 cur_state = qp->state;
4518 if (cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) {
4554 } else if (cur_state == IB_QPS_INIT && new_state == IB_QPS_RTR) {
4596 mlx5_ib_warn(dev, "Modify DCT: Invalid transition from %d to %d\n", cur_state, new_state);
4662 enum ib_qp_state cur_state, new_state;
4704 cur_state = attr_mask & IB_QP_CUR_STATE ? attr->cur_qp_state : qp->state;
4705 new_state = attr_mask & IB_QP_STATE ? attr->qp_state : cur_state;
4715 !ib_modify_qp_is_ok(cur_state, new_state, qp_type,
4718 cur_state, new_state, qp->type, attr_mask);
4721 !modify_dci_qp_is_ok(cur_state, new_state, attr_mask)) {
4723 cur_state, new_state, qp_type, attr_mask);
4744 if (cur_state == new_state && cur_state == IB_QPS_RESET) {
4749 err = __mlx5_ib_modify_qp(ibqp, attr, attr_mask, cur_state,