Lines Matching refs:cur_state

1448 			       enum ib_qp_state cur_state, enum ib_qp_state new_state)  in __mlx4_ib_modify_qp()  argument
1518 if (cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) { in __mlx4_ib_modify_qp()
1534 if (cur_state == IB_QPS_SQD && new_state == IB_QPS_SQD && in __mlx4_ib_modify_qp()
1541 if (cur_state == IB_QPS_INIT && new_state == IB_QPS_RTR) { in __mlx4_ib_modify_qp()
1673 if (qp->rq.wqe_cnt && cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) in __mlx4_ib_modify_qp()
1676 if (cur_state == IB_QPS_INIT && in __mlx4_ib_modify_qp()
1734 if (cur_state == IB_QPS_RTS && new_state == IB_QPS_SQD && in __mlx4_ib_modify_qp()
1740 if (!ibqp->uobject && cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) in __mlx4_ib_modify_qp()
1749 if (!ibqp->uobject && cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) { in __mlx4_ib_modify_qp()
1763 err = mlx4_qp_modify(dev->dev, &qp->mtt, to_mlx4_state(cur_state), in __mlx4_ib_modify_qp()
1790 if (cur_state != IB_QPS_RTR && new_state == IB_QPS_RTR) in __mlx4_ib_modify_qp()
1795 if (cur_state != IB_QPS_RESET && cur_state != IB_QPS_ERR && in __mlx4_ib_modify_qp()
1921 enum ib_qp_state cur_state, new_state; in mlx4_ib_modify_qp() local
1926 cur_state = attr_mask & IB_QP_CUR_STATE ? attr->cur_qp_state : qp->state; in mlx4_ib_modify_qp()
1927 new_state = attr_mask & IB_QP_STATE ? attr->qp_state : cur_state; in mlx4_ib_modify_qp()
1929 if (cur_state == new_state && cur_state == IB_QPS_RESET) { in mlx4_ib_modify_qp()
1936 if (!ib_modify_qp_is_ok(cur_state, new_state, ibqp->qp_type, in mlx4_ib_modify_qp()
1941 ibqp->qp_num, cur_state, new_state, in mlx4_ib_modify_qp()
1947 if ((cur_state == IB_QPS_RESET) && (new_state == IB_QPS_INIT)) { in mlx4_ib_modify_qp()
1966 ibqp->qp_num, attr->port_num, cur_state, in mlx4_ib_modify_qp()
1981 ibqp->qp_num, attr->pkey_index, cur_state, in mlx4_ib_modify_qp()
1991 ibqp->qp_num, attr->max_rd_atomic, cur_state, in mlx4_ib_modify_qp()
2000 ibqp->qp_num, attr->max_dest_rd_atomic, cur_state, in mlx4_ib_modify_qp()
2005 if (cur_state == new_state && cur_state == IB_QPS_RESET) { in mlx4_ib_modify_qp()
2010 err = __mlx4_ib_modify_qp(ibqp, attr, attr_mask, cur_state, new_state); in mlx4_ib_modify_qp()