Lines Matching refs:cur_state
642 int ib_modify_qp_is_ok(enum ib_qp_state cur_state, enum ib_qp_state next_state,
647 if (cur_state < 0 || cur_state > IB_QPS_ERR ||
652 cur_state != IB_QPS_RTR && cur_state != IB_QPS_RTS &&
653 cur_state != IB_QPS_SQD && cur_state != IB_QPS_SQE)
656 if (!qp_state_table[cur_state][next_state].valid)
659 req_param = qp_state_table[cur_state][next_state].req_param[type];
660 opt_param = qp_state_table[cur_state][next_state].opt_param[type];