Lines Matching refs:new_state
1417 enum ib_qp_state cur_state, enum ib_qp_state new_state)
1439 context->flags = cpu_to_be32((to_mlx4_state(new_state) << 28) |
1487 if (cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) {
1503 if (cur_state == IB_QPS_SQD && new_state == IB_QPS_SQD &&
1510 if (cur_state == IB_QPS_INIT && new_state == IB_QPS_RTR) {
1642 if (qp->rq.wqe_cnt && cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT)
1646 new_state == IB_QPS_RTR &&
1690 if (ibqp->qp_type == IB_QPT_UD && (new_state == IB_QPS_RTR)) {
1701 if (cur_state == IB_QPS_RTS && new_state == IB_QPS_SQD &&
1707 if (!ibqp->uobject && cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT)
1716 if (!ibqp->uobject && cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) {
1731 to_mlx4_state(new_state), context, optpar,
1736 qp->state = new_state;
1757 if (cur_state != IB_QPS_RTR && new_state == IB_QPS_RTR)
1763 (new_state == IB_QPS_RESET || new_state == IB_QPS_ERR))
1771 if (new_state == IB_QPS_RESET) {
1888 enum ib_qp_state cur_state, new_state;
1894 new_state = attr_mask & IB_QP_STATE ? attr->qp_state : cur_state;
1896 if (cur_state == new_state && cur_state == IB_QPS_RESET) {
1903 if (!ib_modify_qp_is_ok(cur_state, new_state, ibqp->qp_type,
1908 ibqp->qp_num, cur_state, new_state,
1918 new_state, ibqp->qp_type);
1933 new_state, ibqp->qp_type);
1943 new_state, ibqp->qp_type);
1952 new_state, ibqp->qp_type);
1956 if (cur_state == new_state && cur_state == IB_QPS_RESET) {
1961 err = __mlx4_ib_modify_qp(ibqp, attr, attr_mask, cur_state, new_state);