Lines Matching refs:state
132 unsigned int state : 2; /* RCID_STATE_* */ member
246 unsigned int state);
251 assert(rcid->state == RCID_STATE_PENDING in rcidm_check_rcid()
252 || rcid->state == RCID_STATE_CUR in rcidm_check_rcid()
253 || rcid->state == RCID_STATE_RETIRING); in rcidm_check_rcid()
254 assert((rcid->state == RCID_STATE_PENDING) in rcidm_check_rcid()
256 assert((rcid->state == RCID_STATE_CUR) in rcidm_check_rcid()
261 == (rcid->state == RCID_STATE_RETIRING)); in rcidm_check_rcid()
267 || rcid->state == RCID_STATE_RETIRING); in rcidm_check_rcid()
269 assert(rcid->state != RCID_STATE_RETIRING || rcidm->num_retiring > 0); in rcidm_check_rcid()
361 rcid->state = RCID_STATE_PENDING; in rcidm_create_rcid()
369 rcid->state = RCID_STATE_RETIRING; in rcidm_create_rcid()
380 unsigned int state) in rcidm_transition_rcid() argument
382 unsigned int old_state = rcid->state; in rcidm_transition_rcid()
384 assert(state >= old_state && state <= RCID_STATE_RETIRING); in rcidm_transition_rcid()
386 if (state == old_state) in rcidm_transition_rcid()
389 if (rcidm->cur_rcid != NULL && state == RCID_STATE_CUR) { in rcidm_transition_rcid()
399 rcid->state = state; in rcidm_transition_rcid()
401 if (state == RCID_STATE_CUR) { in rcidm_transition_rcid()
403 } else if (state == RCID_STATE_RETIRING) { in rcidm_transition_rcid()
421 switch (rcid->state) { in rcidm_free_rcid()