Lines Matching defs:cur_state
532 int ib_modify_qp_is_ok(enum ib_qp_state cur_state, enum ib_qp_state next_state,
537 if (cur_state < 0 || cur_state > IB_QPS_ERR ||
542 cur_state != IB_QPS_RTR && cur_state != IB_QPS_RTS &&
543 cur_state != IB_QPS_SQD && cur_state != IB_QPS_SQE)
546 if (!qp_state_table[cur_state][next_state].valid)
549 req_param = qp_state_table[cur_state][next_state].req_param[type];
550 opt_param = qp_state_table[cur_state][next_state].opt_param[type];