Lines Matching refs:cur_state
1512 enum ib_qp_state cur_state, enum ib_qp_state new_state) in __mlx4_ib_modify_qp() argument
1586 if (cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) { in __mlx4_ib_modify_qp()
1602 if (cur_state == IB_QPS_SQD && new_state == IB_QPS_SQD && in __mlx4_ib_modify_qp()
1609 if (cur_state == IB_QPS_INIT && new_state == IB_QPS_RTR) { in __mlx4_ib_modify_qp()
1780 if (qp->rq.wqe_cnt && cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) in __mlx4_ib_modify_qp()
1783 if (cur_state == IB_QPS_INIT && in __mlx4_ib_modify_qp()
1841 if (cur_state == IB_QPS_RTS && new_state == IB_QPS_SQD && in __mlx4_ib_modify_qp()
1847 if (!ibqp->uobject && cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) in __mlx4_ib_modify_qp()
1856 if (!ibqp->uobject && cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) { in __mlx4_ib_modify_qp()
1870 err = mlx4_qp_modify(dev->dev, &qp->mtt, to_mlx4_state(cur_state), in __mlx4_ib_modify_qp()
1897 if (cur_state != IB_QPS_RTR && new_state == IB_QPS_RTR) in __mlx4_ib_modify_qp()
1902 if (cur_state != IB_QPS_RESET && cur_state != IB_QPS_ERR && in __mlx4_ib_modify_qp()
2030 enum ib_qp_state cur_state, new_state; in mlx4_ib_modify_qp() local
2035 cur_state = attr_mask & IB_QP_CUR_STATE ? attr->cur_qp_state : qp->state; in mlx4_ib_modify_qp()
2036 new_state = attr_mask & IB_QP_STATE ? attr->qp_state : cur_state; in mlx4_ib_modify_qp()
2038 if (cur_state == new_state && cur_state == IB_QPS_RESET) { in mlx4_ib_modify_qp()
2045 if (!ib_modify_qp_is_ok(cur_state, new_state, ibqp->qp_type, in mlx4_ib_modify_qp()
2050 ibqp->qp_num, cur_state, new_state, in mlx4_ib_modify_qp()
2056 if ((cur_state == IB_QPS_RESET) && (new_state == IB_QPS_INIT)) { in mlx4_ib_modify_qp()
2075 ibqp->qp_num, attr->port_num, cur_state, in mlx4_ib_modify_qp()
2090 ibqp->qp_num, attr->pkey_index, cur_state, in mlx4_ib_modify_qp()
2100 ibqp->qp_num, attr->max_rd_atomic, cur_state, in mlx4_ib_modify_qp()
2109 ibqp->qp_num, attr->max_dest_rd_atomic, cur_state, in mlx4_ib_modify_qp()
2114 if (cur_state == new_state && cur_state == IB_QPS_RESET) { in mlx4_ib_modify_qp()
2119 err = __mlx4_ib_modify_qp(ibqp, attr, attr_mask, cur_state, new_state); in mlx4_ib_modify_qp()