Lines Matching refs:new_state

18 	bool new_state: 1;  member
90 const struct smf_state *new_state, in smf_execute_all_entry_actions() argument
95 if (new_state == topmost) { in smf_execute_all_entry_actions()
100 for (const struct smf_state *to_execute = get_child_of(new_state, topmost); in smf_execute_all_entry_actions()
101 to_execute != NULL && to_execute != new_state; in smf_execute_all_entry_actions()
102 to_execute = get_child_of(new_state, to_execute)) { in smf_execute_all_entry_actions()
119 ctx->executing = new_state; in smf_execute_all_entry_actions()
120 if (new_state->entry) { in smf_execute_all_entry_actions()
121 new_state->entry(ctx); in smf_execute_all_entry_actions()
150 if (internal->new_state || internal->handled) { in smf_execute_ancestor_run_actions()
151 internal->new_state = false; in smf_execute_ancestor_run_actions()
170 if (internal->new_state || internal->handled) { in smf_execute_ancestor_run_actions()
176 internal->new_state = false; in smf_execute_ancestor_run_actions()
229 internal->new_state = false; in smf_set_initial()
261 void smf_set_state(struct smf_ctx *const ctx, const struct smf_state *new_state) in smf_set_state() argument
265 if (new_state == NULL) { in smf_set_state()
283 if (share_paren(ctx->executing, new_state)) { in smf_set_state()
285 topmost = new_state; in smf_set_state()
286 } else if (share_paren(new_state, ctx->executing)) { in smf_set_state()
291 topmost = get_lca_of(ctx->executing, new_state); in smf_set_state()
295 internal->new_state = true; in smf_set_state()
304 if ((ctx->executing == new_state) && (new_state->exit)) { in smf_set_state()
305 new_state->exit(ctx); in smf_set_state()
316 if ((ctx->executing == new_state) && (new_state->entry)) { in smf_set_state()
317 new_state->entry(ctx); in smf_set_state()
329 while (new_state->initial) { in smf_set_state()
330 new_state = new_state->initial; in smf_set_state()
336 ctx->current = new_state; in smf_set_state()
339 if (smf_execute_all_entry_actions(ctx, new_state, topmost)) { in smf_set_state()
356 ctx->current = new_state; in smf_set_state()